Hi,
I followed the information on http://wiki.openwrt.org/doc/techref/bootloader/cfe?s[]=cfe to create a custom cfe with boot_wait=on by default and reset_gpio=6. I had to use a hex editor to make the changes as I couldn't find nvserial (link is broken).
I am not able to flash the modified .bin file because the mtdblock0 device is read-only. Does anyone know how to get around that in the current kernel? The url mentions this and provides a kernel patch, but it doesn't apply to the 2.6 kernel source. It looks like the mtd driver was moved and re-written since 2.4.x
Does anyone know how to get the device to be writable?
root@OpenWrt:~# cat /sys/block/mtdblock0/ro
1
From dmesg:
Creating 4 MTD partitions on "Physically mapped flash":
0x000000000000-0x000000040000 : "cfe"
0x000000040000-0x0000003f0000 : "linux"
0x00000011a400-0x0000003f0000 : "rootfs"
[...]
root@OpenWrt:/sys/devices/virtual/mtd/mtd0# mtd unlock cfe
Could not open mtd device: cfe
root@OpenWrt:/tmp# mtd write -f /tmp/cfe-new.bin cfe
Could not open mtd device: cfe
Can't open device for writing!