IRC log of #maemo-ssu for Monday, 2012-09-03

DocScrutinizer05dimir: you also might find this helpful: http://maemo.cloud-7.de/Gallery-N900-exploded/00:01
dimirDocScrutinizer05: thanks!00:02
DocScrutinizer05dimir: pnatd in a terminal may tell if modem is showing *any* life: AT<enter> should answer OK00:03
kerioyeah, if the modem can't answer "AT" then it's as toast as it can get00:04
dimirDocScrutinizer05: should I run pnatd as root?00:05
DocScrutinizer05yes00:05
*** toxaris has quit IRC00:06
dimirNope, it's not even printing what I type00:06
DocScrutinizer05and don't bother to quit the command, you can't (except with "killall pnatd" from other shell)00:06
DocScrutinizer05not rpinting what you type is 'normal'00:06
dimiryeah, I figured that.00:06
dimirOK.00:06
dimirSo I type in AT<enter> but nothing happens.00:07
dimirI do that via ssh.00:07
dimirIf that's OK.00:07
DocScrutinizer05send it twice00:07
dimirOK.00:07
DocScrutinizer05at<enter>00:07
DocScrutinizer05at<enter>00:07
dimirAh, lower-case.00:07
DocScrutinizer05doesn't matter00:07
DocScrutinizer05just press enter key!00:08
DocScrutinizer05not type <enter>00:08
dimirtwice - does nothing too.00:08
kerioLOL00:08
dimirLUL00:08
DocScrutinizer05though actually even then it should answer error00:08
dimirIt just hangs there.00:08
dimirNo output.00:08
DocScrutinizer05RIP00:08
dimirNice.00:08
DocScrutinizer05try switching to airplane mode and back to normal00:09
DocScrutinizer05then repeat AT00:09
dimirJust a sec.00:09
dimirI would need to take my ass off the couch.00:09
dimir:-D00:09
DocScrutinizer05actually you *might* wnat to *remove* the SIM00:10
dimirIt's not there.00:10
DocScrutinizer05occasionally we seen modems crash on very corrupted SIM00:10
dimirI have it in a backup phone.00:10
DocScrutinizer05:nod:00:10
DocScrutinizer05place a ptch of carton or paper inside SIM holder, to make sure VDD isn't short to metal00:11
dimirdidn't help.00:11
dimirAh, alright.00:11
DocScrutinizer05check syslog/dmesg00:11
DocScrutinizer05grep for "cmt" (iirc)00:12
DocScrutinizer05dimir: in dialer type "*#06#"00:14
DocScrutinizer05should answer with notifier with your IMEI00:14
dimirnothing in dmesg and I don't have /var/log/syslog00:14
dimirIMEI: <empty>00:15
DocScrutinizer05your modem is dead. So sorry for you00:15
dimirOh man.00:15
dimirSo, you are sure reflashing won't help?00:16
DocScrutinizer05a reflash never can hurt, it *might* fix a cmt firmware that for whatever reasons got corrupted00:16
keriona`vi is winning ^_^00:16
keriodimir: didn't the people in the forums report bricking after reflash?00:16
DocScrutinizer05odds are 1000:1 against that00:16
dimirkerio: just a couple. :-)00:17
keriodo it00:17
dimirDocScrutinizer05: OK, do you mean full reflash?00:17
keriobackup the important data though00:17
dimiryeah.00:17
dimirSure.00:17
DocScrutinizer05nah, you can't brick a N900 by flashing00:17
keriodimir: in theory, the stuff on the emmc doesn't really matter00:17
dimirkerio: OK.00:17
DocScrutinizer05exactly00:17
keriobut meh, i always full reflash00:18
dimirSo, just a rootfs?00:18
keriojust 'cause00:18
dimirAh, right.00:18
dimirSo, any link to the latest CSSU image?00:18
keriothere isn't one :c00:18
DocScrutinizer05no such thing00:18
kerioyou need to install pr 1.3 and then upgrade to cssu00:18
DocScrutinizer05PR1.3 is latest00:18
dimirAh, OK.00:19
kerioDocScrutinizer05: why, though?00:19
DocScrutinizer05damn, kerio faster than me00:19
dimirI think I had it somewhere.00:19
DocScrutinizer05kerio: because nobody bothered to fiascogen a CSSU image?00:19
keriois it even possible? :o00:20
DocScrutinizer05I'd guess it is00:20
kerioi mean, nokia managed to do it00:20
DocScrutinizer05though fiascogen is closed source... so :-S00:20
kerioso it's definetely possible00:20
keriobut is it feasible to do?00:20
DocScrutinizer05yes, there are custom fisco images00:21
kerioneat00:21
DocScrutinizer05robbiethe1st did one with BM, NIN101 did a rescue image afaik00:21
kerionin101's is weirder, though00:21
keriobecause you're supposed to just load it00:21
DocScrutinizer05doesn't matter00:21
DocScrutinizer05still a fisco image00:21
DocScrutinizer05google for fiascogen00:22
kerioi don't want to open pandora's jar00:22
DocScrutinizer05http://talk.maemo.org/showthread.php?t=7412100:24
DocScrutinizer05I have used it successfully to make a flashable image for the NAND memory. By combining a rootfs image and a kernel image in one fiasco image with:00:24
DocScrutinizer05Code:00:24
DocScrutinizer05fiasco-gen -g -k kernelImage -r rootfsImage -o myOwnFiasco.bin00:24
DocScrutinizer05I can flash this image to the N900 with:00:25
DocScrutinizer05Code:00:25
DocScrutinizer05flasher-3.5 -F myOwnFiasco.bin -f -R00:25
DocScrutinizer05DANG! there's a armel fiaco-gen pkg!!!00:38
DocScrutinizer05so BM might *finally* learn to create proper self-containing fiasco images00:39
DocScrutinizer05incl kernel and all \o/00:39
DocScrutinizer05could even create a shellscript for x86 that even contains flasher-3.500:40
dimirAnd you can finally say taa-taa to Nookia?00:40
dimirCompletely I mean. :-)00:40
DocScrutinizer05BM "create full fiasco".  ass rage copy BMfiasco_2012-09-02.sh to PC. In case of desaster just run it in shell00:41
DocScrutinizer05or store to uSD in N900. In case swap uSD to PC and run BMfiasco_2012-09-02.sh to restore00:42
DocScrutinizer05~seen robbiethe1st00:43
infobotrobbiethe1st is currently on #maemo (1h 15m 32s), last said: 'yeah'.00:43
DocScrutinizer05hey!!!00:43
DocScrutinizer05dimir:00:49
DocScrutinizer05~flashing00:49
infobotit has been said that maemo-flashing is http://wiki.maemo.org/Updating_the_tablet_firmware00:49
dimirDocScrutinizer05: cheers.00:50
*** taziff1 has joined #maemo-ssu00:55
dimirFlashing didn't help.01:48
dimirAnd at the end of the flashing (as I saw others reported) there was a message: CMT flashing failed01:48
dimirLike:01:48
dimir[...]01:48
dimirFlashing kernel... done.01:48
dimirSending and flashing rootfs image (185728 kB)...01:48
dimir100% (185728 of 185728 kB, avg. 13632 kB/s)01:48
dimirFinishing flashing... done01:48
dimirCMT flashing failed01:49
dimirBut it boots and functions as previously.01:49
dimir~repository01:52
ShadowJKdoes dmesg have stuff about cmt rst rq01:57
SpacedOutluf: DocScrutinizer05 :The events.db trigger hack to populate the call durations only works for one call at a time.  I have a package minutemonitor that can handle multiple.  If the triggers get autoinstalled I don't want them.02:00
*** taziff1 has quit IRC02:39
*** taziff1 has joined #maemo-ssu02:40
merlin1991luf: http://gitorious.org/community-ssu/rtcom-eventlogger-async02:48
*** arcean has quit IRC03:16
*** taziff1 has quit IRC03:25
*** KrayonWork has joined #maemo-ssu03:41
*** M4rtinK has quit IRC03:41
DocScrutinizer05SpacedOut: echo "DROP TRIGGER call_duration_inbound; DROP TRIGGER call_duration_outbound;DROP TRIGGER call_duration_voip_in; DROP TRIGGER call_duration_voip_out;" | sqlite3 -batch /home/user/.rtcom-eventlogger/el-v1.db03:45
DocScrutinizer05will re-establish the buggy behaviour, if you really need it03:46
DocScrutinizer05SpacedOut: I understand your concerns, but please understand that there's no per se right for continuity of bugs03:47
SpacedOutThe tigger is a hack, I just don't need it since what I have does a much better job.03:47
DocScrutinizer05well, if you got a better fix, then share it and we'll happily consider to use it03:48
SpacedOutIf the  rtcom-eventlogger-async is intended to be a run all the time daemon perhaps it can run the code I have.03:48
DocScrutinizer05the trigger is no hack but a sub-optimal but working proper implementation03:48
DocScrutinizer05of course it would be better if the eventlogger itself would populate the call duration column03:50
SpacedOutThe package is minutemonitor already available for install.  It has a small daemon that listens to dbus to do a better job of matching up the call start/end and which entry to update.03:50
DocScrutinizer05aaah I see. An issue about concurrent calls. I wasn't even sure N900 can do that at all, until now03:51
DocScrutinizer05having a dbus monitoring daemon sounds pretty much like another hack to me03:52
DocScrutinizer05it should be rtcom-eventlogger itself doing the update of call duration col03:52
SpacedOutAgreed, it should be written by the same mechanism that writes the log in the first place, but the trigger blindly adds the elapsed time to the last phone entry, which is clearly the the wrong thing to do if the just ended call wasn't the last entry.03:54
DocScrutinizer05yep, which only can happen on concurrent calls03:54
DocScrutinizer05I think it's even mentioned in thread about original trigger "hack"03:55
DocScrutinizer05worst thing that can happen as I see it now is that inbound minutes get booked on an outbound call. IIRC I already discussed that with author of that patch back when03:58
SpacedOutIf I had those triggers, would sqlite3 show them with the `.table` command?03:58
DocScrutinizer05we might want to further investigate it there's room for improvements regarding that special situation03:59
DocScrutinizer05umm, it will show them with the correct command. I'm not expert enough to tell if .table is the right one03:59
DocScrutinizer05why do you anticipate complications/collisions when both your improved dbus-monitoring thingie as well as the database triggers are installed and active? Wouldn't your stuff overrider the triggers anyway?04:01
SpacedOutNo, it will only update the value if the current value is 0.04:02
DocScrutinizer05aaah04:02
DocScrutinizer05I fail to see the rationale behind that04:03
SpacedOutIf it somehow gets the wrong row it won't overwrite what's already there since the N900 software doesn't put anything other than a 0 there.04:04
DocScrutinizer05"somehow" isn't a goot term in an explanation of way of operation04:07
DocScrutinizer05good*04:07
DocScrutinizer05either it's deterministic, then we can find a way for co-existence. Or it's 'somehow' working 'sometimes', then it's hard to see how we could consider it as an alternative or problem04:09
SpacedOutIt's been a while since I wrote that software to remember the details.  I wrote it defensively, if things aren't as it expected it didn't mess with them.04:12
DocScrutinizer05well, I can tell you what to expect04:13
DocScrutinizer05either get rid of it, as suggested above, or get a 2s delay, then write the value unconditionally since you're sure it's better than what trigger does04:14
DocScrutinizer05meanwhile we may ponder if the additional benefit of corretly handling concurrent calls is worth running another dbus-scripting monitor04:16
DocScrutinizer05or we rather opt for fixing eventlogger04:16
SpacedOutIs there source available?  Isn't it being told what to do from something else anyway?04:20
DocScrutinizer05ATM I'm thinking about options to improve triggers to handle concurrent calls correctly04:22
DocScrutinizer05alas it's pretty hard to test since I think I can't do concurrent calls here, with my contract04:24
SpacedOutI'm seeing if I had any notes on what else was wrong with the tigger method, but I'm not finding anything.  I should compare the elapsed time to what I'm getting.04:26
SpacedOutVoIP gives the same results.04:27
merlin1991freemangordon: ping04:35
merlin1991this works async aswell, so I tried to compile microb-engine in my scratchbox again, this time I made a complete new sb target, added the cssu repos install the build dependencies and tried to build it, but it still failed04:39
*** nox- has quit IRC04:41
SpacedOutDocScrutinizer05: The answer to my earlier question is a trigger is added to a table and printing that table's schema `.schema call_duration` prints any triggers there as well.  I don't have the call duration triggers loaded and removing them works for me, I just need to know to remove them.04:41
merlin1991freemangordon: here's the last few lines of output I get from the buildprocess: http://paste.debian.net/187324/04:43
DocScrutinizer05SpacedOut: keep an eye on changelogs (which I hope we'll publsih *prior* to rolling out actual update in the future [ merlin1991: hint hint]). Independently from changelog I'll try to keep in mind to leave you a note when we include triggers to CSSU05:02
DocScrutinizer05SpacedOut: not only triggers but also when we update/fix rtcom-eventlogger05:04
DocScrutinizer05SpacedOut: are we talking about S or T ?05:05
SpacedOutThat would be great.  Isn't rtcom-evenlogger closed source?05:05
DocScrutinizer05I don't know05:05
SpacedOutI thought it was just logging in response to being requested, which would mean it probably doesn't have the information, short of listening on dbus signals like I'm doing.05:06
SpacedOutWhat's S or T?05:06
DocScrutinizer05Stable or Testing05:06
DocScrutinizer05what's your cssu flavour?05:06
SpacedOutdeb http://repository.maemo.org/community-testing/ fremantle free non-free05:08
DocScrutinizer05nevertheless I'd like to know if your CSSU is T or S05:08
DocScrutinizer05T, ok05:08
DocScrutinizer05note to self (and mohammad, merlin1991): send SpacedOut a mail when cssu-t will include triggers for call duration, like http://maemo.cloud-7.de/maemo5/patches_n_tools/eventsdb_calllog_triggers.sh, or implement a fix for same issue to rtcom-eventlogger05:10
DocScrutinizer05reference: https://garage.maemo.org/pm/task.php?func=detailtask&project_task_id=1986&group_id=2300&group_project_id=386405:11
*** amiconn_ has joined #maemo-ssu05:49
*** amiconn has quit IRC05:49
*** amiconn_ is now known as amiconn05:49
*** M13 has joined #maemo-ssu06:51
*** Krayon has quit IRC07:47
*** ekze has quit IRC08:37
*** ekze has joined #maemo-ssu08:37
*** luf has joined #maemo-ssu09:59
*** luf has quit IRC10:21
*** LaoLang_cool has joined #maemo-ssu10:28
*** luf has joined #maemo-ssu10:38
*** arcean has joined #maemo-ssu11:31
*** M4rtinK has joined #maemo-ssu11:34
*** M13 has quit IRC11:50
*** jonwil has joined #maemo-ssu13:27
*** iDont has joined #maemo-ssu14:30
*** zeq has joined #maemo-ssu15:01
*** LaoLang_cool has quit IRC15:10
freemangordonmerlin1991: "unable to dump 00114800" - where is that error coming from?15:13
merlin1991that's the full output I get15:13
merlin1991I guess I could check the makefile of the folder15:13
freemangordonthe fuck :(15:13
freemangordonmerlin1991: i can build it for you, it is ok here15:14
freemangordonmight be related to host os, NFC15:14
merlin1991well you'd have todo it with sb gcc15:14
merlin1991maybe it's that?15:14
merlin1991that you compiled with newer gcc?15:14
freemangordonmerlin1991: don't think so15:15
freemangordonwell, lemme try it15:15
zeqI've been really busy decorating last couple of weeks. I'll hopefully have some time soon to get back working on the important things...15:27
*** Mephistopheles has joined #maemo-ssu15:28
freemangordonzeq: well, take your time, men don't get married every day :P.15:32
freemangordonzeq: BTW my email was to make you aware that i've already did glibc thingie15:33
freemangordonto prevent you doing it once again15:33
*** arcean has quit IRC15:35
zeqno worries, I just hate to say I'm going to do something then not having time to get it done!15:36
freemangordonwell, sometimes it happens, after all we are all volunteers with a real life to deal with :)15:37
zeqyup15:37
freemangordonwhat worries me is merlin1991 unable to build microb-engine15:38
zeqagainst the patched libc?15:39
zeqor at all?15:40
merlin1991zeq: at all15:40
merlin1991freemangordon: maybe some build dependency is missing?15:40
zeqfreemangordon: you can build it fine though?15:41
merlin1991zeq: I made a completely clean now sb target and got this: http://paste.debian.net/187324/15:41
merlin1991s/now/new/15:41
infobotmerlin1991 meant: zeq: I made a completely clean new sb target and got this: http://paste.debian.net/187324/15:41
*** iDont has quit IRC15:42
keriowould this be the same version as cssu-thumb, btw?15:43
zeqwhat gcc/build cflags15:46
zeq?15:46
zeqbinutils?15:48
zeqmerlin1991:  what version qemu devkit?15:50
merlin1991binutils 2.18.50.20070820-4+0m5 qemudevkit 0.13.90-0rabbit115:51
merlin1991zeq: ^^15:52
zeqthis is the sb standard gcc?15:53
merlin1991yeah 4.2.115:54
*** taziff has joined #maemo-ssu15:58
DocScrutinizer05hi folks15:58
merlin1991moin16:00
freemangordonmerlin1991: still clonning the repo :(16:05
freemangordonmerlin1991: you can chech config.log for missing dependencies16:05
freemangordoncheck*16:05
merlin1991hm I have a few of ac_nonexistent.h: No such file or directory16:09
merlin1991int the various config.log files16:09
jon_ythat is not an error in itself16:10
jon_ylook lower16:10
merlin1991tbh I never read those logfiles, dunno really what to look for16:13
jon_yconfigure --help is a good start16:13
jon_yit is possible some errors are entirely optional16:14
jon_yor just checking the host capability16:14
jon_yI wouldn't expect win32 WaveOut test to pass on N90016:14
merlin1991I think this is the right log for the compile fail in question: http://cdnm.at/~christian/maemo/cssu/microb-engine/config.log16:15
jon_ymerlin1991: looks like it cut off half way16:16
jon_ylast check was checking for setlocale16:17
jon_yand the config.log doesn't look like it was from autotools16:17
jon_ymerlin1991: you omitting some stuff?16:18
merlin1991nope16:25
merlin1991that was a full scp of what I got locally16:25
jon_yit looks broken16:25
jon_ywell, pipe and tail both stdout/stderr, looks more reliable16:26
merlin1991how does one get stderr into stdout again?16:27
jon_ywith bash: configure > log.txt 2>&116:27
jon_yor configure 2>&1 | tee log.txt16:28
merlin1991complete build log: http://cdnm.at/~christian/maemo/cssu/microb-engine/build.log16:31
jon_ybug from ./../../dist/bin/run-mozilla.sh?16:33
merlin1991what do you mean?16:33
jon_y./../../dist/bin/run-mozilla.sh ./../../dist/bin/js imacro_asm.js /home/christian/n900/cssu-testing/microb-engine/microb-engine/js/src/imacros.jsasm > imacros.c.tmp16:33
jon_yunable to dump 0011480016:34
jon_yit seems to be from ./../../dist/bin/run-mozilla.sh16:34
jon_yconfigure completed, so I don't think it's a dep problem16:34
merlin1991run-mozilla.sh seems to be just a wrapper16:36
jon_yyou'll need to go into it and find what is printing unable to dump 0011480016:37
jon_ytry sh -x ./../../dist/bin/run-mozilla.sh .....16:37
merlin1991it's actually /../../dist/bin/js16:37
merlin1991that thingy throws unable to dump 001148016:37
jon_yyou'll need to find out why it's doing that16:39
merlin1991and it's a binary and the source to it does not contain any reference to "unable to dump" :/16:39
jon_ywhat does sh -x say?16:39
jon_ymaybe it calls another externel binary16:40
*** LaoLang_cool has joined #maemo-ssu16:40
DocScrutinizer05set trace on in shell ;-)16:41
kerio~seen pali16:42
infobotpali <~pali@unaffiliated/pali> was last seen on IRC in channel #maemo, 6d 21h 21m 44s ago, saying: 'bye, I'm going offline for week or more...'.16:43
merlin1991http://cdnm.at/~christian/maemo/cssu/microb-engine/run.log16:43
merlin1991gotta run for now (exam)16:43
jon_yyup16:44
jon_ydist/bin/js16:44
jon_yunable to dump 0011480016:44
jon_yits js, whatever it is16:44
DocScrutinizer05js like javascript?16:46
jon_ymaybe, I don't know what dist/bin/js is16:47
jon_yneed to try strace dist/bin/js16:47
freemangordonbuild here started, lets see16:50
DocScrutinizer05jon_y: google *might* help:  https://bugzilla.mozilla.org/show_bug.cgi?id=462393 (loosely related)16:50
povbotBug 462393: was not found.16:50
DocScrutinizer05I suspect it's a js-version problem16:50
DocScrutinizer05http://vocamus.net/dave/?p=1319  maybe also contains helpful background info16:58
zeqyes js is javascript16:58
DocScrutinizer05seems it's actually a cmdline js "shell"16:58
zeqexactly so16:58
zeqit's a part of the mozilla build process16:59
zeqthat's why I suspected the qemu ^ but the version seems ok16:59
DocScrutinizer05I'd try something like "#~> dist/bin/js --version" and compare that between a working and a failing machine17:01
DocScrutinizer05also check the js related packages installed on your host17:02
DocScrutinizer05(whatever that might be)17:02
DocScrutinizer05I gather jre1.6 etc is completely unrelated17:02
freemangordonWTF, it fails here too, but on a different place17:04
freemangordon"/home/maemo/workspace/tmp/microb/microb-engine/netwerk/protocol/http/src/nsHttpAuthCache.cpp:391: error: prototype for 'nsresult nsHttpAuthEntry::Set(const char*, const char*, const char*, const char*, const nsHttpAuthIdentity*, nsISupports*)' does not match any in class 'nsHttpAuthEntry'"17:05
*** LaoLang_cool has quit IRC17:05
DocScrutinizer05hmm, dist/bin/js gets built before it's used it seems.17:10
DocScrutinizer05and I can't see a --version command to query actual version of js-binary17:11
DocScrutinizer05there's -j to "enable JIT trace"17:11
DocScrutinizer05whatever that means17:11
DocScrutinizer05meh, not my lawn17:12
*** jonwil has quit IRC17:16
freemangordonmerlin1991: going to diif the sources in CSSU and maemo-extras, after all it seems romaza had no commited everything :(17:20
freemangordon*romaxa17:20
zeqfreemangordon: is this he same microb-engine as you built for cssu-thumb?17:23
zeqor a new version?17:23
freemangordonzeq: yes, but I had the same error there, I was thinking it is because og gcc 4.7.2 and fixed it17:23
freemangordonhttps://gitorious.org/community-ssu/microb-engine/commit/88aac30c51f6150e866ab70c8e5a6b0cefdfd61d17:23
freemangordonnow it turns out the base sources are not OK :(17:24
zeqa new version then?17:24
zeqyes I can click ;)17:24
freemangordonzeq: it is the same version for -thumb, if I parse your question correctly17:25
zeqso it builds with your toolchain ok?17:26
freemangordonzeq: I am trying to build master branch with gcc 4.2.117:26
freemangordonthe above commit is in thumb-testing branch17:26
freemangordondoing diff between what is in maemo-extras and what is in CSSU repo gives 1.5M file :(17:27
freemangordoni'll clone again to have a clean tree17:30
zeqI have the feeling I'm missing too much context to say much meaningful17:30
freemangordonzeq: romaxa said he has uploaded the latest microb-engine sources on garage17:32
freemangordonwe cloned that in CSSU and I applied the patches on top of it17:32
freemangordonnow it turns out romaxa didn't put everything on garage and we have broken sources17:33
freemangordonthat is why both me and merlin1991 fail to build microb-engine17:33
freemangordonI had to patch the same error i have now for thumb-testing branc, but I was thinking it is because of the new compiler17:34
zeqbut it was just a bug in the sources17:35
freemangordonzeq: makes no sense, no way a buggy source can pass through autobuilder :D17:37
freemangordonwhich means that sources on garage (uploaded by romaxa) differ with those in maemo-extras17:38
* zeq is completely confused17:38
zeqok17:38
freemangordonzeq: there is microb-engine in maemo-extras, as tar.gz17:38
freemangordonthere is also microb-engine on garage, as SVN repo17:38
zeqromaxa's is upstream? maemo-extras is pactched maemo release?17:38
freemangordonwe were tol both are equal17:38
freemangordonthey are supposed to be equal, i.e. patched maemo version17:39
freemangordonthe one that comes with stock fremantle. we decided to use those from garage because of the commit history17:40
freemangordonfuuuck17:40
zeqthat makes sense17:41
freemangordoni should've done that diff earlier instead of having trust in what romaxa had said17:41
freemangordonzeq: it is the same as with IPC lite client ;)17:41
freemangordona total mess17:41
zeqI'm not a huge fan of mercurial mq from my experience trying to build IPCLite17:42
freemangordondid you succeed?17:42
zeqdid you?17:42
freemangordonI tried to build it, no success17:42
zeqI will try again when I get time17:42
freemangordonpatches do no ally17:42
freemangordondoes not make sense17:43
zeqI manually fixed up all the patches, but shouldn't have to17:43
freemangordon*apply17:43
* freemangordon is on his way home, bbl17:43
zeqobviously it works for romaxa17:44
zeqdid you ask him how?17:44
zeqI've not really been online recently, as you've noticed17:44
zeqjust attempted to ask romaxa about IPCLite, if I get a reply I'll mention microb too17:48
*** LinuxCode has joined #maemo-ssu17:58
*** arcean has joined #maemo-ssu18:06
*** wmarone_ has quit IRC18:11
*** wmarone_ has joined #maemo-ssu18:11
*** wmarone_ has quit IRC18:12
*** DocScrutinizer05 has quit IRC18:13
*** DocScrutinizer06 has joined #maemo-ssu18:13
*** zeq has quit IRC18:17
*** arcean has quit IRC18:24
*** zeq has joined #maemo-ssu18:34
keriowill cssu eventually fix the optfs situation?18:51
ShadowJKwith what, read-only onenand and overlayfs on emmc?18:53
*** NIN101 has joined #maemo-ssu18:54
*** zeq has quit IRC18:55
kerioomap_hsmmc compiled in the kernel, early mount of /home and bindmount for /usr to /home/usr18:56
keriofor instance18:56
kerioi mean, *really* early mount18:56
freemangordonmerlin1991: ping19:12
*** zeq has joined #maemo-ssu19:18
*** wmarone_ has joined #maemo-ssu19:20
freemangordonmerlin1991: ping19:57
freemangordonzeq: what will happen if we run pselect() glibc on top of non-pselect kernel? I know you alredy answered it, but I forgot what was the answer :S20:07
zeqfreemangordon: pselect() will simply be unavailable.20:10
freemangordonaah, it won't boot :(. "Kernel version too low"20:10
zeqanything that tries to use it will fail with ENOSYS I think20:10
zeqeven better! :)20:11
freemangordonzeq: I think glibc has a check for the minimum kernel version, I've encountered that when tried to chroot ubunto on my n90020:11
zeqI'm not why you hit that though...20:11
freemangordon^^^20:11
freemangordon*ubuntu20:11
freemangordonwell, just thinking whether it will fallback to emulation20:12
zeqit does, but it should be 2.6.28 according to the glibc change for pselect20:12
freemangordonso it will simply refuse to boot20:13
freemangordonhmm, 2.6.28? well, it will boot then20:13
freemangordonthe point is - what will happen if soeone tries to boot with some old version of KP or with stock kernel?20:13
zeqas I said, it will run but pselect() will be unavailable20:15
zeqso anything that tries to use it will get upset20:16
zeqwe could have a check during boot20:16
freemangordonmerlin1991: I've rebased microb-engine on gitorious using the sources on maemo.org. You should be able to build it after git pull. It builds ok here20:17
zeqbut I'm not sure what action it could suggest at that point other than flashing the right kernel20:17
freemangordonzeq: so no fallback?20:17
zeqfreemangordon: that's right, there's either syscalls are used or emulation, it's either or.20:18
keriofreemangordon: well, kernel dependency is something that's been already tried out in cssu-thumb20:18
DocScrutinizer51emulate pselect() like it's been done since ages20:18
zeqs/there's/there are/20:19
infobotzeq meant: freemangordon: that's right, there are either syscalls are used or emulation, it's either or.20:19
kerioDocScrutinizer51: if the syscall fails?20:19
kerioew, performance D:20:19
zeqthat still makes so sense! :P20:19
zeqthat's up to the app20:19
freemangordonzeq: sorry, I am not sure I understand correctly. So, if syscall fails with ENOSYS, glibc will fallback to emulated pselect() behaviour?20:20
DocScrutinizer51glibc can fallback to emulation when kernel considered inappropriate20:20
kerioof course it can, but does it?20:21
freemangordonDocScrutinizer51: in theory or it is how it behaves now?20:21
DocScrutinizer51should at least, could20:21
DocScrutinizer51nfc how it behaves now20:21
freemangordonwell, that is what i ask :)20:21
freemangordonhow it behaves now (zeq's version of course)20:22
DocScrutinizer51yes, seen that and concur with your rationale20:22
*** taziff1 has joined #maemo-ssu20:22
DocScrutinizer51it should fallback to emu20:22
freemangordon:nod:20:23
*** taziff has quit IRC20:23
freemangordonthat will save us a lot of "dammit, my device don't boot after the last CSSU"20:23
freemangordon(after the last KP, you name it)20:23
DocScrutinizer51if you 'patch' own function addr table there won't even be a performance penalty (just an irrelevant sidenote)20:24
freemangordonDocScrutinizer51: cannot parse that, sorry, would you elaborate20:24
freemangordonpatch what? glibc or kernel?20:25
DocScrutinizer51see how LD-PRELOAD works20:25
keriofreemangordon: you don't need to check every time pselect() is called20:25
freemangordonkerio: sure20:25
kerioso the performance loss ends up being a very small constant for each program that loads libc, or possibly even less20:25
DocScrutinizer51you simply push a new symbol-addr tuple on glibc's symbol table20:26
freemangordonyep, I get that. the question is if it is implemented and if not, do zeq wants to implement it :P20:26
freemangordonkerio: ^^^20:26
DocScrutinizer51pointing to emu20:26
keriozeq: do eeeeeeet20:26
kerioby the way, is the kernel patch in KP51r1 already?20:27
freemangordonkerio: no20:27
DocScrutinizer51but actually nm, "overhead" for a conditional branch is negligible20:27
zeqseems rather hacky20:28
kerioDocScrutinizer51: maybe not, if you're running the thumb2 errata workaround20:28
kerio>:D20:28
DocScrutinizer51but indeed glibc on init could check kernel for pselect and config itself accordingly20:29
DocScrutinizer51kerio: eh?20:29
keriothe branch prediction cache is flushed on every context switch20:29
DocScrutinizer51so what? telling me news?20:30
zeqDocScrutinizer06: you mean patch glibc on boot?20:30
DocScrutinizer51yep20:30
DocScrutinizer51not 'patch', just init20:30
DocScrutinizer51each lib has its own init afaik20:31
DocScrutinizer51in this init check if proper pselect or emu shall get 'exported'20:31
freemangordonzeq: a runtime check whether the current running kernel supports pselect() (and others) and initializing a function pointer should do the job too20:32
zeqI see20:32
freemangordonone time check20:32
zeqI guess that could work20:32
freemangordonthat will save us a lot of headaches20:32
DocScrutinizer51freemangordon: I thought I tried to say exactly that20:33
*** zeq has quit IRC20:33
freemangordonDocScrutinizer51: sure, but you said it in such a complicated way, that we poor developers got lost :P20:33
DocScrutinizer51the genuine function pointer is in symbol table20:33
freemangordonaah20:33
freemangordondidn't know that20:33
*** zeq1 has joined #maemo-ssu20:34
zeq1Sorry, battery went flat!20:34
DocScrutinizer51see LD_PRELOAD20:34
zeq1I wonder though, if it's so easy why glibc doesn't do that already?20:35
keriobecause there's no reason to, really20:35
freemangordonwell, usually you don't boot your linux with several kernel versions20:35
keriousually you boot your linux with linux 320:36
kerioat least20:36
DocScrutinizer51(sorry, Imm off home, so you have to follow 2 derefs to get from LD-PRELOAD to the function call to mess with symbol table)20:36
freemangordonat least I don;t20:36
zeq1I guess it's mostly because in this case, other than ARM the version check is reliable and you simply can't boot with the wrong kernelk20:37
zeq1s/kernelk/kernel/20:37
infobotzeq1 meant: I guess it's mostly because in this case, other than ARM the version check is reliable and you simply can't boot with the wrong kernel20:37
merlin1991freemangordon: I'll try to build it as soon as I've sorted my pc20:37
freemangordonmerlin1991: ok20:37
merlin1991(new ssd to replace the broken one, which leads to new windows installation, which in turn needs a new grub installation :D)20:37
DocScrutinizer51afk shopping20:38
freemangordonzeq1: well, I guess n900 won;t boot too20:38
zeq1I don't remember if it does boot or not20:38
freemangordonfailing pselect in udev does not sounds like the system will boot :D20:38
zeq1many things will be broken for sure20:38
zeq1I think if I remember it does actually boot... but you can't run apt/dpkg ;)20:39
zeq1I'm probably making that up though20:39
zeq1I can't really remember what I tested with now20:39
zeq1I remember....20:40
zeq1... I installed the syscall glibc on a kernel that didn't support it, but didn't reboot20:40
zeq1so I don't know if it would have rebooted, didn't dare try20:40
zeq1used my backup libc to recover via LD_LIBRARY_PATH20:41
freemangordonzeq1: now you have a devel device you my want to try it :P20:41
zeq1it's certainly much safer :)20:42
zeq1my devel device works much better than my non-devel device btw20:42
freemangordonhehe20:42
freemangordonsame here, but that is normal20:42
freemangordonyou actually don;t have sim, IM accounts, etc, etc20:43
zeq1not only that20:44
zeq1but also there's a problem with the charging/booting with the other n90020:44
zeq1it usually cycles a couple of times to boot - rather weird.  it works fine when it's up though.20:45
zeq1I shouldn't turn it off ;)20:45
zeq1but you're also right, about the performance being better, I put it down to not having so much crap running :)20:46
zeq1My hildon-desktop build works really well on it.  nice and smooth with no OC :)20:49
*** arcean has joined #maemo-ssu21:04
amiconnHmm, bugs.maemo.org certificate expired a month ago...21:18
*** trumee has quit IRC21:21
DocScrutinizer06fact is, users *might* correctly install a non-pselect() kernel incl modules, which _should_ just work, but will (or may) spoil their day just due to glibc. A method *insdie* glibc to fall back to a possibly suboptimal but working emulation for pselect() would be a sane thing to implement21:21
*** MrPingu has joined #maemo-ssu21:22
freemangordonDocScrutinizer06: :nod:21:25
*** Mephistopheles has quit IRC21:25
DocScrutinizer06freemangordon: (function pointer, symbol table) man dlsym; not exactly to the point but close enough to make your way from there21:33
kerioDocScrutinizer06: users aren't supposed to know that there's such a thing as a "kernel"21:35
freemangordonDocScrutinizer06: I think zeq1 is knowledgeable enough to be able to implement it :)21:35
DocScrutinizer06I hope so. >> If a dynamic library exports a routine named _init(), then that code is executed after the load-       ing, before dlopen() returns.21:37
*** trumee has joined #maemo-ssu21:40
freemangordonDocScrutinizer06: any idea if I can find n950 screen?21:41
keriohahaha wat21:41
freemangordonan accident21:42
keriobuy vi__'s n95021:43
freemangordonkerio: I need a screen, not a whole device21:43
DocScrutinizer06in this code check for pselect() support in kernel, and if not provided, change addr-pointer to pselect() to the emulation21:43
DocScrutinizer06I.E dlsym("pselect") returns a pointer to true pselect() or pselect-emu, depending on result of support check in _init21:43
DocScrutinizer06never heard of any21:45
DocScrutinizer06completely unclear what display is used21:45
keriomaybe it's the same as the n921:45
DocScrutinizer06digitizer for sure is unavailable21:45
DocScrutinizer06kerio: BS21:45
freemangordonkerio: it is bigger21:45
kerioi said maybe!21:45
DocScrutinizer06N950 is LCD, N9 is amoled21:46
kerio...wait, really?21:46
keriowho thought amoled was a good idea? :s21:46
DocScrutinizer06yes, really21:46
freemangordonDocScrutinizer06: I took the picture of backover and controller21:46
freemangordoncontroller is atmel, but it seems like made for Nolia21:46
freemangordon*Nokia21:46
freemangordonMXT-NOK1 :D21:48
DocScrutinizer06eeew21:48
DocScrutinizer06well, google suggests it's not *completely* unknown, might be related/same mxt22421:50
*** trumee has quit IRC21:50
*** trumee has joined #maemo-ssu21:51
DocScrutinizer06http://www.alibaba.com/product-gs/612807164/MXT_NOK1_MXT224.html21:51
freemangordonwell, might be, but anyway controller is ok.21:52
DocScrutinizer06http://www.aliexpress.com/store/product/1pcs-LOT-Original-Electronic-component-MXT224-CCU-MXT-NOK1/808897_568510723.html21:52
freemangordonthe screen has 2 black stripes around half mm wide21:52
DocScrutinizer06yeah, seems eventually everybody runs into that21:53
freemangordonotherwise it works ok, just looks ugly :D21:54
freemangordonmaybe I should try and ask Nokia Bulgaria, who knows21:56
freemangordonthough I can imagine their surprise when the see the device :D21:57
keriohahaha22:07
*** LinuxCode has quit IRC22:08
*** luf has quit IRC22:08
*** trumee has quit IRC22:12
*** MrPingu has left #maemo-ssu22:12
*** trumee has joined #maemo-ssu22:14
DocScrutinizer06freemangordon: zeq1: if (! pselect-supported-in-kernel) {dlopen("glibc-helper-fakePselect.so")}22:18
DocScrutinizer06^^^ in glibc _init22:18
DocScrutinizer06if nothing smarter comes to mind22:19
*** DocScrutinizer06 is now known as DocScrutinizer0522:23
zeq1pselect-supported-in-kernel() would have to call pselect() and see if it works22:29
freemangordonzeq1: hmm, it should call __syscall aiui22:30
freemangordonand check for enosys22:30
zeq1yes, that's what I mean22:30
freemangordonyes, any problem with that?22:30
zeq1(since pselect() is the glibc wrapper)22:31
zeq1it's probably quite doable, especially since it's wrapped anyway22:31
zeq1could modify the code on init to swap the syscall with a branch?22:33
freemangordonwell, if it is function ptr there should be no problem22:33
zeq1you're right, just include both functions and set the pointer accordingly after a test during init22:34
freemangordonexactly22:34
DocScrutinizer05exactly22:34
* zeq1 needs to go get something to eat22:36
*** SpacedOut has quit IRC22:49
*** SpacedOut has joined #maemo-ssu22:49
DocScrutinizer05LOL23:03
DocScrutinizer05jr@halebop:/> ld --help|wc -l23:03
DocScrutinizer05135723:03
kerioonly 242 on maem23:06
kerioo23:06
kerioand only 1 on os x :D23:06
keriold64: For information on command line options please use 'man ld'.23:11
*** arcean has quit IRC23:24
*** arcean has joined #maemo-ssu23:34
*** taziff1 has quit IRC23:41
*** BCMM has joined #maemo-ssu23:49
*** NIN101 has quit IRC23:53

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!