bios/boot: make SDCard boot more flexible using a boot.json file on the SDCard.
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 11 Jun 2020 09:15:31 +0000 (11:15 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 11 Jun 2020 09:26:10 +0000 (11:26 +0200)
commitc2ae22eeb6350726664161487a6532fe79d46174
tree7f0949c2a80c36b9922a13a14c82373b849243f9
parentd918c0bb99591f6cf0f59e1c4f5fae0da1eb6e0e
bios/boot: make SDCard boot more flexible using a boot.json file on the SDCard.

The BIOS now reads the boot.json file to know which files need to be copied to RAM and where.
It will fallback to boot.bin is no boot.json is found and boot will fail if neither is found.

Example of boot.json file used to boot Linux-On-LiteX-Vexriscv:
{
"Image":        "0x40000000",
"rootfs.cpio":  "0x40800000",
"rv32.dtb":     "0x41000000",
"emulator.bin": "0x41100000"
}
litex/soc/software/bios/boot.c
litex/soc/software/include/base/jsmn.h [new file with mode: 0644]