QWMU + x86_64

General discussion about anything related to Ultibo.
blippy
Posts: 15
Joined: Sun Dec 03, 2017 9:43 pm

QWMU + x86_64

Postby blippy » Sun Sep 09, 2018 10:51 pm

I have downloaded the latest version of Ultibo, and compiled the 01-HelloWorld/QEMU example, which produces kernel.bin. I have performed the following steps:
cd ~/ultibo
fallocate -l 100M pi.img
mkdosfs -F 32 pi.img
mkdir pi
sudo mount pi,img pi -o umask=000


I have then gone to https://github.com/raspberrypi/firmware/tree/master/boot and downloaded the following files to the pi folder:
boot.bin
fixup.dat
start.elf


I have copied Hello Worlds file kernel.bin as ~/ultibo/pi/kernel.img

I created the file ~/ultibo/mylaunch:
qemu-system-arm -machine raspi2 pi.img
and given it executable permissions. When I run it, QEMU comes up, but it is blank. What am I doing wrong?

I am running Ubuntu 18.04.
User avatar
Ultibo
Site Admin
Posts: 1979
Joined: Sat Dec 19, 2015 3:49 am
Location: Australia

Re: QWMU + x86_64

Postby Ultibo » Sun Sep 09, 2018 11:19 pm

blippy wrote:I created the file ~/ultibo/mylaunch:
qemu-system-arm -machine raspi2 pi.img
and given it executable permissions. When I run it, QEMU comes up, but it is blank. What am I doing wrong?

Hi,

Ultibo doesn't use the Raspberry Pi emulation in QEMU because it is still incomplete (although improving), instead we support the Versatile PB machine emulation which represents a popular (but now discontinued) ARM development board.

At the minimum you will need the following as a command line:

Code: Select all

qemu-system-arm -M versatilepb -cpu cortex-a8 -kernel kernel.bin -m 256M


You could try using the very latest version of QEMU with the -machine raspi2 parameter and an Ultibo kernel image compiled for Raspberry Pi 2 (instead of QEMU) but as of the last time we checked there were still a few items not fully emulated that Ultibo expects to be available.
Ultibo.org | Make something amazing
https://ultibo.org

Return to “Discussion”

Who is online

Users browsing this forum: No registered users and 0 guests