**** BEGIN LOGGING AT Fri Jun 10 02:59:57 2011 Jun 10 10:29:32 Jay7: fwiw today on klibc-dev Jun 10 10:29:35 [klibc] [PATCH] limits: Define LLONG_MIN, LLONG_MAX and ULLONG_MAX Jun 10 10:30:29 I could live with ULONGLONG_MAX || ULLONG_MAX Jun 10 10:34:50 good that maximilian is tracking kexecboot Jun 10 11:32:43 Jay7: pb_ says glibc/uclibc/eglibc have ULLONG_MAX Jun 10 11:33:35 "so I think you should be safe assuming that they exist" Jun 10 11:34:00 BUG STATUS: RESOLVED: INVALID Jun 10 11:34:05 :p Jun 10 11:35:12 dietlibc too Jun 10 12:16:24 atiti: welcome Jun 10 12:16:47 atiti: we are a bit stalling with reference to fstype Jun 10 12:17:06 jffs2 and fat have been somehow added Jun 10 12:17:18 we still lack ubi/ubifs support Jun 10 12:18:44 hi Jun 10 12:18:57 logfs Jun 10 12:19:21 its a flash aware fs which is to replace jffs2 Jun 10 12:19:35 jffs2 has some really long mounting times for large fs sizes Jun 10 12:19:49 sadly, yes Jun 10 12:21:14 if we want more users (OMAP) we still need ubi/ubifs, though Jun 10 12:21:56 uImage support was the first obstacle, now solved Jun 10 12:22:52 ;) Jun 10 12:23:18 what devices are you targetting nowadays Jun 10 12:23:47 i moved away from my zaurus now and entered the world of androids (tablet + phone) :D Jun 10 12:26:47 well, some dev have n900 Jun 10 12:26:59 other are playing with beagleboard Jun 10 12:27:44 basically armv6/7 are now using ubi Jun 10 12:28:34 anyway, logfs seems interesting Jun 10 12:37:14 :) Jun 10 13:39:09 hi whse-work Jun 10 13:39:22 hey Jun 10 13:39:43 I'd just like to say, there are days I hate the OXNAS platform, outright.. Jun 10 13:46:50 I really do want to sort out the use of kexecboot, but this kernel is so frustrating.... Jun 10 13:46:58 and NDA's all over the place.. UHG. Jun 10 13:50:02 :/ Jun 10 15:20:53 evening Jun 10 15:21:35 ant_work: can you suggest how to check that we are compiling with klibc? Jun 10 15:21:50 what #ifdef to check? :) Jun 10 15:21:56 no need Jun 10 15:22:00 klibc is fixed Jun 10 15:22:08 do we have this fix already? Jun 10 15:22:12 I'll add the patch until 1.523 Jun 10 15:22:17 ok Jun 10 15:22:31 hope no one will use it with previous versions :) Jun 10 15:22:33 next week or before Jun 10 15:22:44 I've done lot of fixes Jun 10 15:22:55 I'll resend to maximilian som eklibc patches we have Jun 10 15:23:04 but that menu->current->current->id is still unresolved Jun 10 15:23:10 yes Jun 10 15:23:26 but now we have frame around active item :) Jun 10 15:23:30 but imagine that somehow *once* poodle was not freezing Jun 10 15:23:35 but have no separating lines Jun 10 15:23:42 like before with old UI Jun 10 15:23:55 I'll push changes today Jun 10 15:24:20 I mean, I entered System Menu Jun 10 15:24:48 I could do it only one time out of 10 :/ Jun 10 15:25:05 tried inserting/removing CF and SD Jun 10 15:26:53 you mean there is same background color? Jun 10 15:27:28 ah, I see Jun 10 15:27:53 the line on the bottom was invisible once slot was selected, anyhow Jun 10 15:27:54 ant_work: no, active item have white bg with frame around Jun 10 15:28:15 need to eat something Jun 10 15:28:19 will back later Jun 10 15:28:20 ok, border+color Jun 10 15:28:23 top Jun 10 15:28:26 ;) Jun 10 15:28:32 bbl Jun 10 16:56:09 http://tinylab.org/index.php/projects/tinylinux/ Jun 10 16:56:18 "Kexec based bootloader is a classic application of Tiny Linux Kernel or we can say Tiny Linux Kernel is a requirement of Kexec based bootloader. This task tries to implement the demos for X86, MIPS, ARM and PPC. There are related resources in the kexec-tools and kexecboot projects." Jun 10 16:56:43 http://elinux.org/Work_on_Tiny_Linux_Kernel Jun 10 16:56:50 by Wu Zhangjin Jun 10 16:57:54 interesting Jun 10 16:59:39 whse-work: btw, I've mainlined fix for large partitions Jun 10 16:59:58 :) yw Jun 10 18:17:37 Jay7: ping Jun 10 18:17:46 pong Jun 10 18:18:05 K, so, what are the actual requirements from the uInitrd Jun 10 18:18:18 kexec.. kexecboot Jun 10 18:18:20 wtc Jun 10 18:18:23 *etc Jun 10 18:18:39 some devices in /dev, /usr/sbin/kexec and kexecboot somewhere Jun 10 18:18:42 * whse-work has some free time for the first time in 2 weeks Jun 10 18:19:01 nothing else required ? Jun 10 18:19:07 iirc, no Jun 10 18:19:13 hrm.. Jun 10 18:19:50 we are starting kexecboot as init by kernel Jun 10 18:21:36 interesting Jun 10 18:22:17 have to figure out how to get a uInitrd running.. Jun 10 18:23:14 never used it with these boards.. Jun 10 18:23:32 why not just compile it into kernel? Jun 10 18:23:39 that is what I was thinking Jun 10 18:24:03 strip out everything that isn't necessary, and then compile that in.. Jun 10 18:24:40 ant may show our initramfs directory layout Jun 10 18:25:26 ant is ? Jun 10 18:28:42 like, the user ant that was here earlier ? Jun 10 18:57:23 this kind of what I am looking for ? http://www.microsuncn.com/index.php?title=Analysis_linux_initrd Jun 10 20:02:51 u said /usr/sbin/kexec Jun 10 20:03:08 my package in the arch-upstream is /sbin/kexec Jun 10 20:05:59 whse-work: use --with-kexec-binary Jun 10 20:06:04 kexecboot's configure option Jun 10 20:06:08 ah Jun 10 20:06:24 or just symlink it :) Jun 10 20:06:55 yeah, I just copied it to /usr/sbin/kexec in the initramfs tree Jun 10 20:07:16 choose way you like more :) Jun 10 20:23:05 is thinking I understand this stuff... Jun 10 20:23:38 i can just symlink init to kexeboot, yets? Jun 10 21:15:02 whse-work: yes Jun 10 21:15:11 :) Jun 10 21:15:15 building now.. Jun 10 21:33:54 hello Jun 10 21:34:25 Jay7: looking at initramfs right now, I see it has been polluted by some empty dirs Jun 10 21:34:52 now we have even /etc/device_table and /etc/version :/ Jun 10 21:35:16 I'll clean it out (again) soon Jun 10 21:35:42 now and then some metadata changes forcefully populate the images Jun 10 21:35:54 with their cruf Jun 10 21:38:22 happily size is still under control Jun 10 21:38:23 -rw-r--r-- 1 andrea users 81K Jun 10 23:01 Angstrom-initramfs-kexecboot-klibc-image-eglibc-ipk-v2011.06-poodle.rootfs.cpio.gz Jun 10 21:38:23 -rw-r--r-- 1 andrea users 57K Jun 10 23:01 Angstrom-initramfs-kexecboot-klibc-image-eglibc-ipk-v2011.06-poodle.rootfs.cpio.lzma Jun 10 21:52:03 Jay7: udev cleanings pushed. Now Zaurus uses default 1.71 Jun 10 21:52:40 (I still aim to get rid of udev sooner or later...) Jun 10 21:53:20 ouch.. 'aim at getting rid' sounds more english Jun 10 21:59:26 lemme guess, I needed udev huh :p Jun 10 21:59:59 no no, only for the rootfs Jun 10 22:00:22 devtmpfs + mdev sounds promising Jun 10 22:00:41 and lightweight Jun 10 22:01:16 how would you pack udev in the 57k cpio ? :p Jun 10 22:04:55 ant__: nice Jun 10 22:05:36 well.. Jun 10 22:05:59 ant__: should I push changes I made to master or may be to another branch? Jun 10 22:06:12 go for master Jun 10 22:07:36 pushing now Jun 10 22:07:39 kexecboot: jay4mail master * rv0.5-172-g854aa92 / (fb.c fb.h res/theme.h rgb.c rgb.h rgbtab.h xpm.c): Jun 10 22:07:39 kexecboot: Rewrite colors and xpm images processing code Jun 10 22:07:39 kexecboot: Image storage format was changed to use uint32_t packed RGBA. Jun 10 22:07:39 kexecboot: FB and XPM processing code was adopted and optimized. Jun 10 22:07:39 kexecboot: jay4mail master * rv0.5-175-g2e6c040 /res/theme.h: Make icon pad larger Jun 10 22:07:39 kexecboot: jay4mail master * rv0.5-171-g4ee0416 /kexecboot.c: Remove mount point from menu's kernelpath (label) Jun 10 22:07:40 kexecboot: jay4mail master * rv0.5-170-g4686a76 /kexecboot.c: Jun 10 22:07:40 kexecboot: Rewind log to top on exit from log view Jun 10 22:07:41 kexecboot: This should make log view usable on devices with 2 buttons only (DOWN Jun 10 22:07:41 kexecboot: and SELECT). Jun 10 22:07:42 kexecboot: jay4mail master * rv0.5-174-g945e0d4 /gui.c: Draw frame around selected item in FB UI Jun 10 22:07:46 kexecboot: jay4mail master * rv0.5-173-g9023987 / (fb.c gui.c util.h): Remove obsolete uint{8,16,32} definitions from util.h Jun 10 22:07:46 kexecboot: jay4mail master * rv0.5-176-gf38f07d / (gui.c gui.h kexecboot.c): Clear screen on quit from FB UI Jun 10 22:10:15 ant__: I've tested this all on x86 Jun 10 22:10:28 but as you know.. arm may have issues :) Jun 10 22:10:38 I'll try soon Jun 10 22:11:13 I'm answering max mailing (klibc) Jun 10 22:13:47 ant__: I hope vfat and jffs will go upstream :) Jun 10 22:14:06 btw, ask him about ubifs detection in fstype ;) Jun 10 22:18:12 heh Jun 10 22:18:26 this time it looks like patch goes upstream Jun 10 22:18:35 (jffs2 + vfat) Jun 10 22:22:26 btw, I've understand how to deal with ULONGLONG_MAX vs ULLONG_MAX Jun 10 22:22:45 #ifndef ULLONG_MAX Jun 10 22:22:55 #define ULLONG_MAX ULONGLONG_MAX Jun 10 22:22:57 #endif Jun 10 22:23:17 a bit hacky but should work Jun 10 22:24:31 hmm.. didnt wait for usb.. http://pastie.org/private/6pactjec8y6exan8lhimra Jun 10 22:25:05 whse-work: try to increase --enable-delay value Jun 10 22:25:47 hmm Jun 10 22:25:57 that's common problem now :( Jun 10 22:26:02 right Jun 10 22:26:13 well, USE_DELAY is 1 in the config.status Jun 10 22:26:22 looking for what it thought to wait.. Jun 10 22:26:43 ,,, Jun 10 22:26:46 btw, check for /dev/input/* devices Jun 10 22:26:49 use delay = 1.. Jun 10 22:26:51 in your initramfs Jun 10 22:27:02 its not there.. Jun 10 22:27:13 /dev/event*? Jun 10 22:27:13 remember, headless unit. Jun 10 22:27:26 hmm, no.. but I an add it. Jun 10 22:27:28 ah.. but then you can't control it.. Jun 10 22:28:09 'splain Jun 10 22:28:36 kexecboot listen for /dev/input/event* or /dev/event* Jun 10 22:28:47 ah... Jun 10 22:28:56 and that matters for headless.. why ? Jun 10 22:28:58 i.e. you can't use menu from ssh Jun 10 22:29:11 I have placeholders for that code Jun 10 22:29:16 but no real code now Jun 10 22:29:18 it doesnt have the stuff in it to use ssh Jun 10 22:29:47 but if you just with to boot first kernel then you may try to live w/o input devices Jun 10 22:29:57 should I be using mknod .. ? Jun 10 22:30:31 either way, it's not having time to actually catch the usb drives.. Jun 10 22:30:35 no, it does checking for event device capabilities Jun 10 22:30:54 just use --enable-delay=2 or 3 Jun 10 22:31:13 i beleive when i ran the command.. i did --enable-delay=15 Jun 10 22:31:13 one of Zauruses have it set to 2 to wait for microdrive Jun 10 22:31:26 because most of the atached usb are on the other side of a hub.. Jun 10 22:31:36 pogoplugs have them built in.. Jun 10 22:31:36 then it should wait 15 seconds before scanning devices Jun 10 22:31:43 right... Jun 10 22:32:01 but I can't find any such mention of that face in config.status that configure produced Jun 10 22:32:15 check config.h Jun 10 22:32:21 there should be define Jun 10 22:32:28 So, I need a /dev/event*? Jun 10 22:32:29 USE_DELAY iirc Jun 10 22:32:38 no, it should work w/o Jun 10 22:32:50 use_delay 1 Jun 10 22:32:59 wtf, i sat you to 15.. Jun 10 22:33:04 * whse-work smacks Jun 10 22:33:27 * whse-work re-makes Jun 10 22:34:05 although I will have to drive home and power-cycle to try again. Jun 10 22:35:11 don't forget about --enable-timeout Jun 10 22:35:24 well, I hope delay will help Jun 10 22:35:29 ditto Jun 10 22:35:36 hopefully it actually catchs this time.. Jun 10 22:35:42 how 1=15 idk. Jun 10 22:36:00 good up til that act though Jun 10 22:39:53 * Jay7 -> sleep Jun 10 22:43:45 I sent you copy of the mail Jun 10 22:52:41 got it and read Jun 10 22:53:10 now actually sleep Jun 10 23:00:39 good night ;) Jun 10 23:24:16 http://pastie.org/private/pvacceqwj8j2cirbdvoloa Jun 10 23:24:26 well, i dont think it likes not having a tty? Jun 10 23:24:32 found the drives though.. Jun 10 23:27:30 http://paste.debian.net/119493/ Jun 10 23:27:38 even found the boot.cfg :) Jun 10 23:27:42 ^^ this was the minimalistic one Jun 10 23:28:24 did you enable uinput in kernel? Jun 10 23:28:44 uinput? Jun 10 23:29:27 << obvious answer Jun 10 23:29:55 what section :p Jun 10 23:30:12 uessing input device support Jun 10 23:30:23 sorry, thi sis for userspace Jun 10 23:30:39 mk Jun 10 23:30:54 check for CONFIG_INPUT=y Jun 10 23:30:55 so, what do i need to make it happy, or get it to understand ttyS0 is the tty... Jun 10 23:31:08 its on.. Jun 10 23:31:17 generic input = on Jun 10 23:31:23 (in make menuconfig) Jun 10 23:31:31 /dev/tty c 662 0 5 5 0 - - - Jun 10 23:31:37 in your device-table Jun 10 23:31:48 device.. table.. Jun 10 23:31:53 or devtmpfs activated in kernel Jun 10 23:31:55 sorry, not *that* kernel aware Jun 10 23:32:08 pretty sure that is activated.. but ill double check Jun 10 23:32:24 perhaps event interface? Jun 10 23:32:48 this is for kb/touchscreen input Jun 10 23:32:58 right Jun 10 23:33:03 so, add keyboard? Jun 10 23:33:11 you should have compiled in kernel the driver for your serial console Jun 10 23:33:20 yeah, its in there Jun 10 23:33:25 but it doesnt seem to like it. Jun 10 23:35:27 do you have a correct kernel cmdline? Jun 10 23:35:49 console=ttyS0,115200 Jun 10 23:36:04 what else do i need? Jun 10 23:36:44 does the console work with normal kernel? Jun 10 23:36:52 yup.. Jun 10 23:36:59 just isnt recognized by kexecboot Jun 10 23:37:15 http://paste.debian.net/119493/ Jun 10 23:37:26 those devices are needed Jun 10 23:38:02 are you running stand-alone or in the initramfs now? Jun 10 23:38:05 so pre-populate node /dev/tty ? Jun 10 23:38:10 initramfs Jun 10 23:38:17 ok, populate the cpio Jun 10 23:38:19 it doesnt recognize it in standalone either Jun 10 23:39:12 so i need /dev/tty Jun 10 23:39:22 and console.. to be safe.. Jun 10 23:39:36 either you populate it by hand or you let devtmpfs do this job Jun 10 23:39:41 thats Jun 10 23:39:43 hmm Jun 10 23:39:54 well it's auto recognizing all the drives, they arent populated.. Jun 10 23:40:02 I've tested both and there is no speed diff Jun 10 23:41:06 yeah, i'm just saying Jun 10 23:41:18 added tty to the initramfs Jun 10 23:41:21 ttyS0 was already there Jun 10 23:42:00 re-gen uImage. Jun 10 23:42:56 gah. have to go for now. Jun 10 23:42:58 shall return Jun 10 23:43:57 try this Jun 10 23:43:58 http://paste.debian.net/119494/ Jun 10 23:44:21 kexecboot will destroy and recreate the device nodes, though Jun 10 23:44:54 + can't open directory '/dev/input': No such file or directory Jun 10 23:44:54 and nothing.. again Jun 10 23:45:00 remember devtmpfs *must* be mounted by hand in the case of initramfs Jun 10 23:45:08 hrmm Jun 10 23:45:10 g2g Jun 10 23:45:22 we trested bith way and there was no significant advantage Jun 10 23:45:27 bye Jun 10 23:46:04 /dev/input d 755 0 0 - - - - - Jun 10 23:46:04 /dev/input/event c 660 0 0 13 64 0 1 8 Jun 10 23:46:09 is what you lack Jun 10 23:47:10 and FS ext4dev is not supported by kernel Jun 10 23:47:30 again, compile all in kernel, not as module Jun 10 23:48:08 good night Jun 11 01:49:10 hmmm.... Jun 11 01:49:23 even with input/event it still blech Jun 11 02:19:35 cfg.parser.c, doesnt account for ttySX in set_ttydev Jun 11 02:19:41 THAT is why it fails. **** ENDING LOGGING AT Sat Jun 11 02:59:57 2011