forked from openwrt/openwrt
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 image1/image2 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 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>
- Loading branch information
1 parent
0c64aa2
commit 6b6f5a9
Showing
2 changed files
with
149 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters