我是qemu的新手,我想了解一下它。 我正在使用内核参数在qemu中运行u-boot,如下所示:
buldung uboot:
make versatileqemu_config
运行qemu:
qemu-system-arm -M versatilepb -m 128M -serial stdio -kernel u-boot.bin -display none
一切正常,但现在我想从flash运行uboot。 以这种方式创建Flash图像:
dd if=/dev/zero of=flash.bin bs=256k count=256
dd if=u-boot.bin of=flash.bin bs=256k conv=notrunc
尝试运行它:
qemu-system-arm -M versatilepb -m 128M -serial stdio -pflash flash.bin -display none
效果是崩溃,似乎没有加载u-boot:
qemu: fatal: Trying to execute code outside RAM or ROM at 0x08000000
R00=00000000 R01=00000000 R02=00000000 R03=00000000
R04=00000000 R05=00000000 R06=00000000 R07=00000000
R08=00000000 R09=00000000 R10=00000000 R11=00000000
R12=00000000 R13=00000000 R14=00000000 R15=08000000
PSR=400001d3 -Z-- A svc32
s00=00000000 s01=00000000 d00=0000000000000000
s02=00000000 s03=00000000 d01=0000000000000000
s04=00000000 s05=00000000 d02=0000000000000000
s06=00000000 s07=00000000 d03=0000000000000000
s08=00000000 s09=00000000 d04=0000000000000000
s10=00000000 s11=00000000 d05=0000000000000000
s12=00000000 s13=00000000 d06=0000000000000000
s14=00000000 s15=00000000 d07=0000000000000000
s16=00000000 s17=00000000 d08=0000000000000000
s18=00000000 s19=00000000 d09=0000000000000000
s20=00000000 s21=00000000 d10=0000000000000000
s22=00000000 s23=00000000 d11=0000000000000000
s24=00000000 s25=00000000 d12=0000000000000000
s26=00000000 s27=00000000 d13=0000000000000000
s28=00000000 s29=00000000 d14=0000000000000000
s30=00000000 s31=00000000 d15=0000000000000000
FPSCR: 00000000
Aborted (core dumped)
我做错了什么?
答案 0 :(得分:0)
在执行uboot时,它会尝试加载内核以便运行,但是在你创建的flash.bin中,没有什么可以作为内核运行,所以崩溃是不可避免的。