From: Grazvydas Ignotas Date: Thu, 22 Mar 2012 22:41:53 +0000 (+0200) Subject: flasher: use nanddump to avoid dep on mtdblock X-Git-Tag: sz_beta3~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3524a60104d4a19ec31657c78688276ae7b89fb7;p=pandora-misc.git flasher: use nanddump to avoid dep on mtdblock --- diff --git a/flasher/rootfs/etc/updater.sh b/flasher/rootfs/etc/updater.sh index 6c89886..8478382 100755 --- a/flasher/rootfs/etc/updater.sh +++ b/flasher/rootfs/etc/updater.sh @@ -96,7 +96,7 @@ done if [ -e u-boot.bin ] then size=`stat -c %s u-boot.bin` - dd if=/dev/mtdblock1 of=u-boot.bin.flashed bs=$size count=1 + nanddump --omitoob --omitbad -q -l $size -f u-boot.bin.flashed /dev/mtd1ro if ! cmp u-boot.bin u-boot.bin.flashed then flash_eraseall /dev/mtd1 @@ -111,7 +111,8 @@ else log "u-boot is missing, skipped." fi -if ! cmp /dev/mtdblock2 /usr/local/erasednandblk +nanddump --omitoob --omitbad -q -f mtd2dump /dev/mtd2ro +if ! cmp mtd2dump /usr/local/erasednandblk then flash_eraseall /dev/mtd2 status_uboot_env="cleared"