Joel Stanley
c8cb19876d
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>
2024-07-16 20:30:15 +02:00
..
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2024-07-05 23:55:02 +02:00
2024-07-02 10:08:32 +02:00
2024-07-05 23:50:12 +02:00
2023-01-12 17:15:09 +00:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2024-07-16 20:30:15 +02:00
2023-11-07 13:08:49 +01:00
2024-07-05 23:50:04 +02:00
2024-07-05 23:55:02 +02:00
2023-12-30 07:38:06 +11:00
2024-07-16 20:28:28 +02:00