I want to run U-Boot on RaspberryPi (in order to eventually load some other OS on the board). Before I do it on the actual hardware, I first want to simulate it on QEMU. I am working on an Ubuntu 12.10 x86_64 machine.
So, I downloaded the U-Boot source (from
https://github.com/gonzoua/u-boot-pi/tree/rpi) and cross-compiled it for ARM (using the arm-linux-gnueabi-gcc provided by the distro). However, when I try to run the QEMU using the
Code: Select all
qemu-system-arm -cpu arm1176 -M versatilepb -m 128 -kernel u-boot
command, the U-Boot fails to load, nor is there any error message -- it seems as though the QEMU gets stuck. Also, when the -cpu flag is omitted, U-Boot does load successfully, but then it is not a simulation of RPi.
The question is, where am I wrong in the process? Did anyone try running U-Boot on a simulation of RPi previously?