summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
44dfe17)
This way people forcing upgrade will know what may go wrong.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45172
local file_type=$(brcm47xx_identify "$1")
local magic
local file_type=$(brcm47xx_identify "$1")
local magic
case "$file_type" in
"chk")
case "$file_type" in
"chk")
[ -n "$dev_board_id" -a "$board_id" != "$dev_board_id" ] && {
echo "Firmware board_id doesn't match device board_id ($dev_board_id)"
[ -n "$dev_board_id" -a "$board_id" != "$dev_board_id" ] && {
echo "Firmware board_id doesn't match device board_id ($dev_board_id)"
}
magic=$(get_magic_long_at "$1" "$header_len")
[ "$magic" != "48445230" ] && {
echo "No valid TRX firmware in the CHK image"
}
magic=$(get_magic_long_at "$1" "$header_len")
[ "$magic" != "48445230" ] && {
echo "No valid TRX firmware in the CHK image"
;;
"cybertan")
local pattern=$(dd if="$1" bs=1 count=4 2>/dev/null | hexdump -v -e '1/1 "%c"')
;;
"cybertan")
local pattern=$(dd if="$1" bs=1 count=4 2>/dev/null | hexdump -v -e '1/1 "%c"')
[ -n "$dev_pattern" -a "$pattern" != "$dev_pattern" ] && {
echo "Firmware pattern doesn't match device pattern ($dev_pattern)"
[ -n "$dev_pattern" -a "$pattern" != "$dev_pattern" ] && {
echo "Firmware pattern doesn't match device pattern ($dev_pattern)"
}
magic=$(get_magic_long_at "$1" 32)
[ "$magic" != "48445230" ] && {
echo "No valid TRX firmware in the CyberTAN image"
}
magic=$(get_magic_long_at "$1" 32)
[ "$magic" != "48445230" ] && {
echo "No valid TRX firmware in the CyberTAN image"
;;
*)
echo "Invalid image type. Please use only .trx files"
;;
*)
echo "Invalid image type. Please use only .trx files"
}
platform_do_upgrade_chk() {
}
platform_do_upgrade_chk() {