How can I run 2012-07-15-wheezy-raspbian on qemu ?? On old zImage a have information illegal instruction after boot

Thx for help.
Code: Select all
qemu-system-arm -M versatilepb -cpu arm1176 -hda 2012-07-15-wheezy-raspbian.img -kernel kernel-qemu -m 192 -append "root=/dev/sda2"
Code: Select all
qemu-system-arm -M versatilepb -cpu arm1136 -m 192 -kernel raspbian/vmlinuz-2.6.32-qemu-armv6 -initrd raspbian/initrd.img-2.6.32-qemu-armv6 -hda raspbian/raspbian.img -append "root=/dev/sda1"
I meant TAP, of course.ejsolutions wrote:...(no TUN)..
Code: Select all
qemu-system-arm --version
Code: Select all
sudo apt-get remove qemu-system qemu-user
Code: Select all
sudo apt-get install zlib1g-dev libxen-dev libsdl1.2-dev
Code: Select all
./configure --target-list="arm-softmmu arm-linux-user" --enable-sdl
make
sudo make install
Code: Select all
wget http://xecdesign.com/downloads/linux-qemu/kernel-qemu
Code: Select all
qemu-system-arm -M versatilepb -cpu arm1176 -hda 2012-07-15-wheezy-raspbian.img -kernel kernel-qemu -m 256 -append "root=/dev/sda2"
Code: Select all
qemu-system-arm.exe -M versatilepb -cpu arm1176 -hda 2012-07-15-wheezy-raspbian.img -kernel kernel-qemu -m 192 -append "root=/dev/sda2"
Now your raspbian RPI port 80 (http server) and port 22 (ssh daemon) is reachable on localhost (your windows box) at port 8080 and 2222 (take care that the ports are free on your box).qemu-system-arm.exe -k de -M versatilepb -cpu arm1176 -hda 2012-07-15-wheezy-raspbian.img -kernel kernel-qemu -m 192 -append "root=/dev/sda2" -redir tcp:2222::22 -redir tcp:8080::80
Code: Select all
mkdir qemu&cd qemu
Code: Select all
mkdir /mnt/Qemu
Code: Select all
mount -o loop,offset=$((512*2048)) -t ext4 ./wheezy-rasbian.img /mnt/Qemu
Code: Select all
cp /mnt/Qemu/init* ./boot
Code: Select all
umount /mnt/Qemu
Code: Select all
qemu-system-arm -M versatilepb -kernel ./installer/vmlinuz-2.6.32-5-versatile -initrd ./boot/initrd.img -hda ./wheezy-rasbian.img -append "root=/dev/sda1 panic=1" –cpu arm11mpcore -m 256
is an alternative to the arm1176jzf because qemu doesn't emulate the raspberry arm core. Arm11mpcore is arm multiprocessor core. In order to known which cpu is emulated on qemu use the command below:–cpu arm11mpcore
Code: Select all
qemu-system-arm -cpu ?
specifies memory. The raspberry has 256Mo of ram-m 256
defines the used partition and start option for this partition.-append "root=/dev/sda1 panic=1"
and the pwdpi
do not work!raspberry
You are probably using an old version of qemu (type qemu-system-arm -version), it is the same with opensuse, the qemu version from the repo is outdated (0.x, it should be 1.x), compile your own to be up to date then you can choose -cpu arm1176.is an alternative to the arm1176jzf because qemu doesn't emulate the raspberry arm core.
The root partition is /dev/sda2 not /dev/sda1 (this is the FAT partition with the firmware)append "root=/dev/sda1 panic=1"
You don´t need to do that, you can leave the raspbian image as it is, just start qemu with it own kernel (-kernel zImage).mount wheezy using...copy the boot repository...
Emulating a arm system is very slow so try to run the emulator on a real system not on a VM, you will loose performance. qemu-system-arm is using only one core so if you have a PC with turbo core or turbo boost (overclock one core if the others have nothing to do) enable it.is processed in admin mode under debian6squeese virtualized under Virtualbox
Code: Select all
qemu-system-arm -M versatilepb -kernel ./installer/vmlinuz-2.6.32-5-versatile -initrd ./boot/initrd.img -hda ./wheezy-rasbian.img -append "root=/dev/sda1 panic=1" –cpu arm11mpcore -m 256