I followed the build and run instructions from rsta2/circle#34 closely but not exactly.
Note that my cygwin HOME directory name contains a blank against your advice as I could not avoid this, but I made sure that the qemu repository and the build directory pathnames do not contain blanks.
I have set up cygwin and installed the following mingw64 packages:
$ cygcheck -c | grep mingw
mingw64-x86_64-binutils 2.25.0.1.23f238d-1 OK
mingw64-x86_64-gcc-core 5.4.0-3 OK
mingw64-x86_64-gcc-g++ 5.4.0-3 OK
mingw64-x86_64-gettext 0.19.8.1-2 OK
mingw64-x86_64-glib2.0 2.50.3-1 OK
mingw64-x86_64-headers 5.0.2-1 OK
mingw64-x86_64-libffi 3.2.1-2 OK
mingw64-x86_64-pcre 8.40-3 OK
mingw64-x86_64-pkg-config 0.29.1-1 OK
mingw64-x86_64-runtime 5.0.2-1 OK
mingw64-x86_64-win-iconv 0.0.6-2 OK
mingw64-x86_64-windows-default-manifest 6.4-1 OK
mingw64-x86_64-winpthreads 5.0.2-1 OK
mingw64-x86_64-zlib 1.2.11-1 OK
Cloned the git repository and checked out subrepositories:
$ cd /home/stm/git
$ git clone https://github.com/flypie/flypie-pi-qemu.git
$ cd flypie-pi-qemu
$ git submodule update --init dtc pixman
Built in a separate directory side-by-side with the repository as I want to keep the git repository directory tree clean:
$ mkdir /home/stm/git/flypie-pi-qemu-build
$ cd /home/stm/git/flypie-pi-qemu-build
$ ../flypie-pi-qemu/configure --disable-libusb --cc=x86_64-w64-mingw32-gcc.exe --cxx=x86_64-w64-mingw32-g++.exe --cross-prefix=x86_64-w64-mingw32- --target-list=arm-softmmu --disable-usb-redir --extra-cflags="-static-libgcc -static-libstdc++ -ggdb"
$ make
The build is successful. For being able to run the qemu-system-arm.exe executable I have to extend the PATH:
$ export PATH=/usr/x86_64-w64-mingw32/sys-root/mingw/bin:$PATH
Otherwise libwinpthread-1.dll is unresolved when I try to run qemu-system-arm.exe
.
Now qemu-system-arm.exe works in general, for example with option "--help" I'm seeing the list of command line options.
When I try to launch a Circle kernel, the following happens:
$ SDL_VIDEODRIVER=windib QEMU_AUDIO_DRV=dsound SDL_AUDIODRIVER=dsound QEMU_AUDIO_LOG_TO_MONITOR=1 ./qemu-system-arm -machine raspi2 -smp 1 -bios /cygdrive/e/Users/stm/Documents/GitHub/circle/sample/03-screentext/kernel7.img -usbdevice keyboard
GPIO panel: connection: Unknown error
Couldn't connect to a GPIO panel
C:\cygwin64\home\stm\git\flypie-pi-qemu-build\arm-softmmu\qemu-system-arm.exe: Failed to load firmware from /cygdrive/e/Users/stm/Documents/GitHub/circle/sample/03-screentext/kernel7.img
I noticed that in your batch files to launch qemu you are changing the working directory to C:/qemu
. What is the significance of this?
Thanks!