pc-bios: Add NPCM8XX vBootrom
The bootrom is a minimal bootrom used to load an NPCM8XX image. The source code is located in the same repo as the NPCM7XX one: github.com/google/vbootrom/tree/master/npcm8xx. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Hao Wu <wuhaotsh@google.com> Message-id: 20250219184609.1839281-3-wuhaotsh@google.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
70ce076fa6
commit
269b7effd9
@ -878,6 +878,7 @@ F: include/hw/*/npcm*
|
|||||||
F: tests/qtest/npcm*
|
F: tests/qtest/npcm*
|
||||||
F: tests/qtest/adm1266-test.c
|
F: tests/qtest/adm1266-test.c
|
||||||
F: pc-bios/npcm7xx_bootrom.bin
|
F: pc-bios/npcm7xx_bootrom.bin
|
||||||
|
F: pc-bios/npcm8xx_bootrom.bin
|
||||||
F: roms/vbootrom
|
F: roms/vbootrom
|
||||||
F: docs/system/arm/nuvoton.rst
|
F: docs/system/arm/nuvoton.rst
|
||||||
F: tests/functional/test_arm_quanta_gsj.py
|
F: tests/functional/test_arm_quanta_gsj.py
|
||||||
|
@ -70,10 +70,10 @@
|
|||||||
source code also contains code reused from other projects described here:
|
source code also contains code reused from other projects described here:
|
||||||
https://github.com/riscv/opensbi/blob/master/ThirdPartyNotices.md.
|
https://github.com/riscv/opensbi/blob/master/ThirdPartyNotices.md.
|
||||||
|
|
||||||
- npcm7xx_bootrom.bin is a simplified, free (Apache 2.0) boot ROM for Nuvoton
|
- npcm{7xx,8xx}_bootrom.bin is a simplified, free (Apache 2.0) boot ROM for
|
||||||
NPCM7xx BMC devices. It currently implements the bare minimum to load, parse,
|
Nuvoton NPCM7xx/8xx BMC devices. It currently implements the bare minimum to
|
||||||
initialize and run boot images stored in SPI flash, but may grow more
|
load, parse, initialize and run boot images stored in SPI flash, but may grow
|
||||||
features over time as needed. The source code is available at:
|
more features over time as needed. The source code is available at:
|
||||||
https://github.com/google/vbootrom
|
https://github.com/google/vbootrom
|
||||||
|
|
||||||
- hppa-firmware.img (32-bit) and hppa-firmware64.img (64-bit) are firmware
|
- hppa-firmware.img (32-bit) and hppa-firmware64.img (64-bit) are firmware
|
||||||
|
@ -80,6 +80,7 @@ blobs = [
|
|||||||
'opensbi-riscv32-generic-fw_dynamic.bin',
|
'opensbi-riscv32-generic-fw_dynamic.bin',
|
||||||
'opensbi-riscv64-generic-fw_dynamic.bin',
|
'opensbi-riscv64-generic-fw_dynamic.bin',
|
||||||
'npcm7xx_bootrom.bin',
|
'npcm7xx_bootrom.bin',
|
||||||
|
'npcm8xx_bootrom.bin',
|
||||||
'vof.bin',
|
'vof.bin',
|
||||||
'vof-nvram.bin',
|
'vof-nvram.bin',
|
||||||
]
|
]
|
||||||
|
BIN
pc-bios/npcm8xx_bootrom.bin
Normal file
BIN
pc-bios/npcm8xx_bootrom.bin
Normal file
Binary file not shown.
@ -34,6 +34,7 @@ find-cross-gcc = $(firstword $(wildcard $(patsubst %ld,%gcc,$(call find-cross-ld
|
|||||||
# finally strip off path + toolname so we get the prefix
|
# finally strip off path + toolname so we get the prefix
|
||||||
find-cross-prefix = $(subst gcc,,$(notdir $(call find-cross-gcc,$(1))))
|
find-cross-prefix = $(subst gcc,,$(notdir $(call find-cross-gcc,$(1))))
|
||||||
|
|
||||||
|
aarch64_cross_prefix := $(call find-cross-prefix,aarch64)
|
||||||
arm_cross_prefix := $(call find-cross-prefix,arm)
|
arm_cross_prefix := $(call find-cross-prefix,arm)
|
||||||
powerpc64_cross_prefix := $(call find-cross-prefix,powerpc64)
|
powerpc64_cross_prefix := $(call find-cross-prefix,powerpc64)
|
||||||
powerpc_cross_prefix := $(call find-cross-prefix,powerpc)
|
powerpc_cross_prefix := $(call find-cross-prefix,powerpc)
|
||||||
@ -66,6 +67,7 @@ default help:
|
|||||||
@echo " u-boot.e500 -- update u-boot.e500"
|
@echo " u-boot.e500 -- update u-boot.e500"
|
||||||
@echo " u-boot.sam460 -- update u-boot.sam460"
|
@echo " u-boot.sam460 -- update u-boot.sam460"
|
||||||
@echo " npcm7xx_bootrom -- update vbootrom for npcm7xx"
|
@echo " npcm7xx_bootrom -- update vbootrom for npcm7xx"
|
||||||
|
@echo " npcm8xx_bootrom -- update vbootrom for npcm8xx"
|
||||||
@echo " efi -- update UEFI (edk2) platform firmware"
|
@echo " efi -- update UEFI (edk2) platform firmware"
|
||||||
@echo " opensbi32-generic -- update OpenSBI for 32-bit generic machine"
|
@echo " opensbi32-generic -- update OpenSBI for 32-bit generic machine"
|
||||||
@echo " opensbi64-generic -- update OpenSBI for 64-bit generic machine"
|
@echo " opensbi64-generic -- update OpenSBI for 64-bit generic machine"
|
||||||
@ -194,6 +196,10 @@ npcm7xx_bootrom:
|
|||||||
$(MAKE) -C vbootrom CROSS_COMPILE=$(arm_cross_prefix)
|
$(MAKE) -C vbootrom CROSS_COMPILE=$(arm_cross_prefix)
|
||||||
cp vbootrom/npcm7xx_bootrom.bin ../pc-bios/npcm7xx_bootrom.bin
|
cp vbootrom/npcm7xx_bootrom.bin ../pc-bios/npcm7xx_bootrom.bin
|
||||||
|
|
||||||
|
npcm8xx_bootrom:
|
||||||
|
$(MAKE) -C vbootrom CROSS_COMPILE=$(aarch64_cross_prefix)
|
||||||
|
cp vbootrom/npcm8xx_bootrom.bin ../pc-bios/npcm8xx_bootrom.bin
|
||||||
|
|
||||||
hppa-firmware:
|
hppa-firmware:
|
||||||
$(MAKE) -C seabios-hppa parisc
|
$(MAKE) -C seabios-hppa parisc
|
||||||
cp seabios-hppa/out/hppa-firmware.img ../pc-bios/
|
cp seabios-hppa/out/hppa-firmware.img ../pc-bios/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user