diff options
| author | Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | 2021-09-16 13:35:18 -0700 |
|---|---|---|
| committer | Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | 2021-09-28 08:21:02 -0700 |
| commit | 91646fb0fe45c1c7a6223048556361c54380f9f4 (patch) | |
| tree | d58b07e1c9d73bd42436b5a58c8276fd748facb5 /meta-xilinx-bsp/classes | |
| parent | b55a3fe1ce8018bd856cbbbba0eb8f9f5bab5a29 (diff) | |
| download | meta-xilinx-91646fb0fe45c1c7a6223048556361c54380f9f4.tar.gz | |
image-types-xilinx-qemu.bbclass: resize qemu-sd image to 256M
resize qemu-sd image to 256M to avoid the following error during qemuboot:
runqemu - ERROR - Failed to run qemu:
QEMU APU instance failed:
Unexpected error in sd_realize() at qemu-xilinx-system-native/v5.1.0-xilinx-v2021.2+gitAUTOINC+f9099ec0c9-r0/git/hw/sd/sd.c:2382:
qemu-system-aarch64: Invalid SD card size: 271 MiB
SD card size has to be a power of 2, e.g. 512 MiB.
You can resize disk images with 'qemu-img resize <imagefile> <new-size>'
(note that this will lose data if you make the image smaller than it currently is).
CR-1104112
Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Diffstat (limited to 'meta-xilinx-bsp/classes')
| -rw-r--r-- | meta-xilinx-bsp/classes/image-types-xilinx-qemu.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-xilinx-bsp/classes/image-types-xilinx-qemu.bbclass b/meta-xilinx-bsp/classes/image-types-xilinx-qemu.bbclass index 45417ea7..9b2682cf 100644 --- a/meta-xilinx-bsp/classes/image-types-xilinx-qemu.bbclass +++ b/meta-xilinx-bsp/classes/image-types-xilinx-qemu.bbclass | |||
| @@ -6,5 +6,5 @@ | |||
| 6 | # 512K). | 6 | # 512K). |
| 7 | 7 | ||
| 8 | CONVERSIONTYPES_append = " qemu-sd" | 8 | CONVERSIONTYPES_append = " qemu-sd" |
| 9 | CONVERSION_CMD_qemu-sd = "cp ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.qemu-sd; truncate -s %512K ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.qemu-sd" | 9 | CONVERSION_CMD_qemu-sd = "cp ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.qemu-sd; truncate -s %256M ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.qemu-sd" |
| 10 | CONVERSION_DEPENDS_qemu-sd = "coreutils-native" | 10 | CONVERSION_DEPENDS_qemu-sd = "coreutils-native" |
