*** Aranel has quit IRC | 01:13 | |
*** arcean has quit IRC | 03:01 | |
*** arcean has joined #maemo-ssu | 03:01 | |
*** arcean has quit IRC | 03:01 | |
*** M4rtinK has quit IRC | 03:05 | |
*** jonwil has joined #maemo-ssu | 03:32 | |
jonwil | Who here is a developer for the CSSU? | 03:32 |
---|---|---|
jonwil | I have something that is a candidate for the CSSU | 03:33 |
* MohammadAG guesses libsms? :P | 03:33 | |
jonwil | yes :) | 03:34 |
jonwil | the libsms sutff | 03:34 |
jonwil | stuff | 03:34 |
MohammadAG | it's a binary patch right? | 03:34 |
jonwil | yes | 03:34 |
jonwil | Its clear that Nokia will never fix the bug, never release source code for libsms and never release the info that would be required to write a compatible replacement for libsms. | 03:35 |
MohammadAG | true | 03:35 |
jonwil | hence a binary patch is the best option to make Cell Broadcast SMS work | 03:35 |
jonwil | That or some kind of runtime patch to the memory of libsms.so whilst it runs inside CSD. | 03:36 |
MohammadAG | this can be done with patch right? | 03:36 |
jonwil | yes fixing Cell Broadcast SMS can be done with a simple 3 byte binary patch | 03:36 |
MohammadAG | since we can't ship binaries | 03:36 |
merlin1991 | jonwil: what does the binary patch actually change? | 03:38 |
jonwil | What the code does is it grabs the info_length from the tSMS_SubGSMCBMessage structure and puts it in r3 | 03:39 |
jonwil | The specs I have (from www.wirelessmodemapi.com) specify that a value of 0xFF for this field means the field should be ignored | 03:40 |
jonwil | What the old code did is it said "if length = 0xFF, length = 0" | 03:40 |
jonwil | which of course meant thing didnt work | 03:41 |
jonwil | What my patch does (and what the matching code in the recently published Harmattan libsms does) is to say "if length > 0x52, length = 0x52" | 03:41 |
jonwil | 0x52 being the value of SMS_CB_MESSAGE_CONTENT_SIZE | 03:41 |
jonwil | and the size of the content_of_message array in the tSMS_SubGSMCBMessage structure | 03:41 |
jonwil | My limited testing (in so far as I can only get the one Cell Broadcast SMS as that | 03:46 |
jonwil | that's all my local tower will send me | 03:46 |
jonwil | shows that it works | 03:46 |
jonwil | and I get a decoded and usable SMS out of it | 03:46 |
jonwil | so what is the best way forward? | 03:49 |
*** the_lord has joined #maemo-ssu | 03:49 | |
merlin1991 | finding out the best way to apply the binary patch with a deb without shipping the full binary | 03:50 |
merlin1991 | and of having it removed on uninstall again | 03:51 |
merlin1991 | s/of/ofc/ | 03:51 |
jonwil | I have absolutely no clue how to do that | 03:53 |
merlin1991 | neither have I, but I'm just a tester / docs guy :D | 03:54 |
jonwil | I think maybe the LD_PRELOAD idea is a better one although I dont know how LD_PRELOAD would work in this case (ARM linux, position-independent-code etc) | 04:09 |
jonwil | Cloning the one function involved is definatly possible though :) | 04:09 |
* jonwil thinks we need some technical advise as to how things should be done :) | 04:20 | |
*** the_lord has quit IRC | 04:21 | |
MohammadAG | I'm assuming "patch" can't do binary patches? | 04:27 |
jonwil | As far as I know, no it cant | 04:33 |
*** m0use has joined #maemo-ssu | 04:38 | |
*** the_lord has joined #maemo-ssu | 04:39 | |
the_lord | DocScrutinizer: http://www.meegoexperts.com/2011/06/nokia-talking-hack-friendly-developer-mode-n9/ how about that? | 04:40 |
jonwil | I think we need to find someone who knows a lot about Debian packaging who can tell us how we can do a reversible binary patch via a .deb file (or alternately somehow modify the /etc/event.d/csd file to LD_PRELOAD our LD_PRELOAD library if we go that way) | 04:53 |
jonwil | So really we have 4 different issues here, the first is figuring out the best way to deal with the libsms bug, the second is finding some code to decode the Cell Broadcast SMS's, the third is finding more info on CBSMS so we can make sure said code properly decodes all the different possible Cell Broadcast messages and the forth is to figure out how the different Cell Broadcast SMS messages... | 05:18 |
jonwil | ...should be displayed and write a UI for them | 05:18 |
jonwil | Is there a CSSU mailing list or something that might be better to discuss this? | 05:28 |
*** Sc0rpius has quit IRC | 05:35 | |
*** Jade has quit IRC | 05:40 | |
MohammadAG | maemo-developers, prefix the message with [CSSU] | 05:50 |
jonwil | ok, will post there with a subject like [CSSU] Advice wanted on the best way to package bugfix for closed libsms library | 05:59 |
jonwil | ok, sent | 06:31 |
jonwil | Lets hope some of the CSSU gurus can advise as to the way forward | 06:31 |
*** psycho_oreos has quit IRC | 07:14 | |
*** DocScrutinizer has quit IRC | 07:31 | |
*** DocScrutinizer has joined #maemo-ssu | 07:31 | |
*** the_lord has quit IRC | 07:38 | |
*** psycho_oreos has joined #maemo-ssu | 07:52 | |
DocScrutinizer | jonwil: merlin1991: I'm about to write the patcher function, unpatch is simple isn't it? just keep backup of file | 08:31 |
jonwil | yeah | 08:32 |
jonwil | it would be | 08:32 |
DocScrutinizer | just figuring how to best script binary patching with busybox | 08:33 |
DocScrutinizer | something along the line >>> od | sed | prin <<< | 08:34 |
DocScrutinizer | print even | 08:34 |
DocScrutinizer | as I'm not aware of any proper generic binary patching tool | 08:35 |
jonwil | Any further ideas on how to do the patching? | 10:03 |
DocScrutinizer | I'm working on it | 10:18 |
jonwil | ok | 10:18 |
jonwil | sounds good :) | 10:18 |
DocScrutinizer | coming up with a patch app shortly | 10:18 |
jonwil | nice | 10:20 |
jonwil | I think I will ask on the ofono mailing list about the ofono Cell Broadcast SMS code | 10:41 |
jonwil | and how I can reuse the decoding logic for my own SMS work | 10:41 |
Jaffa | jonwil: In the middle or replying tp your post. Thanks for taking the effort. | 10:52 |
jonwil | great | 10:53 |
Jaffa | But browser crashed, so I'll have to finish it later. | 10:53 |
jonwil | ok | 10:53 |
Jaffa | Short version: I think binary patching | 10:53 |
jonwil | Should I go ahead and post on the ofono mailing list asking about the ofono Cell Broadcast SMS decoding logic and how I can use it? | 10:54 |
jonwil | Or is there a better way to do that? | 10:54 |
Jaffa | Doesn't do any harm to ask more questions and get more ppl involved | 10:54 |
Jaffa | Your emails aren't "I haz problems. Can u help?" after all | 10:55 |
*** psycho_oreos has quit IRC | 11:01 | |
*** jonwil has quit IRC | 11:12 | |
*** M4rtinK has joined #maemo-ssu | 11:25 | |
*** m0use has quit IRC | 12:57 | |
*** psycho_oreos has joined #maemo-ssu | 13:16 | |
*** psycho_oreos has quit IRC | 13:32 | |
*** Milhouse has quit IRC | 13:37 | |
*** Milhouse has joined #maemo-ssu | 13:47 | |
*** Milhouse has joined #maemo-ssu | 13:47 | |
*** M4rtinK has quit IRC | 13:47 | |
*** psycho_oreos has joined #maemo-ssu | 14:17 | |
*** jonwil has joined #maemo-ssu | 14:26 | |
thp | "I haz problems. U fix ofono! kthxbye @}->--" | 14:39 |
*** Jade has joined #maemo-ssu | 15:13 | |
*** Jade has joined #maemo-ssu | 15:13 | |
*** arcean has joined #maemo-ssu | 15:14 | |
DocScrutinizer | good luck with getting answers from ofono ;-P | 15:28 |
DocScrutinizer | all I heard was these guys are as responsive as Nokia at large. Wait... probably ofono and Nokia is only marginally different, both in staff and standards on replying to "outsider" requests | 15:30 |
DocScrutinizer | YMMV, dunno | 15:31 |
*** BCMM has joined #maemo-ssu | 17:11 | |
*** BCMM has quit IRC | 18:55 | |
jonwil | ~ | 19:51 |
thp | btw, is anybody working on portrait mode desktop now that we've got awesome 'mixed windows in portrait mode' support in the task switcher? | 20:11 |
merlin1991 | thp: there was a lot of talk and idea gathering some time ago, but I don't think anybody is working on it | 20:16 |
thp | merlin1991: any blockers where community members can help? | 20:16 |
merlin1991 | ping MohammadAG he should know about it :D | 20:17 |
merlin1991 | are you still @ europython? | 20:17 |
merlin1991 | I just noticed a feature from the n900 wich I misso on ubuntu :D | 20:18 |
merlin1991 | can't move to the rightmost screen from the 1st one (leftmost) | 20:18 |
MohammadAG | I suck at C is the blocker for me | 20:20 |
MohammadAG | no one's working on it | 20:20 |
merlin1991 | MohammadAG: I think the final idea was to have some fancy algorithm calculate the initial position of items, but have stored positions for both modes (portrait / landscape) right? | 20:22 |
MohammadAG | yes | 20:23 |
MohammadAG | Jaffa had the algorithm | 20:23 |
DocScrutinizer | jonwil: patcher almost done, ttyl | 20:26 |
thp | merlin1991: back in vienna since 9am today | 20:29 |
thp | merlin1991: now for some final java exercise work for uni, probably skipping DIF | 20:30 |
DocScrutinizer | Jaffa: I disagree about depending every patch on mp-fremantle-community-pr | 21:35 |
DocScrutinizer | Jaffa: this mp should only bundle essential things that modify the system in a way that has global impact on the way things work. | 21:37 |
DocScrutinizer | the patch to the sms lib is really unrelated to anything, and system will live on happily not matter if it's stock and patched, or cssu and patched, or not patched at all | 21:38 |
DocScrutinizer | the patcher (I just finished on it) should rather get pulled in by anything actually dealing with the resulting smscb messages | 21:39 |
DocScrutinizer | I'd absolutely agree on hosting this whole package on cssu, but as a separate deliberately installable package, not as part of the metapackage | 21:40 |
*** jonwil has quit IRC | 21:43 | |
*** M4rtinK has joined #maemo-ssu | 21:45 | |
DocScrutinizer | could smebody enlighten me about which of the libsms.so, in which version (bytelength fine) jonwil is talking when he elaborates on how to bytepatch it for SMSCB? | 22:02 |
DocScrutinizer | FQN + bytelength welcome | 22:02 |
DocScrutinizer | my libs with name *libsms* all don't hafe the right value at the given addr :-/ | 22:03 |
DocScrutinizer | have* | 22:03 |
*** Sc0rpius has joined #maemo-ssu | 22:07 | |
*** freemangordon-n9 has joined #maemo-ssu | 22:23 | |
*** freemangordon-n9 has quit IRC | 23:16 | |
Jaffa | DocScrutinizer: Yes, if there's an app which you need to do anything with it, then sure. But what do you mean "hosted by the CSSU" | 23:22 |
Jaffa | DocScrutinizer: That doesn't make sense. | 23:22 |
DocScrutinizer | we got a repo, no? | 23:23 |
Jaffa | Why use it rather than Extras? | 23:23 |
DocScrutinizer | thought that repo can host pkgs, just like extras-devel | 23:23 |
Jaffa | The only advantage of the CSSU repo is that HAM will allow it to be treated as a system repo. Which an end-user CB SMS & libsms-binary-patch doesn't need | 23:24 |
DocScrutinizer | no particular reason, never mind | 23:24 |
DocScrutinizer | not for this one | 23:24 |
DocScrutinizer | yes | 23:24 |
Jaffa | Cool :) | 23:24 |
DocScrutinizer | Jaffa: can you reproduce jonwil's patching? | 23:24 |
DocScrutinizer | my lib seems to differ completely | 23:25 |
Jaffa | I haven't had a chance to try | 23:25 |
DocScrutinizer | plus there are even 4 different libsms.so arounf on my 2 N900 ;-P | 23:25 |
DocScrutinizer | plus there are even 4 different libsms.so arounf on my 2 N900 ;-P | 23:26 |
DocScrutinizer | t900:~# ls -l /usr/lib/libsms.so.0.0.0 | 23:26 |
DocScrutinizer | -rw-r--r-- 1 root root 45392 Nov 16 2009 /usr/lib/libsms.so.0.0.0 | 23:26 |
DocScrutinizer | t900:~# uname -a | 23:26 |
DocScrutinizer | Linux t900 2.6.28.10power46 #1 PREEMPT Sun Dec 12 03:11:24 EET 2010 armv7l unknown | 23:26 |
DocScrutinizer | . | 23:26 |
DocScrutinizer | IroN900:~# ls -l `find /usr -name '*libsms*'` | 23:26 |
DocScrutinizer | lrwxrwxrwx 1 root root 15 2010-06-23 06:08 /usr/lib/libsms.so.0 -> libsms.so.0.0.0 | 23:26 |
DocScrutinizer | -rw-r--r-- 1 root root 79964 2009-12-15 14:41 /usr/lib/libsms.so.0.0.0 | 23:26 |
DocScrutinizer | lrwxrwxrwx 1 root root 21 2010-06-23 06:07 /usr/lib/libsms-utils.so.0 -> libsms-utils.so.0.0.0 | 23:26 |
DocScrutinizer | -rw-r--r-- 1 root root 42932 2009-12-16 11:31 /usr/lib/libsms-utils.so.0.0.0 | 23:26 |
DocScrutinizer | -rw-r--r-- 1 root root 7836 2010-02-04 10:50 /usr/lib/rtcom-eventlogger/plugins/libsms.so | 23:26 |
DocScrutinizer | on CSSU PR1.3 | 23:27 |
DocScrutinizer | I'm puzzled | 23:27 |
DocScrutinizer | the t900 2.6.28.10power46 is a PR1.2 based system still | 23:28 |
DocScrutinizer | so 45392 Nov 16 2009 /usr/lib/libsms.so.0.0.0 is PR1.2 (too short for patching ;-P), while 79964 2009-12-15 14:41 /usr/lib/libsms.so.0.0.0 doesn't have matching original values at the DD78 etc locations | 23:31 |
DocScrutinizer | where's jonwil when you need him?? | 23:31 |
merlin1991 | did /quit 2 hrs ago :D | 23:33 |
DocScrutinizer | maybe he notices the new mail in maemo-developers@maemo.org | 23:34 |
MohammadAG | merlin1991, can you help with something | 23:41 |
MohammadAG | fakeroot: preload library `libfakeroot-sysv.so' not found, aborting. | 23:41 |
merlin1991 | what should I do? | 23:42 |
merlin1991 | :D | 23:42 |
merlin1991 | MohammadAG: ^^ | 23:44 |
*** arcean has quit IRC | 23:46 | |
MohammadAG | merlin1991, find where libfakeroot-sys.so is in the sysroot | 23:50 |
merlin1991 | on ubuntu? | 23:50 |
MohammadAG | or under /scratchbox | 23:51 |
DocScrutinizer | could some of you please post here: the output of ># md5sum /usr/lib/libsms.so.0.0.0; plus what's your fiasco version you're using (international|US|...) and the version if not PR1.3 | 23:51 |
MohammadAG | 7 minutes till the harmattan SDK's done | 23:52 |
MohammadAG | merlin1991, well, your PC | 23:52 |
MohammadAG | 6d9560f64f97dd18ccbd3119229717ae /usr/lib/libsms.so.0.0.0 | 23:52 |
DocScrutinizer | MohammadAG: which locale-fiasco? | 23:53 |
MohammadAG | global | 23:54 |
DocScrutinizer | yep, that's confirmed by now | 23:54 |
DocScrutinizer | wonder ehat jonwil is using, maybe USA? | 23:54 |
DocScrutinizer | what* | 23:54 |
merlin1991 | MohammadAG: http://pastebin.com/CWNsSyEY | 23:59 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!