Hi all,
I have a problem with sysupgrade failing prematurely because my nand flash 
contains bad blocks. This results in an incomplete rootfs image in flash upon 
reboot from sysupgrade. I am running an attitude adjustment derivative (svn 
r35400) for custom hardware.
Uboot / the kernel seem to deal with bad flash blocks correctly, this only 
occurs when using mtd via sysupgrade.

This is what I see:

# sysupgrade openwrt-lpc32xx-JNRD6040--jffs2-sysupgrade.bin
Saving config files...
Sending TERM to remaining processes ... syslogd klogd hotplug2 ubusd netifd 
mrd6 dbus-daemon dnsmasq avahi-daemon
Sending KILL to remaining processes ...
Switching to ramdisk...
Performing system upgrade...
Unlocking firmware ...

Writing from <stdin> to firmware ...  [e][  502.560000] nand_erase_nand: 
attempt to erase a bad block at page 0x00002080
Failed to erase block
Upgrade completed
Rebooting system...
[  502.580000] Restarting system.

I found this ticket from a while ago that seems to cover this:

https://dev.openwrt.org/ticket/11749

Looking at the latest version of mtd in trunk I can't see anything to address 
this issue - is this something that is not that common and so hasn't been 
observed on other hardware?

Thanks,
Matt


_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to