Message ID | 20230523082947.5774-1-hung.tran.jy@renesas.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | [isar-cip-core] swupdate: Enable SWUpdate for RZG2M | expand |
On 23.05.23 10:29, Hung Tran wrote: > SWUpdate will be available for target device HiHope RZ/G2M after > this change. > > Signed-off-by: Hung Tran <hung.tran.jy@renesas.com> > --- > Kconfig | 2 +- > wic/hihope-rzg2m-efibootguard.wks.in | 14 ++++++++++++++ > 2 files changed, 15 insertions(+), 1 deletion(-) > create mode 100644 wic/hihope-rzg2m-efibootguard.wks.in > > diff --git a/Kconfig b/Kconfig > index e1e187f..74fbc76 100644 > --- a/Kconfig > +++ b/Kconfig > @@ -181,7 +181,7 @@ if IMAGE_FLASH && !KERNEL_4_4 && !KERNEL_4_19 > > config IMAGE_SWUPDATE > bool "SWUpdate support for root partition" > - depends on TARGET_QEMU_AMD64 || TARGET_SIMATIC_IPC227E || TARGET_QEMU_ARM64 || TARGET_QEMU_ARM || TARGET_BBB || ( TARGET_QEMU_RISCV64 && KERNEL_6_1_MAINLINE ) > + depends on TARGET_QEMU_AMD64 || TARGET_SIMATIC_IPC227E || TARGET_QEMU_ARM64 || TARGET_QEMU_ARM || TARGET_BBB || ( TARGET_QEMU_RISCV64 && KERNEL_6_1_MAINLINE ) || TARGET_HIHOPE_RZG2M > > config IMAGE_SECURE_BOOT > bool "Secure boot support" > diff --git a/wic/hihope-rzg2m-efibootguard.wks.in b/wic/hihope-rzg2m-efibootguard.wks.in > new file mode 100644 > index 0000000..dc32729 > --- /dev/null > +++ b/wic/hihope-rzg2m-efibootguard.wks.in > @@ -0,0 +1,14 @@ > +# short-description: RZ/G2M image with EFI Boot Guard and SWUpdate > +# long-description: Disk image for HiHope RZ/G2M board with EFI Boot Guard and SWUpdate > + > +include ebg-sysparts.inc > + > +part --source rawcopy --sourceparams "file=${IMAGE_FULLNAME}.squashfs" --align 1024 --fixed-size 1G --uuid "${ABROOTFS_PART_UUID_A}" > +part --source empty --align 1024 --fixed-size 1G --uuid "${ABROOTFS_PART_UUID_B}" > + > +# home and var are extra partitions > + > +part /home --source rootfs --rootfs-dir=${IMAGE_ROOTFS}/home --fstype=ext4 --label home --align 1024 --size 1G --extra-space=100M > +part /var --source rootfs --rootfs-dir=${IMAGE_ROOTFS}/var --fstype=ext4 --label var --align 1024 --size 2G --extra-space=100M > + > +bootloader --ptable gpt --append="console=tty0 console=ttySC0,115200 rootwait earlyprintk" Nice that no other changes were needed to enable this. Thanks, applied. Jan
diff --git a/Kconfig b/Kconfig index e1e187f..74fbc76 100644 --- a/Kconfig +++ b/Kconfig @@ -181,7 +181,7 @@ if IMAGE_FLASH && !KERNEL_4_4 && !KERNEL_4_19 config IMAGE_SWUPDATE bool "SWUpdate support for root partition" - depends on TARGET_QEMU_AMD64 || TARGET_SIMATIC_IPC227E || TARGET_QEMU_ARM64 || TARGET_QEMU_ARM || TARGET_BBB || ( TARGET_QEMU_RISCV64 && KERNEL_6_1_MAINLINE ) + depends on TARGET_QEMU_AMD64 || TARGET_SIMATIC_IPC227E || TARGET_QEMU_ARM64 || TARGET_QEMU_ARM || TARGET_BBB || ( TARGET_QEMU_RISCV64 && KERNEL_6_1_MAINLINE ) || TARGET_HIHOPE_RZG2M config IMAGE_SECURE_BOOT bool "Secure boot support" diff --git a/wic/hihope-rzg2m-efibootguard.wks.in b/wic/hihope-rzg2m-efibootguard.wks.in new file mode 100644 index 0000000..dc32729 --- /dev/null +++ b/wic/hihope-rzg2m-efibootguard.wks.in @@ -0,0 +1,14 @@ +# short-description: RZ/G2M image with EFI Boot Guard and SWUpdate +# long-description: Disk image for HiHope RZ/G2M board with EFI Boot Guard and SWUpdate + +include ebg-sysparts.inc + +part --source rawcopy --sourceparams "file=${IMAGE_FULLNAME}.squashfs" --align 1024 --fixed-size 1G --uuid "${ABROOTFS_PART_UUID_A}" +part --source empty --align 1024 --fixed-size 1G --uuid "${ABROOTFS_PART_UUID_B}" + +# home and var are extra partitions + +part /home --source rootfs --rootfs-dir=${IMAGE_ROOTFS}/home --fstype=ext4 --label home --align 1024 --size 1G --extra-space=100M +part /var --source rootfs --rootfs-dir=${IMAGE_ROOTFS}/var --fstype=ext4 --label var --align 1024 --size 2G --extra-space=100M + +bootloader --ptable gpt --append="console=tty0 console=ttySC0,115200 rootwait earlyprintk"
SWUpdate will be available for target device HiHope RZ/G2M after this change. Signed-off-by: Hung Tran <hung.tran.jy@renesas.com> --- Kconfig | 2 +- wic/hihope-rzg2m-efibootguard.wks.in | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 wic/hihope-rzg2m-efibootguard.wks.in