From 7dff6a8c89e30e660ef077d31ec0358a04161271 Mon Sep 17 00:00:00 2001 From: Vladimir Vid Date: Mon, 22 Jul 2019 13:08:18 +0200 Subject: mvebu: uDPU: add sysupgrade support This patch adds sysupgrade, uboot-env and networking support for Methode uDPU device. Device features 4 partitions: ----------------------------------------- | boot | recovery | rootfs | misc | | (ext4) | (ext4) | (fsf2) | (f2fs) | _________________________________________ Idea was to use f2fs only but the u-boot currently lacks support so first 2 partition are ext4 to be u-boot readable, and this was a reason why custom build and sysupgrade sections were required. On the sysupgrade, boot and rootfs partitions are updated, firmare image and user configuration is saved on the misc partition and if the upgrade was successfull, recovery partition will be updated on after the reboot from preinit script. If the sysupgrade fails for any reason, device will fallback to recovery initramfs image. Signed-off-by: Vladimir Vid --- target/linux/mvebu/image/cortex-a53.mk | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'target/linux/mvebu/image/cortex-a53.mk') diff --git a/target/linux/mvebu/image/cortex-a53.mk b/target/linux/mvebu/image/cortex-a53.mk index 228155ec11..e0b2b5e186 100644 --- a/target/linux/mvebu/image/cortex-a53.mk +++ b/target/linux/mvebu/image/cortex-a53.mk @@ -35,7 +35,7 @@ define Device/marvell_armada-3720-db endef TARGET_DEVICES += marvell_armada-3720-db -define Device/methode_uDPU +define Device/methode_udpu $(call Device/Default-arm64) DEVICE_TITLE := Methode micro-DPU (uDPU) DEVICE_DTS := armada-3720-uDPU @@ -44,8 +44,12 @@ define Device/methode_uDPU KERNEL_INITRAMFS_SUFFIX := .itb DEVICE_PACKAGES := f2fs-tools e2fsprogs fdisk ethtool kmod-usb2 kmod-usb3 \ kmod-e100 kmod-e1000 kmod-e1000e kmod-igb kmod-ixgbevf \ - kmod-mdio-gpio kmod-switch-mvsw61xx + kmod-mdio-gpio kmod-switch-mvsw61xx kmod-i2c-pxa + IMAGE_NAME = $$(IMAGE_PREFIX)-$$(2) + IMAGES := firmware.tgz + IMAGE/firmware.tgz := boot-scr | boot-img-ext4 | uDPU-firmware | append-metadata + BOOT_SCRIPT := udpu endef -TARGET_DEVICES += methode_uDPU +TARGET_DEVICES += methode_udpu endif -- cgit v1.2.3