diff options
author | Joel Stanley <joel@jms.id.au> | 2022-05-25 09:21:22 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-07-16 20:30:15 +0200 |
commit | c8cb19876d3e29bffd7ffd87586ff451f97f5f46 (patch) | |
tree | e4c93dc43c15a18dcb0239cbde80e3c4e5fcd5fa /bsd-user/bsd-proc.c | |
parent | 8f25b74a32316b718884796459921696cd43f048 (diff) | |
download | qemu-c8cb19876d3e29bffd7ffd87586ff451f97f5f46.zip qemu-c8cb19876d3e29bffd7ffd87586ff451f97f5f46.tar.gz qemu-c8cb19876d3e29bffd7ffd87586ff451f97f5f46.tar.bz2 |
hw/sd/sdcard: Support boot area in emmc image
This assumes a specially constructed image:
$ dd if=/dev/zero of=mmc-bootarea.img count=2 bs=1M
$ dd if=u-boot-spl.bin of=mmc-bootarea.img conv=notrunc
$ dd if=u-boot.bin of=mmc-bootarea.img conv=notrunc count=64 bs=1K
$ cat mmc-bootarea.img obmc-phosphor-image.wic > mmc.img
$ truncate --size 16GB mmc.img
For now this still requires a mtd image to load the SPL:
$ qemu-system-arm -M tacoma-bmc -nographic \
-global driver=sd-card,property=emmc,value=true \
-drive file=mmc.img,if=sd,index=2,format=raw
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20240712162719.88165-12-philmd@linaro.org>
Diffstat (limited to 'bsd-user/bsd-proc.c')
0 files changed, 0 insertions, 0 deletions