Changeset 28700


Ignore:
Timestamp:
2011-11-01T10:23:32+01:00 (6 years ago)
Author:
juhosg
Message:

ar71xx/all0258n: sysupgrade support

U-Boot on the ALL0258N needs offset, size and md5 for kernel and rootfs to be
stored in the U-Boot environment.
If the checksums don't match during boot, a failsafe-system is booted instead.
This patch adds a board-specific sysupgrade hack for the all0258n which
calculates and updates the checksums for the U-Boot environment.

Signed-off-by: Daniel Golle <dgolle@…>

Location:
trunk/target/linux/ar71xx/base-files/lib/upgrade
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/base-files/lib/upgrade/platform.sh

    r28678 r28700  
    7070 
    7171        case "$board" in 
     72        all0258n ) 
     73                platform_check_image_all0258n "$1" && return 0 
     74                return 1 
     75                ;; 
    7276        ap121 | ap121-mini | ap96 | db120 | zcn-1523h-2 | zcn-1523h-5) 
    7377                [ "$magic_long" != "68737173" -a "$magic_long" != "19852003" ] && { 
     
    142146                platform_do_upgrade_combined "$ARGV" 
    143147                ;; 
     148        all0258n ) 
     149                platform_do_upgrade_all0258n "$ARGV" 
     150                ;; 
    144151        *) 
    145152                default_do_upgrade "$ARGV" 
Note: See TracChangeset for help on using the changeset viewer.