Havard Skinnemoen <hskinnem...@google.com> writes: > On Mon, Jul 13, 2020 at 7:57 AM Cédric Le Goater <c...@kaod.org> wrote: >> >> On 7/9/20 2:36 AM, Havard Skinnemoen wrote: >> > This allows these NPCM7xx-based boards to boot from a flash image, e.g. >> > one built with OpenBMC. For example like this: >> > >> > IMAGE=${OPENBMC}/build/tmp/deploy/images/gsj/image-bmc >> > qemu-system-arm -machine quanta-gsj -nographic \ >> > -bios ~/qemu/bootrom/npcm7xx_bootrom.bin \ >> > -drive file=${IMAGE},if=mtd,bus=0,unit=0,format=raw,snapshot=on >> > >> > Reviewed-by: Tyrone Ting <kft...@nuvoton.com> >> > Signed-off-by: Havard Skinnemoen <hskinnem...@google.com> >> >> May be we don't need to create the flash object if dinfo is NULL. > > It's soldered on the board, so you can't really boot the board without > it. But if you think it's better to remove it altogether if we don't > have an image to load into it, I can do that.
If a device is a fixed part of the physical board, it should be a fixed part of the virtual board, too. [...]