mvebu: uDPU: add sysupgrade support
authorVladimir Vid <vladimir.vid@sartura.hr>
Mon, 22 Jul 2019 11:08:18 +0000 (13:08 +0200)
committerLuka Perkov <luka.perkov@sartura.hr>
Sat, 24 Aug 2019 21:11:15 +0000 (23:11 +0200)
commit7dff6a8c89e30e660ef077d31ec0358a04161271
treeab5b7fde846145b8ab0531ae41c78596a25b178c
parent52cbe6b9c0865c8398c2fd23d1cf56a1afdb66f7
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 <vladimir.vid@sartura.hr>
package/boot/uboot-envtools/files/mvebu
target/linux/mvebu/base-files/etc/board.d/02_network
target/linux/mvebu/base-files/lib/preinit/82_uDPU [new file with mode: 0644]
target/linux/mvebu/base-files/lib/upgrade/platform.sh
target/linux/mvebu/base-files/lib/upgrade/uDPU.sh [new file with mode: 0644]
target/linux/mvebu/image/Makefile
target/linux/mvebu/image/cortex-a53.mk
target/linux/mvebu/image/udpu.bootscript [new file with mode: 0644]