[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-discuss] Problem booting arm images
From: |
Tony Lapointe |
Subject: |
Re: [Qemu-discuss] Problem booting arm images |
Date: |
Thu, 18 Sep 2014 13:24:08 -0400 |
I was forgetting, all kernels looks the same :
# file boot/kernel-qemu boot/gentoo.img boot/raspbian.img
boot/kernel-qemu: Linux kernel ARM boot executable zImage
(little-endian)
boot/gentoo.img: Linux kernel ARM boot executable zImage
(little-endian)
boot/raspbian.img: Linux kernel ARM boot executable zImage
(little-endian)
Regards,
Tony
On Thu, 2014-09-18 at 13:13 -0400, Tony Lapointe wrote:
> Hi List,
>
> I am using qemu on gentoo, trying to boot arm based images but, i am
> facing some issues.
>
> With qemu-system-arm, i am unable to boot with a kernel that i have
> compiled myself (with crossdev) but the same kernel boot just fine on a
> raspberry PI board. I am also unable to boot the latest raspbian kernel
> with qemu-system-arm. But, i am able to boot with a kernel found over
> here :
>
> http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/
> http://xecdesign.com/downloads/linux-qemu/kernel-qemu
>
> Here is the result of my tests so far.
>
> With my own compiled kernel :
>
> # qemu-system-arm -kernel boot/gentoo.img -cpu arm1176 -m 256 -M
> versatilepb -no-reboot -serial stdio -append "root=/dev/sda5
> rootfstype=ext4 rw init=/bin/bash console=ttyAMA0" -hda
> img/ArchLinuxARM-2014.06-rpi.img
> audio: Could not init `oss' audio driver
> VNC server running on `::1:5900'
>
>
> and nothing more. Even if i try with vnc qemu is telling that the guest
> did dot initialized the display yet.
>
>
> Same thing with raspbian kernel :
>
> # qemu-system-arm -kernel boot/raspbian.img -cpu arm1176 -m 256 -M
> versatilepb -no-reboot -serial stdio -append "root=/dev/sda5
> rootfstype=ext4 rw init=/bin/bash console=ttyAMA0" -hda
> img/ArchLinuxARM-2014.06-rpi.img
> audio: Could not init `oss' audio driver
> VNC server running on `::1:5900'
>
>
> But it works with the kernel from xecdesign.com :
>
> # qemu-system-arm -kernel boot/kernel-qemu -cpu arm1176 -m 256 -M
> versatilepb -no-reboot -serial stdio -append "root=/dev/sda5
> rootfstype=ext4 rw init=/bin/bash console=ttyAMA0" -hda
> img/ArchLinuxARM-2014.06-rpi.img
> audio: Could not init `oss' audio driver
> VNC server running on `::1:5900'
> Uncompressing Linux... done, booting the kernel.
> Booting Linux on physical CPU 0x0
> Linux version 3.10.26+ (address@hidden) (gcc version 4.7.3 (Gentoo
> 4.7.3-r1 p1.4, pie-0.5.5) ) #2 Fri Jan 17 22:13:59 EST 2014
> CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7),
> cr=00c5387d
> ...
> EXT4-fs (sda5): recovery complete
> EXT4-fs (sda5): mounted filesystem with ordered data mode. Opts: (null)
> VFS: Mounted root (ext4 filesystem) on device 8:5.
> devtmpfs: mounted
> Freeing unused kernel memory: 128K (c046b000 - c048b000)
> bash: cannot set terminal process group (-1): Inappropriate ioctl for
> device
> bash: no job control in this shell
> [root@(none) /]#
>
>
>
> Any idea, anyone?!
>
> Thank you,
>
> Tony Lapointe
>