/srv/irclogs.ubuntu.com/2011/12/18/#ubuntu-arm.txt

CodeWarI m hoping to run  oneiric on qemu -M versatile but couldn't find the corresponding kernel, can somebody point me to one02:51
=== doko_ is now known as doko
=== Crisco is now known as Crismas
CodeWarI m looking for an initrd file to use with Lucid ARMEL .. been reading up all over the net ..05:35
CodeWarlet me ask a dumb question .. does the initrd file have to change everytime I build the kernel along with zImage?05:36
CodeWarif not where can I find a static one for Ubuntu Lucid?05:36
=== nrirclog583 is now known as nrirclog
=== fgau_ is now known as fgau
CodeWarcan folks advise on whats the best way to create an initrd ...12:03
ograupdate-initramfs from the initramfs-tools package12:03
lilstevieupdate-initramfs12:03
lilstevie:)12:04
CodeWarsorry I don't get it .. I m cross compiling for ARM I m done with the compilation and have a bzImage12:07
CodeWarupdate-initramfs man seems to suggest its going to use kernel image from /boot12:07
lilstevieI don't know any arm devices that use bzimages12:08
CodeWarqemu12:08
lilstevieboot with noinitrd into qemu, then generate your initrd12:09
CodeWarlilstevie,  can you elaborate a bit more .. I tried googling for noinitrd .. dont find any relevant examples12:14
lilstevieadd noinitrd to the commandline12:14
CodeWarqemu-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
phhyeah bzImage is x86 only12:15
lilsteviephh: thats what I thought12:15
ograif its qemu, you dont need that12:15
CodeWarmake ARCH=arm CROSS_COMPILER=arm-linux-gnueabi-  bzImage modules       is that the wrong way to compile for arm?12:15
ograjust omit the initrd from the qemu call12:16
ograand properly set rootdelay on the kernel cmdline12:16
phhor rootwait ?12:16
CodeWarogra, without initrd it panics and says cuold not load rootfs12:17
lilstevieCodeWar: thats why you rootdelay12:17
CodeWarlilstevie, thanks let me try that12:17
phhCodeWar: well perhaps you don't have a rootfs on /dev/sda, or because it didn't waited enough, or you don't have proper filesystem12:17
phhor or or or12:17
lilsteviealso make ARCH=arm CROSS_COMPILER=arm-linux-gnueabi-12:17
CodeWarphh,  got my image using instructions from https://wiki.ubuntu.com/ARM/RootfsFromScratch12:18
ograugh, i really need to remove that page12:20
CodeWarogra_,  thats not correct? heck I spent 4 ohours trying to rerun those instructions12:21
lilstevieogra_: probably even add "Depreciated" to that page12:22
ograCodeWar, that page is obsolete12:22
CodeWarso rootwait doesn't help12:22
phhCodeWar: what about pasting the error ?12:22
phhit's not really easy to just guess12:22
ogralilstevie, no, it will get re-written once rsalveti` uploaded the docs for doing what rootstock did with live-build12:22
lilstevieah ok12:22
ograthen that page will just be a forwarder to the live-build docs12:23
=== rsalveti` is now known as rsalveti
ograessentially i wouldnt expect anything built with rootstock to work anymore12:23
CodeWarogra, what part of that page is incorrect?12:23
CodeWarooops yes I built my .img using rootstock12:23
ograCodeWar, all :P12:23
ograits totally outdated12:23
CodeWarGrrrrrrr!!!!!!12:23
ogrause an ubuntu-core tarball instaed12:23
CodeWarwell I learnt a lot so ..12:23
ograconfigure it in a chroot, then roll an image from it12:24
ograthats currently the best way to get a custom rootfs12:24
CodeWarogra,  sorry didnt register its been a long day ...  is there another wiki12:25
ograto run arm chroots on x86, just install qemu-user-static12:25
CodeWarogra, No I need full system emulation not the static one12:26
lilstevieCodeWar: he said use that to roll the image :)12:26
ogranot for rolling your image12:26
CodeWarok clearly i m light years behind you guys .. throw me some terms I can look them up12:27
ograeven easier though, just use the vexpress installer images12:27
ogra(vexpress is the replacement for the dropped versatile crap)12:27
CodeWarogra,  the oneiric one ?12:27
ograright12:27
CodeWaryes I figured that let me see hwat was the problem with that I tried earlier today12:27
ograget the vmlinuz and initrd from the archive, and just boot qemu with it12:27
ogra(and have an empty big enough .img file to install into)12:28
CodeWarogra, http://ports.ubuntu.com/ubuntu-ports/dists/oneiric/main/installer-armel/current/images/linaro-vexpress/netboot/   right?12:28
ograyep12:28
ograand an empty img file thats big enough you can install to it12:29
ogrause qemu-img to create it12:29
CodeWarI can give it another try if you like but it didnt work earlier today .. created a raw qemu image12:29
CodeWarafter 15 mins it complainied it could not detect drives12:29
ograhmm, might be that vexpress only knows cretaind kinds of drives12:30
ogralike SD cards for example12:30
CodeWarit failed at the partitioner12:30
ograyes12:30
ograwhat i said :)12:30
CodeWaryep ;-)12:30
ogramight be needed that you give it the img as SD card in your commandline12:30
CodeWar-sda . . I could try but since I have your attention I m hoping to learn to do this using first princple12:31
CodeWarbuild bzImage build initrd and boot .. don't knwo how to do the latter12:31
CodeWaris there an easy way to know if it detected that drive using -sda without waiting for it to reach the partitioner12:32
CodeWarat a highlevel it appears this is the way to go right? http://www.aurel32.net/info/debian_arm_qemu.php12:38
CodeWarheres the thing even if I used the vmlinuz and initrd from oneiric installer.. I m going to replace vmlinuz with my built kernel eventually12:46
CodeWarI suspect I d have to generate my own initrd too?12:46
CodeWarsame problem .. no disk drive detected13:01
CodeWarqemu-system-arm -M vexpress-a9 -cpu cortex-a9  -kernel ./vmlinuz -initrd ./initrd.gz  -hda hda.img -append "root=/dev/ram"13:01
CodeWarthese are kernel and initrd from oneiric installers13:01
ograwell, you might need to use something else than -hda here13:02
ogracheck the bootmessages of the VM13:02
CodeWaris this something thats been tested on qemu before?13:02
ograsee if it loads an MMC driver13:02
ograi think the linaro guys used it before13:02
* ogra personally hasnt touched qemu since over a year .... no need for that13:03
ogra*especially* in VM mode13:03
GrueMasterogra_: 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:55
GrueMasterhttp://rhombus-tech.net/allwinner_a10/orders/16:56
CodeWarhttps://wiki.ubuntu.com/ARM/RootfsFromScratch    at the bottom of that page is a prebuilt image (.img and vmlinuz)22:27
CodeWarit 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 kernel22:27
CodeWarbetter yet do we know what drivers need to be compiled into the kernel to have it detect qemu disk drives22:52
CodeWarscratch everything I said so far ................ <----------------->23:00
CodeWarwhat 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 box23:00

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!