**** BEGIN LOGGING AT Sun Aug 28 02:59:57 2011 Aug 28 03:00:00 did you guys know you can catch signals in bash?! Aug 28 03:00:00 lol Aug 28 03:01:07 dtzWill, yup...I love Bash.... Aug 28 03:01:11 however... Aug 28 03:01:19 during boot I don't have it :( Aug 28 03:01:36 just busybox. Aug 28 03:01:40 oh, i'm in the world of X, not booting goodness :) Aug 28 03:02:52 gpio-keys Aug 28 03:02:54 found that so far Aug 28 03:02:57 still looking... Aug 28 03:03:41 hmmm.... Aug 28 03:03:48 I don't have grep or cat Aug 28 03:09:14 actually I do.. Aug 28 03:17:04 bah gotta rebuild armv6 Aug 28 03:17:04 >.< Aug 28 03:17:13 ...stupid pixi Aug 28 03:17:14 :P Aug 28 03:17:24 ka6sox, I am pouring through sysfs to try and find something that changes when I hit vol down Aug 28 03:17:26 no luck so far Aug 28 03:19:54 on tp ? Aug 28 03:20:05 yeah Aug 28 03:20:22 we need something in sysfs that ka6sox can check for during his initramfs startup Aug 28 03:20:27 to get dual boot working Aug 28 03:20:44 ah Aug 28 03:21:47 wow people are apparently still using and updating my DOOM example with touchpad Aug 28 03:23:51 gahhh anyone have a working wIDK for armv6? :/ Aug 28 03:25:08 dies on glib, TYPICAL Aug 28 03:29:44 line 324099 of the kernel for tp has the volume down GPIO assignment .. Aug 28 03:29:57 what is it? Aug 28 03:30:15 104 .. 103 is vol up .. Aug 28 03:30:23 let me try to see where it maps in sysfs or if it shows up there Aug 28 03:30:37 that doesn't match up with the data I pulled yesterday Aug 28 03:30:46 what I pulled yesterday said 114 for vol down Aug 28 03:32:10 uhoh Aug 28 03:32:25 uhoh what? Aug 28 03:33:03 the differences! Aug 28 03:33:20 http://www.webos-internals.org/wiki/HP_TP_Key_mapping Aug 28 03:33:25 that's everything I pulled yesterday Aug 28 03:33:39 or at least most of it Aug 28 03:35:38 YAY I think i fixed the glib stupidity in the WIDK, or at least hacked around it, confirming again with armv7... Aug 28 03:36:03 (solution was disable optimizations, and in particular don't emit vfp/neon instructions) Aug 28 03:36:12 and since we'll never use the glib itself that seems okay Aug 28 03:36:27 in a bit i'll see if optimizations work without the vfp/neon, but diasbling /both/ seems to do the trick Aug 28 03:36:33 thank god, that was annoying. Aug 28 03:39:18 cryptk, I saw 232 and 249 only Aug 28 03:42:17 hrm Aug 28 03:42:44 232 is the home button Aug 28 03:42:48 are you able to find that one? Aug 28 03:42:59 if so, we can jsut have it mapped to the home button to boot to angstrom for now Aug 28 03:43:02 its sitting in a file Aug 28 03:43:05 until we can find something else Aug 28 03:43:13 it doesnt' change Aug 28 03:43:19 thats no good if it doesnt' change Aug 28 03:46:12 root@webos-device:/sys/devices/platform/gpio-keys/input/input0# cat gpio_wake_ke Aug 28 03:46:12 ys Aug 28 03:46:26 232 249 Aug 28 03:46:29 yeah Aug 28 03:46:40 I I even tried changing that file to see if I could change the wake keys... no go Aug 28 03:46:42 I havent' found anything that *actually* changes. Aug 28 03:47:51 pressing vol up and down does spit some data into dmesg though Aug 28 03:47:56 and home Aug 28 03:48:07 [43827.771493] gpio-keys: core navi button pressed Aug 28 03:48:07 [43827.961501] gpio-keys: core navi button released Aug 28 03:48:07 [43828.851499] gpio-keys: volume down button pressed Aug 28 03:48:07 [43829.021518] gpio-keys: volume down button released Aug 28 03:48:07 [43829.881494] gpio-keys: volume up button pressed Aug 28 03:48:08 [43830.051496] gpio-keys: volume up button released Aug 28 03:48:13 core navi button = home Aug 28 03:50:34 so thats dmesg | grep gpio Aug 28 03:51:03 well, I just did dmesg after hitting them Aug 28 03:52:21 but it means that they are processed on the kernel level... so they /should/ be in sysfs somewhere you would think Aug 28 03:53:56 those are printk's Aug 28 03:55:51 I could look in the source... Aug 28 03:55:53 and find it. Aug 28 03:58:07 cryptk, I'd jsut grep thru the entire sysfs tree till you found 114 Aug 28 04:00:04 tried... didn't find it Aug 28 04:01:48 okay let me look @ the source Aug 28 04:02:55 are you guys making sure to document your findings in here Aug 28 04:03:09 it doesnt look like we are logged Aug 28 04:03:16 oh wait ya we are :) Aug 28 04:03:17 Jack87, ya, but yesterday is different than todya Aug 28 04:03:33 ka6sox, yesterday was still today :) Aug 28 04:03:44 just really early today Aug 28 04:03:47 Jack87, ya I know Aug 28 04:03:53 hehe Aug 28 04:04:15 today we are working to implement what we found yesterday Aug 28 04:04:20 so far... nothing to document Aug 28 04:04:52 yay for logs http://logs.nslu2-linux.org/livelogs/wosi-dev/ Aug 28 04:06:04 what's the correct patch invocation to apply the palm kernel patch again? Aug 28 04:06:07 patch -p1? Aug 28 04:06:37 yes Aug 28 04:06:56 if we find that printk, then it may help us to find what is triggering the printk Aug 28 04:08:25 you will need to find the headers for the tenderloin board (aka boardfile) Aug 28 04:09:27 look for tenderloin Aug 28 04:10:09 that should have the defs for the key and its hex code Aug 28 04:20:08 not able to find it so far Aug 28 04:26:17 I am gonna try and just brute it.... Aug 28 04:26:23 copy all of sys to somewhere Aug 28 04:26:35 then hold down vol down while copying it somewhere else Aug 28 04:26:37 then diff them Aug 28 04:26:49 it may come out as hex Aug 28 04:28:57 so i'm lacking a good way to test this myself.... think i'll just push to testing feed >_> Aug 28 04:29:21 (aka i'm announcing i might break things) Aug 28 04:29:33 but doing it that way is just sooo much easier than my own private little testing version Aug 28 04:29:38 grumble that's what the testing feed is for grumble Aug 28 04:29:39 O:) Aug 28 04:30:07 dtzWill, you better /part #webos-internals first Aug 28 04:30:37 scoutcamper: nah, i'll just detach screen and go enjoy my evening with my girl ;) Aug 28 04:30:42 lol Aug 28 04:30:54 PS i want you to pay attention to how i said that Aug 28 04:31:07 as if i enjoying evening with girl still required me to detach Aug 28 04:31:21 dtzWill, leave the rest of us to pick up the pices? bah Aug 28 04:31:24 * ka6sox is glad he is NOT in -internals now. Aug 28 04:31:25 ...anyway i'm just amused at how that might be humorously interpreted Aug 28 04:31:42 scoutcamper: nah, if i actually break things just email me and i'll fix it--if they're broken it's stupid easy shit Aug 28 04:31:48 like a missing file from a commit, etc Aug 28 04:31:58 lol Aug 28 04:32:02 ok Aug 28 04:32:23 go go gadget builder Aug 28 04:32:37 cryptk, can make that happen Aug 28 04:32:44 only thing I have found in the sources so far is +#define VOL_UP_GPIO 103 Aug 28 04:32:44 +#define VOL_DN_GPIO 104 Aug 28 04:34:54 and it looks like the gpio chip is PM8058 Aug 28 04:36:07 i2c to GPIO chip Aug 28 04:38:24 look in tenderloin.c for VOL_DN_GPIO Aug 28 04:41:55 let me actually apply the kernel patch Aug 28 04:42:01 that will be easier than grepping through the diff Aug 28 04:43:33 it will be in arch/asm/asm-msm that you will want to look. Aug 28 04:44:57 yeah Aug 28 04:45:01 looking through it Aug 28 04:45:08 so far haven't ound any info that we don'e already know Aug 28 04:46:21 the printk is probably in that boardfile Aug 28 04:55:49 not able to find it Aug 28 04:57:50 okay Aug 28 04:58:34 ka6sox, can you just spin me one that pivots to the ext2fs for now? Aug 28 04:58:41 we can deal with the keys later Aug 28 05:06:16 okay let me finish this script for creating it. Aug 28 05:06:28 I need to finish some excludes Aug 28 05:12:09 hopefully v0.8.1 fixes that broken push >_> Aug 28 05:48:58 mkimage -A arm -T multi -C none -n 'test-multi-image' -d arch/arm/boot/uImage:/tmp/uRamdisk /tmp/uMulti Aug 28 05:49:19 adjust your names as appropriate Aug 28 05:52:09 jas...lets see if I can make this right Aug 28 05:52:21 cryptk, a question? Aug 28 05:52:28 do you have an ubuntu machine there? Aug 28 05:52:54 either that or add one to your TP. Aug 28 05:59:16 yes I do Aug 28 05:59:33 I am on an ubuntu machine now actually Aug 28 06:00:36 3 step process Aug 28 06:00:41 step 1) Aug 28 06:01:17 copy uImage from /boot into /tmp on ubuntu machine Aug 28 06:01:36 create a tarball of /boot from the TP Aug 28 06:01:50 put that in /tmp on the ubuntu machine Aug 28 06:02:55 done and done Aug 28 06:03:44 install (if not already done) uboot-mkuimage Aug 28 06:03:52 I just did tar czvf boot.tgz -C /boot . to make the tarball Aug 28 06:04:03 fine Aug 28 06:04:17 get that on the ubuntu machine Aug 28 06:04:29 they are Aug 28 06:04:34 and uboot-mkimage is installed Aug 28 06:04:40 so far I am keeping up Aug 28 06:04:55 untar the /boot into /tmp Aug 28 06:05:09 /tmp/ramfs... Aug 28 06:05:10 sorry Aug 28 06:05:15 othwise its a mess. Aug 28 06:05:18 am I leaving the boot.tgz compressed? Aug 28 06:05:25 no Aug 28 06:05:40 yeah, I was typing that while you were saying toe xtract it Aug 28 06:05:48 okay Aug 28 06:05:53 once you get that there... Aug 28 06:05:57 ./dev/ Aug 28 06:05:58 ./dev/console Aug 28 06:05:58 tar: ./dev/console: Cannot mknod: Operation not permitted Aug 28 06:06:01 is that normal? Aug 28 06:06:09 yup Aug 28 06:06:11 ok Aug 28 06:06:16 so far still keeping up Aug 28 06:06:27 an initramfs is a CPIO file Aug 28 06:06:37 it *can* be compressed Aug 28 06:07:06 ok, so I have the uImage, and I have the ramfs dir with same contents as /boot from the TP Aug 28 06:07:13 next step? Aug 28 06:11:22 ka6sox, ? Aug 28 06:12:35 jas...local issue here (kidlet out of bed) Aug 28 06:12:39 ahh Aug 28 06:12:48 I find that ratchet straps are good for that Aug 28 06:24:03 bakc Aug 28 06:24:11 straps installed :D Aug 28 06:24:13 j/k Aug 28 06:24:32 heh Aug 28 06:24:33 in ramfs remove all references to *uImage* Aug 28 06:24:56 done Aug 28 06:25:14 du -sh ramfs Aug 28 06:25:25 6.3M Aug 28 06:26:00 cd ramfs/sbin Aug 28 06:26:34 done Aug 28 06:26:49 change the mount line? Aug 28 06:26:50 vi init Aug 28 06:26:53 yup Aug 28 06:27:04 done Aug 28 06:27:31 check the pivot_root file and make sure that points to where you want. Aug 28 06:27:32 do I need to change this line also? Aug 28 06:27:33 lvm.static lvchange -ay --ignorelockingfailure /dev/mapper/store-root Aug 28 06:28:09 pivot_root is a symlink to ../bin/busybox Aug 28 06:28:14 you aren't going to use that one Aug 28 06:28:31 needs to be /dev/mapper/store-ext2fs Aug 28 06:28:55 ok, both references to store-root have been changed to store-ext2fs Aug 28 06:29:20 verify that symlink to /bin/busybox Aug 28 06:29:32 pivot_root -> ../bin/busybox Aug 28 06:30:00 this is what I"m not sure of Aug 28 06:30:23 it should call init in the realroot Aug 28 06:30:40 (which for that rootfs calls init.sysvinit Aug 28 06:31:24 ka6sox: BTW, we have an influx of people developing for webOS in the main channel now Aug 28 06:32:19 what are they working on? Aug 28 06:33:11 I think it is correct the way it is Aug 28 06:33:21 it will just be using the webOS busybox to do the pivot_root Aug 28 06:33:27 then the boot sequence calls the init Aug 28 06:33:34 right Aug 28 06:33:50 the pivot_root should call init in the new root Aug 28 06:33:53 yep Aug 28 06:34:01 so, how to I wrap this thing up? Aug 28 06:34:16 you need to create a CPIO file for it. Aug 28 06:34:30 then run it thru mkuimage to create uRamdisk. Aug 28 06:34:47 best way to do that? Aug 28 06:35:41 ka6sox: new kernel dev, gentoo guy, and cmake expert Aug 28 06:36:35 rwhitby, nice Aug 28 06:36:50 cryptk, you played with CPIO or is that too old skool? Aug 28 06:36:55 find . | cpio -H newc -o > ../initramfs.cpio Aug 28 06:37:00 that's the way I think I used to do it Aug 28 06:37:00 yup Aug 28 06:37:10 then gzip it to a .igz file Aug 28 06:37:21 lets not do the zip Aug 28 06:37:25 kk Aug 28 06:37:39 the reason is that I am not sure whether the kernel supports that or not. Aug 28 06:38:11 kk Aug 28 06:38:15 well, I have it both ways Aug 28 06:38:26 I have an initramfs.cpio and an initramfs.igz Aug 28 06:40:57 mkimage -A arm -T multi -C none -n test-multi-image -d uImage-2.6.35-palm-tenderloin:initramfs.cpio uImage-F15-angstrom Aug 28 06:41:03 something like that would work right? Aug 28 06:42:32 you have to mkimage the cpio into a uRamdisk first Aug 28 06:42:35 as a single Aug 28 06:42:47 then create the multi after that. Aug 28 06:42:54 how do I do that? Aug 28 06:43:02 I am searching history Aug 28 06:43:04 jasl Aug 28 06:44:53 mkimage -A arm -T single -C none -d initramfs.cpio uRamdisk ??? Aug 28 06:44:56 something like that? Aug 28 06:45:39 -T ramdisk Aug 28 06:47:02 pass that in a -h Aug 28 06:47:08 -T h Aug 28 06:47:15 sorry Aug 28 06:47:19 -T -h Aug 28 06:47:25 that gives you the options. Aug 28 06:47:34 filesystem, firmware, kernel, multi, ramdisk, script, standalone, flat_dt Aug 28 06:47:37 ya Aug 28 06:47:39 thats the one Aug 28 06:47:40 that's where I got the ramdisk from Aug 28 06:47:43 its a ramdisk Aug 28 06:48:02 right...tooo many interruptions today...so my history file is a mess. Aug 28 06:48:24 the outputfile is uRamdisk. Aug 28 06:48:40 and the input is the cpio file Aug 28 06:48:44 yep Aug 28 06:48:45 done Aug 28 06:48:57 then I spun the multi image using the uImage kernel and the uRamdisk file Aug 28 06:49:05 yup Aug 28 06:49:20 No filesystem could mount root, tried: ext3 ext2 vfat fuseblk Aug 28 06:49:20 <0>Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0) Aug 28 06:50:01 where are you seeinghat? Aug 28 06:50:13 klog Aug 28 06:50:43 jas... Aug 28 06:50:51 we may have the names wrong. Aug 28 06:50:59 and that is very important. Aug 28 06:51:58 that means we didn't get the multi correct Aug 28 06:52:13 there are 3 parts Aug 28 06:52:27 uImage, uRamdisk, uMulti Aug 28 06:52:38 and that last one was the hardest for me to create. Aug 28 06:53:20 #!/bin/bash Aug 28 06:53:20 cd ramfs Aug 28 06:53:20 find . | cpio -H newc -o > ../initramfs.cpio Aug 28 06:53:20 cd .. Aug 28 06:53:20 mkimage -A arm -T ramdisk -C none -d initramfs.cpio uRamdisk Aug 28 06:53:21 mkimage -A arm -T multi -C none -n test-multi-image -d uImage-2.6.35-palm-tenderloin:uRamdisk uMulti Aug 28 06:53:28 that's what I worked up to create them Aug 28 06:53:42 how big is that CPIO file? Aug 28 06:53:54 6M Aug 28 06:54:07 ramfs is 6.3M the cpio is 6M Aug 28 06:55:41 can you email me that klog please? Aug 28 06:55:56 let me re-point it at webOS and try that first Aug 28 06:56:02 see if I can at least get this thing booting webOS Aug 28 06:57:05 ok, mine won't even boot webOS Aug 28 06:57:07 same problem Aug 28 06:59:15 wtheck Aug 28 06:59:47 let me copy out my history file and clean it up Aug 28 07:00:04 so I can get the thing simpler Aug 28 07:01:21 there has got to be a step I am missing somewhere... Aug 28 07:01:52 http://manpages.ubuntu.com/manpages/natty/man1/mkimage.1.html Aug 28 07:02:00 thats what I used as my manpage for this Aug 28 07:02:30 it has to be in the CPIO Aug 28 07:03:14 you ran the CPIO from inside /tmp/ramfs it looks like Aug 28 07:03:29 yeah, but I had it creating the file outside of it Aug 28 07:03:40 yes ../blah Aug 28 07:03:59 I must be missing something on teh CPIO Aug 28 07:06:25 rwhitby: preware patch to fix row cutoffs (i just spent way too much reading the Mojo source for such a simple fix…) http://pastie.org/private/d7wlse32h0achqokso9jwq Aug 28 07:08:09 how did you do the cpio? Aug 28 07:09:20 Xuzz: "courtesy of Xuzz" for the changelog? Aug 28 07:09:25 chpwn Aug 28 07:10:36 same way but called it ramdisk Aug 28 07:11:10 I don't remember what header I put on it though. Aug 28 10:07:21 ka6sox, I still can't get this damn thing to boot Aug 28 10:41:28 ok, rwhitby you have embedded systems experience... mind taking a look? Aug 28 10:41:47 the mount as part of the /sbin/init is failing Aug 28 10:42:04 even when trying to have it mount the normal store-root Aug 28 11:01:08 cryptk: is /proc mounted? Aug 28 11:02:47 I think I may know what is causing it Aug 28 11:03:28 CONFIG_BLK_DEV_INITRD=y and CONFIG_INITRAMFS_SOURCE="" Aug 28 11:03:31 in the kernel config Aug 28 11:03:41 that means I need to be doing this as an INITRD not an initramfs I think Aug 28 11:06:48 brb Aug 28 11:26:49 rwhitby, I think I just got it to work... Aug 28 11:27:24 I just built a uImage with the recovery kernel and an initrd... Aug 28 11:27:36 which means we can now memboot even if the person trashes their /boot Aug 28 11:28:58 and I /think/ I just did a pivot_root to angstrom... Aug 28 11:29:04 rebooting and checkign log files to confirm Aug 28 11:30:59 cryptk: installer kernel+initrd doesn't need /boot Aug 28 11:31:23 but yeah, doing it with a real kernel and rootfs is good Aug 28 11:32:21 damnit... angstrom has /var/log mapped to a volatile location Aug 28 11:32:26 got rid of that... trying it again Aug 28 11:32:33 lets see if we get some log files in the angstrom partition Aug 28 11:33:19 I don't expect it to be a successful boot... but I expect it to be doing SOMETHING at least Aug 28 11:33:25 errors lead to resolutions Aug 28 11:34:00 the TP is at least not trying to load luna... which is good... Aug 28 11:36:00 YES!!!! Aug 28 11:36:06 rwhitby, there are Xorg log files present! Aug 28 11:56:15 ok, lets see how far along I can get on this at work... Aug 28 11:57:54 AFAICT... behing that pretty static HP logo... Angstrom is indeed running... Aug 28 12:02:43 rwhitby, confirmed.... angstrom is definitely running... there isn't much in the logs... but I was able to install cron in the chroot and have it touch files and such... just enough to show that there is life behind that HP logo Aug 28 12:02:47 now the fun begins Aug 28 16:12:29 cryptk|offline, ka6sox: YAY it booted ^.^ Aug 28 16:12:37 and prelim support for X? \o/ Aug 28 17:19:07 cryptk|offline, ka6sox: does your angstrom work presentl live somewhere? your WIP initrd, etc? Aug 28 17:59:23 anyone wanna test my experimental-ish framebuffer-blitting x server? O:) Aug 28 17:59:34 should do everything the current one does, except much much faster Aug 28 17:59:59 oh and only supports landscape on boot, althouhg you can change the rotation with xrandr (but the rotation will be done in software..so...don't do that :P) Aug 28 18:00:32 but i'm curious if y'all find it fast enough/etc to justify chasing down (or maybe sacrificing) misc other bugs... Aug 28 18:00:38 and/or fun to play with ^.^ Aug 28 18:00:44 well if you get bored, check it out here: http://ompldr.org/vYTNmMQ Aug 28 18:03:26 one idea (I think rwhitby suggestd this) is some kind of hybrid that uses the goodness of the above-linked xsdl as a fast-path optimization when it's applicible Aug 28 18:03:31 and otherwise uses GL Aug 28 18:04:11 and from our discussions/him pushing on me not arbitrarily limiting things for speed ;), i believe we hashed out something that'd work. Aug 29 02:30:12 dtzWill, pong **** ENDING LOGGING AT Mon Aug 29 02:59:57 2011