Skip to content
Snippets Groups Projects
  • Sven Eckelmann's avatar
    78a5d25d
    ar71xx: Skip more hashed blocks for OM2P(-HS) 64k variant · 78a5d25d
    Sven Eckelmann authored
    
    The OM2P(-HS)v4 got a variant which uses a slightly different flash. The
    standard versions used a flash with 256KB blocks which is no longer
    available. The replacement flash uses a flash with 64K blocks.
    
    The padding for the image rootfs is already for 64K and 256K and thus can
    be flashed on the device without any problems. Unfortunately, the
    bootloader will check $rootfs_size (rounded down to the nearest 64k block)
    minus 1x 64k. But it is now possible that the new JFFS2 rootfs_data starts
    even earlier and modifies the checked region. The check will then fail and
    the backup image (when available) will be booted.
    
    Just setting it to the same number of skipped blocks as other 64K models
    avoids this problem.
    
    Signed-off-by: default avatarSven Eckelmann <sven.eckelmann@openmesh.com>
    78a5d25d
    History
    ar71xx: Skip more hashed blocks for OM2P(-HS) 64k variant
    Sven Eckelmann authored
    
    The OM2P(-HS)v4 got a variant which uses a slightly different flash. The
    standard versions used a flash with 256KB blocks which is no longer
    available. The replacement flash uses a flash with 64K blocks.
    
    The padding for the image rootfs is already for 64K and 256K and thus can
    be flashed on the device without any problems. Unfortunately, the
    bootloader will check $rootfs_size (rounded down to the nearest 64k block)
    minus 1x 64k. But it is now possible that the new JFFS2 rootfs_data starts
    even earlier and modifies the checked region. The check will then fail and
    the backup image (when available) will be booted.
    
    Just setting it to the same number of skipped blocks as other 64K models
    avoids this problem.
    
    Signed-off-by: default avatarSven Eckelmann <sven.eckelmann@openmesh.com>