4

Not sure if this is the right StackExchange forum to ask for that.

What I have is:

I tried for last couple of hours to start the Raspbian in QEMU on Windows. Changing the start command parameters, using qemu-system-arm.exe or qemu-system-armw.exe... The most I have done was to enter bash by init=/bin/bash and boot the Raspbian nearly to the shell, but didn't managed to boot it as far as it would on original RPi. Has anyone managed to run properly these versions? If yes, how?

2 Answers 2

5

Ok, so I figured it out:

I needed to comment out one line in /etc/ld.so.preload file by adding # at the line beginning before starting Raspbian (problems with booting disappeared) and use:

qemu-system-armw.exe -M versatilepb -m 256 -cpu arm1176 -no-reboot -serial stdio -kernel kernel-qemu -hda rpi_disk.vmdk -append "root=/dev/sda2 panic=1"

command to start the QEMU. x64 version never worked, but x86 (32 bit) did the trick. Need to mention that QEMU from http://qemu.weilnetz.de/ (currently 1.5.3) is faster than the above given one.

4
  • Where did you make that edit? i see your using windows however i just get stuck in a boot loop you say you commented out a file in /etc/ld.so.preload so i would assume that is in the hda how did you edit it? Commented Nov 7, 2014 at 17:58
  • Don't remember exactly. I suppose I have mounted the image and then changed the file. Under Linux, Ubuntu. You do this once. Make backups!
    – pbies
    Commented Nov 7, 2014 at 19:23
  • i got it running forcing it into bash before all init.d files run :) Commented Nov 7, 2014 at 19:57
  • 1
    So you can edit the right file, you hacker!
    – pbies
    Commented Nov 7, 2014 at 22:49
0

Also see this guide: http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/

It contains step by step instructions on how to comment out that line in the /etc/ld.so.preload file

3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.