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