Calumcb
Posts: 3
Joined: Sat Oct 05, 2013 5:37 pm
Location: Kent, United Kingdom

Emulating the pi in Windows

Tue Feb 18, 2014 10:14 pm

Recently I have been trying to emulate the raspberry pi in windows for various reasons. I have been trying to use QEMU because it was recommended to me by lots of people. I keep getting an error which I cant seem to overcome despite lots of things I have been trying. the error does not say it is an error, but it gets stuck on 'Freeing init memory: 132K' for ever until I force close QEMU. It seemed to work in an older version of raspbian (can't remember which one), but now on the 2014-01-07 distro it just gets stuck. Please if anyone has any ideas I would much appreciate them.
Calum

User avatar
DougieLawson
Posts: 38883
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Emulating the pi in Windows

Wed Feb 19, 2014 10:54 pm

Here's the qemu.bat file I created for my system.

Code: Select all

"C:\Users\Dougie\Qemu\qemu-system-armw" -kernel kernel-qemu.new ^
-cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio ^
-append "root=/dev/sda2 panic=1 rootfstype=ext4 rw" ^
 -hda c:\Users\Dougie\Qemu\Raspbbian-Freddy.resized.img ^
-net nic  -net tap,ifname=OpenVPN
you MUST use "-m 256" or qemu won't start.

I'm using the tap interface (installed with OpenVPN) to get connectivity to my qemu system.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

docwyatt2001
Posts: 2
Joined: Tue May 20, 2014 8:04 am
Location: Perth, Australia

Re: Emulating the pi in Windows

Tue May 20, 2014 8:16 am

Have you managed to get this working with other distro's besides Raspian?

User avatar
DougieLawson
Posts: 38883
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Emulating the pi in Windows

Tue May 20, 2014 1:50 pm

docwyatt2001 wrote:Have you managed to get this working with other distro's besides Raspian?
No, because it needs a special kernel built for Qemu and I don't know how to do that.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

bmarkus
Posts: 32
Joined: Sat Sep 15, 2012 10:32 am

Re: Emulating the pi in Windows

Tue May 20, 2014 1:58 pm

You can run the latest piCore-5.3 in QEMU, see article

http://forum.tinycorelinux.net/index.ph ... 080.0.html

User avatar
ruphert
Posts: 7
Joined: Mon Feb 17, 2014 4:02 am
Location: London
Contact: Website

Re: Emulating the pi in Windows

Wed May 21, 2014 8:39 am

Thanks for QEMU link.

docwyatt2001
Posts: 2
Joined: Tue May 20, 2014 8:04 am
Location: Perth, Australia

Re: Emulating the pi in Windows

Thu May 22, 2014 5:22 am

I have previously gotten Raspian working fine. But I am doing some work under ArchLinux (and Arkos), and after some research, there was mention that Arch needed some additional changes to the kernel to work. Using the script located here (https://github.com/johnlane/rpi-utils), I created the kernel as supposed to. But as shown on the attached image, it kernel panics...
QEMU-Windows-ARM-Arch Linux.png
QEMU-Windows-ARM-Arch Linux.png (62.64 KiB) Viewed 2626 times
The more frustrating thing is, using the same files under Ubuntu - works happily - just not Windows.

Return to “Off topic discussion”