diff options
author | Adrian Calianu <adrian.calianu@enea.com> | 2018-03-13 09:22:57 +0100 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2018-03-21 11:20:43 +0100 |
commit | 67ea7dff95f14e603916b53e2dee6359bbf9529b (patch) | |
tree | 304522325ec3c50690fba51b68aab9f0d5a20e53 /classes/enea-qcow2.bbclass | |
parent | 0f8054fac4d121594476941307794d0b0b50bd89 (diff) | |
download | meta-el-nfv-access-67ea7dff95f14e603916b53e2dee6359bbf9529b.tar.gz |
qemuarm64: generate one self contained image
that can be booted from qemu like a HDD image.
Building enea-nfv-access-vnf image on aarch64 will result in a
qcow2 image (ready to be booted on a UEFI bootloader) containing
two partitions:
sda1: ESP/FAT32
- grub-efi
- startup.nsh
sda2: ext4
- rootfs
Comparing to qemux86-64 on qemuarm64 must be selected the BIOS:
qemu-system-aarch64 -pflash flash0.img -pflash flash1.img -hda
enea-nfv-access-vnf.qcow2
To generate such a image wic was used. Since wic is using some
hardcoded values specific to x86 (like kernel name) it was decided
for now to create and store locally wic specific modification for arm64.
Currently is no support to build EDKII/UEFI bootloader for aarch64.
It must be built or downloaded from Linaro.
Signed-off-by: Adrian Calianu <adrian.calianu@enea.com>
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'classes/enea-qcow2.bbclass')
-rw-r--r-- | classes/enea-qcow2.bbclass | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/classes/enea-qcow2.bbclass b/classes/enea-qcow2.bbclass new file mode 100644 index 0000000..b086069 --- /dev/null +++ b/classes/enea-qcow2.bbclass | |||
@@ -0,0 +1,7 @@ | |||
1 | IMAGE_TYPES += "wic wic.qcow2" | ||
2 | CONVERSIONTYPES += "qcow2" | ||
3 | CONVERSION_DEPENDS_qcow2 = "qemu-native" | ||
4 | CONVERSION_CMD_qcow2 = "qemu-img convert -O qcow2 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.qcow2" | ||
5 | |||
6 | IMAGE_FSTYPES += "wic wic.qcow2" | ||
7 | WKS_FILE = "enea-systemd-bootdisk-efi.wks" | ||