commit | eb9a1c8a4602386193e003d113af919f7d2514ae | [log] [tgz] |
---|---|---|
author | Havard Skinnemoen <hskinnemoen@google.com> | Tue Apr 28 23:24:18 2020 -0700 |
committer | Havard Skinnemoen <hskinnemoen@google.com> | Tue Jun 09 22:26:19 2020 -0700 |
tree | 3a9272ebbcfd2d958fe2b15bdab4a378167ea585 |
Super simple boot ROM for npcm7xx This is able to parse the boot block header, copy it into SRAM and jump to it. Secure booting or anything vaguely advanced is not supported. Signed-off-by: Havard Skinnemoen <hskinnemoen@google.com> Change-Id: I88b567e8dba25cd75a3f37824698bcbefc89a98f
This is not an officially supported Google product.
This is a super simple Boot ROM that is intended to be used as a -bios
image for QEMU when emulating an NPCM7xx-based machine.
If you have a 32-bit ARM compiler installed as arm-none-eabi-gcc
, simply run make
.
If your ARM compiler has a different name, you'll need to override the CROSS_COMPILE
prefix, e.g. like this:
make CROSS_COMPILE=arm-linux-gnueabi-
If either case is successful, a npcm7xx_bootrom.bin
file will be produced.
The Boot ROM image may be passed to a QEMU system emulator using the -bios
option. For example like this:
qemu-system-arm -machine quanta-gsj -nographic \ -bios "${IMAGES}/npcm7xx_bootrom.bin" -drive file="${IMAGES}/image-bmc,if=mtd,bus=0,unit=0,format=raw,snapshot=on"