Greetings,
POST DISCUSSION EDIT:
Although the subject line is about writing RPi IMG files from an emulator on a PC, my original need was to update Python code on an RPi, when an internet connection isn't available and monitor/keyboard/mouse on the RPi is not an option. That problem may be solvable with a CAT5 cable between my PC and the RPi.
Here's a fine writeup on using a PC's screen/keyboard/mouse for working with a RPi, without an internet connection:
https://pihw.wordpress.com/guides/direc ... onnection/
----
The original discussion, about RPi emulation, follows. Upshot is that it's probably not worth the effort, reading and writing images for the RPi. Read on, for why:
----
Not sure which forum is appropriate for this question, so I will try this general discussion forum; please suggest alternative forum if appropriate.
I am at the point where I can work with RPi 2, write Python code, run the camera, etc. I have even written code that runs the camera on bootup (with automated login), takes a specified number of pictures with the camera (custom python program using picamera), and automatic shutdown (with a call to "sudo shutdown -h now" as the last line in the python program). So, I'm feeling fairly secure with my intermediate skill level.
At this point, I would like to be able to work like this, on occasion:
1) set up a RPi emulation in Windows 8.1
2) write and debug python programs in the emulator
3) write the emulated RPi and its python code, and /etc/profile and so forth, as a recovery.img file
4) write the recovery.img in step 3 to an SD card
5) use the SD card in step 4 to boot a RPi
I am finding a few web sites on how to emulate RPi in Windows (using software called QEMU), but before I go deep, I'm wondering if steps 3 through 5 have been done? If not, then it's back to using a monitor and keyboard with my RPi, or going headless, with SSH and a VNC viewer.
I would prefer to do most, if not all work, on my PC, since I won't always have an internet connection while I do this work, and hanging a monitor and wireless keyboard/mouse is annoying for the kind of work I'm doing.
In short, I want to develop in an Windows emulator, write the resulting image to an SD card, which can be used to boot up a RPi. In practice, has anyone successfully done step 3?
Has this been solved?