tests/avocado: Truncate M2S-FG484 SOM SPI flash to 16MiB
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 7 Feb 2023 08:02:04 +0000 (09:02 +0100)
committerCédric Le Goater <clg@kaod.org>
Tue, 7 Feb 2023 08:02:04 +0000 (09:02 +0100)
commita7f16aed392f0da4e8df134228af0b0bfa56b127
tree704c85d1aab10f0afec5f15c7ede10d3db72a9d7
parentffd0cac708733ec0e039e3aa8a49f371ac066f36
tests/avocado: Truncate M2S-FG484 SOM SPI flash to 16MiB

The M2S-FG484 SOM uses a 16 MiB SPI flash (Spansion
S25FL128SDPBHICO).  Since the test asset is bigger,
truncate it to the correct size to avoid when running
the test_arm_emcraft_sf2 test:

  qemu-system-arm: device requires 16777216 bytes, block backend provides 67108864 bytes

Add comment regarding the M2S-FG484 SOM hardware in
hw/arm/msf2-som.c.

Reported-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Tested-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/arm/msf2-som.c
tests/avocado/boot_linux_console.py