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