openwrt/target/linux/mvebu
INAGAKI Hiroshi 06fed85948 mvebu: improve sysupgrade for FortiGate/FortiWiFi devices
Update sysupgrade script (fortinet.sh) for Fortinet devices in
mvebu/cortexa9 and fix the following issues,

- Some individuals of FortiGate/FortiWiFi 30E/5xE devices has wrong
  kernel/rootfs offsets in "firmware-info" partition and they are not
  updated with the current sysupgrade script for Fortinet devices
  (fortinet.sh).
  As a result, the bootloader tries to load kernel data from the wrong
  address and boot with it after OpenWrt installation.
  The new script handles offsets in addition to length values.

and improve the following points.

- Only 2 bytes are handled with the current sysupgrade script
  (fortinet.sh) for kernel/rootfs length. The new script handles 4 bytes
  instead.

- The image names of image0/image1 are not handled and not updated when
  sysupgrade. The new sysupgrade script handles it and update to
  "<dist> <version> <revision>" if firmware metadata is available.
  (ex.: "OpenWrt SNAPSHOT r27440-25384026")

log of new sysupgrade script (fortinet.sh):

Tue Sep 17 10:29:16 UTC 2024 upgrade: Performing system upgrade...
Image Index: 0
Image Name : "OpenWrt SNAPSHOT r27440-25384026"
             --> "OpenWrt SNAPSHOT r27441-b3a0806a05"

  kernel:
    old: 0x003c4e00@0x00200000
    new: 0x003c4e00@0x00200000

  rootfs:
    old: 0x005c0200@0x00800000
    new: 0x005c0200@0x00800000

Unlocking kernel ...

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16409
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-09-22 15:29:16 +02:00
..
base-files/lib/preinit mvebu: switch to generic sdcard upgrade method 2021-08-07 01:43:39 +03:00
cortexa9 mvebu: improve sysupgrade for FortiGate/FortiWiFi devices 2024-09-22 15:29:16 +02:00
cortexa53 mvebu: uDPU/eDPU: mount misc partition with ZSTD compression 2024-06-17 20:16:20 +02:00
cortexa72 mvebu: rb5009: wire SFP led by default 2024-07-12 09:51:46 +02:00
files-6.6/arch mvebu: update triggers of "SPEED" LEDs on FortiGate/FortiWiFi devices 2024-09-22 15:29:16 +02:00
image mvebu: GL-MV1000: add custom boot script 2024-08-06 21:46:25 +02:00
patches-6.6 mvebu: 6.6: Backport Turris Omnia MCU patches from 6.11 2024-08-02 22:11:05 +02:00
config-6.6 mvebu: enable CONFIG_MTD_SPI_NOR_USE_VARIABLE_ERASE=y config option 2024-08-06 21:46:25 +02:00
Makefile mvebu: switch to kernel 6.6 2024-05-12 11:29:23 +02:00
modules.mk mvebu: Add kmod-turris-omnia-mcu 2024-08-02 22:11:05 +02:00