Sponsored Links

Hacking around the Japanese Buffalo WZR-HP-G300NH

(2010-12-09 Now unstuck this page because I plan to overwrite with Openwrt – will publish a writeup about this).

UPDATE 2010-09-17 : look in comments for serial port pinouts…

UPDATE 2010-10-02 : A reader of this site has discovered what to set in the environment variables which tells the Japanese firmware to accept ANY alternate firmware upgrade! Thanks to “Zgembo”! See comments for details.

Please note before embarking on this adventure;

1) Opening your router’s casing instantly makes your warranty go *POFF*.

2) This is a reasonably technical article – if you don’t know how to solder cables to motherboards, don’t know how to set up a tftp server, don’t know what a terminal emulator is, can’t google to find out – then this article is not for you – it’s for people who are able to do what I’ve done and can understand what is going on. However, if you wish to learn, and know you will be capable of finding out how those tasks above are done, read on 8)

3) I take absolutely NO responsibility for any harm you may do to your hardware. None. Zip. Nada. What I outline here worked for me and still does. If you managed to burn down your house, or melt the Arctic ice cap, or flood your continent with the oceans, or any other disaster, then it was your fault for trying this and not mine. I didn’t ask you to, and this is for information purposes only for those interested.

So impressed was I with the specifications of this router that I just had to get it – even before I knew whether I could run alternate firmware on it or not – but I assumed that I would be able to. So having returned home with prized router in hand I proceeded to unpack it, plug it in and set it up.

I’m from the UK, but I now live and work in Japan. I’ve been studying Japanese for more than 2 years but I’m really not that cut out to learn the language – too many other interesting things to do – like tinker with shiny new hardware for example.

So the router powers up, and I get to its configuration page. Ugh. Default Buffalo firmware (of course). Not only that, it’s in Japanese (it being the Japanese model of course) but not only that no option to set it to English. How considerate – not.

Question to the router manufacturers… WHY IS YOUR STOCK FIRMWARE ALWAYS SO AWFUL!?!?! Ok, lets see if there’s dd-wrt support for it yet. Oh, a .tftp binary has been released for this model! Good. Oh it’s still a Work In Progress release (i.e. may contain many show-stopping bugs) but what the heck I’ll just upgrade the thing anyway because surely anything is better than the dreck which is lurking inside this router!

Downloaded, ok let’s follow the upgrade instructions – which are to power the router off, configure an ethernet port to 192.168.11.2, then run tftp, prepare that to send the image to 192.168.11.1, power up the router, send the image and them WHAMMO you have a nice shiny router with dd-wrt running on it and all my problems are over!

THINK AGAIN! “Hmm. This firmware is not installing. How… annoying.” After the umpteenth time performing this operation, it was time to go onto the dd-wrt forums and start asking questions. After about a week of that, and getting very little progress (I was still giving the Japanese Bufallo firmware blank stares), it was Time To Take Matters Into My Own Hands.

So, here’s the skinny on this Japanese model router. OK first thing I need is a serial console – how do I do that? There’s no serial interface on the unit I can simply plug into and go. There is however a serial interface on the motherboard – but its TTL level (3.3 volts) so I’d need to either build a TTL-serial converter circuit OR, and this is the nifty thing – I could by a conveniently available USB to TTL serial cable. Which has all the necessary electronics packed into the USB head, and the other end has 5 wires which I can use to solder onto the relevent motherboard connections.

That was that problem solved. So, armed with Ubuntu, a USB-TTL serial cable wired to the motherboard, and my knowledge, I decided to have a poke around the unit…

Preamble and prerequisite:

This section describes what I found out about why dd-wrt would not install on the Japanese WZR-HP-G300N. The sections after this one describe in detail how to get to the u-boot console and get the firmware installed. Note that since Brainslayer of dd-wrt has been working on the Japanese models, he has now been able to produce dd-wrt images which can be upgraded from the Buffalo web interface. This article is for those who like me, like tinkering at the console of these devices – or who have managed to somehow brick their router and who’s only way of getting the firmware installed is by using this method. What you will need to do is have your own tftp server ready with the various firmware images you wish to transfer to the router for upgrading/testing/hacking.

A week or so ago a dd-wrt image for a WIP version for the WZR-HP-G300NH was available for download. Many WZR users could use this to upgrade their non-JP WZR’s via tftp. I and others could not on our JP models.

Buffalo Japan seems to have altered the version of u-boot they provide on the JP WZR’s so that even though it’ll TFTP an image file down from your PC or laptop, it’ll just jump straight to the existing firmware after at that and boot that up. Obviously to prevent nasty people like me from using non-Buffalo firmware 8)

During my tinkering, I managed to get into the u-boot console prompt and could experiment with the image files I had – Buffalo images and the dd-wrt image.

Via u-boot, I could use its tftpboot command to transfer a firmware image from a tftp server to a temp area of the unit’s memory, 0x81f00000. Using u-boot’s iminfo command I could then see what u-boot thought of the image – good or bad – and found something interesting. u-boot thought the dd-wrt image mentioned above had a bad magic number:

ar7100> tftpboot 81f00000 dd-wrt-wzrg300nh-firmware-ORIG.tftp

Trying eth0

eth0 is duplex

ag7100_check_link: _100BASET

Using eth0 device

TFTP from server 192.168.11.2; our IP address is 192.168.11.1

Filename ‘dd-wrt-wzrg300nh-firmware-ORIG.tftp’.

Load address: 0x81f00000

Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################# done

Bytes transferred = 10895392 (a64020 hex)

ar7100> iminfo

## Checking Image at 81f00000 … Bad Magic Number

ar7100>

 

 

 

 

 

 

 

 

 

 

 

 

Click for a larger view.

dd-wrt tftp image file opened in Ghex

 

 

 

 

 

 

 

 

 

“Interesting.”, I thought. “Why would that be?”, I wondered. A bit of googling later and I found the answer. The problem is u-boot is looking for a sequence of bytes at the beginning of the file – the magic number – but in this case is not finding it. So I open up the dd-wrt tftp image file with a hex editor (Ghex on ubuntu)…

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Magic number appears after blurred out text.

Magic number appears after the blurred out tex

 

 

 

 

 

 

 

 

 

 

The dd-wrt tftp image has a header in front of this magic number which is confusing u-boot. The sequence of bytes of the Magic Number is : 27 05 19 56, which on that dd-wrt is located at offset 0x20. I have blurred out the sequence of bytes before the magic number in the hext image:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

End result of removing the bytes before the magic number.

End result of removing the bytes before the magic number.

 

 

 

 

 

 

 

 

 

Using the hex editor place the cursor over the 2 of the 27 and use Backspace to remove all the bytes before that sequence:

 

 

 

 

 

 

 

 

 

Save the file under a new filename. Now I have a dd-wrt image file which has the magic number right at the start of the file. I transferred the edited image from my tftp server and verified the image:

ar7100> iminfo

## Checking Image at 81f00000 …
Image Name: DD-WRT v24 Linux Kernel Image
Created: 2010-02-03 14:14:55 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1017569 Bytes = 993.7 kB
Load Address: 80002000
Entry Point: 802cd000
Verifying Checksum … OK
ar7100>

This looks much better! So now we have a dd-wrt image file which looks good – keep that file for later – we’ll need it.

To summarise, basically, if you want the Buffalo Japan-provided u-boot loader to recognise your firmware image of choice, the firmware image needs to start with the magic number sequence mentioned above in order for the firmware image to be recognised. This works for that dd-wrt image AND also the OpenWRT images they’re now producing for the WZR-HP-G300NH.

OK, here’s the main procedure, now that we have an image file which the JP u-boot will use:

1) Serial console required

Wire up a serial terminal to the WZR’s motherboard using a USB<—>TTL 3.3V serial cable. This gains you access to the serial console of the WZR where you can perform the magic. These cables can be bought from somewhere like RS Components. There are also cellphone cables available which do the same thing. Google is your friend.

2) Terminal emulator and u-boot console command prompt

From the terminal emulator of your choice (I’m using minicom configured for /dev/ttyUSB0 at 115200,8,N,1), watch the console messages as you power the WZR on. The power up sequence looks like this:

BUFFALO U-BOOT Ver 1.02

AP83–539 (ar9100) U-boot 0.0.12

64 MB

Memory Test (address line)

Memory Test start(0x00000000) end(0x04000000) size(67108864)

Data line test start:0x00000000 pattern 0x00000001 0x00000003 0x00000007 0x0000000F 0x00000005 0x00000015 0x00000055 0xAAAAAAAA

Address line test start:0x00000000 len:0x4000000 pattern 0xAAAAAAAA 0x55555555

Fill test patnum:5

fill Pattern 5555AAAA Writing… Reading…

fill Pattern AAAA5555 Writing… Reading…

fill Pattern 0000FFFF Writing… Reading…

fill Pattern FFFF0000 Writing… Reading…

fill Pattern AAAAAAAA Writing… Reading…

Top of RAM usable for U-Boot at: 84000000

Reserving 250k for U-Boot at: 83fc0000

Reserving 256k for malloc() at: 83f80000

Reserving 44 Bytes for Board Info at: 83f7ffd4

Reserving 36 Bytes for Global Data at: 83f7ffb0

Reserving 128k for boot params() at: 83f5ffb0

Stack Pointer at: 83f5ff98

Now running in RAM – U-Boot at: 83fc0000 Dev ID2:2222

Name: AMD-SPANSION Flash id: 0x1227E, Size: 33554432 bytes.

Flash: 32 MB In: serial Out: serial Err: serial

Memory Test uboot use 83F5FFB0 – 84000000

Memory Test start(80000000) end(83F00000) size(03F00000) Pattern 00000000 Writing… Reading…

Memory Test OK

### buf_ver=[1.02] U-Boot Ver.=[1.02]

### build_date(env)=[Feb 16 2009 – 10:47:08] build_date(bin)=[Feb 16 2009 – 10:47:08]

ag7100_enet_initialize…

: cfg1 0xf cfg2 0x7114

rtl8366sr_phy_setup eth

Unit=0 Realtek 8366SR

switch ID 0x8366 Realtek

Greeen Ethernet Setup

eth0: 02:aa:bb:cc:dd:1a

eth0 up : cfg1 0xf cfg2 0x7114

eth1: 02:aa:bb:cc:dd:1a

eth1 up

eth0 02:AA:BB:CC:DD:1A

, eth1 02:AA:BB:CC:DD:1A

Trying eth0

eth0 is duplex

ag7100_check_link: _100BASET dup 1 speed 100

CFG_PLL_FREQ=5

CFG_HZ=bebc200

cpu pll=1050 eth pll=1032

eth0 clk pll=13000a44

eth0 mii=12

eth0 cfg1=f

eth0 cfg2=7115

eth0 fcfg_0=1d1f00

eth0 fcfg_1=7ff0000

eth0 fcfg_2=fff

eth0 fcfg_3=780008

eth0 fcfg_4=3ffff

eth0 fcfg_5=3ffff

3) Quickly interrupt u-boot at the tftp stage

It is when you see the following that you must press CTRL-C!!

tftp server(receive) go, waiting:4[sec]

Trying eth1 eth1 link down FAIL

Trying eth0 eth0 is duplex

ag7100_check_link: _100BASET

Load address: 0x81f00000

Then you’ll get this:

Abort no file was loaded.

### main_loop entered: bootdelay=4

### main_loop: bootcmd=”bootm 0x81f00000″

Hit any key to stop autoboot: 0

Hit CTRL-C again at this point! The router will then stop the boot sequence and enter the u-boot console, which is where you have complete control over what you can do with the router :)

ar7100>

While we’re at the u-boot console prompt, let’s take a look at the u-boot environment variables, because that gives us a lot of useful information about how Buffalo has configured this router. We do this by using the printenv command as shown below…

ar7100> printenv

bootargs=console=ttyS0,115200 root=31:03 rootfstype=jffs2 init=/sbin/init mtdparts=ar9100-nor0:256k(u-boot),128k(u-boot-env),1024k(uImag)

bootdelay=4

baudrate=115200

ethaddr=02:AA:BB:CC:DD:1A

tmp_ram=81F00000

tmp_bottom=83F00000

fw_eaddr=BE060000 BFFDFFFF

uboot_eaddr=BE000000 BE03FFFF

u_fw=erase $fw_eaddr; cp.b $fileaddr BE060000 $filesize; bootm BE060000;

ut_fw=tftp $tmp_ram firmware.bin; erase $fw_eaddr; cp.b $fileaddr BE060000 $filesize; bootm BE060000;

ut_uboot=tftp $tmp_ram u-boot.bin; protect off $uboot_eaddr; erase $uboot_eaddr; cp.b $fileaddr BE000000 $filesize;

melco_id=RD_BB08009

hw_rev=0

tftp_wait=4

uboot_ethaddr=02:AA:BB:CC:DD:1A

DEF-p_wireless_ath0_11bg-authmode=psk

DEF-p_wireless_ath0_11bg-crypto=tkip+aes

DEF-p_wireless_ath0_11bg-authmode_ex=mixed-psk

custom_id=0

buf_ver=1.02

build_date=Feb 16 2009 – 10:47:08

pincode=51560850

DEF-p_wireless_ath0_11bg-wpapsk=0bm5ujdb4d884

buf_crc=22625AFC

mtdids=nor0=ar9100-nor0

bootcmd=bootm 0x81f00000

region=JP

bootm=0xbe060000

ipaddr=192.168.1.99

serverip=192.168.1.9

stdin=serial

stdout=serial

stderr=serial

loadaddr=81F00000

ethact=eth0

Environment size: 1160/131068 bytes

ar7100>

Note a couple of things about the about listing of the u-boot environment variables…

ipaddr=192.168.1.99

serverip=192.168.1.9

The DEFAULT values for these are ipaddr=192.168.11.1 and serverip=192.168.11.2. Those are for when u-boot tries to get a firmware image via tftp as outlined on the dd-wrt web pages. They’re also used for when you’re telling u-boot to tftp an image from your tftp server. I changed those values using the following command sequence:

ar7100> setenv ipaddr 192.168.1.99

ar7100> setenv serverip 192.168.1.9

ar7100>

I then made those changes permanent with:

ar7100> saveenv

Saving Environment to Flash…

Protect off BE040000 … BE05FFFF

Un-Protecting sectors 2..2 in bank 1

Un-Protected 1 sectors

Erasing Flash…

Erase Flash from 0xbe040000 to 0xbe05ffff in Bank # 1 First 0x2 last 0x2

100%

Erased 1 sectors

Writing to Flash…

100%

done

Protecting sectors 2..2 in bank 1

Protected 1 sectors

ar7100>

Also,

bootm=0xbe060000

Memory location be060000 is where the WZR has its firmware it boots from permanently stored.

tmp_ram=81F00000

tmp_bottom=83F00000

fw_eaddr=BE060000 BFFDFFFF

tmp_ram is where u-boot will download tftp’d images to. fw_eaddr is the area of flash memory which u-boot will erase before copying any tftp’ed images to.

4) Transfer the edited dd-wrt file from your tftp server to WZR temporary memory area

You need to set up a tftp server on your PC to do this. It’s not difficult to do and again search Google on how to do this. Google really is your friend ;) I named my dd-wrt image “wzrg300nh-firmwareM.tftp” in my example. (M == modified).

ar7100> tftpboot 81f00000 wzrg300nh-firmwareM.tftp

Trying eth0

eth0 is duplex

ag7100_check_link: _100BASET

Using eth0 device TFTP from server 192.168.11.2; our IP address is 192.168.11.1

Filename ‘wzrg300nh-firmwareM.tftp’.

Load address: 0x81f00000

Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################# done Bytes transferred = 10895360 (a64000 hex)

Take a note of where it says:

Bytes transferred = 10895360 (a64000 hex)

It will be a different number if the image size is different. You need that hex number for the copy procedure. VERIFY YOUR IMAGE!

ar7100> iminfo

## Checking Image at 81f00000 …

Image Name: DD-WRT v24 Linux Kernel Image

Created: 2010-02-03 14:14:55 UTC

Image Type: MIPS Linux Kernel Image (lzma compressed)

Data Size: 1017569 Bytes = 993.7 kB

Load Address: 80002000

Entry Point: 802cd000

Verifying Checksum … OK

ar7100>

If you see anything other than the above then you either transferred the wrong image or your have not corectly edited the image so that the header starts at the begining of the file. If so, then either transfer the image once more or re-edit an original dd-wrt tftp image file to make this the case, and then perform the tftp transfer once more.

5) Erase firmware area.

Before we copy, we need to clear the area of flash memory where the firmware is stored. This is done by the following:

ar7100> erase BE060000 BFFDFFFF

This will wipe the area of flash memory. It will take a few minutes to do so be patient.

Erase Flash from 0xbe060000 to 0xbffdffff in Bank # 1 First 0x3 last 0xfe

100%

Erased 252 sectors

ar7100>

Also, this will not wipe the flash memory where u-boot resides so don’t worry :)

6) Copy new firmware to the firmware area

The next step is to copy that area of memory to where the default booting firmware is stored. Okay, so, we know we have downloaded the image to memory location 0x81f0000. On this model I have, the stored firmware resides at 0xbe060000. I know this by looking at the u-boot environment variables which we did above by using the “printenv” command. Now we need to copy the tftp’ed image from the temporary area to the permanent firmware area. So, in my case, I need to copy a64000 bytes of memory from temporary ram area 81f0000 to the firmware storage area be060000

.

ar7100> cp.b 81f00000 be060000 a64000

Copy to Flash…

Copy 10895360 byte to Flash…

100%

done

ar7100>

Again this will take a few minutes to complete.

7) Reboot into your new firmware

The moment you’ve been waiting for!

ar7100> bootm BE060000

And if you have done everything correctly you’ll get something like this:

## Booting image at be060000 …
Image Name:   DD-WRT v24 Linux Kernel Image
Created:      2010-02-03  14:14:55 UTC
Image Type:   MIPS Linux Kernel Image (lzma compressed)
Data Size:    1017569 Bytes = 993.7 kB
Load Address: 80002000
Entry Point:  802cd000
Verifying Checksum … OK
Uncompressing Kernel Image … OK
No initrd
## Transferring control to Linux (at address 802cd000) …
## Giving linux memsize in bytes, 67108864

Starting kernel …

Linux version 2.6.24.111 (root@dd-wrt) (gcc version 4.3.3 (GCC) ) #665 Wed Feb 3 15:00:08 CET 2010
flash_size passed from bootloader = 32
CPU revision is: 00019374
booting platform Atheros AR9132 rev 2 (0xb9)
Determined physical RAM map:
memory: 04000000 @ 00000000 (usable)
Built 1 zonelists in Zone order.  Total pages: 16256
Kernel command line: console=ttyS0,115200 root=1f02 rootfstype=squashfs noinitrd  init=/sbin/init
Primary instruction cache 64kB, physically tagged, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, linesize 32 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
Cache parity protection disabled
PID hash table entries: 256 (order: 8, 1024 bytes)
Using 200.000 MHz high precision timer.
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 61524k/65536k available (2347k kernel code, 3956k reserved, 508k data, 124k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
Time: MIPS clocksource has been installed.
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
gpio_proc: module loaded and /proc/gpio/ created
AR7100 GPIOC major 0
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0×1
squashfs: version 3.0 (2006/03/15) Phillip Lougher
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0×0 (irq = 19) is a 16550A
console [ttyS0] enabled
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
MPPE/MPPC encryption/compression module registered
NET: Registered protocol family 24
PPPoL2TP kernel driver, V1.0
IMQ starting with 2 devices…
IMQ driver loaded successfully.
Hooking IMQ before NAT on PREROUTING.
Hooking IMQ after NAT on POSTROUTING.
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
AG7100: Length per segment 1536
AG7100: Max segments per packet 1
AG7100: Max tx descriptor count    100
AG7100: Max rx descriptor count    252
AG7100: fifo cfg 3 00780008
rtl_chip_type_select:RTL8366SR
AG7100CHH: Mac address for unit 0
AG7100CHH: ff:ff:ff:ff:ff:ff
rtl_chip_type_select:RTL8366SR
AG7100CHH: Mac address for unit 1
AG7100CHH: ff:ff:ff:ff:ff:ff
FLASH ID: AMD-SPANSION SIZE: (32 MB)
scanning for root partition

found squashfs at 159000
Creating 7 MTD partitions on “ar9100-nor0″:
0×00000000-0×00060000 : “RedBoot”
0×00060000-0×01fc0000 : “linux”
0×00159000-0×00ae0000 : “rootfs”
mtd: partition “rootfs” doesn’t start on an erase block boundary — force read-only
0×00ae0000-0×01fc0000 : “ddwrt”
0×01fc0000-0×01fe0000 : “nvram”
0×01fe0000-0×02000000 : “board_config”
0×00000000-0×02000000 : “fullflash”
usbmon: debugfs is not available
ar71xx-ehci ar71xx-ehci.0: Atheros AR91xx built-in EHCI controller
ar71xx-ehci ar71xx-ehci.0: new USB bus registered, assigned bus number 1
ar71xx-ehci ar71xx-ehci.0: irq 3, io mem 0×1b000000
ar71xx-ehci ar71xx-ehci.0: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver…
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial Driver core
Software Watchdog Timer: 0.07 initialized. soft_noboot=0 soft_margin=60 sec (nowayout= 0)
GACT probability on
Mirror/redirect action on
Simple TC action Loaded
u32 classifier
Actions configured
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
ctnetlink v0.93: registering with nfnetlink.
IPv4 over IPv4 tunneling driver
GRE over IPv4 tunneling driver
ip_tables: (C) 2000-2006 Netfilter Core Team
IPP2P v0.8.2 loading
ClusterIP Version 0.8 loaded successfully
TCP bic registered
TCP cubic registered
TCP westwood registered
TCP highspeed registered
TCP hybla registered
TCP htcp registered
TCP vegas registered
TCP scalable registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Welcome to PF_RING 3.2.1
(C) 2004-06 L.Deri <deri@ntop.org>
NET: Registered protocol family 27
PF_RING: bucket length    128 bytes
PF_RING: ring slots       4096
PF_RING: sample rate      1 [1=no sampling]
PF_RING: capture TX       No [RX only]
PF_RING: transparent mode Yes
PF_RING initialized correctly.
PF_RING: registered /proc/net/pf_ring/
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
decode 1f02
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 124k freed
start service
starting Architecture code for ap83
load ATH Ethernet Driver
configure eth0 to 00:1d:73:8f:4d:31
configure eth1 to 00:1d:73:8f:4d:31
ag7100_ring_alloc Allocated 1200 at 0×81104800
ag7100_ring_alloc Allocated 3024 at 0×803e3000
AG7100: cfg1 0×2f cfg2 0×7014
rtl8366sr_phy_setup  ethUnit=0
Realtek 8366SR switch ID 0×8366
SP1000
phyUnit=0 is link
phyUnit=1 is lostlink
phyUnit=2 is lostlink
phyUnit=3 is lostlink
AG7100: unit 0 phy is up…RGMii 1000Mbps full duplex
AG7100: pll reg 0×18050014: 0×1e000100  AG7100: cfg_1: 0×7ff0000
AG7100: cfg_2: 0xfff
AG7100: cfg_3: 0×7803ff
AG7100: cfg_4: 0xffff
AG7100: cfg_5: 0xfefef
AG7100: done cfg2 0×7215 ifctl 0×0 miictrl 0×22
Writing 4
ag7100_ring_alloc Allocated 1200 at 0×83d2b000
ag7100_ring_alloc Allocated 3024 at 0×83c8f000
AG7100: cfg1 0×3f cfg2 0×7014
rtl8366sr_phy_setup  ethUnit=1
phyUnit=4 is lostlink
Writing 6
load ATH 802.11 a/b/g Driver
load ATH 802.11n Driver
ath_mimo_hal: module license ‘Proprietary’ taints kernel.
ath_mimo_hal: 0.9.17.1 (AR5416, REGOPS_FUNC)
ath_ahb: 0.9.4.5 (Atheros/multi-bss)
ath_dfs: Version 2.0.0
Copyright (c) 2005-2006 Atheros Communications, Inc. All Rights Reserved
wlan: 0.8.4.2 (Atheros/multi-bss)
wlan: mac acl policy registered
ath_rate_atheros: Version 2.0.1
Copyright (c) 2001-2004 Atheros Communications, Inc, All Rights Reserved
ar5416CheckEepromDef: Read Magic = 0xFFFF
EEPROM being read from flash @0xbfff1000
need_swap = False.
Howl Revision ID 0xb9
dfs_init_radar_filters: dfs->dfs_rinfo.rn_numradars: 0
1Mbps 2Mbps 5.5Mbps 11Mbps
1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
wifi0: mac 20.0 phy 10.2 radio 13.0
wifi0: Use hw queue 1 for WME_AC_BE traffic
wifi0: Use hw queue 0 for WME_AC_BK traffic
wifi0: Use hw queue 2 for WME_AC_VI traffic
wifi0: Use hw queue 3 for WME_AC_VO traffic
wifi0: Use hw queue 8 for CAB traffic
wifi0: Use hw queue 9 for beacons
wifi0: Use hw queue 7 for UAPSD
wifi0: Atheros AR9100 WiSoC: mem=0xb80c0000, irq=2
br0: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature.
device br0 entered promiscuous mode
ag7100_ring_free Freeing at 0×81104800
ag7100_ring_free Freeing at 0×803e3000
ag7100_ring_alloc Allocated 1200 at 0×83d2b800
ag7100_ring_alloc Allocated 3024 at 0×803e3000
AG7100: cfg1 0×2f cfg2 0×7215
rtl8366sr_phy_setup  ethUnit=0
phyUnit=0 is link
phyUnit=1 is lostlink
phyUnit=2 is lostlink
phyUnit=3 is lostlink
AG7100: unit 0 phy is up…RGMii 1000Mbps full duplex
AG7100: pll reg 0×18050014: 0×1e000100  AG7100: cfg_1: 0×7ff0000
AG7100: cfg_2: 0xfff
AG7100: cfg_3: 0×7803ff
AG7100: cfg_4: 0xffff
AG7100: cfg_5: 0xfefef
AG7100: done cfg2 0×7215 ifctl 0×0 miictrl 0×22
Writing 4
ag7100_ring_free Freeing at 0×83d2b800
ag7100_ring_free Freeing at 0×803e3000
ag7100_ring_alloc Allocated 1200 at 0×83cf3800
ag7100_ring_alloc Allocated 3024 at 0×803e3000
AG7100: cfg1 0×2f cfg2 0×7215
rtl8366sr_phy_setup  ethUnit=0
phyUnit=0 is link
phyUnit=1 is lostlink
phyUnit=2 is lostlink
phyUnit=3 is lostlink
AG7100: unit 0 phy is up…RGMii 1000Mbps full duplex
AG7100: pll reg 0×18050014: 0×1e000100  AG7100: cfg_1: 0×7ff0000
AG7100: cfg_2: 0xfff
AG7100: cfg_3: 0×7803ff
AG7100: cfg_4: 0xffff
AG7100: cfg_5: 0xfefef
AG7100: done cfg2 0×7215 ifctl 0×0 miictrl 0×22
Writing 4
device eth0 entered promiscuous mode
sh: ead: not found
sh: can’t create /proc/sys/dev/wifi0/pollingmode: nonexistent directory
sh: can’t create /proc/sys/dev/wifi0/maxvaps: nonexistent directory

ath_numswbaperbc = 4(1)adj=51200
ath0
Invalid command : maxassoc
Invalid command : wdssep
device ath0 entered promiscuous mode
br0: port 2(ath0) entering learning state
br0: port 1(eth0) entering learning state
device br0 left promiscuous mode
device br0 entered promiscuous mode
device br0 left promiscuous mode
device br0 entered promiscuous mode
Ethernet Channel Bonding Driver: v3.1.3 (June 13, 2007)
bonding: MII link monitoring set to 100 ms
alarmpacket: bind: No such file or directory
device eth1 entered promiscuous mode
device eth1 left promiscuous mode
br0: topology change detected, propagating
br0: port 2(ath0) entering forwarding state
br0: topology change detected, propagating
br0: port 1(eth0) entering forwarding state
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
nvram was changed, needs commit, waiting 10 sec.
etherip: Ethernet over IPv4 tunneling driver
The Milkfish Router Services
ERROR: Necessary service setting not found: milkfish_username – aborting.
The Milkfish Router Services
Restoring SIP ddsubscriber database from NVRAM…
Empty.
The Milkfish Router Services
Restoring SIP ddaliases database from NVRAM…
Empty.
Freeing node: 00:1d:73:8f:4d:31
ic->ic_cwm.cw_width :0, ic->ic_cwm.cw_extoffset: 0

And there you have it. You had bricked your Japanese WZR-HP-G300N and now you have managed to install DD-wrt using the tftp image and a few u-boot commands. This procedure will also work for other firmware, like OpenWRT (And it the X-WRT project which makes a web front-end to OpenWRT). I hope this has been helpful!

Bookmark and Share

 

VN:F [1.9.22_1171]
Rate This Article
Rating: 9.8/10 (18 votes cast)
Hacking around the Japanese Buffalo WZR-HP-G300NH, 9.8 out of 10 based on 18 ratings
Share the knowledge :
Facebook Twitter Pinterest Linkedin Digg Delicious Reddit Stumbleupon Posterous Email Snailmail

85 comments to Hacking around the Japanese Buffalo WZR-HP-G300NH

  • yaiba

    Thanks you, it’s very helpful.
    I have a question. How do you find the Magic Number 27 05 19 56?
    All tftp firmware should begin with this?

    • admin

      I don’t know the exact meaning of your question, but I found that magic number mentioned in a dd-wrt post after a google search. Also, hex editors have a search function.

      I’m going to try and find out what that number is – my guess is it’s an ELF header, perhaps.

      Lastly, I’m pretty sure al firmware images should have this – it’s just that the Buffalo ones are encrypted.

  • Zgembo

    hello there,

    thanks for the guide on this, it may come handy… btw, have you tried changing “region=JP” parameter and checking if it would accept stock english firmware?

    Could you please post serial cable pinouts for this board?

    Regards,

    Z

  • Zgembo

    thanks for the useful information,

    i was wondering if changing region code to english would enable flashing to english stock firmware?
    btw, could you post serial pinouts for this board?

  • admin

    Zgembo :

    thanks for the useful information,

    i was wondering if changing region code to english would enable flashing to english stock firmware?
    btw, could you post serial pinouts for this board?

    Sorry for my slow replies – I’ve been incapacitated due to an abcess and have been in a huge amount of pain for the last few days – this morning’s been the first time I’ve been pain-free so I’m all :D this morning ;)

    You can change the region code. I changed it to US in order to try to convince the buffalo firmware to install the US version at one point, and yes it accepted the Bufallo US version, BUT, it semi-bricked the unit in that yes, it would boot up, but the web pages became unavailable – which is why I had to hack deeper into the router and figure out how to get dd-wrt (or even OpenWRT) working on the thing :)

    Serial port pinout:

    pin1 : VCC +3.3V
    pin2 : GND
    pin3 : TX
    pin4 : RX

    NOTE you only need to connect up GND, TX, and RX – leave the Vcc unconnected – the serial circuitry on board is already powered from the motherboard. On your terminal emulator you’ll need to set it to 115200,8,N,1 with no hardware or software flow control.

    Hope this helps.

  • yaiba

    admin :

    Zgembo :
    thanks for the useful information,
    i was wondering if changing region code to english would enable flashing to english stock firmware?
    btw, could you post serial pinouts for this board?

    Sorry for my slow replies – I’ve been incapacitated due to an abcess and have been in a huge amount of pain for the last few days – this morning’s been the first time I’ve been pain-free so I’m all this morning
    You can change the region code. I changed it to US in order to try to convince the buffalo firmware to install the US version at one point, and yes it accepted the buffallo US version, BUT, it semi-bricked the unit in that yes it would boot up but the web pages became unavailable – which is why I had to hack deeper into the router and figure out how to get dd-wrt (or even OpenWRT) working on the thing
    Serial port pinout:
    pin1 : VCC +3.3V
    pin2 : GND
    pin3 : TX
    pin4 : RX
    NOTE you only need to connect up GND, TX, and RX – leave the Vcc unconnected – the serial circuitry on board is already powered from the motherboartd. On your terminal emulator you’ll need to set it to 115200,8,N,1 with no hardware or software flow control.
    Hope this helps.

    I changed region code from JP to EU (or US) and succeed flash to english stock firmware by using the revert firmware EU from BrainSlayer (dd-wrt).
    I removed all the bytes before the Magic Number and used the psyphah’s method above.
    Now, i’m using english firmware EU 1.72. Use firmware dd-wrt, i have problem with PPPoE, i can’t access to internet.

  • Zgembo

    admin :

    Zgembo :
    thanks for the useful information,
    i was wondering if changing region code to english would enable flashing to english stock firmware?
    btw, could you post serial pinouts for this board?

    Sorry for my slow replies – I’ve been incapacitated due to an abcess and have been in a huge amount of pain for the last few days – this morning’s been the first time I’ve been pain-free so I’m all this morning
    You can change the region code. I changed it to US in order to try to convince the buffalo firmware to install the US version at one point, and yes it accepted the buffallo US version, BUT, it semi-bricked the unit in that yes it would boot up but the web pages became unavailable – which is why I had to hack deeper into the router and figure out how to get dd-wrt (or even OpenWRT) working on the thing
    Serial port pinout:
    pin1 : VCC +3.3V
    pin2 : GND
    pin3 : TX
    pin4 : RX
    NOTE you only need to connect up GND, TX, and RX – leave the Vcc unconnected – the serial circuitry on board is already powered from the motherboartd. On your terminal emulator you’ll need to set it to 115200,8,N,1 with no hardware or software flow control.
    Hope this helps.

    Thanks for the useful info again. I needed this just in case something goes wrong, but fortunately it never did. I got my WZR-HP-G300NH via rakuten, but from cheapest shop for 8.000円, and i think they were selling Taiwanese version of the router, which came preinstalled with english, and with Chinese-style power adapter, strange indeed. I flashed OpenWRT (Kamikaze r19704 built from source) immediately without even being aware of JP version problems, and it worked like charm since first day.

  • Alison

    When you were hacking around the insides of the router, did you see if the leads to the wireless antennae were on connectors or soldered to the board?

    With the stock “ear/flap” antennae on my WZR-HP-G300NH, my upstairs desktop’s wireless adapter (a D-link DWL-G120) cannot see the network, whereas it can see my old Linksys WAP54G with a $15 set of high-gain antennae attached. If the WZR-HP-G300NH’s antenna leads are on connectors rather than soldered, I was thinking I could mod RP-TNC pigtails in and attach my old antennae. But I’m not willing to void the warranty just to check.

  • admin

    Alison :

    When you were hacking around the insides of the router, did you see if the leads to the wireless antennae were on connectors or soldered to the board?

    With the stock “ear/flap” antennae on my WZR-HP-G300NH, my upstairs desktop’s wireless adapter (a D-link DWL-G120) cannot see the network, whereas it can see my old Linksys WAP54G with a $15 set of high-gain antennae attached. If the WZR-HP-G300NH’s antenna leads are on connectors rather than soldered, I was thinking I could mod RP-TNC pigtails in and attach my old antennae. But I’m not willing to void the warranty just to check.

    Hi, Yes the antennae are connected via a connector rather than soldered to the board – at least on MY unit anyway. I seem to recall there being pictures of the board some had taken I’m not at home right now but what I”ll do is take some pictures of the motherboard and either make a new post or add them to this one as an update.

    Regards.

  • John

    Hi,
    Thank you very much for your blog post about WZR-HP-G300N. I’ve read through this blog post few times. Currently, I have an Japanese version of WZR-HP-G300N, it won’t accept the stock US/EU firmware. May I ask your expertise which is the best way that I can have the EU/US stock firmware installed on it? (I really don’t want to go for DD-WRT since it doesn’t have NAS feature and I’m waiting for June 2010 release about Buffalo DD-WRT firmware).

    Looking forward to your soon replies and instructions.

    Thanks and rgds,

    (moved comment to this article from the About page)

    Reply : Hi, thanks… to be honest, I think it’s better to be patient in your case and wait for the new buffalo dd-wrt-based firmware. I tried changing the firmware from .jp to .us and got a semi-bricked WZR (which was the reason I set about hacking it in the first place ;) )

  • hakka

    pleas tell me.how to changed region code from JP to EU (or US) on U-BOOT.thanks all.

  • admin

    hakka :

    pleas tell me.how to changed region code from JP to EU (or US) on U-BOOT.thanks all.

    Hi.

    If you look at the article you’ll see the environment variable called region. In the .jp models it’s set to JP , so you would use the setenv command to change that to be US. However, do this at your own risk, and remember to save the changes otherwise after a reboot of the router you will lose them – everything you need to learn about how to do this is in the article :)

    Regards.

  • Yngwie

    Hi hakka,

    I just modified my region=AP to EU since they locked the 3G support in AP region machine. After I changed region code, 3G feature is unlocked.

    If your routor is Japanese version, you might need to flash to DDWRT first, and using the revert firmware after the region changed, since there is no multi-language support for Japan domestic version.

    The process brief as below,
    1. Connect the serial console cable between computer and routor
    2. Power on the routor
    3. Establish the serial data link using hyper terminal ( if you using windows system like me)
    4. Power off the routor then power again.
    5. Watch out the terminal window for the “tftp wait for 4 sec.” press “Ctrl-C” twice
    6. setenv region=eu
    saveenv
    Please refre to the post above for the connection cable detail, you can modified from CA-42 or purchase from RS, DigiKey whatever. If your computer is still have the serial port, you can just using 3 wire to connect GND, RX, TX to the routor.
    Hope this helps.

    Regards,
    Yngwie

    • Mike

      It seems like everything it’s OK with this region change, except the fact that it will not recognize the stock firmwares / upgrade.

      • Yngwie

        Hi Mike,
        To change the region will not affect to the firmware upgrade.
        Please console into your routor again and perform as below,

        printenv (check is there any region listed)

        If not,

        setenv EU
        saveenv

        This should setup up EU as your region in your routor.
        Thanks.

        Regards,
        Yngwie

  • Vuhothang

    Please help me!

    I/m using Com1 9pin to connect router 3 wire Rx, Tx, GND.
    In my Terminal screen only have symbol like this link picture of screen http://i22.photobucket.com/albums/b319/vuhothang/HeberTerminal.jpg
    i have press CTRL+C blind .
    Now my Router will boot only cable console connected anh PC Poweron.
    When i unplug console cable my router only Red DIAG, i can’t ping or do anything.
    when i plug console cable i will and i can use router.
    I have hard reset 30/30/30 when router can use.
    Now i not yet change region from JP to EU.
    Please help me!

    • Yngwie

      Hi Vuhothang,

      Sorry to hear that, as I review my previous post, I forget to mention about the serial to TTL circuit on the serial port connection and such carelessness mis-leaded you to take the action which damage your routor.
      Actually the logic high/low definition between serial and TTL are different, thus we need a convertor to transform in between. I am so sorry .

      Your routor looks already damaged since it only operate with your PC also power on.

      My appology to my carelessness on posted the reply.
      Regards,
      Yngwie

  • admin

    Vuhothang posted the following on April 28, 2010 at 5:04 pm. – Edit

    Please help me!

    I/m using Com1 9pin to connect router 3 wire Rx, Tx, GND.
    In my Terminal screen only have symbol like this link picture of screen http://i22.photobucket.com/albums/b319/vuhothang/HeberTerminal.jpg
    i have press CTRL+C blind .
    Now my Router will boot only cable console connected anh PC Poweron.
    When i unplug console cable my router only Red DIAG, i can’t ping or do anything.
    when i plug console cable i will and i can use router.
    I have hard reset 30/30/30 when router can use.
    Now i not yet change region from JP to EU.
    Please help me!

    Er, Vuhotang, did you just say you wired straight from your 9-pin serial interface on your PC to the WZR motherboard?

    Oh dear.

    Did you read where I mentioned you need a USB SERIAL<-->TTL Serial cable? The motherboard’s serial interface works at TTL signal levels. You’ve probably done your WZR some damage, unfortunately.

  • vuhothang

    Dear!

    Now my Router bricked, it cycle light red diag 15″ and four led (wifi, ser, router, diag) blink.

    But now i can upload firmware in unbunto via tftp tool with original fimware.

    i will buy Nokia DKU-5 to connect Rx, Tx, GND. i want read u-boot log.

    I will infor for you later.

    Thanks!

  • Vuhothang

    Dear Yngwie!

    I was buy a DKU-5 Cable, i can console into WZR. I was do step-by-step tutorials of you.

    Now my Router running normal.

    Thanks!

  • Ta Xuan Truong

    This topic very helpful for me…
    May I donate a little for you via PayPal address?

    Thank you.

  • Hi Mike,

    Sorry, correct the command as below

    setenv region EU
    saveenv

    Regards,
    Yngwie

  • nkphuongxp

    Hi everyone!
    I’m converting my Japanese WZR-HP-G300NH to EU but currently I’m having a trouble.
    This is the first time I open the router and see its motherboard. I have prepared a DKU-5 cable and known its pinouts (Tx, Rx & GND) but poor me I don’t know how to connect the cable to WZR motherboard in order to console the router. I though it would be like some other router that having some text (Rx, Tx, GND) on the board.
    Could someone show me where I could connect the cable on the WZR motherboard.
    Here are some pics of the router:

    • In your very blurry picture “wzr3.jpg”, the serial port is the one called J1 (if I remember correctly).

      I have found a clearer picture of the port, and have corrected the pin numbers in yellow…

      3.3V TTL Serial port pinout

      Pinout as follows:

      pin1 : VCC +3.3V – LEAVE UNCONNECTED.
      pin2 : GND
      pin3 : TX
      pin4 : RX

      NOTE you only need to connect up GND, TX, and RX – leave the Vcc unconnected – the serial circuitry on board is already powered from the motherboard.

      On your terminal emulator you’ll need to set it to 115200,8,N,1 with no hardware or software flow control.

      Regards,

      KC.

  • Zgembo

    an update:

    I got myself Japanese WZR-HP-G300NH, and ran into same problems. Messing a bit with the u-boot console and comparing boot variables with non-Japanese WZR-HP-G300NH, i found out an interesting setting, simply typing:


    ar7100> setenv accept_open_rt_fmt 1
    ar7100> saveenv

    Will enable flashing any compatible firmware via TFTP! Tested with OpenWRT 10.03, here are the u-boot logs BEFORE:


    tftp server(receive) go, waiting:4[sec]
    Trying eth1
    eth1 link down
    FAIL
    Trying eth0
    eth0 is duplex
    ag7100_check_link: _100BASET
    Load address: 0x81f00000
    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    tftp server done
    Bytes transferred = 2490400 (260020 hex)
    ## Booting image at be060000 ...
    Image Name: MIPS OpenWrt Linux-2.6.32.10
    Created: 2010-04-06 13:03:43 UTC
    Image Type: MIPS Linux Kernel Image (lzma compressed)
    Data Size: 883587 Bytes = 862.9 kB
    Load Address: 80060000
    Entry Point: 80060000
    Verifying Checksum ... OK
    Uncompressing Kernel Image ... OK
    No initrd
    ## Transferring control to Linux (at address 80060000) ...
    ## Giving linux memsize in bytes, 67108864

    Starting kernel ...

    and AFTER setting accept_open_rt_fmt to 1:


    tftp server(receive) go, waiting:4[sec]
    Trying eth1
    eth1 link down
    FAIL
    Trying eth0
    eth0 is duplex
    ag7100_check_link: _100BASET
    Load address: 0x81f00000
    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    tftp server done
    Bytes transferred = 2490400 (260020 hex)

    Airstation Public header
    Recv fw image [2490368] bytes, now writing...

    Erase Flash from 0xbe060000 to 0xbe2bffff in Bank # 1 First 0x3 last 0x15 100%
    Erased 19 sectors
    Copy to Flash...
    Copy 2490368 byte to Flash...

    • admin

      Wow haha!

      That. Is. Fantastic!

      Is it really that simple…

      Well done Zgembo. I’ll probably make a follow-up entry based on this.

      Regards,

      Kevin.

  • Hi,

    I have this router and am trying to get it working. (Well actually I ordered the N and it came as an H, I don’t know if that makes it an NH or a different animal.) You site is extremely helpful, but I can7t seem to view the comments. When I click on them at the side I get an empty page.

    Checking the DD-wrt forums all the link relating to the files have been removed, and I can’t seem to find the information/firmwares I need to get this router operational. I think the comments here would be extremely helpful. I am using firefox on an Ubuntu laptop. Anything special I need to do to see the comments?

    Cheers,

    Steve

    • admin

      Hi Steve,

      There seemed to be a problem with one of the plugins I was using. Sorry about that – and thanks for pointing it out!

      Hopefully this new comments plugin will work nicely ;)

      Regards,

      Kev.

  • Steve

    Yup! The comments are working great now.

    So, it seems I do have a different router. It is a WZR-HP-AG300H.

    I received my cable yesterday after work and was up to all hours of the night fiddling with it. The pinouts are different than what is here, but I was able to find the right combination (I’ll post it later — at work right now). A nice trick is that the ground on the board will show all other voltages as positive, so once you have the ground figured out then you have a 50/50 chance of getting the TX/RX right (I of course got it wrong…twice ;) )

    The big issue is that Uboot seems locked. I tried your procedure and have been totally unable to get the boot sequence to abort. I can TFTP a file over, but it also seems to be ignored. I have been googling like mad but can’t seem to find any information regarding this. I am getting ready to start trying voodoo and was hoping that before that someone will point out something completely obvious that solves the mystery of the locked uboot!

    Cheers,

    Steve

  • tbd

    Thanks for the great guide!
    My router is a Japanese (A0 A1) with u-boot 1.02, not the popular (A0 A3).
    The manual tftp-flash method introduced in this guide works on my router!

    However, in my test, the simple “accept_open_rt_fmt” method does not work on u-boot 1.02. I guess it should work in later u-boot (> 1.02 at least).
    And you can refer to the post in dd-wrt: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=72251

    Regards,
    Tbd

  • hoangdinh

    thank you verry much. Now i can unlock my 3G moden. change region from US to EU

  • ali

    i have DD-G300 N v2 bricked with DD-WRT V1 now i want to put original firmware i establish connection between router and PC via Serial port i can send fimware using hyper terminal kermit protocol router will receive and store in 0*80f00000 also i can copy it to flash but after booting it says EEprm error and i need to ctrl+c ant suggestion

  • Dogu

    Thanks for this great article and discussion thread. I too live in Tokyo and am trying to install English language firmware on my Buffalo WZR-HP-AG300H. Per your comment: ” I could by a conveniently available USB to TTL serial cable.”
    Where did you find this cable in Tokyo? I live in Roppongi Hills and haven’t had any luck finding a store that carries these.

  • Kevin Cave

    Dogu

    Thanks for this great article and discussion thread. I too live in Tokyo and am trying to install English language firmware on my Buffalo WZR-HP-AG300H. Per your comment: ” I could by a conveniently available USB to TTL serial cable.”
    Where did you find this cable in Tokyo? I live in Roppongi Hills and haven’t had any luck finding a store that carries these.

    Like or Dislike: Thumb up 0 Thumb down 0

    Dogu, thanks for the compliments :)

    I bought the cable from the Japanese RS Components website at : http://jp.rs-online.com/web/

    I’m at work right now so can’t be more specific at that. I’ll try to post a link to the cable as soon as I can.

  • Dogu

    Thanks for the quick reply Kevin. If you have a chance to post more details, I’d certainly be grateful.
    I browsed the RS Components online store and found that they carry several types of USB TTL serial cables, most of which are manufactured by FTDI (in the UK). Their site has a nice page outlining the types of USB TTL serial cables the produce:
    http://www.ftdichip.com/Products/Cables/USBTTLSerial.htm
    Any direction on type of cable would be appreciated.
    As I stated earlier, I’m going through the same process of hacking my Buffalo WZR-HP-AG300H so I can load the dd-wrt firmware and establish a VPN connection to my VPN provider in the US, thereby allowing all devices that connect to the router to appear as if they are coming from the US. This should let me access geo-restricted content on NetFlix, Pandora, HBO GO, Hulu+, etc.
    I’m happy to share my findings, successes, and failures along the way with anyone interested, either in this posting or another forum (any suggestions?)

    • Kevin Cave

      Heya. Yes it’s the TTL-232R-3V3-WE that I got, and it works flawlessly.

      Hope that helps!

      Rgds

      Kev.

      • Dogu

        Thanks Kevin, that’s just what I needed to know. Interesting that the RS site sells the “-WE” wire ended version of this cable for 160 yen more than the version with the 6 pin SIL connector.
        Thanks again.

        • Kevin Cave

          Glad to be of help.

          By the way feel free to register here and produce a writeup of your findings if you wish.

  • Alem Da Lenda

    Wow!!! I have one of those japanese models. I tried to install a EN or EUR firmware and the router just refuse to update, since the firmware wasnt the same region.
    I will try this later. Just one question: My PC doesnt have a serial…so I was wondering if this adapter can be use instead: http://www.ebay.com/itm/USB-RS232-DB9-SERIAL-CABLE-ADAPTER-PDA-SATELLITE-/280746333674?pt=LH_DefaultDomain_0&hash=item415dc915ea
    Thanks

  • Kevin Cave

    Alem Da Lenda

    Wow!!! I have one of those japanese models. I tried to install a EN or EUR firmware and the router just refuse to update, since the firmware wasnt the same region.
    I will try this later. Just one question: My PC doesnt have a serial…so I was wondering if this adapter can be use instead: http://www.ebay.com/itm/USB-RS232-DB9-SERIAL-CABLE-ADAPTER-PDA-SATELLITE-/280746333674?pt=LH_DefaultDomain_0&hash=item415dc915ea
    Thanks

    Hi Alem, no, you need a USB to TTL serial adapter like the one discussed about 3 replies above yours. See http://www.ftdichip.com/Products/Cables/USBTTLSerial.htm and specifically the cable type of TTL-232R-3V3-WE.

    Regards,

    Kevin.

  • Alem Da Lenda

    Kevin Cave

    Thanks Kevin
    Out, I cant find that cable here…T_T
    I was reading dd wrt forum. Can I use this one ( http://www.ebay.com/itm/Genuine-Nokia-Connectivity-Adapter-Cable-CA-42-CD-/110706427339?pt=PDA_Accessories&hash=item19c69e05cb#ht_2994wt_922 ) intead that? Some users say that would work too…This link show the pinouts o that cable: http://pinouts.ru/CellularPhones-Nokia/nokia_pop_pinout.shtml

    Alem, hi again. I did some googling and that cable does seem to be mentioned a few times in relation to this model of router. The datasheet link you provided doesn’t say if it’s a 3.3V TTL-level cable – it’s very important you ensure that is the case, but yes that particular cable type is specifically mentioned, so I assume it would work – I’ve not used it myself though so, just be careful how you hook it up
    Is it difficult for you to buy the cable from FTDi online? They do have an online store.
    Regards
    Kevin.
    Like or Dislike: 0  0

    Hi Kevin
    I will try to find one of those two cables (the nokia cable is more easy to find and cheaper). 3.3v is really necessary? the motherboard doesnt power on itself using the ac adapter?
    Sorry to bothering you with noob questions.

  • Kevin Cave

    Hi Kevin
    I will try to find one of those two cables (the nokia cable is more easy to find and cheaper). 3.3v is really necessary? the motherboard doesnt power on itself using the ac adapter?
    Sorry to bothering you with noob questions.

    Alum,

    3.3V stands for the TTL signal level of the circuitry of the router. The router, of course, should use its AC adapter when you are communicating with it via your cable and the terminal program you are using.

    Please remember only to use the Rx, Tx, and GND of your cable. Do not connect any other wires – you could severely damage your router’s motherboard!

    If you have a techie friend who’s into electronics I suggest you ask them to connect your cable, if you’re not sure how to do this yourself. You could just be saving yourself from owning an expensive brick :)

    Regards

    Kevin.

    • Alem Da Lenda

      Well, I’ll probably have to pay someone to do this, but that was my intention since I dont have any experience in welding things. Thanks

      I’ll need to do till the step 3 right? When I use crtl+c, then I use the commands Zgembo says to let it accept any firmware?

      Do I need install a linux distro (like ubuntu) to use the console or it have any windows (yeah…I know…; ) software that I can use instead?

      Thanks again

      • Kevin Cave
        Alem Da Lenda

        Well, I’ll probably have to pay someone to do this, but that was my intention since I dont have any experience in welding things. Thanks

        I’ll need to do till the step 3 right? When I use crtl+c, then I use the commands Zgembo says to let it accept any firmware?

        Do I need install a linux distro (like ubuntu) to use the console or it have any windows (yeah…I know…; ) software that I can use instead?

        Thanks again

        Yep you need to break into the bootup sequence using ctrl-c.

        Actually you can download a Live CD version of linux which will boot straight off the CD/DVD and you can then use it as normal. Try http://www.ubuntu.com for this. There are also terminal emulators available for Windows though at time of writing I can’t remember their names so search Google for that info.

        Regards

        Kevin.

  • Garry

    Great read. How can I load a JP firmware onto a US-bought WZR-HP-G300NH ? Trying to enable ipv6 so I can watch iptv programs and still have internet here in Japan.

    Thanks

  • hakuch

    thanks for the info. question – using this method for changing country code – can i load original English language firmware to Japanese model?

    thanks

  • Bob

    You guys seem to have this unit well cracked!

    Unfortunately for me the WCN-HP-GN I purchased here in Shanghai seems to also have a restriction on firmware region. I would love to get dd-wrt on this unit so that I could load an Open VPN package. No need for me to elaborate on the importance of a VPN here.

    Thanks for all of your hard work!

  • Andrey

    Большое спасибо за статью. Очень помогла! Полностью восстановил Buffalo WZR-HP-G300NH. Уже не верил в это…

  • kiattivikrai

    Great ! this page help me unbrick my whr-hp-G300N. My router lost the ipaddr and serverip environment and fail to connect the tftp.

    Thank you

  • Leo

    I found this page and purchased a chip to enable the serial console, but it's possible to enable the telnet client on the router using a special mantenence page http://your.router.ip.address/cgi-bin/cgi?req=frm&frm=py-db/55debug.html, with special username (bufpy) and password (otdpopy+<root password if any>) 
    as described here:
    http://wiki.openwrt.org/toh/buffalo/wzr-hp-g300h#locked.u-boot.too.short.time.tftp.window
     

    • Logus

      Oh well, I was really unable to find one of those cables to do that mod…and then u came with this tip.. =D
      Can anyone give me a help here?
      I did enabled that telnet, connected to it using the windows 7 telnet client (cmd, telnet xxx.xxx.xx.x)
      I was able to connect and then I typed "ubootenv -h" and that help list pop out.
      But really don't know what to do next…I tried :
      # ubootenv setenv accept_open_rt_fmt 1 (it showed me that help list again)
      # ubootenv set accept_open_rt_fmt 1 (I THINK it worked since it didn't showed that list again, and the # came right after that)
      But after this I really don't know what to do….
      Any ideas?

      • Logus

        Well after the command  " # ubootenv set accept_open_rt_fmt 1 ", when I typed " # ubootenv list " it showed to me that the line " accept_open_rt_fmt " is set to "1".
        I tried to update the firmware using the web tool to the firmware 1.76 and ddwrt v24sp2-19484 (from buffalo official download page for this model) and both fail.
        Then I was able to transfer the file using tftp with linux liveusb (win7 didn't worked for me) but nothing happens after that. The router just boot normally…
        So am I still missing somenthing here?
        I wasn't able to do the command " saveenv " so…is that really necessary?
        When I tried to " ubootenv saveenv, ubootenv save or ubootenv sav" it didn't worked since it just showed me the help list for the command ubootenv…

  • Blukenguyen

    here my log what I need to do. I can't do Ctrl+C and it stuck there.
    BUFFALO U-BOOT Ver 1.02
    AP83–539 (ar9100) U-boot 0.0.12
    64 MB
    Memory Test (address line)
    Memory Test start(0x00000000) end(0x04000000) size(67108864)
    Data line test start:0x00000000 pattern 0x00000001 0x00000003 0x00000007 0x0000000F 0x00000005 0x00000015 0x00000055 0xAAAAAAAA
    Address line test start:0x00000000 len:0x4000000 pattern 0xAAAAAAAA 0x55555555
    Fill test patnum:5
    fill Pattern 5555AAAA Writing… Reading…
    fill Pattern AAAA5555 Writing… Reading…
    fill Pattern 0000FFFF Writing… Reading…
    fill Pattern FFFF0000 Writing… Reading…
    fill Pattern AAAAAAAA Writing… Reading…
    Top of RAM usable for U-Boot at: 84000000
    Reserving 250k for U-Boot at: 83fc0000
    Reserving 256k for malloc() at: 83f80000
    Reserving 44 Bytes for Board Info at: 83f7ffd4
    Reserving 36 Bytes for Global Data at: 83f7ffb0
    Reserving 128k for boot params() at: 83f5ffb0
    Stack Pointer at: 83f5ff98
    Now running in RAM – U-Boot at: 83fc0000
    Dev ID2:2222
    Name: AMD-SPANSION Flash id: 0x1227E, Size: 33554432 bytes.
    Flash: 32 MB
    In: serial
    Out: serial
    Err: serial
    Memory Test
    uboot use 83F5FFB0 – 84000000
    Memory Test start(80000000) end(83F00000) size(03F00000)
    Pattern 00000000 Writing… Reading…
    Memory Test OK
    ### buf_ver=[1.02] U-Boot Ver.=[1.02]
    ### build_date(env)=[Feb 16 2009 – 10:47:08] build_date(bin)=[Feb 16 2009 – 10:47:08]
    ag7100_enet_initialize…
    : cfg1 0xf cfg2 0x7114
    rtl8366sr_phy_setup ethUnit=0
    Realtek 8366SR switch ID 0x8366
    Realtek Greeen Ethernet Setup
    eth0: 02:aa:bb:cc:dd:1a
    eth0 up
    : cfg1 0xf cfg2 0x7114
    eth1: 02:aa:bb:cc:dd:1a
    eth1 up
    eth0 02:AA:BB:CC:DD:1A
    , eth1 02:AA:BB:CC:DD:1A

    Trying eth0
    eth0 is duplex
    eth0 link down
    FAIL
    Trying eth1
    eth1 link down
    FAIL

    tftp server(receive) go, waiting:1[sec]
    Trying eth1
    eth1 link down
    FAIL
    Trying eth0
    eth0 is duplex
    eth0 link down
    FAIL
    Load address: 0x81f00000

    TftpServer Timeout;
    Trying eth0
    eth0 is duplex
    eth0 link down
    FAIL
    Trying eth1
    eth1 link down
    FAIL
    no file was loaded.
    ## Booting image at be060000 …
    Bad Magic Number
    # LED(0x2) Blink[2] (Please press ‘Ctrl+c’ to stop)

  • Beau

    Hey, bit off topic, I just bought an WZR-HP-G300NH second hand and found that the AC adaptor they provide was totally wrong, doesn't even fit. Now just having troulbe finding details about the orignal AC adaptor. Can anyone tell me the output voltage. I think it's 12v 2amps. Is that right? And just as important, if anyone tell tell me the pin type it has on the end….I've read a few different  things like 5.0mm x 3.0mm male DC plug. Just that 3.0mm sounds a bit large for the centre hole I see at the back of the device. 
    Any info welcome. Thanks!

  • tommiy

    Accessed my WZR-HP-AG300H via the bufpy login. The changes are done directly by ubootenv which has set, get, del and list options. Setting a variable saves it permanently.

  • Yin

    I can’t break it with Ctrl+c also. Any comment?

    • Yin,

      I think I remember seeing that later versions of the Buffalo firmware have disabled breaking into the uboot prompt via ctrl-c.

      Why not try downloading the images made by dd-wrt? They seem to be able to install fine now.

      Regards.

    • fernandoavc@gmail.com

      Have u had any luck? I can’t control-c the u-boot… Idk what to do… such a pitty throw it away….

  • Sissel

    Oh well…I have a Janapese WZR-HP-G300NH v1, A0 A0
    I was using the official buffalo dd wrt 19484 (I changed it to accept any firmware using the “# ubootenv setenv accept_open_rt_fmt 1” at the hidden maintenance page), then I tried to update to the latest dd wrt firmware using the web interface and it fail.
    I didn’t reset the router (since I already did the same update before), and now it’s stuck doing the reboot cycle. (turns on, the red light stays for a while, reboot…)
    I tried to tftp pretty much all the official buffalo firmwares from EU/US and JP even that old 1.60 (if I remember correctly, my router came up with the 1.65), all lan ports (I know it’s number 4 =D) and I did use both mac addresses: my router mac and 02:AA:BB:CC:DD:1A on windows 7 x64 with PumpKIN tftp and ubuntu 12.10.
    It upload all fine but…nothing happens after that.
    Reading a lot of foruns etc, I find out that I need to upload an .enc (encrypted?) firmware but brainslayer told to another user that we can use the 1.65 EU that he upload before. I did use that firmware too but still the same…
    So I can tftp the firmware image just fine but my router doesn’t reflash the new firmware. Someone having the same problem or anyone can light some ideas for me?
    To do this “tftp reflash” do I need the serial cable? Or that serial thing is just to read the u-boot log?
    Thanks for reading this, sorry for my bad english and any help is welcome =)

  • Ryouta

    Hey, I have a Janapese WZR-HP-G300NH v1, A0 A0 too and I managed to unbrick it without changing the Region.

    First, I pushed via TFTP with USB dongle, the MODIFIED DD-WRT firmware (Without the numbers before Magic Numbers –> 27 05 19 56). After waiting few minutes to boot, I had a working router but with some problems trying to connect to internet using PPPoE. Then decided to do an upgrade through the web interface using the UNMODIFIED DD-WRT firmware. After waiting few more minutes, I had a fully working router! :)

    I uploaded these firmwares I’ve used to unbrick the router. Hope you guys can unbrick this great router as I did.

    Here are the links of the firware and the USB converter I´ve used:

    1- Modified DD-WRT firmware:
    http://adf.ly/RkNWL

    2- Unmodified DD-WRT firmware:
    http://adf.ly/RkY3s

    3- USB to TTL dongle:
    http://dx.com/p/usb-to-uart-5-pin-cp2102-module-serial-converter-81872
    It´s free shipping and takes 10~15 days to arrive but this thing worked like a charm.

    I´ll be here if you need some help :)

    Regards

    • Sissel

      Thanks for the tips.
      But do I need access to uboot to perform this unbrick? Or can I follow those FAQ’s from OpenWRT and DD WRT wikis? They say I can just tftp the firmware using the Lan port 4, and use that mac address 02:AA:BB:CC:DD:1A. Which mac address have you used to tftp the firmware image?
      I will download and give a try as soon I get home.
      Thanks again Ryouta

    • Sissel

      If I do really one of those cables, can I use this one? I can get one of these faster than importing from dx.
      http://www.adafruit.com/products/954
      It does already have the USBSerial conversion chip inside the usb connector. They use this cable to access the raspberry pi, arduinos, etc.

      • I don’t think that one would do. You need the one mentioned above, or one made by FTDI.

        When you DO get one, do NOT connect the POWER wire – you don’t need it, as the router supplies the power to the circuitry itself.

        • Sissel

          I will try to recover this router when I get the cable that you mentioned above(TTL-232R-3V3-WE).
          So the only thing I need after that is:
          Use the putty, break the router boot sequence (ctrl + C) and and follow your instructions right?
          Thank you all

        • Sissel

          humm I was trying to make a post yesterday, but I was unable to create an account xD

          I bought the usb to serial adapter, a generic one with a pl-2303hx chip and it worked perfectly with your tutorial.

          I also used the Ryouta firmware mod to unbrick my router, but after reboot I could not webupdate to any dd wrt firmware. I downgrade to 1.65 EU (the one brainslayer provided at dd wrt forum) and then I update to buffalo's official 19484. I will test the newer version of dd wrt to see if solve some bugs that I found in 19484.

          Thank you all!!! =D

          • Sissel

            Just one last thing:I tried openwrt,ddwrt and gargoyle.
            Now I belive that gargoyle (1.5.10) is the most stable (openwrt attitude adjustment) firmware for this router.
            The wifi is a little bit slower than ddwrt, but it’s stable. Also, the usb samba share and ftp are really fast to setup.
            And since gargoyle is “basically” just a webui for openwrt, it’s also customizable and anyone can follow pretty much any guide made for openwrt.
            Openwrt (with luci webui) is the same, but it’s a little bit too complicated (for me) so it’s an option for those who want “more”.

  • LIN

    I tried to repair my WHR-HP-G300N.
    I download whr-hp-g300n-firmware-MULTI.bin.
    Then adjusted the Magic Number to 27 05 19 56.
    Everything went well.
    But the router only work when the TTL-USB cable connect to PC.
    After I disconnect the TTL-USB cable and reboot the router, the router can not work.

    Finally I tried to replaced the firmware with openwrt.
    It worked. Now my whr-hp-g300n worked with openwrt.

    I tried many times to replace the firmware to DDWRT, because I like DDWRT.
    But it does not work. The same problem.

  • Rob

    I mistakenly typed “mtd erase flash”, and erased the entire flash (dumb mistake – was experiencing problems with DHCP conflicts on Static DHCP). In a panic realizing what I had done, and noticing the telnet client was still open, I downloaded the stock firmware *.smc, and typed “mtd write stock.smc”, took about 5 min then flashed it.

    Finally, I realized I could get into the web interface with a cached copy. I then upgraded the firmware to stock, and rebooted. Now, my router is braindead (just a power and “movie engine” light, NO serial output (Tried “null modem” and straight “GND, TX-RX, RX-TX, GND” on pins 2, 3, and 4 respectively. Used a USB-Serial adapter that I know works with a serial console (tried it with a USR modem). 115200, 8 bit, parity off, 1 stop, no flow control (nadda). Power cycle, reset, any button, plug/unplug Ethernet… NOTHING! I assume the bootloader went bye-bye as it wrote starting at 0x0, and when I “mtd write flash” the stock image it started at 0x0.

    I’ve used JTAG to fix other routers before N/P, have several JTAG hardware, parallel port “wiggler” cable, and getting an ICSP (MiniPro TL866A) Universal EPROM/Flash/PIC/[you name it] programmer for school anyday now. It even has a clip that can attach to SMD flash, and write it. Does anyone have a binary for the original flash of a “WZR-HP-G300NH” (A0 D0) (no version number).bin?

    I heard it was encrypted, hell, in 5 years the food will be encrypted so we can only digest it when they say we can even though we bought it, and can “update” us and force us not to eat organic (exaggeration). I assume I can reflash the UBOOT, now get into serial, download the unencrypted flash, then change the MAC info in a HEX editor, and then re-flash (right address this time). Anyone have any ideas?

  • petshopowner

    If anyone want to use OpenWRT on their Japanese Buffalo
    should use the sysupgrade part and not the tftp or factory

    proved by hexeditor (HxD)

  • tla

    I don’t know what I would do without this guide. Best guide on the Net for Buffalo router. Would you consider archiving this guide just in case something happens Thanks

  • Octplm

    if you are unable to send the file via TFTP you may send the file via Kermit or Ymodem throught serial conection.
    In a Hyperterminal window (TTY 115200 8-N-1 None, after Interrupting the U-boot with ^C enter “loady” command or “loadk” instead (loady for Ymodem and loadk for Kermit)and after that send the modified firmware via hyperterminal send Menu(the one that starts with the magic number)
    after that follow the indicated steps discribed above (erase, cp.b and bootm)

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

  

  

  

This site uses Akismet to reduce spam. Learn how your comment data is processed.