Joined: 21 Nov 2010 Posts: 278 Location: North America
Posted: Wed Jun 26, 2013 17:30 Post subject:
Malachi wrote:
I've done this multiple times. Is there anything else I can do? Is it beyond repair?
While DD-WRT firmware may not work with Omar's router, I think Buffalo firmware could be flashed to it. You mentioned that you tried flashing the Buffalo unencrypted firmware but it did not complete. What where the error messages? What PC operating system did you use and what TFTP apps did you use? I normally use 64 bit Ubuntu version 12.04 Linux to flash firmwwares; however last week I attempted to use tftp2.exe with 64 bit Windows 7 and it would transfer about 75% of the file and then suddenly abort. The CFE running on the router reported fatal I/O errors.
After thinking about it for awhile, I remembered that Windows 7 has an optional TFTP Client component that by default is not installed. After installing it, I used the TFTP client program to successfully flash the unencrypted firmware to one of my Buffalo routers. TFTP when used with no parameters will display help messages.
I've done this multiple times. Is there anything else I can do? Is it beyond repair?
While DD-WRT firmware may not work with Omar's router, I think Buffalo firmware could be flashed to it. You mentioned that you tried flashing the Buffalo unencrypted firmware but it did not complete. What where the error messages? What PC operating system did you use and what TFTP apps did you use? I normally use 64 bit Ubuntu version 12.04 Linux to flash firmwwares; however last week I attempted to use tftp2.exe with 64 bit Windows 7 and it would transfer about 75% of the file and then suddenly abort. The CFE running on the router reported fatal I/O errors.
After thinking about it for awhile, I remembered that Windows 7 has an optional TFTP Client component that by default is not installed. After installing it, I used the TFTP client program to successfully flash the unencrypted firmware to one of my Buffalo routers. TFTP when used with no parameters will display help messages.
- Magnetron1.1
Using windows xp. I've tried the ddwrttobuff 191 you posted. I've used tftp.exe, tftp2.exe, tftpd32 and command line.
I have a Ubuntu 12.10 disc. I can try it using the live cd. If not i have a spare pc I can install it on but I don't know how to do serial or tftp command on Linux.
Here is what it says after trying to upload the revert file you posted:
CFE> flash -noheader : flash1.trx
Reading : : Failed. : I/O error
*** command status = -4
That's using any and all of the tftp processes. _________________ I am far from a guru, I'm barely a novice.
I guess I'll install Ubuntu and try it.
Ubuntu installed. How do I install drivers for the USB 2.0 to TTL UART 6PIN CP2102 Module Serial Converter?
Windows installed them automatically. I installed putty already but I keep getting putty fatal error unable to open serial port when I try to open it. _________________ I am far from a guru, I'm barely a novice.
Last edited by Malachi on Wed Jun 26, 2013 21:52; edited 2 times in total
Still getting the same error on Ubuntu. Terminal error is
Error code 3: transfer cancelled
Sent 33553920 bytes in 14.6 seconds.
Putty error is as before.
Updated putty log from Ubuntu tftp a couple of posts up. _________________ I am far from a guru, I'm barely a novice.
Joined: 21 Nov 2010 Posts: 278 Location: North America
Posted: Sun Jul 07, 2013 3:18 Post subject:
Malachi wrote:
If anyone has the original 1.86 firmware for this router, could you pm me please?
I want to try to flash it through the serial connection. I don't know what else to try.
Won't do any good as the original 1.86 firmware is encrypted. The CFE can't handle encrypted firmwares. I'm currently working on a revised version of the ddwrt2buffalo191 firmware that will be compatible with 32 bit WindowsXP and TFTP.exe software. While my original unencrypted firmware works fine with 64 bit Ubuntu 12.04 linux/TFTP and 64 bit Windows7/TFTP.exe it doesn't seem to work with 32 bit WindowsXP/TFTP.exe.
Here is the log from a win 7 64bit pc. This is from trying to flash the ddwrt3buff191.bin
Same message when I try to upload the Multi.bin.
Text: 0x87000000 - 0x8704C994 (313748)
DRAM magic offset:00060000 size:00010000
DRAM magic found
Device eth0: hwaddr 12-6F-3F-16-0C-20, ipaddr 192.168.11.1, mask 255.255.255.0
gateway not set, nameserver not set
check_trx: start nflash1.trx
Invalid boot block on disk
check_trx: exit nflash1.trx
fw is broken
blinking led 2
break key pressed!!
CFE> ^C
CFE> nvram erase
*** command status = 0
CFE> flash -noheader : nflash1.trx
Reading :: Failed.: I/O error
*** command status = -4 _________________ I am far from a guru, I'm barely a novice.
Joined: 21 Nov 2010 Posts: 278 Location: North America
Posted: Mon Jul 08, 2013 21:38 Post subject: New Buffalo 191 unencrypted firmware
@Malachi
CMD.exe session of successful flashing of new Buffalo 191 unencrypted f/w using a 32 bit WinXP desktop PC:
C:\WINDOWS\system32>ping 192.168.11.1
Pinging 192.168.11.1 with 32 bytes of data:
Reply from 192.168.11.1: bytes=32 time=1ms TTL=100
Reply from 192.168.11.1: bytes=32 time<1ms TTL=100
Reply from 192.168.11.1: bytes=32 time<1ms TTL=100
Reply from 192.168.11.1: bytes=32 time<1ms TTL=100
Ping statistics for 192.168.11.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms
NOTE: Substitute your routers IP address and your firmware location in place of mine in the "tftp" command
C:\WINDOWS\system32>tftp -i 192.168.11.1 put "C:\Download\Buffalo WZR-D1800H\Buf
falo firmware\ddwrt2buff_d1800h191fw\ddwrt2buff_d1800h191fw_m.bin"
Transfer successful: 25620480 bytes in 32 seconds, 800640 bytes/s
Edit: It's ALIVE! Thanks Magnetron 1.1. Should be 2.0 now.
What was the problem? Something an idiot like me could grasp? Lol
My putty log after successful flash looks a little different than yours but I'm in the router GUI. Is it safe to flash the community build? Or is there something defective with this unit?
This buffalo GUI is hideous. Lol _________________ I am far from a guru, I'm barely a novice.
Joined: 21 Nov 2010 Posts: 278 Location: North America
Posted: Mon Jul 08, 2013 23:51 Post subject:
Malachi wrote:
I'll try it. Thanks.
Edit: It's ALIVE! Thanks Magnetron 1.1. Should be 2.0 now.
What was the problem? Something an idiot like me could grasp? Lol
My putty log after successful flash looks a little different than yours but I'm in the router GUI. Is it safe to flash the community build? Or is there something defective with this unit?
This buffalo GUI is hideous. Lol
I reduced the firmware file size to correspond to the file length field specified in the f/w header by removing 7 MB of useless hex FF's which can cause problems with some combinations of software and hardware.
I omitted about 90% of the PuTTY log information from my post.
Based on your previous PuTTY logs, I would use the Buffalo WebGUI to flash build 21676WZR-D1800H_MULTI.bin. (Remember ... Buffalo f/w is expecting encrypted firmwares when upgrading.) I give it a 50/50 chance of working. Yes, I suspect the NAND flash has bad blocks in critical areas for the DD-WRT firmwares. Even if DD-WRT doesn't work, you can always restore the Buffalo factory firmware.
Thanks. I will try it. So the NAND could be defective. Is that something that is caused by a bad flash?
I did read in another thread that you say not to use build 21676 as it bricks the router. I know I can recover it but did something change from your other recommendation here
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=172272&postdays=0&postorder=asc&start=6 _________________ I am far from a guru, I'm barely a novice.
Joined: 21 Nov 2010 Posts: 278 Location: North America
Posted: Tue Jul 09, 2013 3:42 Post subject:
Malachi wrote:
Thanks. I will try it. So the NAND could be defective. Is that something that is caused by a bad flash?
I did read in another thread that you say not to use build 21676 as it bricks the router. I know I can recover it but did something change from your other recommendation here
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=172272&postdays=0&postorder=asc&start=6
I suppose that a critical sector could have failed during a flash event but odds are it was bad before flashing.
I still don't recommend upgrading to build 21676 based on my experience especially for users that don't have a serial cable. After randomly selecting 4 of my 6 routers for upgrading from build 21286, build 21676 bricked the first 3 routers. Router #4 successfully flashed and booted. If I had continued, routers #5 and #6 also would have been bricked. After comparing the serial logs of the first four routers, I now know what to look for.
After examining your PuTTY log of the router attempting to boot build 21286, I saw this:
Creating 3 MTD partitions on "bcmsflash":
0x000000000000-0x000000080000 : "cfe"
0x000000070000-0x000000080000 : "nvram" <= Build 21676 must see "nvram" and "nvram_cfe" partitions occupying the same addr space
0x000000070000-0x000000080000 : "nvram_cfe" <= Same addr space as "nvram". Build 21676 has a fighting chance of working.
Found a Samsung NAND flash with 2048B pages or 128KB blocks; total size 128MB
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit), 128MiB, page size: 2048, OOB size: 64
Currently, all 6 of my Buffalo routers are running build 21676; however I'm still working on the upgrade procedure.
Any other build I try to put on it results in the same kernel panic as before. The only thing that works is the modified factory fw you gave me Megatron1.1
I wonder if I will ever be able to even upgrade the official buffalo releases, assuming there will be any. _________________ I am far from a guru, I'm barely a novice.
I was able with magnetron's help, to get stock firmware back on it. You were able to use draytek to flash dd-wrt onto it? _________________ I am far from a guru, I'm barely a novice.