1 Introduction
QEMU is a generic and open source machine emulator and virtualizer.
In this article, we will use it as a machine emulator and run the U-Boot on top of it.
It will also be demonstrated about how to debug U-Boot with GDB.
Old U-boot (v1.1.3 in my example, too old hum?) needs a option -mips_allow_branch_to_undefined for ELDK AS to assemble. We have to modify cpu/mips/start.S so that AS of other toolchains could assemble it without an error - Error: can't resolve `_GLOBAL_OFFSET_TABLE_' {*UND* section} - `L16' {.text section}