**** BEGIN LOGGING AT Mon Nov 10 03:00:00 2014 Nov 10 08:21:15 Hello ant_work blu Nov 10 08:21:52 I have cooked up a present for jay7 to polish Nov 10 08:21:55 https://github.com/andrea-adami/kexecboot/commits/master Nov 10 08:23:20 there is always the problem you pointed...proper way is with lstat etc. Nov 10 08:23:59 but I guess for a kernel symlink char buf[256] is enough Nov 10 08:27:40 kexecboot digression finished...back to kernel testing... Nov 10 12:39:54 ant_work, one of my patches broke spi (mmc). Rolling back... Nov 10 13:00:08 ok, fixed :) Nov 10 13:01:04 [ 166.799482] mmc0: new SD card on SPI Nov 10 13:01:05 [ 166.814294] mmcblk0: mmc0:0000 SD01G 972 MiB Nov 10 13:01:05 [ 166.883266] mmcblk0: p1 p2 Nov 10 13:01:05 [ 176.186057] kjournald starting. Commit interval 5 seconds Nov 10 13:01:05 [ 176.393626] EXT3-fs (mmcblk0p2): using internal journal Nov 10 13:01:07 [ 176.438288] EXT3-fs (mmcblk0p2): recovery complete Nov 10 13:01:09 [ 176.443352] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode Nov 10 13:01:11 [ 176.753180] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. Nov 10 13:01:16 LABEL=My collie kernel Nov 10 13:01:18 KERNEL=/boot/zImage-my Nov 10 13:06:12 speed is about 200-220 kbytes/sec Nov 10 13:06:30 tried the 32M mmc? Nov 10 13:07:13 Still 0 bytes length Nov 10 13:07:38 RIP ? Nov 10 13:08:00 no. Nov 10 13:08:18 Maybe it does not implement the SPI protocol (it is permitted for MMC cards). Nov 10 13:08:43 I have another issue - 32M SD card also doesn't work. Nov 10 13:09:25 It is properly detected, but then reports error -38 to many-many commands Nov 10 13:09:44 [ 669.596301] mmc0: new SD card on SPI Nov 10 13:09:45 [ 669.623397] mmcblk0: mmc0:0000 S032B 29.6 MiB Nov 10 13:09:45 [ 669.684828] mmcblk0: p1 Nov 10 13:09:45 [ 669.877184] mmcblk0: error -38 sending status command, retrying Nov 10 13:09:45 [ 669.883820] mmcblk0: error -38 sending status command, retrying Nov 10 13:09:46 [ 669.890271] mmcblk0: error -38 sending status command, aborting Nov 10 13:09:48 [ 669.896502] blk_update_request: I/O error, dev mmcblk0, sector 60792 Nov 10 13:09:50 [ 669.904607] mmcblk0: error -38 sending status command, retrying Nov 10 13:09:54 [ 669.911057] mmcblk0: error -38 sending status command, retrying Nov 10 13:09:56 [ 669.917694] mmcblk0: error -38 sending status command, aborting Nov 10 13:10:12 Works like a charm in a USB reader Nov 10 13:10:40 Another one: Nov 10 13:10:49 [ 756.284061] mmc0: card lacks mandatory switch function, performance might suffer Nov 10 13:10:50 [ 756.292868] mmc0: new SD card on SPI Nov 10 13:10:50 [ 756.305030] mmcblk0: mmc0:0000 TWTTI 121 MiB Nov 10 13:10:50 [ 756.384738] mmcblk0: unknown partition table Nov 10 13:10:50 [ 756.573936] mmcblk0: error -14 sending stop command, original cmd response 0x0, card status 0x0 Nov 10 13:11:44 hm.. Nov 10 13:11:58 it works despite error -14. Nov 10 13:12:33 is in mode0? Nov 10 13:12:37 Yes. Nov 10 13:12:50 "For the MMC, it is not the SPI timing, both latch and shift actions are defined with rising edge of the SCLK, but it seems to work at mode 0 in the SPI mode" Nov 10 13:13:08 Another one failing with -38 Nov 10 13:13:25 [ 918.564377] mmcblk0: mmc0:0000 SD04G 3.69 GiB Nov 10 13:13:25 [ 918.646450] mmcblk0: p1 p2 p3 Nov 10 13:13:25 [ 918.843121] mmcblk0: error -38 sending status command, retrying Nov 10 13:13:25 [ 918.849572] mmcblk0: error -38 sending status command, retrying Nov 10 13:13:25 [ 918.856211] mmcblk0: error -38 sending status command, aborting Nov 10 13:13:41 Maybe it is a limitation of SPI protocol hidden somewhere. Nov 10 13:13:46 What is your source for ^^ Nov 10 13:13:53 plenty of info here: http://elm-chan.org/docs/mmc/mmc_e.html Nov 10 13:15:00 Another one works: Nov 10 13:15:02 [ 997.759990] mmc0: new SD card on SPI Nov 10 13:15:02 [ 997.783867] mmcblk0: mmc0:0000 00000 1.83 GiB Nov 10 13:15:02 [ 997.845057] mmcblk0: p1 Nov 10 13:15:02 [ 998.035253] mmcblk0: error -14 sending stop command, original cmd response 0x0, card status 0x0 Nov 10 13:15:02 [ 1000.888217] mmcblk0: error -14 sending stop command, original cmd response 0x0, card status 0x0 Nov 10 13:16:02 Thanks for the pointer Nov 10 13:16:39 take a look at the benchmarks they give... Nov 10 13:16:52 old cards prolly Nov 10 13:29:27 I have a theory about status commands. Nov 10 13:30:45 cmd.opcode = MMC_SEND_STATUS; Nov 10 13:30:45 if (!mmc_host_is_spi(card->host)) Nov 10 13:30:45 cmd.arg = card->rca << 16; Nov 10 13:30:45 cmd.flags = MMC_RSP_SPI_R2 | MMC_RSP_R1 | MMC_CMD_AC; Nov 10 13:31:01 So maybe we are missing an argument for SEND_STATUS command on SPI bus Nov 10 13:32:39 I can't find anymore a site listing the locomo/spi regs Nov 10 13:32:52 I found this in the meanwhile (2006) Nov 10 13:32:58 http://lists.openmoko.org/pipermail/community/2006-December/000712.html Nov 10 13:35:29 https://github.com/lumag/sharp-kernel/blob/v2.4.20-c3200-1.01/include/asm-arm/arch-pxa/poodle.h Nov 10 13:37:33 From the kernel log: Nov 10 13:37:35 The newest categories of cards supported by the MMC stack aren't expected Nov 10 13:37:35 to work yet with SPI: MMC or SD cards with over 4GB data, and SDIO. Nov 10 13:37:35 All those cards support SPI mode, so eventually they should work too. Nov 10 13:37:35 Nov 10 13:38:12 So some bits might be missing for mmc-spi Nov 10 13:41:10 * lumag is in strong need of some SDIO cards to test. Nov 10 13:54:31 ant_work, I've sent you the most recent LoCoMo patchset that I have locally. Nov 10 13:55:11 I will need to reimplement the core (regmap instead of raw register writes), but I hope functionality won't change anymore. Nov 10 14:04:55 spi driver might receive a boost by switching to irqs (from busy looping). But that would be the next step Nov 10 14:06:15 ok, I'll test Nov 10 14:06:48 does SDIO really work on old hw? Nov 10 14:06:57 I don't have any card... Nov 10 14:07:05 neither me. Nov 10 14:07:13 It should work iff the interrupt is routed. Nov 10 14:10:57 AFAIR it is routed on collie, tosa and spitz Nov 10 14:12:33 I think it should be routed on poodle and corgi Nov 10 14:12:46 At least poodle header names it and corgi has it commented. Nov 10 14:13:09 Ah, no Nov 10 14:13:14 corgi also has a pin. Nov 10 14:13:30 So (in theory) all Z should be SDIO -capable Nov 10 14:17:18 found the link... Nov 10 14:17:20 http://josejx.net/collie/ Nov 10 14:17:44 maybe there is smthg more Nov 10 14:55:14 ant_work, mostly nothing new. Nov 10 14:55:47 The only interesting part are the conditions in TX/RX for busyloops Nov 10 14:56:14 However I observe no timeouts on rx/tx, so this should not be the case. Nov 10 14:56:16 Hopefully. Nov 10 14:56:33 I will recheck. Nov 10 15:02:11 No, no timeouts Nov 10 15:02:23 So it's either some bug in card firmware, or bug in mmc_spi Nov 10 15:04:28 ok Nov 10 15:04:37 I noticed it says 2s from cold boot... Nov 10 15:05:20 perhaps kexecboot will need some more delay Nov 10 15:06:02 ? Nov 10 15:06:30 for the detection Nov 10 15:06:43 but the cards I have were all detected by old 2.6.31 Nov 10 15:07:29 I see the comment. Probably that is usecs (or msecs) and that is after powering the socket. Nov 10 15:08:10 Because I can hardly imagine the 2 seconds delay for mmc to work. Nov 10 15:09:11 BTW: I noticed that 'kernel' project was marked as private in asana. Marked it as public, so you should be able to see it. Nov 10 15:09:32 Is anybody else interested in tracking issues with PDAs? Nov 10 15:09:34 bluelightning, ^^ Nov 10 15:09:51 in general, yes Nov 10 15:21:34 lumag: we have delay 2 secs for all devices but spitz which needs 3 Nov 10 15:21:49 Hmm? Nov 10 15:21:53 this to detect some ancient CF Nov 10 15:22:52 if you don't have any mtd image kexecboot would scan too quickly Nov 10 15:23:02 so we added delay Nov 10 15:24:35 (we should have checked for device presence, I know ;) Nov 10 15:26:35 maybe we should use udev notifications? Nov 10 15:26:39 somehow. Nov 10 15:41:44 must be done from within kexecboot, no shell, no udev Nov 10 15:41:58 ..no space... Nov 10 15:42:28 Receiving hotplug events directly from kernel? Nov 10 15:43:37 maybe but still, how long should you wait? You don't know what to expect Nov 10 15:45:39 yes. Nov 10 15:46:27 That is why receiving hotplug events from kernel might be better - kexecboot will be able to update 'kernels' screen as new devices are discovered. Nov 10 15:46:37 Or removed Nov 10 15:46:59 But that is probably huuge refactoring. Nov 10 16:37:10 ok, heading home now Nov 10 16:37:41 later I'll fix couple of malloc() in kexecboot (missing +1 after strlen...) Nov 10 16:37:50 then I'll pass to SD test on collie Nov 10 16:37:54 bbl Nov 10 20:44:29 On e-bay tosa goes for 60 USD Nov 10 23:06:51 bluelightning, do you think we can upload some linux-kexecboot binaries on meta-hh? Nov 10 23:10:31 bluelightning, 2nd question is, should I point kexecboot SRC_URI to my github until Jay7 updates upstream? Or adding patches to the metadata? Nov 10 23:19:30 night ppl Nov 10 23:19:53 I've forgot to start my irc client about a week ago Nov 10 23:19:53 * ant__ summoned Jay7 Nov 10 23:20:07 hehe ) Nov 10 23:20:27 how are you doing? Nov 10 23:20:38 very busy with strange things Nov 10 23:20:51 I have coworking space now Nov 10 23:21:10 working there as barista as well ) Nov 10 23:21:15 ant__: I'm not sure we'd want to distribute binaries within the repo itself... Nov 10 23:21:53 today's problem is, main site is down and there isn't any copy of the installers around... Nov 10 23:21:57 how are things in kexecboot-land? ) Nov 10 23:22:13 main site should go online this week Nov 10 23:22:15 I hope Nov 10 23:22:21 just today I could finally fix the absolute symlink issue Nov 10 23:22:28 anyway we should move to github pages Nov 10 23:22:34 need your help/debug ofc Nov 10 23:22:46 & valgrind Nov 10 23:23:05 https://github.com/andrea-adami/kexecboot/commits/master Nov 10 23:23:41 bluelightning, debugging right now zaurus installer: th einstallkits are missing the zImage :/ Nov 10 23:24:59 ant__: cool! Nov 10 23:25:16 we should merge it almost as is Nov 10 23:25:26 I dislike CONCAT name Nov 10 23:25:39 it compiles w/out warnings Nov 10 23:25:46 ah..yes..SQL ;) Nov 10 23:25:58 fix it as you like Nov 10 23:26:08 it will be better to rename to something like APPEND_MOUNTPATH e.g. Nov 10 23:26:20 big doubt are the malloc Nov 10 23:26:25 ^_^ Nov 10 23:27:03 it's place for errors ) Nov 10 23:27:10 they are too large Nov 10 23:27:26 should be defined for each branch of the if Nov 10 23:27:33 n Nov 10 23:27:45 easy thing is to remove checks Nov 10 23:27:57 with overcommit enabled there is no sense Nov 10 23:28:25 malloc will return good value, but first write will fail Nov 10 23:28:38 but I'm unsure about this Nov 10 23:28:58 I've tested right now all possible cases: file, rel symlink, absolute symlink Nov 10 23:29:00 other way is to create wrapper around malloc with check and exit() e.g. Nov 10 23:29:29 or may be assert() Nov 10 23:30:41 Hello ant__ Jay7 Nov 10 23:30:49 hi lumag_ Nov 10 23:30:58 hi lumag_ Nov 10 23:31:13 Jay7 was evocated by my horror code of yesterday ;) Nov 10 23:31:19 :) Nov 10 23:31:29 )) Nov 10 23:31:43 lumag_: have you any idea how to implement hotplug? Nov 10 23:31:43 Regarding websites. It is possible to put a website on GitHub. Nov 10 23:31:55 we should move to github Nov 10 23:32:02 hosting is very unreliable now Nov 10 23:32:03 +1 Nov 10 23:32:24 github should stay free for a while and is stable (today) Nov 10 23:32:37 Jay7, not yet. I have an idea that kexecboot can hook into kernel using the same interface as udev/mdev do. Nov 10 23:32:59 However that is completely gray area for me. I know several keywords and nothing more :( Nov 10 23:33:03 yeah, that was in out todo for some years ) Nov 10 23:33:18 anyway the mtd scanning takes >2s Nov 10 23:33:29 afaik, it's netlink proto Nov 10 23:34:01 we already have that delay Nov 10 23:34:17 ant__, theoretically all scanning can be made parallel. Nov 10 23:34:23 reg. hosting on github. Nov 10 23:35:10 For my side project I did that: https://github.com/GostCrypt/gostcrypt.github.io Nov 10 23:35:59 They provide nice framework for building semi-static sites. Nov 10 23:37:57 I don't know what is the policy regarding binary files though Nov 10 23:41:55 Jay7, btw the machine-kernel part is ugly Nov 10 23:42:12 I was tempted to remove all Nov 10 23:42:18 may be it's time to drop it? Nov 10 23:42:22 +1 Nov 10 23:43:39 we can use symlinks Nov 10 23:55:14 * Jay7 -> sleep Nov 10 23:55:18 see you Nov 10 23:56:28 gn Nov 10 23:56:36 * lumag_ should go to sleep too Nov 10 23:56:47 gn **** ENDING LOGGING AT Tue Nov 11 03:00:00 2014