**** BEGIN LOGGING AT Sun Dec 18 02:59:57 2011 Dec 18 05:41:16 I m looking for an initrd file to use with Lucid ARMEL .. been reading up all over the net .. Dec 18 05:41:33 let me ask a dumb question .. does the initrd file have to change everytime I build the kernel along with zImage? Dec 18 05:41:45 if not where can I find a static one for Ubuntu Lucid? Dec 18 12:08:28 can folks advise on whats the best way to create an initrd ... Dec 18 12:09:16 update-initramfs from the initramfs-tools package Dec 18 12:09:23 update-initramfs Dec 18 12:09:29 :) Dec 18 12:12:45 sorry I don't get it .. I m cross compiling for ARM I m done with the compilation and have a bzImage Dec 18 12:12:56 update-initramfs man seems to suggest its going to use kernel image from /boot Dec 18 12:14:08 I don't know any arm devices that use bzimages Dec 18 12:14:18 qemu Dec 18 12:14:52 boot with noinitrd into qemu, then generate your initrd Dec 18 12:19:54 lilstevie, can you elaborate a bit more .. I tried googling for noinitrd .. dont find any relevant examples Dec 18 12:20:21 add noinitrd to the commandline Dec 18 12:20:30 qemu-system-arm -M vexpress-a9 -cpu cortex-a9 -kernel ./vmlinuz -hda ubuntu-arm.img -m 256 -append "noinitrd root=/dev/sda mem=256M devtmpfs.mount=0 rw init=/init" Dec 18 12:20:30 yeah bzImage is x86 only Dec 18 12:20:40 phh: thats what I thought Dec 18 12:21:26 if its qemu, you dont need that Dec 18 12:21:27 make ARCH=arm CROSS_COMPILER=arm-linux-gnueabi- bzImage modules is that the wrong way to compile for arm? Dec 18 12:21:28 just omit the initrd from the qemu call Dec 18 12:21:28 and properly set rootdelay on the kernel cmdline Dec 18 12:21:37 or rootwait ? Dec 18 12:22:27 ogra, without initrd it panics and says cuold not load rootfs Dec 18 12:22:41 CodeWar: thats why you rootdelay Dec 18 12:22:54 lilstevie, thanks let me try that Dec 18 12:22:56 CodeWar: well perhaps you don't have a rootfs on /dev/sda, or because it didn't waited enough, or you don't have proper filesystem Dec 18 12:22:57 or or or or Dec 18 12:23:06 also make ARCH=arm CROSS_COMPILER=arm-linux-gnueabi- Dec 18 12:23:37 phh, got my image using instructions from https://wiki.ubuntu.com/ARM/RootfsFromScratch Dec 18 12:26:17 ugh, i really need to remove that page Dec 18 12:27:06 ogra_, thats not correct? heck I spent 4 ohours trying to rerun those instructions Dec 18 12:27:43 ogra_: probably even add "Depreciated" to that page Dec 18 12:27:45 CodeWar, that page is obsolete Dec 18 12:27:51 so rootwait doesn't help Dec 18 12:28:04 CodeWar: what about pasting the error ? Dec 18 12:28:11 it's not really easy to just guess Dec 18 12:28:14 lilstevie, no, it will get re-written once rsalveti` uploaded the docs for doing what rootstock did with live-build Dec 18 12:28:23 ah ok Dec 18 12:28:34 then that page will just be a forwarder to the live-build docs Dec 18 12:28:52 essentially i wouldnt expect anything built with rootstock to work anymore Dec 18 12:28:57 ogra, what part of that page is incorrect? Dec 18 12:29:03 ooops yes I built my .img using rootstock Dec 18 12:29:05 CodeWar, all :P Dec 18 12:29:09 its totally outdated Dec 18 12:29:11 Grrrrrrr!!!!!! Dec 18 12:29:23 use an ubuntu-core tarball instaed Dec 18 12:29:24 well I learnt a lot so .. Dec 18 12:29:42 configure it in a chroot, then roll an image from it Dec 18 12:30:01 thats currently the best way to get a custom rootfs Dec 18 12:30:54 ogra, sorry didnt register its been a long day ... is there another wiki Dec 18 12:31:12 to run arm chroots on x86, just install qemu-user-static Dec 18 12:31:36 ogra, No I need full system emulation not the static one Dec 18 12:32:00 CodeWar: he said use that to roll the image :) Dec 18 12:32:05 not for rolling your image Dec 18 12:32:29 ok clearly i m light years behind you guys .. throw me some terms I can look them up Dec 18 12:32:38 even easier though, just use the vexpress installer images Dec 18 12:32:56 (vexpress is the replacement for the dropped versatile crap) Dec 18 12:32:58 ogra, the oneiric one ? Dec 18 12:33:08 right Dec 18 12:33:11 yes I figured that let me see hwat was the problem with that I tried earlier today Dec 18 12:33:25 get the vmlinuz and initrd from the archive, and just boot qemu with it Dec 18 12:33:44 (and have an empty big enough .img file to install into) Dec 18 12:34:13 ogra, http://ports.ubuntu.com/ubuntu-ports/dists/oneiric/main/installer-armel/current/images/linaro-vexpress/netboot/ right? Dec 18 12:34:19 yep Dec 18 12:34:45 and an empty img file thats big enough you can install to it Dec 18 12:34:52 use qemu-img to create it Dec 18 12:34:53 I can give it another try if you like but it didnt work earlier today .. created a raw qemu image Dec 18 12:35:05 after 15 mins it complainied it could not detect drives Dec 18 12:35:28 hmm, might be that vexpress only knows cretaind kinds of drives Dec 18 12:35:36 like SD cards for example Dec 18 12:35:46 it failed at the partitioner Dec 18 12:35:50 yes Dec 18 12:35:56 what i said :) Dec 18 12:36:04 yep ;-) Dec 18 12:36:14 might be needed that you give it the img as SD card in your commandline Dec 18 12:36:48 -sda . . I could try but since I have your attention I m hoping to learn to do this using first princple Dec 18 12:37:02 build bzImage build initrd and boot .. don't knwo how to do the latter Dec 18 12:37:47 is there an easy way to know if it detected that drive using -sda without waiting for it to reach the partitioner Dec 18 12:43:35 at a highlevel it appears this is the way to go right? http://www.aurel32.net/info/debian_arm_qemu.php Dec 18 12:52:05 heres the thing even if I used the vmlinuz and initrd from oneiric installer.. I m going to replace vmlinuz with my built kernel eventually Dec 18 12:52:19 I suspect I d have to generate my own initrd too? Dec 18 13:06:55 same problem .. no disk drive detected Dec 18 13:06:56 qemu-system-arm -M vexpress-a9 -cpu cortex-a9 -kernel ./vmlinuz -initrd ./initrd.gz -hda hda.img -append "root=/dev/ram" Dec 18 13:07:11 these are kernel and initrd from oneiric installers Dec 18 13:07:45 well, you might need to use something else than -hda here Dec 18 13:08:01 check the bootmessages of the VM Dec 18 13:08:03 is this something thats been tested on qemu before? Dec 18 13:08:08 see if it loads an MMC driver Dec 18 13:08:20 i think the linaro guys used it before Dec 18 13:08:41 * ogra personally hasnt touched qemu since over a year .... no need for that Dec 18 13:08:53 *especially* in VM mode Dec 18 17:01:16 ogra_: Have you seen this? http://rhombus-tech.net/ Would be cool to get their kernel into universe. Make it as easy as possible for their followers to roll their own Ubuntu-supported distro onto. Dec 18 17:02:10 http://rhombus-tech.net/allwinner_a10/orders/ Dec 18 22:32:49 https://wiki.ubuntu.com/ARM/RootfsFromScratch at the bottom of that page is a prebuilt image (.img and vmlinuz) Dec 18 22:33:15 it works great but if I replace vmlinuz with my own build it says cannot find rootfs.. my question here is, where can I find the .config for that kernel Dec 18 22:58:22 better yet do we know what drivers need to be compiled into the kernel to have it detect qemu disk drives Dec 18 23:06:06 scratch everything I said so far ................ <-----------------> Dec 18 23:06:30 what I really need to find out from you guys is how are we compiling ubuntu kernel for ARM targets, what is the actual command I m on an x86_64 box **** ENDING LOGGING AT Mon Dec 19 02:59:58 2011