|
|
@ -62,12 +62,12 @@ platform_do_upgrade() { |
|
|
|
|
|
|
|
|
|
|
|
[ -b "${rootfs}" ] || return 1 |
|
|
|
[ -b "${rootfs}" ] || return 1 |
|
|
|
case "$board" in |
|
|
|
case "$board" in |
|
|
|
erlite) |
|
|
|
|
|
|
|
kernel=sda1 |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
er) |
|
|
|
er) |
|
|
|
kernel=mmcblk0p1 |
|
|
|
kernel=mmcblk0p1 |
|
|
|
;; |
|
|
|
;; |
|
|
|
|
|
|
|
erlite) |
|
|
|
|
|
|
|
kernel=sda1 |
|
|
|
|
|
|
|
;; |
|
|
|
*) |
|
|
|
*) |
|
|
|
return 1 |
|
|
|
return 1 |
|
|
|
esac |
|
|
|
esac |
|
|
@ -82,8 +82,8 @@ platform_check_image() { |
|
|
|
local board=$(board_name) |
|
|
|
local board=$(board_name) |
|
|
|
|
|
|
|
|
|
|
|
case "$board" in |
|
|
|
case "$board" in |
|
|
|
erlite | \ |
|
|
|
er | \ |
|
|
|
er) |
|
|
|
erlite) |
|
|
|
local tar_file="$1" |
|
|
|
local tar_file="$1" |
|
|
|
local kernel_length=`(tar xf $tar_file sysupgrade-$board/kernel -O | wc -c) 2> /dev/null` |
|
|
|
local kernel_length=`(tar xf $tar_file sysupgrade-$board/kernel -O | wc -c) 2> /dev/null` |
|
|
|
local rootfs_length=`(tar xf $tar_file sysupgrade-$board/root -O | wc -c) 2> /dev/null` |
|
|
|
local rootfs_length=`(tar xf $tar_file sysupgrade-$board/root -O | wc -c) 2> /dev/null` |
|
|
|