**** BEGIN LOGGING AT Sun Feb 19 02:59:58 2012 Feb 19 09:32:33 JaMa: hello. do you have some news about eglibc not building ? Feb 19 10:36:33 heyho Feb 19 13:49:42 mickeyl: when did you last time update specs from wirelessmodemapi.com? Feb 19 14:19:47 hi mrmoku Feb 19 14:20:19 * GNUtoo-desktop opkg upgrades mrmoku so he can work on gta04 Feb 19 14:20:51 mrmoku, in other words, is the build finished etc... Feb 19 14:25:13 DocScrutinizer: wirelessmodemapi is no more since long I think Feb 19 14:25:25 GNUtoo-desktop: no, not yet Feb 19 14:25:30 ok Feb 19 14:26:07 mrmoku: well, it's down, that's for sure Feb 19 14:26:19 but still "existing" Feb 19 14:27:13 mrmoku: that's why I ask what's the most recent version of the docs we pulled from there Feb 19 14:27:45 I'm not sure I'm "up to date" - whatever that means in this context Feb 19 14:28:35 I also wonder what's the story with ofono and mer and meego now. AIUI ofono mainly driven by intel, no? Feb 19 14:29:22 and meego-real/mer based on ofono Feb 19 14:29:30 yeah, I think so Feb 19 14:29:43 (regarding Intel) Feb 19 14:29:54 and ofono kinda fsckd without wirelessmodemapi Feb 19 14:30:34 so what's the deal with Nokia promising to support mer, while they actively nuke ofono? Feb 19 14:31:36 Nokia way more rogue than they always claimed to be (not) Feb 19 14:33:35 what's the minimum duration for support like wiki, websites in general, download of firmware etc, that a customer may legally expect and demand from a company like Nokia for their products like N900/N9 ? Feb 19 14:34:36 I'd tend to argue that wirelessmodemapi.com is part of such support for N900 and N9 Feb 19 14:36:06 nokia most probably would disagree ;) Feb 19 14:36:16 it's been there when I bought the device, it's an immuatable part of direct support for the device, and maybe I never had bought the product if that support wasn't available at the time of purchase and reasonably expectable for another number of years Feb 19 14:37:13 but hey, they don't even *repair* devices anymore, after just a tad more than 2 years :-/ Feb 19 14:37:22 I bet that's not legal Feb 19 14:39:46 I fear it is legal Feb 19 14:40:13 there've been cases at court where it's been decided that maufacturers are supposed to provide spare parts for a raher clearly defined number of years minimum, depending on class of device etc, and I bet 2 years was not such a minimum allowable timespan for any device/good except maybe clothes and their buttons Feb 19 14:41:19 ok :) Feb 19 14:41:31 nota bene this timespan *starts* to run when device is no longer sold Feb 19 14:41:48 I think apple got condamned by the justice for that in italy( for providing less than 2 years) Feb 19 14:41:54 NOT when device is sold first time Feb 19 14:49:30 made up case: I run a truckage, and got all my drivers/trucks a N900 with a custom proprietary software for tracking/sheduling/whatnot. I thus bought 150 N900 8 months ago, and now that MyTruckageManager rev0.99 is about to enter rev1.0 state and everything finally seems to work after some dozen kBucks paid to the sw-house writing that app for me, I have to learn Nokia doesn't sell N900 anymore, they don't offer any really Feb 19 14:49:31 compatible successor product, and they even don't offer repair for the devices I bought Feb 19 14:51:04 WTF? Feb 19 14:53:42 I think the basic legal rule is: a device counts as discontinued no sooner than either a) the company explicitly announced discontinuation, or b) a valid successor device gets marketed by same company. Feb 19 14:53:57 you could argue for N900 neither of both happened Feb 19 14:54:54 only then the timespan for support they have to provide *starts* to run Feb 19 14:55:53 and that timespan is for sure no less than 2 years, as even "gewaehrleistung" in EU is 24 months Feb 19 15:48:07 (wirelessmodemapi.com) Feb 19 15:48:09 [2012-02-19 16:43:16] down doesn't reassure me of Nokia's willingness to support FOSS development for their modems Feb 19 15:48:10 [2012-02-19 16:43:24] keep in mind the modem division got sold to Renesas Feb 19 15:52:15 tablet sold with gnu/linux -> http://makeplaylive.com/ Feb 19 17:43:16 JaMa, hi Feb 19 17:43:26 JaMa, how do you find the obtimal jffs2 values? Feb 19 17:44:00 like ERASEBLOCKSIZE = "0x20000" Feb 19 17:44:05 I want to add it for gta04 Feb 19 17:44:14 values for om-gta02 work Feb 19 17:44:20 but I've no idea if it's obtimal or not Feb 19 17:52:28 ok it's in /proc/mtd Feb 19 18:25:19 JaMa, hi Feb 19 18:25:24 JaMa, I've that: Feb 19 18:25:26 DEBUG: while parsing do_rootfs, unable to handle non-literal command '${IMAGE_PREPROCESS_COMMAND}' Feb 19 18:33:49 mrmoku, did you have that ^^^ Feb 19 19:12:19 GNUtoo|laptop: never seen this where it's used and is it defined for other machines/images? Feb 19 19:17:38 GNUtoo|laptop: running task 1760 Feb 19 19:17:40 it's only += Feb 19 19:17:45 so... dunno yet Feb 19 19:17:47 ok Feb 19 19:17:51 it's at parsing Feb 19 19:17:55 so you don't have it Feb 19 19:17:57 ahh, ok Feb 19 19:18:02 yeah, then I don't have it Feb 19 19:18:10 with a freshly cloned shr-chroot Feb 19 19:37:10 JaMa, basically grep gives that: Feb 19 19:37:30 openembedded-core/meta/classes/image.bbclass: ${IMAGE_PREPROCESS_COMMAND} Feb 19 19:37:38 and 2 "definitions" : Feb 19 19:37:50 openembedded-core/meta/classes/image-mklibs.bbclass:IMAGE_PREPROCESS_COMMAND += "mklibs_optimize_image; " Feb 19 19:37:50 openembedded-core/meta/classes/image-prelink.bbclass:IMAGE_PREPROCESS_COMMAND += "prelink_image; " Feb 19 19:37:54 but that's all Feb 19 19:38:41 what's the I in that image.bbclass? Feb 19 19:39:39 what do you mean by 'I' Feb 19 19:39:40 ? Feb 19 19:40:06 I tried to add jffs2 images in machine config (gta04.conf) Feb 19 19:40:14 but when I remove it Feb 19 19:40:21 it still does the error Feb 19 19:40:35 so maybe it got cached somehow? Feb 19 19:40:42 I removed bb_codeparser* Feb 19 19:40:44 but still Feb 19 19:43:03 JaMa, ^^^ Feb 19 19:51:45 20:37:30 < GNUtoo|laptop> openembedded-core/meta/classes/image.bbclass:I${IMAGE_PREPROCESS_COMMAND} Feb 19 19:52:08 there is some 'I' before it at least how I see it in your paste Feb 19 19:52:15 maybe it's just tab Feb 19 19:52:45 it's tab Feb 19 19:52:56 I don't see the I Feb 19 19:53:44 and all other lines before have tab too Feb 19 19:53:57 ( in fakeroot do_rootfs () ) Feb 19 19:57:10 and is it the same for all machines or just om-gta04? Feb 19 19:57:18 I'll look Feb 19 19:57:37 same for all machines Feb 19 19:58:32 what bitbake version do you have? Feb 19 19:59:11 adc041fd9e3def29cdf9c1ae4849c5383bac46e5 Feb 19 19:59:16 so lastest Feb 19 19:59:30 (lastest from master branch) Feb 19 19:59:40 let me look in bitbake git reflog Feb 19 20:01:18 shr-chroot has almost the same :/ Feb 19 20:01:27 will try to upgrade it in chroot after image build Feb 19 20:02:10 going back with bitbake at tag 1.15.1 seem to trigger a progress bar Feb 19 20:03:16 ahhh Feb 19 20:03:19 sorry Feb 19 20:03:27 I picked the wrong error Feb 19 20:03:33 ERROR: Could not include required file linux_2.6.34.bb###################################### | ETA: 00:00:01 Feb 19 20:03:39 now that's the error Feb 19 20:03:56 I forgott to git-add it Feb 19 20:03:59 I work with branches Feb 19 20:04:13 sorry for the noise Feb 19 20:44:19 JaMa, also I've another question Feb 19 20:44:45 --pagesize=0x800 Feb 19 20:45:01 that's in EXTRA_IMAGECMD_jffs2 for om-gta02 Feb 19 20:45:19 how do I findout the value for gta04? Feb 19 20:46:45 probably same Feb 19 20:47:04 2k for largepage devices, 512 bytes for small page Feb 19 20:47:09 GNUtoo|laptop: ^^ Feb 19 20:48:21 ok Feb 19 20:48:42 so it's 2k Feb 19 20:48:53 because ubifs requires -O 2048 Feb 19 20:48:57 or something like that Feb 19 20:59:40 SHR: 03GNUtoo 07meta-smartphone * r47c0654ca5e2 10/meta-openmoko/conf/machine/om-gta04.conf: meta-openmoko: om-gta04: add support for jffs2 images Feb 19 21:01:28 hah buildhost out of space again :/ Feb 19 21:01:53 and bearstech guys already running ncdu to see that all is in our builddir :/ Feb 19 21:02:02 qouch Feb 19 21:02:08 s/q// Feb 19 21:02:08 GNUtoo|laptop meant: ouch Feb 19 21:10:52 GNUtoo|laptop: btw: any news about SIGILL issue? Feb 19 21:11:17 no Feb 19 21:11:35 there are too many sigkill Feb 19 21:11:43 which one do you mean? Feb 19 21:12:05 GNUtoo|laptop: got some bug report? Feb 19 21:12:28 I don't know Feb 19 21:12:36 maybe JaMa knows if there is a bugreport Feb 19 21:12:42 but it's shr userspace stuff Feb 19 21:12:48 there isn't afaik Feb 19 21:12:56 ok we should create one then Feb 19 21:13:01 GNUtoo|laptop: the one causing new images unbootable Feb 19 21:13:10 JaMa, you're the one with the most information I guess Feb 19 21:13:19 ok Feb 19 21:13:24 so the om-gta02 one Feb 19 21:13:39 sounds like wrong flags given to gcc or something Feb 19 21:13:39 do we have sigills somewhere else? Feb 19 21:13:59 lindi-: we switched to gold in last rebuild so it could be caused by that Feb 19 21:14:07 in browsers Feb 19 21:14:08 lindi-: but the flags are the same Feb 19 21:14:11 we have in bash Feb 19 21:14:12 in opkg Feb 19 21:14:14 if you just include output of "x/10i $pc" and "info register" it should not be difficult to figure out Feb 19 21:14:15 in firefox Feb 19 21:14:17 in midori Feb 19 21:14:23 in eve Feb 19 21:14:30 does linking with bfd fix it? Feb 19 21:14:34 yes but the cause is probably just one Feb 19 21:15:00 * JaMa don't know I was working on OOM issue, expecting GNUtoo|laptop to handle this one Feb 19 21:15:12 ok Feb 19 21:15:19 but I'm not a toolchain expert Feb 19 21:15:21 I got a trace Feb 19 21:15:30 but nothing seemed wrong on it Feb 19 21:15:37 well first you need to figure out why the instruction is illegal Feb 19 21:15:40 maybe I should show it to khem Feb 19 21:15:42 and then you need to figure out why it was generated Feb 19 21:15:56 indeed but I failed at figuring out why it was illegal Feb 19 21:15:57 both parts should be reasonably easy Feb 19 21:16:12 on the trace every instrucitons were legal Feb 19 21:16:12 GNUtoo|laptop: I tried to ask you if the cpu was in arm mode or thumb mod Feb 19 21:16:14 +e Feb 19 21:16:22 GNUtoo|laptop: but you quited Feb 19 21:16:24 ah ok Feb 19 21:16:35 let me boot om-gta02, I'll look Feb 19 21:16:40 because the code was definitely thumb code Feb 19 21:16:52 and if you try to run that in arm mode it will sigill for sure Feb 19 21:17:07 GNUtoo|laptop: compare working libtifo with broken one to see where instructions starts to differ Feb 19 21:18:08 ah ok Feb 19 21:19:18 I'll push a commit first tough Feb 19 21:23:29 JaMa, if I add a file in om-gta04 override dir it still get machine arch on core based oe? Feb 19 21:25:09 it should, but better check Feb 19 21:25:28 someone reported that it doesn't work anymore.. but it worked for me last time I've checked Feb 19 21:33:29 ok Feb 19 21:34:27 Architecture: om_gta04 Feb 19 21:34:30 so it's ok Feb 19 21:39:50 SHR: 03GNUtoo 07meta-smartphone * r748f398c52f6 10/meta-openmoko/recipes-core/base-files/ (base-files/om-gta04/fstab base-files_3.0.14.bbappend): base-files: add fstab override for om-gta04 Feb 19 21:42:42 maybe it didn't work for machine class or something like that Feb 19 21:43:00 because here it clearly works Feb 19 21:43:08 but for palmpre it failed if I remember well Feb 19 21:43:14 but palmpre is also a machine class Feb 19 21:45:36 yes it must be MACHINE see utils.bbclass:def is_machine_specific(d) Feb 19 21:45:54 ok Feb 19 21:46:28 so I guess with palmpre it interpret that as MACHINE_CLASS instead of MACHINE (palmpre is both MACHINE and MACHINE_CLASS) Feb 19 21:48:37 ah it should work Feb 19 21:48:43 anyway time to work on gta02 Feb 19 21:49:06 ah maybe not for palmpre2 Feb 19 21:49:17 because the path is in machine class but not in machine Feb 19 21:49:18 ok Feb 19 21:49:43 lindi-, how to see the mode of the CPU, I should info registers? Feb 19 21:54:43 GNUtoo|laptop: cpsr register has a bit for it Feb 19 21:54:50 ok Feb 19 21:54:52 let me look Feb 19 21:57:19 cpsr 0x60000010 1610612752 Feb 19 21:57:24 I'll look in the arm manual Feb 19 21:57:30 GNUtoo|laptop: yes palmpre2 Feb 19 21:58:26 GNUtoo|laptop: p/t $cpsr Feb 19 21:58:31 GNUtoo|laptop: bit more readable that way Feb 19 21:58:44 ok Feb 19 21:58:58 $1 = 1100000000000000000000000010000 Feb 19 21:59:36 GNUtoo|laptop: so T=0 Feb 19 21:59:43 GNUtoo|laptop: and you are in ARM mode Feb 19 21:59:49 ok Feb 19 21:59:59 GNUtoo|laptop: but the disassembly showed thumb instructions Feb 19 22:00:12 so adds and such are thumb? Feb 19 22:00:18 GNUtoo|laptop: yes Feb 19 22:00:19 I think the arm manual is on my desktop Feb 19 22:00:21 ok Feb 19 22:00:28 GNUtoo|laptop: look at the addresses, each instruction is only 16 bits Feb 19 22:00:35 yes that sounded strange Feb 19 22:00:41 it jumped of 2 instead of 4 Feb 19 22:00:44 GNUtoo|laptop: not strange, just not ARM Feb 19 22:00:47 ok Feb 19 22:01:01 strange means that I didn't understand why Feb 19 22:01:02 ok Feb 19 22:01:06 JaMa, ^^^ Feb 19 22:01:13 what should we do now? Feb 19 22:01:13 GNUtoo|laptop: I hope you learned something new :) Feb 19 22:01:18 indeed yes Feb 19 22:01:26 GNUtoo|laptop: figure out what jumped to that routine Feb 19 22:01:42 else we can just force arm mode Feb 19 22:01:47 but that's not the right way Feb 19 22:02:21 GNUtoo|laptop: you can mix them Feb 19 22:02:26 GNUtoo|laptop: you just need to do it correctly Feb 19 22:03:00 yes I know Feb 19 22:03:06 GNUtoo|laptop: http://wiki.debian.org/ArmEabiPort#Thumb_interworking_suggests_armv4t Feb 19 22:03:12 ok Feb 19 22:07:36 hmmm Feb 19 22:07:54 http://www.pastie.org/private/vcl9v7dmiygrwjxkkgzfnw <- I don't see any b beq bne etc... to calloc Feb 19 22:08:22 SHR: 03shr-devel 07buildhistory * redbc7ac63cde 10/packages/ (1965 files in 1965 dirs): Build 201202192258 of shr 20120219 for machine nokia900 on shr-chroot Feb 19 22:08:24 (after the frame 2 switch ) Feb 19 22:14:42 but there is that: Feb 19 22:14:49 0x401dd62c <+332>: ; instruction: 0x00108ef0 Feb 19 22:14:55 maybe the debugging is incorrect Feb 19 22:15:00 and that is the problem Feb 19 22:15:24 let me re-download the manual on my laptop Feb 19 22:24:07 hmmm Feb 19 22:24:11 the manual says: Feb 19 22:24:35 A processor in Thumb state can enter ARM state by executing any of the following instructions: BX, BLX, or an LDR or LDM that loads the PC.A processor in ARM state can enter Thumb state by executing any of the same instructions. Feb 19 22:24:39 but it also says Feb 19 22:25:02 In ARMv7, a processor in ARM state can also enter Thumb state by executing an ADC, ADD, AND, ASR, BIC, EOR, LSL, LSR, MOV, MVN, ORR, ROR, RRX, RSB, RSC, SBC, or SUB instruction that has the PC as destination register and does not set the condition flags. Feb 19 22:25:09 which may be our problem? Feb 19 22:25:24 GNUtoo|laptop: hmm? Feb 19 22:25:31 blind guess of course Feb 19 22:25:51 GNUtoo|laptop: my guess is that caller was not built with -mthumb-interwork or something Feb 19 22:25:57 ah ok Feb 19 22:25:59 let me check Feb 19 22:26:21 GNUtoo|laptop: just seeing the code that calls the routine should show it Feb 19 22:26:36 the problem is that I didn't find it Feb 19 22:26:43 (the code that calls the routine) Feb 19 22:27:53 if nothing else you can use http://iki.fi/lindi/git/itrace.git/ to get a full instruction trace Feb 19 22:28:15 might take a while but if it dies early it might only take a minute or two Feb 19 22:31:54 hmmm Feb 19 22:31:55 itrace: itrace.c:108: do_forkexec: Assertion `0' failed. Feb 19 22:31:55 itrace: itrace.c:370: main: Assertion `!ret' failed. Feb 19 22:32:35 GNUtoo|laptop: run the testsuite first Feb 19 22:32:39 ok Feb 19 22:34:08 GNUtoo|laptop: I think I'll improve that error message a bit :) Feb 19 22:34:29 also you could sed gcc with $(CC) Feb 19 22:36:23 ./test0.sh: line 5: 379 Aborted ../itrace -o i -m m -s s ./test0 Feb 19 22:36:32 I run it on arm of course Feb 19 22:38:12 http://www.pastie.org/private/k4wojmyyp2andzpuxilq Feb 19 22:38:28 GNUtoo|laptop: fixed all these Feb 19 22:38:42 ok I'll pull Feb 19 22:38:57 ah it's up to date Feb 19 22:39:13 GNUtoo|laptop: retry Feb 19 22:39:18 ok Feb 19 22:39:34 ok there are new commits Feb 19 22:39:46 GNUtoo|laptop: oh and hmm, arm support for single stepping was dropped from linux Feb 19 22:40:01 can't remember exact version now Feb 19 22:40:24 yes I heard scary stuff on armv4 Feb 19 22:40:24 GNUtoo|laptop: so sorry :/ Feb 19 22:40:29 I think it was on lwn.net Feb 19 22:40:41 GNUtoo|laptop: you can use gdb to emulate single step Feb 19 22:40:44 like "you cannot debug stuff reliabily on armv4" Feb 19 22:40:45 ok Feb 19 22:40:48 need to script a bit Feb 19 22:40:49 like nexti Feb 19 22:41:03 with display set to display assembly Feb 19 22:41:12 gdb has not used PTRACE_SINGLESTEP ever Feb 19 22:41:21 ok Feb 19 22:46:08 http://www.pastie.org/private/peh8yzgtxdnoq8hjdh7f0w Feb 19 22:46:11 it does it pretty early Feb 19 22:47:23 what bother me is the warning Feb 19 22:47:28 about mismatch -dbg Feb 19 22:47:34 about the library JaMa mentioned Feb 19 22:48:22 and it's a fresh image with bash-dbg + opkg-dbg pulled inside which should pull all required deps for theses 2 -dbg Feb 19 22:54:14 GNUtoo|laptop: you might want "stepi" and not "nexti"? Feb 19 22:55:01 GNUtoo|laptop: since it's quite clear that " 0x4002eeec <_start+12>: bl 0x40032ed4 <_dl_start> Feb 19 22:55:10 GNUtoo|laptop: does not jump to 0x7cfc4 Feb 19 22:55:29 ah indeed Feb 19 22:55:30 sorry Feb 19 22:56:23 it's late so I make mistakes at this hour Feb 19 22:57:08 no problem :) Feb 19 23:40:40 http://www.pastie.org/private/6qazrf8o2q3i0o7vc0c10w Feb 19 23:46:59 SHR: 03shr-devel 07buildhistory * r33b29d1f339b 10/packages/armv7a-vfp-neon-oe-linux-gnueabi/webkit-efl/ (3 files in 3 dirs): Build 201202192343 of shr 20120219 for machine palmpre on shr-chroot Feb 19 23:51:52 lindi-, I'm right before it now Feb 19 23:51:56 => 0x401786ac: ldr pc, [r12, #2404]! ; 0x964 Feb 19 23:52:31 http://www.pastie.org/private/5tcv0rov547uumzppkuxgg Feb 19 23:52:38 => I should install libc-dbg Feb 20 01:05:04 gnutoo, lindi-: what are you tackling? you know there's a silicon erratum in OMAP3430 (and others?) that basically disallows usage of thumb on e.g. N900? Feb 20 01:07:24 as - IIUC - any IRQ would cause a jump from random arm/thumb domain to possibly the opposite state domain code. There's some bit that's not handled correctly and the workarounds are not feasible on N900 due to closed xloader Feb 20 01:08:09 sth like that. freemangordon thinks we could implement the workarounds, but I'm unsure about that Feb 20 01:09:16 fact is: the stock maemo kernel doesn't work with thumb Feb 20 01:11:01 for some funny reason we accidentally got modest (mailer app) compiled with thumb, in CSSU. And it segfaulted left and right like mad Feb 20 01:11:31 irreproducably **** ENDING LOGGING AT Mon Feb 20 03:00:00 2012