If the *.img file is larger than 0x1e8000 loading it with flash -s 0x100000 -d 0xffe0...
authorFlorian Fainelli <florian@openwrt.org>
Sat, 5 Jul 2008 13:38:19 +0000 (13:38 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sat, 5 Jul 2008 13:38:19 +0000 (13:38 +0000)
commit7d81c1b6ccb39833ab3ff5f2f890bc03e22c9d84
treed0077ceeac58e85654fa3afd0a3cbd41feee2fdb
parent34d362d1a7c6c28b7a2d7c364972ef14091b29b9
If the *.img file is larger than 0x1e8000 loading it with flash -s 0x100000 -d 0xffe08000 -l <length>

on the bootloader prompt will destroy the bootloader and brick the device. The attached patch tries to implement a size check and renames the image into *.img.too_big. It applies to svn r11401.
Signed-off-by: Joerg Albert <jal2@gmx.de>
SVN-Revision: 11662
target/linux/rdc/image/Makefile