On 5/11/25 17:13, Philippe Mathieu-Daudé wrote:
On 4/11/25 14:03, Jan Kiszka wrote:
This closes an old gap in system integration testing for the very
complex ARM firmware stacks by adding fairly advanced Replay Protected
Memory Block (RPMB) emulation to the eMMC device model. Key programming
and message authentication are working, so is the write counter. Known
users are happy with the result. What is missing, but not only for RPMB-
related registers, is state persistence across QEMU restarts. This is OK
at this stage for most test scenarios, though, and could still be added
later on.
Jan Kiszka (6):
hw/sd/sdcard: Fix size check for backing block image
hw/sd/sdcard: Allow user-instantiated eMMC
hw/sd/sdcard: Add basic support for RPMB partition
hw/sd/sdcard: Handle RPMB MAC field
scripts: Add helper script to generate eMMC block device images
docs: Add eMMC device model description
FTR:
Tested-by: Cédric Le Goater <[email protected]>
and also for u-boot I got a late:
Tested-by: Ilias Apalodimas <[email protected]>
(and my own testing with your scripts)
(qemu) info block
disk (#block156):
/isar-cip-core/build/tmp/deploy/images/qemu-arm64/cip-core-image-cip-core-trixie-qemu-arm64.qemu-emmc
(raw)
Attached to: /machine/peripheral-anon/device[4]
Removable device: not locked, tray closed
Cache mode: writeback
root@demo:~# dmesg|fgrep -i mmc
[ 3.586239] mmc0: SDHCI controller on PCI [0000:00:01.0] using ADMA
[ 3.660691] mmc0: new high speed MMC card at address 0001
[ 3.668342] mmcblk0: mmc0:0001 QEMU!! 2.65 GiB
[ 3.999076] mmcblk0: p1 p2 p3 p4 p5 p6
[ 4.006997] mmcblk0rpmb: mmc0:0001 QEMU!! 2.00 MiB, chardev (239:0)