* [Buildroot] Buildroot 2011.02 images won't load on Qemu with qemu_arm_versatile_defconfig @ 2011-04-26 9:40 Dwi Sasongko Supriyadi 2011-04-26 9:46 ` Peter Korsgaard 0 siblings, 1 reply; 8+ messages in thread From: Dwi Sasongko Supriyadi @ 2011-04-26 9:40 UTC (permalink / raw) To: buildroot Hello All, I found issue when trying to load buildroot images on Qemu. Following is my configuration: 1. Buildroot configured with make qemu_arm_versatile_defconfig 2. Using uClibc toolchain 3. rootfs.cpio, initramfs of linux kernel Basically, I just did: make qemu_arm_versatile_defconfig; make then use the resulting images available under output/images I run qemu with following command: qemu-system-arm -M versatilepb -m 128M -kernel output/images/zImage -initrd output/images/rootfs.cpio.gz -append "root=/dev/ram rdinit=/bin/sh" Qemu launched but there is nothing shown. Then I tried another trick by building linux kernel inside output/build/linux-2.6.36 with CROSS_COMPILE parameter pointed to Code Sourcery toolchain and I found the very same result. Qemu did not show anything. I changed linux kernel version from buildroot menuconfig with 2.6.27.58, then configured buildroot with qemu_arm_versatile_defconfig following with make, then Qemu can load the kernel. Has anyone experienced this kind of issue? Thanks in advance, DWI -- Good software can't be measured by `wc -l software.c` -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110426/0fc98092/attachment.html> ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] Buildroot 2011.02 images won't load on Qemu with qemu_arm_versatile_defconfig 2011-04-26 9:40 [Buildroot] Buildroot 2011.02 images won't load on Qemu with qemu_arm_versatile_defconfig Dwi Sasongko Supriyadi @ 2011-04-26 9:46 ` Peter Korsgaard 2011-04-26 14:55 ` Dwi Sasongko Supriyadi 0 siblings, 1 reply; 8+ messages in thread From: Peter Korsgaard @ 2011-04-26 9:46 UTC (permalink / raw) To: buildroot >>>>> "Dwi" == Dwi Sasongko Supriyadi <ruckuus@gmail.com> writes: Dwi> Hello All, Dwi> I found issue when trying to load buildroot images on Qemu. Following is my Dwi> configuration: Dwi> 1. Buildroot configured with make qemu_arm_versatile_defconfig Dwi> 2. Using uClibc toolchain Dwi> 3. rootfs.cpio, initramfs of linux kernel Dwi> Basically, I just did: make qemu_arm_versatile_defconfig; make then use the Dwi> resulting images available under output/images Dwi> I run qemu with following command: Dwi> qemu-system-arm -M versatilepb -m 128M -kernel output/images/zImage -initrd Dwi> output/images/rootfs.cpio.gz -append "root=/dev/ram rdinit=/bin/sh" Dwi> Qemu launched but there is nothing shown. Odd, I've using the versatile config pretty often here. I do configure it slightly differently, as I normally don't care about graphics output - So I use the serial output: qemu-system-arm -M versatilepb -kernel output/images/zImage -append 'console=ttyAMA0,115200 root=/dev/sda' -nographic -net nic -net user -hda output/images/rootfs.ext2 I've tweaked the versatile config a bit in git since the 2011.02 release though (enabled getty on serial port). Perhaps you could give the default versatile config in git a try before changing to initramfs? -- Bye, Peter Korsgaard ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] Buildroot 2011.02 images won't load on Qemu with qemu_arm_versatile_defconfig 2011-04-26 9:46 ` Peter Korsgaard @ 2011-04-26 14:55 ` Dwi Sasongko Supriyadi 2011-04-26 15:38 ` Dwi Sasongko Supriyadi 2011-04-26 18:18 ` Peter Korsgaard 0 siblings, 2 replies; 8+ messages in thread From: Dwi Sasongko Supriyadi @ 2011-04-26 14:55 UTC (permalink / raw) To: buildroot On Tue, Apr 26, 2011 at 4:46 PM, Peter Korsgaard <jacmet@uclibc.org> wrote: > >>>>> "Dwi" == Dwi Sasongko Supriyadi <ruckuus@gmail.com> writes: > > Dwi> Hello All, > Dwi> I found issue when trying to load buildroot images on Qemu. Following > is my > Dwi> configuration: > > Dwi> 1. Buildroot configured with make qemu_arm_versatile_defconfig > Dwi> 2. Using uClibc toolchain > Dwi> 3. rootfs.cpio, initramfs of linux kernel > > Dwi> Basically, I just did: make qemu_arm_versatile_defconfig; make then > use the > Dwi> resulting images available under output/images > > Dwi> I run qemu with following command: > > Dwi> qemu-system-arm -M versatilepb -m 128M -kernel output/images/zImage > -initrd > Dwi> output/images/rootfs.cpio.gz -append "root=/dev/ram rdinit=/bin/sh" > > Dwi> Qemu launched but there is nothing shown. > > Odd, I've using the versatile config pretty often here. I also use versatile_defconfig for kernel then using the zImage with Qemu, and never try zImage result from buildroot. I also worked with older version, i.e. 2.6.27 > I do configure > it slightly differently, as I normally don't care about graphics output > - So I use the serial output: > > qemu-system-arm -M versatilepb -kernel output/images/zImage -append > 'console=ttyAMA0,115200 root=/dev/sda' -nographic -net nic -net user > -hda output/images/rootfs.ext2 > > I've tweaked the versatile config a bit in git since the 2011.02 > release though (enabled getty on serial port). > Perhaps you could give the default versatile config in git a try before > changing to initramfs? > > I tried to use versatile config from git, but there is still the same result. Qemu stopped after compressing Linux. Please correct me if I am wrong, is following the versatile config difference between 2011.02 and buildroot from git correct? diff -Nru configs/qemu_arm_versatile_defconfig ../buildroot/configs/qemu_arm_versatile_defconfig --- configs/qemu_arm_versatile_defconfig 2011-04-26 19:16:59.215058879 +0700 +++ ../buildroot/configs/qemu_arm_versatile_defconfig 2011-04-26 19:34:21.614809336 +0700 @@ -2,6 +2,10 @@ BR2_arm=y BR2_arm926t=y +# system +BR2_TARGET_GENERIC_GETTY=y +BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0" + # filesystem BR2_TARGET_ROOTFS_EXT2=y # BR2_TARGET_ROOTFS_TAR is not set @@ -9,7 +13,7 @@ # Kernel BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="2.6.36" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="2.6.38.3" BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y -BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/arm-versatile/linux-2.6.36.config" +BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/arm-versatile/linux-2.6.38.config" BR2_LINUX_KERNEL_ZIMAGE=y I also saw there are minor difference between both boards config and I did try 2.6.38.config in 2.6.36 kernel but I found the same result. I am a little bit puzzled but also surprised knowing that only older kernel version can be used ... should this be known as Qemu issue? Using 2.6.27.58 with CS toolchain or BR toolchain the image result can be used flawlessly, but not with 2.6.36/37/38. I am worried also with the fact that my qemu gets segfault when missing -m parameter. I am running Ubuntu Lucid with Qemu version 0.12.3. Could you please confirm your Qemu version? Thanks in advance, DWI -- Good software can't be measured by `wc -l software.c` -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110426/25cc0b88/attachment-0001.html> ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] Buildroot 2011.02 images won't load on Qemu with qemu_arm_versatile_defconfig 2011-04-26 14:55 ` Dwi Sasongko Supriyadi @ 2011-04-26 15:38 ` Dwi Sasongko Supriyadi 2011-04-26 18:18 ` Peter Korsgaard 1 sibling, 0 replies; 8+ messages in thread From: Dwi Sasongko Supriyadi @ 2011-04-26 15:38 UTC (permalink / raw) To: buildroot On Tue, Apr 26, 2011 at 9:55 PM, Dwi Sasongko Supriyadi <ruckuus@gmail.com>wrote: > > > On Tue, Apr 26, 2011 at 4:46 PM, Peter Korsgaard <jacmet@uclibc.org>wrote: > >> >>>>> "Dwi" == Dwi Sasongko Supriyadi <ruckuus@gmail.com> writes: >> >> Dwi> Hello All, >> Dwi> I found issue when trying to load buildroot images on Qemu. >> Following is my >> Dwi> configuration: >> >> Dwi> 1. Buildroot configured with make qemu_arm_versatile_defconfig >> Dwi> 2. Using uClibc toolchain >> Dwi> 3. rootfs.cpio, initramfs of linux kernel >> >> Dwi> Basically, I just did: make qemu_arm_versatile_defconfig; make then >> use the >> Dwi> resulting images available under output/images >> >> Dwi> I run qemu with following command: >> >> Dwi> qemu-system-arm -M versatilepb -m 128M -kernel output/images/zImage >> -initrd >> Dwi> output/images/rootfs.cpio.gz -append "root=/dev/ram rdinit=/bin/sh" >> >> Dwi> Qemu launched but there is nothing shown. >> >> Odd, I've using the versatile config pretty often here. > > > I also use versatile_defconfig for kernel then using the zImage with Qemu, > and never try zImage result from buildroot. I also worked with older > version, i.e. 2.6.27 > > >> I do configure >> it slightly differently, as I normally don't care about graphics output >> - So I use the serial output: >> >> qemu-system-arm -M versatilepb -kernel output/images/zImage -append >> 'console=ttyAMA0,115200 root=/dev/sda' -nographic -net nic -net user >> -hda output/images/rootfs.ext2 >> >> I've tweaked the versatile config a bit in git since the 2011.02 >> release though (enabled getty on serial port). >> > > Perhaps you could give the default versatile config in git a try before >> changing to initramfs? >> >> > I tried to use versatile config from git, but there is still the same > result. Qemu stopped after compressing Linux. > > Please correct me if I am wrong, is following the versatile > config difference between 2011.02 and buildroot from git correct? > > diff -Nru configs/qemu_arm_versatile_defconfig > ../buildroot/configs/qemu_arm_versatile_defconfig > --- configs/qemu_arm_versatile_defconfig 2011-04-26 19:16:59.215058879 > +0700 > +++ ../buildroot/configs/qemu_arm_versatile_defconfig 2011-04-26 > 19:34:21.614809336 +0700 > @@ -2,6 +2,10 @@ > BR2_arm=y > BR2_arm926t=y > > +# system > +BR2_TARGET_GENERIC_GETTY=y > +BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0" > + > # filesystem > BR2_TARGET_ROOTFS_EXT2=y > # BR2_TARGET_ROOTFS_TAR is not set > @@ -9,7 +13,7 @@ > # Kernel > BR2_LINUX_KERNEL=y > BR2_LINUX_KERNEL_CUSTOM_VERSION=y > -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="2.6.36" > +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="2.6.38.3" > BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y > > -BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/arm-versatile/linux-2.6.36.config" > > +BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/arm-versatile/linux-2.6.38.config" > BR2_LINUX_KERNEL_ZIMAGE=y > > I also saw there are minor difference between both boards config and I did > try 2.6.38.config in 2.6.36 kernel but I found the same result. > > I am a little bit puzzled but also surprised knowing that only older kernel > version can be used ... should this be known as Qemu issue? > > Using 2.6.27.58 with CS toolchain or BR toolchain the image result can be > used flawlessly, but not with 2.6.36/37/38. I am worried also with the fact > that my qemu gets segfault when missing -m parameter. I am running Ubuntu > Lucid with Qemu version 0.12.3. Could you please confirm your Qemu version? > > Confirmed, the root cause seems in Qemu. I downloaded and compiled Qemu version 0.14.0 and use it as follow: ../qemu-0.14.0/arm-softmmu/qemu-system-arm -M versatilepb -m 128M -kernel output/images/zImage -initrd output/images/rootfs.cpio.gz -append "root=/dev/ram rdinit=/sbin/init" -nographic I can log in to buildroot system. Thanks for your help. Best regards, DWI -- Good software can't be measured by `wc -l software.c` -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110426/d7ec9f4a/attachment-0001.html> ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] Buildroot 2011.02 images won't load on Qemu with qemu_arm_versatile_defconfig 2011-04-26 14:55 ` Dwi Sasongko Supriyadi 2011-04-26 15:38 ` Dwi Sasongko Supriyadi @ 2011-04-26 18:18 ` Peter Korsgaard 2011-04-27 4:28 ` Dwi Sasongko Supriyadi 1 sibling, 1 reply; 8+ messages in thread From: Peter Korsgaard @ 2011-04-26 18:18 UTC (permalink / raw) To: buildroot >>>>> "Dwi" == Dwi Sasongko Supriyadi <ruckuus@gmail.com> writes: Hi, Dwi> I tried to use versatile config from git, but there is still the Dwi> same result. Qemu stopped after compressing Linux. Dwi> Please correct me if I am wrong, is following the?versatile Dwi> config?difference between 2011.02 and buildroot from git correct? Yes, that's it. Getty on the first serial port and use 2.6.38.3 rather than 2.6.36. Dwi> I am a little bit puzzled but also surprised knowing that only Dwi> older kernel version can be used ... should this be known as Qemu Dwi> issue? Dwi> Using 2.6.27.58 with CS toolchain or BR toolchain the image result Dwi> can be used flawlessly, but not with 2.6.36/37/38. I am worried Dwi> also with the fact that my qemu gets segfault when missing -m Dwi> parameter. I am running Ubuntu Lucid with Qemu version Dwi> 0.12.3. Could you please confirm your Qemu version? This all sounds very odd. I use: $ qemu-system-arm -version QEMU PC emulator version 0.12.5 (Debian 0.12.5+dfsg-3), Copyright (c) 2003-2008 Fabrice Bellard So with the qemu_arm_versatile_defconfig without any changes and the qemu-system-arm arguments exactly as I said you don't get any output at all? -- Bye, Peter Korsgaard ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] Buildroot 2011.02 images won't load on Qemu with qemu_arm_versatile_defconfig 2011-04-26 18:18 ` Peter Korsgaard @ 2011-04-27 4:28 ` Dwi Sasongko Supriyadi 2011-04-27 5:29 ` Peter Korsgaard 0 siblings, 1 reply; 8+ messages in thread From: Dwi Sasongko Supriyadi @ 2011-04-27 4:28 UTC (permalink / raw) To: buildroot On Wed, Apr 27, 2011 at 1:18 AM, Peter Korsgaard <jacmet@uclibc.org> wrote: > >>>>> "Dwi" == Dwi Sasongko Supriyadi <ruckuus@gmail.com> writes: > > Hi, > > Dwi> I tried to use versatile config from git, but there is still the > Dwi> same result. Qemu stopped after compressing Linux. > > Dwi> Please correct me if I am wrong, is following the versatile > Dwi> config difference between 2011.02 and buildroot from git correct? > > Yes, that's it. Getty on the first serial port and use 2.6.38.3 rather > than 2.6.36. > > Dwi> I am a little bit puzzled but also surprised knowing that only > Dwi> older kernel version can be used ... should this be known as Qemu > Dwi> issue? > > Dwi> Using 2.6.27.58 with CS toolchain or BR toolchain the image result > Dwi> can be used flawlessly, but not with 2.6.36/37/38. I am worried > Dwi> also with the fact that my qemu gets segfault when missing -m > Dwi> parameter. I am running Ubuntu Lucid with Qemu version > Dwi> 0.12.3. Could you please confirm your Qemu version? > > This all sounds very odd. I use: > > $ qemu-system-arm -version > QEMU PC emulator version 0.12.5 (Debian 0.12.5+dfsg-3), Copyright (c) > 2003-2008 Fabrice Bellard > > So with the qemu_arm_versatile_defconfig without any changes and the > qemu-system-arm arguments exactly as I said you don't get any output at > all? > > Yes I don't get any output at all using Qemu from Lucid Lynx qemu --version QEMU PC emulator version 0.12.3 (qemu-kvm-0.12.3), Copyright (c) 2003-2008 Fabrice Bellard BUT, Using Qemu 0.14.0 compiled from source, everything works fine. So, it seems Ubuntu qemu-kvm-0.12.3 issue. Thanks and regards, DWI -- Good software can't be measured by `wc -l software.c` -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110427/9afb0838/attachment.html> ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] Buildroot 2011.02 images won't load on Qemu with qemu_arm_versatile_defconfig 2011-04-27 4:28 ` Dwi Sasongko Supriyadi @ 2011-04-27 5:29 ` Peter Korsgaard 2011-04-27 8:08 ` Dwi Sasongko Supriyadi 0 siblings, 1 reply; 8+ messages in thread From: Peter Korsgaard @ 2011-04-27 5:29 UTC (permalink / raw) To: buildroot >>>>> "Dwi" == Dwi Sasongko Supriyadi <ruckuus@gmail.com> writes: Hi, Dwi> Yes I don't get any output at all using Qemu from Lucid Lynx Dwi> qemu --version Dwi> QEMU PC emulator version 0.12.3 (qemu-kvm-0.12.3), Copyright (c) 2003-2008 Dwi> Fabrice Bellard Dwi> BUT, Dwi> Using Qemu 0.14.0 compiled from source, everything works fine. So, Dwi> it seems Ubuntu qemu-kvm-0.12.3 issue. Ok, good to hear that you've got it working. -- Bye, Peter Korsgaard ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] Buildroot 2011.02 images won't load on Qemu with qemu_arm_versatile_defconfig 2011-04-27 5:29 ` Peter Korsgaard @ 2011-04-27 8:08 ` Dwi Sasongko Supriyadi 0 siblings, 0 replies; 8+ messages in thread From: Dwi Sasongko Supriyadi @ 2011-04-27 8:08 UTC (permalink / raw) To: buildroot Hi Peter, On Wed, Apr 27, 2011 at 12:29 PM, Peter Korsgaard <jacmet@uclibc.org> wrote: > >>>>> "Dwi" == Dwi Sasongko Supriyadi <ruckuus@gmail.com> writes: > > Hi, > > Dwi> Yes I don't get any output at all using Qemu from Lucid Lynx > > Dwi> qemu --version > Dwi> QEMU PC emulator version 0.12.3 (qemu-kvm-0.12.3), Copyright (c) > 2003-2008 > Dwi> Fabrice Bellard > > Dwi> BUT, > > Dwi> Using Qemu 0.14.0 compiled from source, everything works fine. So, > Dwi> it seems Ubuntu qemu-kvm-0.12.3 issue. > > Ok, good to hear that you've got it working. > > Thanks for the good work. Cheers, DWI -- Good software can't be measured by `wc -l software.c` -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110427/dffcdf98/attachment.html> ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-04-27 8:08 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-04-26 9:40 [Buildroot] Buildroot 2011.02 images won't load on Qemu with qemu_arm_versatile_defconfig Dwi Sasongko Supriyadi 2011-04-26 9:46 ` Peter Korsgaard 2011-04-26 14:55 ` Dwi Sasongko Supriyadi 2011-04-26 15:38 ` Dwi Sasongko Supriyadi 2011-04-26 18:18 ` Peter Korsgaard 2011-04-27 4:28 ` Dwi Sasongko Supriyadi 2011-04-27 5:29 ` Peter Korsgaard 2011-04-27 8:08 ` Dwi Sasongko Supriyadi
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox