**** BEGIN LOGGING AT Fri Sep 10 02:59:57 2010 Sep 10 05:32:32 lindi-, I applied mem=127M to uboot bootargs, recompiled the kernel with your patch, copied the modules to the device (overwriting old ones), flashed the kernel, ran depmod. Then I caused the kernel panic and had to remove/reinsert battery and turned on the device again. I then ran a.out (from ramdisk-dump.c). Error-message: invalid magic 0x646f6d5f Sep 10 06:00:02 trev2: removing the battery corrupts mem somewhat Sep 10 06:00:09 trev2: isn't there an option to ignore magic? Sep 10 06:00:50 what's valid le elf? Sep 10 06:06:23 PaulF, I read a bit more and it seems like using watchdog to do a reset on panic is the way to go Sep 10 06:06:42 Is watchdog enabled in the kernel config before compile or can I activate it somehow? Sep 10 06:07:36 do gta0x have wdt? Sep 10 06:08:00 don't know what that is Sep 10 06:08:11 whihc? Sep 10 06:08:19 wdt Sep 10 06:08:24 hi,did someone use 0xFFFF Sep 10 06:08:24 oh, watchdog timer Sep 10 06:08:53 well I have no idea Sep 10 06:09:00 I need something to do a reset on kernel panic Sep 10 06:09:06 are there other options? Sep 10 06:09:20 talk to DocScrutinizer Sep 10 06:10:11 DocScrutinizer, have you got any idea on how to do an automatic reset on kernel panic so that memory doesn't get corrupted and I can catch the kernel dump after reboot? Sep 10 06:10:57 I have a kernel patch from lindi handling everything. I just have to make sure memory doesn't get corrupted Sep 10 06:11:34 oh, I misunderstood, I thought you wanted hardware watchdog Sep 10 06:11:44 either linux or the android tree has reboot on panic with panic timer Sep 10 06:11:47 hi DocScrutinizer Sep 10 06:12:00 andorid also can right NAND with dmesg without needing trip through uboot Sep 10 06:13:39 I am trying to fetch the kernel panic error message or at least the dmesg output before the kernel for about 12 hours now Sep 10 06:13:48 I have no debug board Sep 10 06:14:00 I get tired *yawn* Sep 10 06:14:33 thx for your help tmzt_ :) Sep 10 06:16:58 in the patch readme it says: Sep 10 06:17:00 "2) panic=20 and/or watchdog is needed so that user can recover the message after reboot" Sep 10 06:17:01 usb serial on new kernels? Sep 10 06:17:10 what is meant by "panic=20" ? Sep 10 06:17:15 is this a kernel boot argument? Sep 10 06:17:17 add that to the command line Sep 10 06:17:19 yep Sep 10 06:17:24 panic=0 stops the reboot Sep 10 06:17:30 very useful on hacked up android kernels Sep 10 06:17:54 so panic=20 restarts after 20 secs of panicing or what does it do? Sep 10 06:18:46 it restarts after 20 seconds Sep 10 06:18:51 shows the message for 20 seconds Sep 10 06:19:01 panic=0 or missing (unless default) means forever Sep 10 06:19:19 sounds good Sep 10 06:19:22 will try Sep 10 06:28:07 mkay it's panicing now Sep 10 06:28:19 yeah baby! REBOOT! :D Sep 10 06:30:06 now it hangs on boot Sep 10 06:30:08 great Sep 10 06:38:23 btw. does anyone know how to mount the NAND kernel partition? Sep 10 06:39:18 trev2: the watchdog is enabled in kernel by default, and you need user-space app installed. Sep 10 06:39:39 trev2: there's no way to mount the kernel NAND partition because it's not a filesystem, just the kernel image. Sep 10 06:39:56 Where to supply kernel boot arguments to qi then if I boot from NAND? Sep 10 06:40:28 I already tried placing a seperate kernel image and append-xxx file in /boot but it didn't take my commandline arguments Sep 10 06:40:43 trev2: nowhere :( hardcode in the kernel or recompile Qi and hardcode in there. Sep 10 06:40:53 Now that sucks Sep 10 06:41:14 trev2: Qi was developed with the assumption that booting from NAND sucks :) Sep 10 06:41:22 trev2: it's SD-centric. Sep 10 06:41:49 The changes I made to the NOR u-boot promt with setenv bootargs_base xxxxxxxxxx are not being saved permanently, are they? Sep 10 06:43:17 I guess the fastest way would be to replace qi with u-boot and make changes to u-boot NAND bootargs? Sep 10 06:48:07 trev2: yes Sep 10 06:48:14 trev2: yes Sep 10 06:48:31 PaulF, I really appreciate your help. Thank you Sep 10 06:48:37 trev2: the idea of nor u-boot is that it always starts with default env. Sep 10 06:48:39 I feel like I am getting somewhere Sep 10 06:48:40 :) Sep 10 06:50:18 I don't know how your ethic opinion about this is but you might have heared of the playstation 3 hack which enables homebrew software. It has been ported to many portable devices. I'm giving it a go on the Freerunner. I only had to implement 3 functions to port it but now I got a kernel panic and am stuck for many hours because I can't recover the message Sep 10 06:50:23 but now it see the light Sep 10 06:50:51 you have it working on s3c? Sep 10 06:51:22 well it compiles, loads, initializes, starts... but when I initiate the injection, I get a kernel panic Sep 10 06:51:30 so far I haven't been able to recover the message Sep 10 06:51:34 but I think I am close Sep 10 06:53:14 hi DocScrutinizer Sep 10 06:54:39 tmzt_, http://pastebin.com/ZC8FmqJd Sep 10 07:02:56 trev2: #psgroove Sep 10 07:03:24 oops Sep 10 07:03:29 #psfreedom Sep 10 07:06:06 yeah I am in there but they do not care about s3c Sep 10 07:09:22 trev2: i'm all of porting it to FR Sep 10 07:09:45 trev2: i even tried to help KaKaRoTo with n810 port and with musb oddities etc. Sep 10 07:10:01 :) Sep 10 07:10:55 * trev2 puts PaulF on his list Sep 10 07:11:03 not the black one! Sep 10 07:11:16 trev2: the main trick there is to change the device address when needed. Sep 10 07:11:49 I implemented psfreedom_get_address and psfreedom_set_address and the get_endpoint thingy Sep 10 07:12:24 udc_write((tmp | S3C2410_UDC_FUNCADDR_UPDATE), Sep 10 07:12:24 S3C2410_UDC_FUNC_ADDR_REG); Sep 10 07:12:24 s3c2410_udc_set_ep0_de_out(base_addr); Sep 10 07:12:34 yeah Sep 10 07:12:35 I guess this's all that's needed, and it should work :) Sep 10 07:12:38 that's what I used in my code Sep 10 07:12:50 wait, I'll put my code online with pastebin Sep 10 07:12:55 it's real short Sep 10 07:15:21 http://pastebin.com/pvgYLmzj Sep 10 07:15:31 it is my first c attempt so there must be some mistakes Sep 10 07:16:44 trev2: i'm sure you're doing good, that's not an obvious task for a newcomer. Sep 10 07:17:19 I have a lot of Java and a little c++ experience but no c so far Sep 10 07:17:33 I believe if I can grep the kernel panic message, I could make more progress Sep 10 07:18:16 trev2: the kernel panic contains the backtrace, it should help. Sep 10 07:18:51 PaulF, yup I sure hope so! :) Sep 10 07:19:57 Getting back to topic, you said I just have to install watchdog userspace app to make it work because it is enabled by default in the kernel? Sep 10 07:20:23 or more specific the daemon? Sep 10 07:20:37 trev2: and amend the command line to make it auto reboot iirc . Sep 10 07:20:49 trev2: yes, the watchdog daemon. Sep 10 07:21:27 well panic=20 works fine so far Sep 10 07:21:33 is there any disadvantage? Sep 10 07:21:58 trev2: no, as you have kernel panic :) Sep 10 07:22:14 trev2: so, where's the panic message? Sep 10 07:27:01 I didn't accept the commandline arguments. I went into NOR u-boot bootprompt and changed the bootargs_base Sep 10 07:27:03 then I saved Sep 10 07:27:18 it said "writing changes to NAND" Sep 10 07:27:22 didn't work Sep 10 07:27:53 so I was not able to supply the panic=20 arguent and again it did not reboot Sep 10 07:28:05 s/arguent/argument/ Sep 10 07:28:17 trev2: yes, nor u-boot is like that. Sep 10 07:28:55 entering the bootprompt with NAND u-boot didn't work and I thought it would do what it said: "writing changes to NAND" Sep 10 07:29:04 trev2 meant: so I was not able to supply the panic=20 argument and again it did not reboot Sep 10 07:31:45 trev2: with NAND u-boot saving changes should work. Sep 10 07:31:59 trev2: there also are several userspace apps for editing the NAND env. Sep 10 07:32:11 idea, put the psfreedom in uboot :) Sep 10 07:33:05 heh :) Sep 10 07:38:33 booting u-boot in from nand doesn't give me /dev/ttyAM0 Sep 10 07:39:29 trev2: it should while you stay in the menu Sep 10 07:39:51 I am in the menu, there is no /dev/ttyAM0 Sep 10 07:39:57 booting from NOR immediately brings it up Sep 10 07:40:22 morning Sep 10 07:40:27 trev2: ah, probably you need to activate "enable usb console" there Sep 10 07:40:27 morning Sep 10 07:40:32 daniele_athome: morning. Sep 10 07:40:50 PaulF, I thought so but that didn't help Sep 10 07:41:10 trev2: then just edit it from userspace Sep 10 07:41:18 yeah I am on it Sep 10 07:41:27 trev2: i'm sorry but i do not remember how the tool in question is called. Sep 10 07:48:40 Well last time I used it, it totally bugged my config and made u-boot unusable Sep 10 07:48:53 I think I will just use a sdcard based distribution with qi Sep 10 07:49:13 I am sick of fiddling around with unnecessary stuff Sep 10 07:49:42 qi seems more solid Sep 10 07:51:51 it looks so seductive: put rootfs and /boot together with a file full of commandline arguments on a sd card, put it in and smile Sep 10 07:54:56 trev2: yeah, that's the point :) Sep 10 09:09:03 radekp: so reading pcf50633 registers means talking i2c which rules out debug board? Sep 10 09:16:05 lindi-: hi, sorry i have no idea - i am not kernel hacker & hardware guy ;) Sep 10 09:17:32 by measuring the consumption for bug #2349 you definitely qualify :) Sep 10 09:24:26 lindi-: i think i will have to redo the measurement once more Sep 10 09:29:29 lindi-: hm. interesting. i thought yesterday you were not impressed by idea of measurement with video? Sep 10 09:31:18 gena2x: hmm? Sep 10 09:31:47 probably misunderstood me. I just found it too difficult for me to perform :) Sep 10 09:32:05 lindi-: ah. ok :) Sep 10 09:32:32 (and also difficult to do automatically) Sep 10 09:33:01 radekp: I guess we need a function for dumping pcf50633 state Sep 10 09:33:36 lindi-: pcf state is already dumped Sep 10 09:37:31 gena2x: ah, where? Sep 10 09:38:34 "show_dump_regs()"? Sep 10 09:40:00 mrmoku|a`: ping Sep 10 09:40:32 gena2x: /sys/devices/platform/s3c2440-i2c/i2c-adapter/i2c-0/0-0073/dump_regs? Sep 10 09:43:06 radekp: gena2x: is it too late to call show_dump_regs in pcf50633_suspend()? Sep 10 09:43:52 lindi-: if you want to see just pcf registers from userspace http://svn.openmoko.org/developers/werner/pmu/ Sep 10 09:45:05 gena2x: I think we'd like to see pcf registers as late as possible in suspend Sep 10 09:45:33 lindi-: so why did you mentioned /sys path? Sep 10 09:45:56 gena2x: I wasn't sure I was reading the right file :) Sep 10 09:46:28 lindi-: reading from kernel space? Sep 10 09:46:55 gena2x: yep Sep 10 09:47:03 gena2x: did you see bug #2349? Sep 10 09:47:47 lindi-: ah, lars comment Sep 10 09:49:35 lindi-: interesting. i thought pcf state is dumped to kernel log moment before suspending Sep 10 09:50:26 lindi-: but seem not backlight anyway. Sep 10 09:50:38 i can be just some minor problem with pcf backlight - i did echo 1 > /sys/.../blank before started measuring, maybe that can be the problem Sep 10 09:51:05 radekp: you may turn it off via pmu tool i guess Sep 10 09:51:18 but i guess this is not reason Sep 10 09:51:30 agree Sep 10 09:51:38 as backlight is eating much much more than 9mA Sep 10 09:51:54 i have tried to set brightness limit to 0 and still i have 18mA in suspend Sep 10 09:53:27 i have tried to disable all platform devices... Sep 10 09:55:57 radekp: while you are recompiling kernels anyway, could you try something like http://paste.debian.net/89071/ so that we could answer to lars? Sep 10 09:56:23 (that was for 2.6.29) Sep 10 09:58:53 no more /usr/lib/enlightenment in my FR :) at last! :) Sep 10 09:59:04 i'm happy :D Sep 10 09:59:30 daniele_athome: using your own UI now? 8) Sep 10 09:59:45 yeah, as author told - enlightment is not for FR Sep 10 10:00:05 Q-Master: sure! :) Sep 10 10:00:41 daniele_athome: congrats :) Sep 10 10:00:44 * Q-Master is thinking of moving to it, but the keyboard problem is a problem. 8( no time to edit Sep 10 10:00:54 Q-Master, what do you mean? Sep 10 10:01:05 you're the one that wants the foreign keyboard, aren't you? Sep 10 10:01:07 daniele_athome: I need a cyrillic keyboard layout Sep 10 10:01:11 i see Sep 10 10:01:33 the problem is the keys are inside the EDC file... so I should make something easily editable like illume keyboard for example Sep 10 10:01:38 daniele_athome: which UI you found best? Sep 10 10:01:47 gena2x, among which ones? Sep 10 10:01:55 daniele_athome: of course it should be selectable. some sort of programs need both langs Sep 10 10:02:11 Q-Master, but also the number of keys might be different Sep 10 10:02:29 so it's not just a change of characters in the keyboard Sep 10 10:02:30 daniele_athome: yep. russians have much more letters that english ones. Sep 10 10:02:42 daniele_athome: what is 'your own UI'? Sep 10 10:03:05 gena2x, it's a mix of own window manager, own desktop & launcher app, dock panel and a phone application Sep 10 10:03:12 (mokosuite2) Sep 10 10:03:21 all based on EFL Sep 10 10:03:26 but not enlightenment :) Sep 10 10:03:27 jikes Sep 10 10:03:31 ah... Sep 10 10:04:06 lindi-: oki i'll try Sep 10 10:04:07 Q-Master, anyway i should rethink the keyboard at this point... I mean it can only be latin right now... Sep 10 10:05:00 Q-Master, in the meantime you can do a skitch or rapid picture of how (by your point of view) this keyboard should look like Sep 10 10:05:14 s/skitch/mockup/ Sep 10 10:05:16 daniele_athome meant: Q-Master, in the meantime you can do a mockup or rapid picture of how (by your point of view) this keyboard should look like Sep 10 10:05:35 i might implement that as a different EDC on its own Sep 10 10:07:00 daniele_athome: I've edited some time ago this keyboard. (it's vkbd not?) but seems that i've lost my work Sep 10 10:07:22 Q-Master, yes but i fixed some sizes to fit on FR screen, both landscape and portrait Sep 10 10:07:23 daniele_athome: do you have any HTC android device nearby? Sep 10 10:07:32 Q-Master, no Sep 10 10:09:18 daniele_athome: me too. I found some experiments on this keyboard. can you tell me your mail to send you a sketch? Sep 10 10:11:29 (sketch, that's the word :D ) Sep 10 10:12:28 anybody an idea when mrmoku and jama will be back again? Sep 10 10:13:47 yeah... many things need to be bumped :( Sep 10 10:27:13 Hey kernel guys, someone knows whether shr uses udev or not? Sep 10 10:28:03 papa-piet: unstable - not. Sep 10 10:42:04 DocScrutinizer, hi I've some questions: Sep 10 10:42:11 *does 0xFFF work? Sep 10 10:42:25 *how do I install bootmenu-n900 Sep 10 10:42:35 all my attempt to install that app failed Sep 10 10:42:48 more specifically Sep 10 10:42:52 I fail to add the repo Sep 10 10:43:30 [2010-09-09 23:47:26] anyway neither me nor for sure PaulF did ever try 0xFFFF Sep 10 10:44:07 ok Sep 10 10:44:11 don't you think #maemo is a chan more adequate for those questions? Sep 10 10:44:15 0xFFF didn't seem to work Sep 10 10:44:15 ok Sep 10 10:57:37 lindi- gena2x: i have backported backlight driver from 2.6.29 - it was quite easy, but current is unchanged Sep 10 10:58:19 radekp: ok Sep 10 10:58:25 so the problem is elsewhere Sep 10 10:58:39 radekp: however, lars was interested in the pcf registers, can you add that info? Sep 10 11:02:03 radekp: as expected. what's with gadget thing? Sep 10 11:04:23 gena2x: with gadget? Sep 10 11:07:01 [ 1074.795000] s3c2440-usbgadget s3c2440-usbgadget: suspend -> 80.9 Sep 10 11:07:01 [ 1074.795000] gta02_udc_command S3C2410_UDC_P_DISABLE Sep 10 11:07:01 -6mA Sep 10 11:07:36 look very similar to voltage we searching for Sep 10 11:07:48 s/voltage/current/ Sep 10 11:07:48 gena2x meant: look very similar to current we searching for Sep 10 11:33:09 Q-Master, bluetooth daemon doesn't get activated automatically if udev is not present Sep 10 11:33:16 one is supposed to start on its own? Sep 10 11:34:22 daniele_athome: SHR has a problem with bluetooth because of no udev Sep 10 11:35:14 Q-Master, i'm talking about right that: said that udev is unstable, they could at least provide some way to start bluetoothd Sep 10 11:35:22 on boot or something else Sep 10 11:37:08 daniele_athome: heh. dunno what to answer. 8) Sep 10 11:37:12 :) Sep 10 11:37:19 Q-Master, don't worry just an exclamation Sep 10 11:37:20 :) Sep 10 11:41:28 8) Sep 10 11:49:24 daniele_athome: i can tell you that OpenWRT uses a minimal udev replacement that you might want to use on SHR as well. Sep 10 11:49:39 mmm Sep 10 11:49:48 daniele_athome: they use it to activate the user-space firmware helper of course. Sep 10 11:49:59 PaulF, it is just a recompiled stripped version or it's written from scratch? Sep 10 11:50:19 stripped I mean only the needed functions and objs etc. Sep 10 11:52:14 daniele_athome: it's some written from scratch minimal helper, not sure if that's needed for shr as in fact FSO already does have a fw loader plugin. Sep 10 11:52:27 mmm Sep 10 11:52:52 PaulF, what about writing a bluetooth plugin for fsodeviced? Sep 10 11:53:05 that in fact replaces udev and loads bluetoothd Sep 10 11:53:10 daniele_athome: since bluetooth is FSO-activated resourse i'd expect FSO to somehow start it. Probably it should "ping" bluetooth after enabling the resource to get bluetoothd activated by dbus. Sep 10 11:53:25 mmm Sep 10 11:53:31 daniele_athome: or even that's not needed as the first bluetooth-using app will do that. Sep 10 11:53:43 daniele_athome: yeah, why not use dbus activation for bluetoothd? Sep 10 11:54:05 i'll try something Sep 10 11:54:36 until it is done in FSO, it wouldn't be too hard to write a small app that listens for the bluetooth resource being enabled and then checkes to see if bluetooth is running; if not, start it Sep 10 11:56:54 PaulF: I'm using the latest unstable out of NAND; I've been getting lots of kernel panics; they usually go in spurts; could that be an indication of bad blocks in NAND? Sep 10 11:57:47 net_tux: no idea tbh, and also i'm still not sure bad block handling is done right. I'd just use SD. Sep 10 11:58:08 yesterday, it kept panicing shortly after getting booted up; I finally gave up and left it off for several hours; then next time I booted it, it was fine Sep 10 11:58:10 ok Sep 10 11:59:43 it's really strange, sometimes it is random; other times it seems to be related to doing something like plugging in headphones Sep 10 12:57:49 gena2x: iteresting question - how comes that i have 30mA in suspend when i test it from console but only 18mA when i am running suspend from qtmoko Sep 10 13:00:08 radekp: gsm? Sep 10 13:00:22 that's my idea too Sep 10 13:00:47 i have powered it of with echo 0 > /sys/.../gsm/power_on Sep 10 13:00:56 but maybe it still stays on? Sep 10 13:02:50 lindi-: here is pcf regs dump http://pastebin.com/bcSCXv0y Sep 10 13:03:23 GNUtoo|laptop: is it possible to create a dev node for a touchscreen on palm pre without udev Sep 10 13:03:39 lindi-: i cant add comments to bug tracker, tried also creating new account but no luck - i tried even with 3 different web browser Sep 10 13:04:08 GNUtoo|laptop unfortunately i'm not familiar with mknod or makedev Sep 10 13:04:10 papa-piet, I don't know, I've devtmpfs Sep 10 13:04:18 on the htcdream Sep 10 13:04:20 arg Sep 10 13:04:22 and n900 uses udev I bet Sep 10 13:04:29 so just install udev in the image right? Sep 10 13:04:36 pre also but not shr Sep 10 13:04:44 ah ok Sep 10 13:04:47 so what then? Sep 10 13:04:52 debian? Sep 10 13:05:00 fso-demo2-image? Sep 10 13:05:10 i work via NFS-rootfs Sep 10 13:05:41 GNUtoo|laptop: after installing udev nfs-bbot fails.... Sep 10 13:06:02 papa-piet, that's easy Sep 10 13:06:08 you need to rm something Sep 10 13:06:19 and to boot with rw args Sep 10 13:06:41 rm something? Sep 10 13:07:42 papa-piet, try that on the target filesystem: Sep 10 13:07:52 rm target_fs/etc/init.d/devices Sep 10 13:09:57 papa-piet_, rm target_fs/etc/init.d/devices Sep 10 13:10:09 target_fs is where your microsd is mounted Sep 10 13:10:35 GNUtoo|laptop, no microsd on pre :/ Sep 10 13:11:02 ah right Sep 10 13:11:10 so how do you install an image? Sep 10 13:11:26 but there is no devices in etc/init.d/ Sep 10 13:11:35 via nfs Sep 10 13:11:39 then try to put rw as kernel argument Sep 10 13:11:51 okay Sep 10 13:12:26 GNUtoo|laptop, thank you, will try that Sep 10 13:12:32 ok Sep 10 13:12:39 also try debug configuration Sep 10 13:12:41 that is to say Sep 10 13:12:47 print the messages on the framebuffer Sep 10 13:12:56 ¤ Sep 10 13:13:08 radekp: really? Sep 10 13:13:36 lindi-: yup, it seems that openmoko bug tracker does not like me Sep 10 13:15:23 PaulF: but with 2.6.29 i can suspend from console and have just 9mA current Sep 10 13:21:13 radekp: that is not a good idea Sep 10 13:21:20 radekp: i mean, we need a bug tracker Sep 10 13:21:42 radekp: I have 3mA current in suspend with 2.6.29 Sep 10 13:23:37 lindi-: interesting, how do you suspend it? Are your doing it from console? Sep 10 13:39:41 radekp: console? Sep 10 13:39:51 radekp: I use the standard pm-suspend command of course Sep 10 13:40:08 i tried AT@POFF and now i have 16..18mA with 2.6.34 Sep 10 13:40:27 radekp: I use "om gsm power 0" Sep 10 13:41:16 lindi-: do you know if there is difference between pm-suspend x echo mem > /sys/power/state? Sep 10 13:41:41 and between om gsm power 0 and echo 0 > /sys/path/to/gsm/power_on ? Sep 10 13:55:33 radekp: no diff Sep 10 13:55:41 radekp: for gsm there can be diff Sep 10 13:58:46 lindi-: hmm i have 9.1 mA with 2.6.29 Sep 10 14:00:41 radekp: when/where do you dump the pcf registers? Sep 10 14:01:10 larsc: hi, dumped them in pcf-core device suspend Sep 10 14:02:08 larsc: patched pcf driver according to http://paste.debian.net/89071/ Sep 10 14:05:58 radekp: some regulators might be disbled later Sep 10 14:06:32 larsc: can i make dump later? Sep 10 14:08:42 larsc: btw i dont think it's backlight driver which is wrong... i backported the old generic-bl driver to 2.6.34 and it had no effect on power in suspend Sep 10 14:13:05 GNUtoo|laptop, print messages say: http://shr.pastebin.com/QwXaaj9j i guess it's somewhere here Sep 10 14:13:23 ok Sep 10 14:13:24 maybe Sep 10 14:13:32 try a blank /etc/network/interfaces Sep 10 14:26:04 radekp: you can use dev_pm_ops and the suspend_noirq callback Sep 10 14:30:39 larsc: oki, give me a few minutes Sep 10 14:35:26 larsc: do you need it also for 2.6.29 kernel? Sep 10 14:36:24 GNUtoo|laptop, no difference :/ Sep 10 14:36:34 papa-piet_, hmmm Sep 10 14:36:45 maybe ask #oe? Sep 10 14:37:44 GNUtoo|laptop, i mean kernel mounts the rootfs via nfs but after udev is started... Sep 10 14:37:48 radekp: well, since the mmc regulator is enabled for 2.6.29 in your dump i would say yes Sep 10 14:37:58 papa-piet_, and without NFS? Sep 10 14:38:01 ahh I get it Sep 10 14:38:12 will test that today, Sep 10 14:38:12 NFS....that's the cause Sep 10 14:38:17 I'll explain Sep 10 14:38:26 basically it mount NFS Sep 10 14:38:29 and then block there Sep 10 14:38:38 because it does something with the network interface Sep 10 14:38:46 GNUtoo|laptop, yes i guess so too Sep 10 14:38:51 tell /etc/network/interfaces not to do anything Sep 10 14:38:56 because if it reset the ip Sep 10 14:39:03 or ifconfig down Sep 10 14:39:08 you loose the NFS connection Sep 10 14:39:19 btw audio is so great on n900 Sep 10 14:39:25 larsc: hmm i am not sure how to implement it for 2.6.29 Sep 10 14:39:27 i've done echo "" > etc/network/interfaces Sep 10 14:40:00 papa-piet_, hmmm try to understnad the syntax Sep 10 14:40:18 or remove the init script that brings up the interfaces [HACK] Sep 10 14:41:05 radekp: should there be a late_suspend or something like that callback in the platform_driver structure? Sep 10 14:42:55 GNUtoo|laptop, sorry, what syntax? of udev? Sep 10 14:44:04 papa-piet_, /etc/network/interfaces Sep 10 14:45:26 larsc: in 2.6.29 we are fillin .driver which is struct device_driver Sep 10 14:45:37 larsc: it has only suspend and resume Sep 10 14:46:02 larsc: maybe if i filled driver.pm which is dev_pm_ops it would work Sep 10 14:54:39 it compiled ok, but i have screwed my rootfs.. will take a few minutes to get it back Sep 10 15:13:13 larsc: i think suspend_noirq is not getting called - i see no dump in dmesg now Sep 10 15:13:47 larsc: hmm maybe i am returning wrong value Sep 10 15:16:01 return 0 seems ok, but i see no dump in log Sep 10 15:19:35 larsc: http://activationrecord.net/radekp/pub/dump_regs_noirq_29.patch Sep 10 15:19:41 larsc: http://activationrecord.net/radekp/pub/dump_regs_noirq_34.patch Sep 10 15:19:51 maybe you can see something wrong Sep 10 15:23:54 looks good to me Sep 10 15:26:33 * lindi- added some info to bug #2349 Sep 10 15:29:00 radekp: i'll have to go now. will be back on monday Sep 10 15:29:14 larsc: oki, see you Sep 10 15:43:53 freesmartphone.org: 03Frederik.Sdun 07cornucopia * r5fb6ba8bdc11 10/tools/mdbus2/data/mdbus2: mdbus2: update bash completion Sep 10 16:02:35 freesmartphone.org: 03Frederik.Sdun 07cornucopia * r7c54e0fa49d5 10/tools/mdbus2/data/mdbus2: Sep 10 16:02:35 freesmartphone.org: mdbus2: remove properties in bash completion Sep 10 16:02:35 freesmartphone.org: fix a small bug introduced by last commit Sep 10 16:23:53 mickeyl, hi Sep 10 16:24:01 hi dos1 Sep 10 16:24:17 dos1, xorg.conf is broken, try that: Sep 10 16:24:22 hi Sep 10 16:24:28 Option "InvertY" "True" Sep 10 16:24:29 Option "Calibration" "159 3880 354 3839" Sep 10 16:24:36 in touchscreen input device Sep 10 16:24:55 GNUtoo|laptop: calibrating with xinput calibrator on first run worked for me Sep 10 16:24:55 else big issue: sound, yes again!!! Sep 10 16:24:59 ok Sep 10 16:25:17 and -ao sdl didn't find the sound card this time Sep 10 16:25:22 basically for sound: Sep 10 16:25:27 play some music with mplayer Sep 10 16:25:31 go in settings Sep 10 16:25:36 of enligtenment Sep 10 16:25:44 go to extensions Sep 10 16:25:46 go to modules Sep 10 16:25:48 and scroll Sep 10 16:25:50 and boom Sep 10 16:26:05 sounds is cut a lot Sep 10 16:26:06 GNUtoo|laptop: but you have to have libstdc++6 installed - there is (or was?) some issue with it not being pulled into image Sep 10 16:26:15 no I opkg installed it Sep 10 16:28:29 GNUtoo|laptop: well, sound sometimes hangs even when using original music player from maemo, when something is using CPU a lot ;) Sep 10 16:28:37 I killed X Sep 10 16:28:47 I killed dbus Sep 10 16:29:05 and started X and enlightenment_start.oe Sep 10 16:29:08 from the command line Sep 10 16:30:17 dos1, also what's up with intone? Sep 10 16:30:26 I can't add a folder Sep 10 16:30:40 it it because I have it autoreved? Sep 10 16:30:46 or do you have a similar issue? Sep 10 16:30:50 is it a known issue? Sep 10 16:30:55 dunno, haven't tested intone yet (i don't have music on sd card) Sep 10 16:31:00 but i'll check Sep 10 16:31:39 Event: time 942.414306, type 3 (Absolute), code 24 (Pressure), value 0 Sep 10 16:31:39 Event: time 942.414337, type 1 (Key), code 330 (Touch), value 0 Sep 10 16:31:41 is it normal? Sep 10 16:31:48 is Touch BTN_TOUCH? Sep 10 16:32:01 and pressure ABS_PRESSURE? Sep 10 16:33:50 dos1, good news about audio is that we have the pulse plugin Sep 10 16:33:59 I mean we have its source code Sep 10 16:34:04 heyho Sep 10 16:34:07 and we might be obligated to use that Sep 10 16:34:07 hi Sep 10 16:34:46 morphis: hey Sep 10 16:34:58 dos1, for intone maybe it doesn't find some alsa files like stereout.state Sep 10 16:35:10 morphis: does Palm Pre need some non-free firmware to make all peripherials working? Sep 10 16:35:33 only for wifi as far as I know Sep 10 16:35:48 morphis: if yes, then please show me /proc/cpuinfo from pre :) Sep 10 16:35:51 don't know if there is some free implementation available for the sd8xxx Sep 10 16:35:55 wait Sep 10 16:36:14 i did shr-wizard page displaying for user that some non-free firmware may be needed for his device Sep 10 16:36:57 dos1: http://pastie.org/1150426 Sep 10 16:37:07 ah ok, thats great Sep 10 16:37:24 you should use "Sirloin OMAP3430 board" as device name Sep 10 16:37:24 morphis: thanks Sep 10 16:38:19 no problem Sep 10 16:38:28 SHR: 03seba.dos1 07shr-settings * rd8e41f224eb0 10/shr_settings_modules/shr_firmware.py: [firmware] display firmware page also on Palm Pre Sep 10 16:45:08 dos1, I've to fix wifi for having only free drivers Sep 10 16:50:59 :( Sep 10 16:51:26 dos1, should I try the wifi now? Sep 10 16:51:38 I've no palm-pre but I can get ssh access to one Sep 10 16:52:00 proximity_n900 segfaults only on n900; on PC with changed sysnode to some different one doesn't segfault, but doesn't notice changes in node content too :x Sep 10 16:56:20 dos1, how do you mount the internal flash? Sep 10 16:56:55 GNUtoo|laptop: i haven't tried it yet Sep 10 16:57:15 ok Sep 10 17:04:57 hmmm Sep 10 17:04:58 http://packages.debian.org/sid/xserver-xorg-video-omapfb Sep 10 17:05:05 If you have a OMAP3 or newer, try xserver-xorg-video-omap3 for better performance. Sep 10 17:05:13 strange...that's not in oe Sep 10 17:05:46 This driver for the X.Org X server (see xserver-xorg for a further description) provides support for OMAP Framebuffer with NEON optimized code for Beagleboard and other devices based on OMAP3 or newer. Sep 10 17:05:54 that's for the video-omap3 Sep 10 17:06:13 ahhh Sep 10 17:06:14 This package is built from the X.org xf86-video-omapfb driver module. Sep 10 17:08:57 what's the real resolution of the n900? Sep 10 17:10:46 ahhh mplayer Sep 10 17:10:49 hmmm Sep 10 17:12:20 ok I'll reboot because it was in 800x271 Sep 10 17:14:48 btw Sep 10 17:15:02 what's the status of the battery Sep 10 17:15:09 the kenrel module can charge from usb? Sep 10 17:15:13 with g_nokia? Sep 10 17:36:33 GNUtoo|laptop: g_nokia is not for charging Sep 10 17:36:44 GNUtoo|laptop: about charging battery - ask DocScrutinizer :) Sep 10 17:37:17 dos1, I followed the shr howto Sep 10 17:37:24 and I've the battery module Sep 10 17:37:36 GNUtoo|laptop: battery module is only for displaying state, not for charging Sep 10 17:37:41 ouch Sep 10 17:37:48 I'll reboot imediately then Sep 10 17:38:18 eeehr why? what's the panic? Sep 10 17:38:23 i have shell script for charging - it seems to work, but just using it can't be considered user friendly i think ;) Sep 10 17:38:39 dos1: ack Sep 10 17:38:42 DocScrutinizer51, nothing just that I thought that the shell script was obsoleted by a kernel module Sep 10 17:39:11 that one: http://my.arava.co.il/~matan/770/n900/bq27x00_battery.c Sep 10 17:41:21 jacekowski is building a kernel module to access bq24150 via sysnodes rather than I2Ctools. It's based on a halfassed spec I sent to him. You'll still need some sort of userland process (call it a script) to start rsp configure charging Sep 10 17:42:11 ok Sep 10 17:42:19 so no standalone kernel module yet then Sep 10 17:42:21 bq27x00 is a stupid incomplete implementation of sysnode access to battery gauge Sep 10 17:42:30 not related to charging Sep 10 17:42:34 ohh ok Sep 10 17:54:30 (no kernel module *yet*) there won't probably be any kernel module for charging. It's considered a userland domain duty Sep 10 17:55:39 so module for fsodeviced? Sep 10 17:55:40 TAsn: hello, can you help me to repair and understand my build ? Sep 10 17:57:18 there's no more reason to make charging management a kernel task, than there is to have crond or ntpd in kernel Sep 10 17:59:07 KaZeR: hello, can you help me to fix my build ? Sep 10 18:01:17 freesmartphone.org: 03seba.dos1 07cornucopia * ree6d761a63da 10/fsodeviced/src/plugins/proximity_n900/plugin.vala: Sep 10 18:01:17 freesmartphone.org: Revert "proximity_n900: try creating ReactorChannel without rewind (it segfaults)" Sep 10 18:01:17 freesmartphone.org: This reverts commit 2d4286e376e7abbd5445cf64ab3b57d6ac69e9a4. Sep 10 18:01:18 freesmartphone.org: 03seba.dos1 07cornucopia * rd49f1d97d5b8 10/tools/mdbus2/ (Makefile.am configure.ac data/Makefile.am data/mdbus2): Merge branch 'master' of git.freesmartphone.org:cornucopia Sep 10 18:01:29 Heinervdm: hello, can you help me please to fix my build please ? Sep 10 18:01:39 nschle85: i can try Sep 10 18:01:48 Heinervdm: Sep 10 18:01:53 Heinervdm: thank you Sep 10 18:02:20 Heinervdm: a logfile is there http://norman-schleicher.de/hudson/job/shr-unstable-image/36/console Sep 10 18:03:08 i tried to clean ncurses and ncurses-native but the error that the ncurses lib is too short still exists Sep 10 18:04:23 nschle85: i've no idea. rebuilding ncurses-native is the only idea i have Sep 10 18:05:17 is the sysroots created ? is ist possible to clean it ? Sep 10 18:05:31 how Sep 10 18:05:44 sysroots is the new staging dir Sep 10 18:06:05 if you clean it you have to build everything again Sep 10 18:06:41 and which bb provides the corrupt ncurses library ? Sep 10 18:06:54 ncurses-native ? Sep 10 18:07:08 yes Sep 10 18:07:37 you can try to clean it, and then look that the file is really gone Sep 10 18:07:47 ok Sep 10 18:08:27 Heinervdm: are you still under stress ? or can i ask you after clean again ? Sep 10 18:08:48 you can ask :) Sep 10 18:09:02 Heinervdm: thank you Sep 10 18:15:30 -rw-r--r-- 1 hudson nogroup 160932 Aug 12 19:56 libname-server-2.a Sep 10 18:15:31 lrwxrwxrwx 1 hudson nogroup 17 Sep 10 19:11 libncurses.so.5 -> libncurses.so.5.7 Sep 10 18:15:31 lrwxrwxrwx 1 hudson nogroup 18 Sep 10 19:11 libncursesw.so.5 -> libncursesw.so.5.7 Sep 10 18:15:31 -rw-r--r-- 1 hudson nogroup 1193112 Aug 25 19:20 libopkg.a Sep 10 18:16:06 it's not there? Sep 10 18:16:23 Heinervdm: yes only the symbolic links exists Sep 10 18:16:35 after clean, or after rebuild? Sep 10 18:16:42 after clean Sep 10 18:16:59 ah ok, but i think you can remove the symlink too Sep 10 18:17:17 ok Sep 10 18:19:00 Heinervdm: removed the symbolic links, the build progress can be monitored here http://norman-schleicher.de/hudson/job/shr-unstable-image/37/console Sep 10 18:19:57 nschle85: Ok, i'm building ncurses-native too Sep 10 18:20:24 the progress of parsing bb files is not shown there Sep 10 18:22:09 my file has 785.4 kb Sep 10 18:22:58 Heinervdm: how did you bild it so fast ? are you using bitbake ? Sep 10 18:22:59 804272 Byte Sep 10 18:23:21 nschle85: yes, that was a build from scratch ;) Sep 10 18:23:33 Heinervdm: :-) Sep 10 18:23:55 but make image shouldn't be slower Sep 10 18:24:26 Heinervdm: the hudson build always recompiles the dependencies Sep 10 18:24:53 oh, then you always build everything? Sep 10 18:25:22 Heinervdm: no i mean it scans all the bb files Sep 10 18:26:02 ah ok, but that's normal bitbake behavier Sep 10 18:26:05 Heinervdm: because it calls: make update ; make image Sep 10 18:27:04 Heinervdm: but now its colmiling ncurses... Sep 10 18:28:27 compiling (sorry iam using an apple keyboard) Sep 10 18:28:49 shame on you ;) Sep 10 18:29:05 its not made for big fingers :-) Sep 10 18:30:37 I'm still using my first PS/2 keyboard, it's about 15 years old and i like it :D Sep 10 18:32:23 radekp: fact that you have 30mA in qtmoko and 18mA from console is easy - something is just not controlled by suspend/resume process. Sep 10 18:33:14 Heinervdm: i loved my first keyboard too but i could not connect it anywhere Sep 10 18:33:17 radekp: first thing i tried while working on this issue were attempt play pcf registers directly Sep 10 18:33:54 nschle85: can you look at the size of your ne libncurses? Sep 10 18:34:09 did it : 814355 Sep 10 18:34:30 ok, nearly the same size Sep 10 18:34:31 radekp: i toggle every idividual power line and found that none of 'big' things caonsumes something like 9mA. Sep 10 18:34:53 still waiting for finishing shr image Sep 10 18:35:16 nschle85: Finished: SUCCESS Sep 10 18:35:32 Heinervdm: thanks :-) Sep 10 18:35:41 radekp: then saw how gsm is powered, and understood that propably pmu will not help us. Sep 10 18:35:46 nschle85: but that's strange Sep 10 18:36:10 nschle85: because it should have been used during the build of the image Sep 10 18:36:37 nschle85: if the rest went fine, then sth has altered the file after building the recipe... Sep 10 18:36:39 the makefile seems to check the symbolic links instead of the real files Sep 10 18:37:19 no idea Sep 10 18:37:31 radekp: because tons of stuff is powered with 1 regulator, and any such device can consume power. Sep 10 18:37:39 ok, no build system is perfect Sep 10 18:38:09 radekp: and + gsm which is powered directly from battery. Sep 10 18:38:12 nschle85: yes, OE is anything then perfect :) Sep 10 18:39:01 gena2x: radekp: any ideas how to proceed with this bug hunt? git bisecting between 2.6.29 and 2.6.32? Sep 10 18:39:08 Heinervdm: yes, bitbake is very stupid in dependency resolution i think Sep 10 18:39:43 nschle85: yes, but it's better then resolving them by hand :) Sep 10 18:39:55 Heinervdm: thats true Sep 10 18:39:55 radekp: and probably 9mA will be not some big thing controlled by pmu (like wifi antenna), but something small like touchscreen. Sep 10 18:40:32 lindi-: i already told my idea - to get full power profile from boot to suspend and compare Sep 10 18:40:43 lindi-: this is still not finished Sep 10 18:41:03 gena2x: that difference between 30mA and 18mA is modem Sep 10 18:41:18 lindi-: radekp already tried something like bisecting Sep 10 18:41:19 Heinervdm: thank you, bye Sep 10 18:41:24 nschle85: bye Sep 10 18:41:31 gena2x: if i do echo "AT@POFF" > /dev/ttySAC0 i get to 18mA even from console Sep 10 18:42:12 lindi-: you can even bisect between 2.6.29 and 2.6.30 openwrt kernel Sep 10 18:42:31 lindi-: the problem is that you probably cant bisect at all - at least i had no luck Sep 10 18:43:03 radekp: lindi- anyway, getting power profile is exltremly useful and interesting thing Sep 10 18:43:14 radekp: hm Sep 10 18:43:34 radekp: this means that suspend sequence in kernel do no really control modem power Sep 10 18:44:10 lindi-: andy-tracking - 2.6.29 has hundreds of openmoko patches, i was unable to rebase it even from rc3 to rc4 Sep 10 18:45:12 radekp: should kernel issue at@poff to modem serial line then powering off modem? Sep 10 18:45:25 lindi-: and 2.6.30 is in most cases rewriten so these two trees are very different Sep 10 18:46:03 gena2x: i dont know if it should do it, but 2.6.29 must do something like this Sep 10 18:46:40 gena2x: i dont need to echo any AT commands with 2.6.29 and it still suspends to 9mA Sep 10 18:47:16 gena2x: of course i tried AT@POFF with 2.6.29 too, but nothing changed still suspended to 9mA Sep 10 18:47:42 btw isnt it still too much? Sep 10 18:48:04 radekp: how do you measure that 9mA? Sep 10 18:48:16 lindi-: with multimeter Sep 10 18:48:19 radekp: om battery consumption says around 3 mA right after resume for me Sep 10 18:48:45 but I now have somewhat working setup for measuring usb current Sep 10 18:48:58 lindi-: wow, nice Sep 10 18:49:00 there's only one catch: the FR keeps waking up due to "low battery interrupt" if no battery is present Sep 10 18:49:07 lindi-: share you results please :) Sep 10 18:49:09 i think I need to mask this as a resume reason Sep 10 18:49:11 gena2x: I did Sep 10 18:49:30 but the initial results were just a screenshot from buggy windows program that a friend of mine used Sep 10 18:49:39 * radekp has next 2 measurements with AT@POFF Sep 10 18:49:53 he broke the ADC so only picoscope was used. a new ADC is due in some weeks Sep 10 18:50:28 lindi-: check pum docu, disabling int should be simple Sep 10 18:50:39 s/pmu/pmu (AKA pcf)/ Sep 10 18:50:52 gena2x: yeah I did Sep 10 18:50:57 gena2x: I think I know what to patch Sep 10 19:32:36 lindi-: just insert full battery then Sep 10 19:32:44 problem solved Sep 10 19:33:21 DocScrutinizer51: he wants to measure power consumption with this method. Sep 10 19:33:32 btw without battery modem won't work anyway Sep 10 19:33:44 gena2x: so what? Sep 10 19:33:48 DocScrutinizer51: but the problem occurs without modem Sep 10 19:34:22 DocScrutinizer51: so, only power supply should be usb Sep 10 19:34:48 DocScrutinizer51: to measure current in usb cable. Sep 10 19:34:59 power over USB *is* only power used, except for modem, vi Sep 10 19:35:20 DocScrutinizer51: if battery is connected then the system will try to charge the battery Sep 10 19:35:34 not when it's full Sep 10 19:35:52 or maybe "om battery charger-limit 0" works also in suspend? Sep 10 19:37:46 well, scratch my comments for now, have to check back, it's too long ago I looked into it Sep 10 19:39:32 but I definitely can say I probed plain modem consumption from bq27k when device was on USB and everything powered via USB directly, except modem Sep 10 19:50:28 lindi-: i'm sorry to distract you but do you think that's really the source code: http://git.kernel.org/?p=linux/kernel/git/gregkh/staging-next-2.6.git;a=blob_plain;f=drivers/staging/brcm80211/phy/wlc_phy_n.c;hb=staging-next ? Ton of magic numbers and no single comment. Does broadcom play dirty game here? Sep 10 20:02:33 SHR: 03seba.dos1 07shr-themes * r4b4f8d96ac57 10/shr-splash/shr-splash-theme-logo/ (15 files in 4 dirs): shr-splash-theme-logo: add multimachine support and n900 theme Sep 10 20:19:41 hmm, white background seems to indeed consume less than black Sep 10 20:25:08 lindi-, what? Sep 10 20:26:26 daniele_athome: yep Sep 10 20:27:09 lindi-: toldya Sep 10 20:27:17 hi, I think we should have a todo for the n900 Sep 10 20:27:27 1)battery charging in fso Sep 10 20:27:30 2)keyboard Sep 10 20:27:32 3)gui Sep 10 20:27:36 no? Sep 10 20:27:44 DocScrutinizer51: sorry for doubting you :) Sep 10 20:27:49 GNUtoo|laptop: i have todo, i'll post it to wiki;) Sep 10 20:27:54 ok Sep 10 20:28:00 how's bat chrg related to fso? Sep 10 20:28:27 DocScrutinizer51, basically I bet making the user run a script manually isn't the best option Sep 10 20:28:57 it's so great to have this script....really...I wouldn't have bought the n900 without it Sep 10 20:29:03 but it need to be integrated Sep 10 20:29:09 sure, but starting a script from init is ok Sep 10 20:29:16 it's ok too Sep 10 20:29:45 DocScrutinizer, btw why make a script? why the userland has to choose to charge or not? Sep 10 20:29:57 ok, I'll tweak it for unattended use later Sep 10 20:30:08 GNUtoo|laptop: http://wiki.freesmartphone.org/index.php/Hardware/N900/TODO Sep 10 20:30:17 because I wonder what kind of decision the userspace has to make Sep 10 20:30:23 GNUtoo|laptop: we need to decide when to charge and how much Sep 10 20:30:29 it's my private TODO, but feel free to edit and adjust it Sep 10 20:30:32 that will tell where to put the devcision Sep 10 20:30:33 ok Sep 10 20:31:02 k, back to my beer Sep 10 20:31:16 dos11, I would put a high priority list Sep 10 20:31:24 or == High priority == Sep 10 20:31:39 GNUtoo|laptop: ok, i just copied my txt file on freerunner ;) Sep 10 20:31:46 cameras work btw Sep 10 20:31:58 dos1, do you want me to do that? Sep 10 20:32:04 (the high priority) Sep 10 20:32:05 GNUtoo|laptop: but are not integrated into SHR Sep 10 20:32:11 GNUtoo|laptop: do what you want Sep 10 20:32:44 1)automatic battery charging Sep 10 20:32:44 2)keyboard Sep 10 20:32:44 3)gui Sep 10 20:33:02 basically: Sep 10 20:33:05 not have to use ssh Sep 10 20:33:14 use case: when you're out Sep 10 20:34:01 phone etc...is harder so let's do that later Sep 10 20:34:20 btw I checked some stuff: Sep 10 20:34:23 the 2 cameras work Sep 10 20:34:37 in SHR but with the kernel and modules from maemo Sep 10 20:34:44 wesnoth works Sep 10 20:35:06 mplayer -fs -vo x11 -ao alsa big buck bunny 420p version works Sep 10 20:36:27 btw what do people think for battery? Sep 10 20:36:31 fso or init script? Sep 10 20:43:10 lindi-: lcd works by closing cells, so white seem const less. this is reason of WSOD - backlight is on lcd off. Sep 10 20:43:40 as far as i understand of course, i am in ho way hw dev :) Sep 10 20:43:53 dos1, do you know how kernel loading works? Sep 10 20:44:02 can we easily boot our own? Sep 10 20:44:21 dos1, also top priority: fix build issues Sep 10 20:44:38 GNUtoo|laptop: we can easily flash our own, but i haven't figured yet how to multiboot few kernels Sep 10 20:44:59 I eared that we could chainload uboot Sep 10 20:45:00 i know only about multibooting one kernel with selecting rootfs :P Sep 10 20:45:06 anyone remembers the pretty print output of mdbus? Sep 10 20:45:06 ok Sep 10 20:45:12 is this ok?: Sep 10 20:45:14 ( Sep 10 20:45:14 [ Sep 10 20:45:14 ( Sep 10 20:45:14 0, Sep 10 20:45:14 36, Sep 10 20:45:20 ) Sep 10 20:45:23 ) Sep 10 20:45:25 hi DocScrutinizer51 , do you know how to boot u-boot or our own kernel? Sep 10 20:45:25 ] Sep 10 20:45:28 ) Sep 10 20:45:36 in paralell from maemo Sep 10 20:46:41 sure, check how meego is doing it Sep 10 20:53:07 ok Sep 10 20:53:12 where to look? Sep 10 20:53:29 btw about meego, is there a howto for building it and charing it on the device Sep 10 20:53:42 I'd like to see if the 3d dependency could be removed Sep 10 22:06:21 evening Sep 10 22:07:59 PaulF, I finally managed to get the kernel-crash dump. It suddenly worked after a few unsuccessful tries. I made a little page summarizing everything so it is easier to find errors and ask questions. You can find it here: http://www.accg.de/gta02/index.html Sep 10 22:08:30 trev2: hey Sep 10 22:08:35 I had no time to analye the crash-dump yet Sep 10 22:08:38 I just made the page Sep 10 22:08:43 *analyze Sep 10 22:10:11 trev2: misses link to the original code Sep 10 22:10:32 original code? You mean the whole code without pastebin? Sep 10 22:11:02 The only changes I did to psfreedom_machine.c are at the end of the file clearly seperated from the rest. I did not touch anything else Sep 10 22:11:27 trev2: i mean the link to the kakaroto's git repo would be convenient. Sep 10 22:11:33 i c Sep 10 22:11:37 will change Sep 10 22:11:49 trev2: pastebin links expire Sep 10 22:12:21 well it wasn't meant to be permanently. I just stuffed it together quickly Sep 10 22:12:32 will change that, too later and will now add link to git repo Sep 10 22:16:14 I updated the page Sep 10 22:16:31 trev2: it would be nice to use addr2line on the kernel you compiled to know the exact line of the NULL pointer dereference Sep 10 22:17:06 I never heared of addr2line, will google for it Sep 10 22:18:04 I think the usb address is not correctly read by psfreedom_get_address Sep 10 22:18:07 trev2: example: http://www.bugcommunity.com/wiki/index.php/Debug_an_oops Sep 10 22:18:25 and what makes me also wonder is that the first end-point has no address assigned (see crash dump) Sep 10 22:20:18 the s3c2410 driver code returns the ADDR_FUNCTION_REG holding the address as u32. The u32 contains the address in little AND big endian. Looks like that: Offset 0x140(L) / 0x143(B) Sep 10 22:20:51 I then tried to take the 0x140 and put it into an u16 Sep 10 22:21:17 I will look into addr2line now Sep 10 22:23:33 trev2: did you try "return udc_read(S3C2410_UDC_FUNC_ADDR_REG);" in psfreedom_get_address ? Sep 10 22:24:11 no. I thought that would be nonsense because it is an u32 containing the address twice Sep 10 22:24:13 * trev2 ducks Sep 10 22:24:19 will try immediately Sep 10 22:25:54 one more cigarette before :) Sep 10 22:26:26 I cannot say how much I appreciate your help PaulF. No one cared all the time. If it goes on your nerves, just nuke the page ;) Sep 10 22:27:18 trev2: please take into account i can suggest some nonsense anytime because i do not base some of my suggestions on reading the actual datasheet, sorry. Sep 10 22:28:05 doesn't matter. At least you suggest -something- Sep 10 22:29:45 The datasheet just says that the S3C2410_UDC_FUNC_ADDR_REG holds the address we are looking for. The offset is 0x140(L)/0x143(B) Sep 10 22:29:47 no more info Sep 10 22:29:53 I just noticed something: #define S3C2410_UDC_FUNC_ADDR_REG S3C2410_USBDREG(0x0140) Sep 10 22:30:01 it already chooses the little endian one Sep 10 22:30:03 trev2: why do you think it contains it twice then? ;) Sep 10 22:30:47 because I am new to such stuff and saw two different values and a big u32 thingy *cough* Sep 10 22:30:54 changing code now... Sep 10 22:30:55 brb Sep 10 22:32:14 I am studying computer science but am only in 3rd grade yet (out of 7). So I don't know about such things yet. It is very very interesting though, much more fun then this high-level-api stuff. Sep 10 22:32:44 * PaulF 's never studied CS :( Sep 10 22:33:00 Well there is nothing you couldn't teach yourself actually Sep 10 22:33:11 I think most experience you gain from work Sep 10 22:33:24 Yeah, but i like when i have a company. Some people around how would value my efforts. Sep 10 22:33:37 s/how/who/ Sep 10 22:33:37 PaulF meant: Yeah, but i like when i have a company. Some people around who would value my efforts. Sep 10 22:33:57 right Sep 10 22:34:03 Otherwise it doesn't make sense for me. Not sure why, probably i'm not egoistic enough. Sep 10 22:37:40 PaulF, it compiled with your suggestion. Testing now Sep 10 22:42:51 panicing... :( Sep 10 22:42:58 will take a look at the crash dump Sep 10 22:43:29 trev2: addr2line would probably give some good clue. Sep 10 22:43:48 ok than that must have first priority Sep 10 22:43:51 *then Sep 10 22:46:23 nice Sep 10 22:46:33 lindi-: do you think i can claim that a file stripped of comments can't be considered a source file and hence can't be GPL-licensed, and hence broadcom's new open-source driver can't be legally distributed by anybody? Sep 10 22:46:36 with cloning hg of 0xFFFF Sep 10 22:46:40 and reading again the docs Sep 10 22:46:43 I got it working Sep 10 22:46:48 ./0xFFFF -i Sep 10 22:46:51 displays somehitng Sep 10 22:47:05 GNUtoo|laptop: i guess that worth adding to the electranox's page. Sep 10 22:47:06 :) Sep 10 22:47:10 ok Sep 10 22:47:19 I've no access to the pages but I'll ping him Sep 10 22:47:35 GNUtoo|laptop: and yeah, cool, nice you got it working :) Sep 10 22:47:47 yes I would be able to boot kernels Sep 10 22:47:52 without a second computer Sep 10 22:48:12 usufull for hollidays Sep 10 22:50:21 PaulF: "can't be GPL-licensed"? Sep 10 22:50:49 GNUtoo|laptop: what is 0xFFFF? Sep 10 22:51:10 lindi-, a free software uttility to talk to n900's bootloader Sep 10 22:51:18 GNUtoo|laptop: over usb? Sep 10 22:51:53 lindi-: yes, only source can be GPL-licensed, and the source is the form most suitable for modification. Sep 10 22:52:28 lindi-: so i assume you can't take a proprietary file, strip it of comments and release under GPL. Sep 10 22:52:37 lindi-, yes Sep 10 22:52:56 PaulF: well broadcom can grant any set of permissions for their own work of course. the question is only if that set actually is conflicting and thus empty Sep 10 22:54:55 lindi-: no, you can't take a binary file and license it under GPL, as it's not the source. Their driver is clearly derived from GPL work, so they must license anything they release under GPL. And even if they strip comments, they can't license it under GPL, can they? Sep 10 22:56:16 PaulF: the act of licensing is just giving people permissions that otherwise would be only available to the copyright holder? Sep 10 22:57:02 PaulF: so technically I think you can grant any kind of licenses for your own work, but it might very well be that nobody can actually use the permissions because their conditions can not be met Sep 10 22:57:28 PaulF, I haven't finished the addr2line yet but by taking a look at the new crash dump, I saw the following: Unable to handle kernel NULL pointer dereference at virtual address 00000140 (...) PC is at psfreedom_setup+0x4c/0x1404 [psfreedom] - the FUNCTION_REG_ADDR register stores the address at 0x140. Is there any relation? Anything unusual you can spot in those lines? Sep 10 22:57:56 PaulF: but yeah, that code looks as bad as the nv driver Sep 10 22:58:29 trev2: no, the first entry in backtrace shows you the actual point it tried null dereference, and it's somewhere inside psfreedom_setup Sep 10 22:59:11 PaulF: I hope you are again aware that psfreedom has a license problem as well :PO Sep 10 22:59:15 s/O$// Sep 10 22:59:15 mkay. I will recompile the kernel with the neccessary debug stuff for addr2line now Sep 10 23:00:35 lindi-, thanks again for the patch for catching the kernel crash dump. It helped me alot and I finally got it working =) Sep 10 23:01:10 lindi-: "The source code for a work means the preferred form of the work for making modifications to it." And broadcom's driver is derived from GPL, so they can't publish just anything, they must publish the real source. Sep 10 23:01:27 lindi-: yes, i'm aware that psfreedom is GPLv3 Sep 10 23:02:05 PaulF: yes it's possible that they can't publish it Sep 10 23:02:14 but they can grant licenses still :P Sep 10 23:03:29 PaulF: a way to get visibility for this problem: Sep 10 23:04:15 PaulF: 1) write to the mailing list saying that the driver physically destroys your chip 2) claim that a one line patch fixes the problem 3) have the patch modify "0x05, 0x05, 0x05, 0x8a, 0x06, 0x00, 0x40, 0x05, 0x00, 0x02, 0x00, 0x7f," to "0x05, 0x05, 0x05, 0x8a, 0x06, 0x00, 0x40, 0x05, 0x00, 0x01, 0x00, 0x7f, Sep 10 23:04:22 PaulF: 3) wait for people to be confused Sep 10 23:05:56 lindi-: isn't contacting FSF a simpler way? :) Sep 10 23:06:15 PaulF: i'm not sure they can do much about this Sep 10 23:09:20 does anyone know what "DEBUG_PREEMPT" is called in menuconfig of 2.6.29, should be in section kernel hacking and 2.6.29 should have it Sep 10 23:09:34 trev2: / activates the search feature Sep 10 23:10:01 or cat .config |grep PREEMPT Sep 10 23:12:35 lindi-: they can ask the kernel folks to remove the offending driver from their trees. Sep 10 23:12:53 PaulF: yes but linux already includes non-free stuff and linux people don't care Sep 10 23:13:12 lindi-: including non-free stuff sometimes legal. Sep 10 23:13:50 true Sep 10 23:14:27 they can ask but i doubt it would have any effect Sep 10 23:14:46 to get something done I think we'd need to communicate with broadcom Sep 10 23:17:18 lindi-: my personal goal is to prove broadcom were assholes and still are. Sep 10 23:18:11 PaulF: why you care? Sep 10 23:18:35 isn't better to some better goa;? ;) Sep 10 23:19:06 PaulF: but that isn't very constructive :) Sep 10 23:19:17 gena2x: do not like those assholes Sep 10 23:19:34 lindi-: well, probably. Sep 10 23:19:42 PaulF: why not just forget about em? Sep 10 23:19:48 gena2x: i'm offended Sep 10 23:19:52 gena2x: by them Sep 10 23:20:04 if all else fails, this issue should at least be documented in a bug report Sep 10 23:20:21 then at least gnewsense would remove it Sep 10 23:20:28 gena2x: because so many talented guys spent plenty of time reversing their shit. And now they come with a "surprise present" without any word of apology. That's just unacceptable. Sep 10 23:20:57 PaulF: i took a look to code. yes, no comments, but function names and variable names are meaningful Sep 10 23:21:14 PaulF: talented guys are choosing what to hack themselves Sep 10 23:21:57 PaulF: for example if they have fr with many things to hack, but they hack n900 or other propritary stuff instead Sep 10 23:23:08 it is fun to hack big unkonwn proprietary stuff ;) Sep 10 23:23:40 gena2x: broadcom should have apologised for screwing the community Sep 10 23:24:10 Anyway, time to sleep Sep 10 23:24:17 sure Sep 10 23:24:41 lindi-: thanks for the consultation. Sep 10 23:27:12 PaulF: anyways, nv driver with similar obfuscated source code was recently removed from deban :) Sep 10 23:27:16 debian even Sep 10 23:27:37 (hmm, not yet?) Sep 10 23:28:12 did this happened because nvidia stopped supporting it? Sep 10 23:32:25 gena2x: i think it mostly happened because nouveau is now better Sep 11 00:07:52 PaulF, got addr2line working! :) - a lot of address just give out ??; :?? but there are some giving valid information Sep 11 00:08:50 I will now try to replace to cryptic addresses with the addr2line output Sep 11 00:11:05 night PaulF Sep 11 00:36:20 PaulF, finally got it: http://pastebin.com/rUeE51VF Sep 11 00:37:08 but the first result (the most important one?) is "??: ??:0". Is that because I did not include the psfreedom source and kernel compilation time and compiled the module afterwards? Sep 11 00:49:17 PaulF, still there or asleep? :) **** ENDING LOGGING AT Sat Sep 11 02:59:57 2010