WHR-HP-AG108

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 14:04, 29 December 2007 (edit)
Sash (Talk | contribs)
m (Installation >=v24RC6)
← Previous diff
Revision as of 14:40, 29 December 2007 (edit) (undo)
Sash (Talk | contribs)
m (Installation >=v24RC6)
Next diff →
Line 168: Line 168:
-==Installation >=v24RC6== 
-the size of the lzma_vmlinus has grown.<br> 
-update form <RC6 via web.if will brick the router.<br> 
-you have to flash lzma_vmlinus via redboot to recover/install dd-wrt.<br> 
-is the same like in the flash procedere above exept of:<br> 
- 
- ... 
- RedBoot> load -r -v -b 0x80100000 lzma_vmlinus 
- RedBoot> fis create -r 0x80100000 -e 0x80100000 -l 0x000d0000 -f 0xbe2f0000 linux 
- ... 
==FAQ== ==FAQ==

Revision as of 14:40, 29 December 2007


Contents


Image:WHR-HP-AG108.jpg

Hardware

- Atheros AR5312 chipset @ 220 MHz
- 32MB RAM
- 4MB Flash
- WLAN a/b/g (ieee 802.11a/b/g) @ 20dbi (100mW)
- 4x LAN & 1x WAN
- Antenna detachable (reverse-sma)
- Serial port (needs a rs232 converter)
- 5V/2A PSU
- Price: ~75€

Installation <v24RC6

Note: This is a further "polishing" of instructions originally posted by Holgi03 in the forums. Source: [1]


Before you start, you need several things.

RedBoot_config_gdb.rom

Root.fs, lzma_vmlinuz (or newer releases)

FileZilla (For an FTP server)

PumpKIN or TFTP@SF.net (For a TFTP server)

Putty (For a reliable telnet client)

A network switch/hub, separate from your BuffaloTech WHR-HP-AG108


Create a directory on your desktop for the root.fs, lzma_vmlinuz, and RedBoot_config_gdb.rom files.

Install Filezilla, create an “anonymous” user with no password, and set its home directory to that directory.

Install PumpKIN, go to Options, and set the TFTP Filesystem Root to the path to your directory on your desktop. Tell it to give all files, and take all files.


To install DD-WRT, through the web interface, telnet, tftp, and ftp:


1. Plug a network cable into your network switch and into port 1 of your BuffaloTech router. Plug your PC into your network switch.
• This helps avoid connection problems

2. Set your PC’s ip address to: 192.168.11.10.
• Out of the box, your AG108’s IP address will be 192.168.11.1.

3. Log into the BuffaloTech router’s administration website, set the root password to 1234.
http://192.168.11.1
• Username: root
• Password: **BLANK**
• Click the “advanced” button at the top of the page.
• Click on the “admin config” button on the left column of the webpage.
• Type 1234 into both administrator password fields and hit apply.
• Go ahead and log into the router again. Now logout of the router but make sure you use the logout button.

4. Open the following address in your web browser:
http://192.168.11.1/cgi-bin/cgi?req=frm&frm=py-db/55debug.html
• Username: bufpy
• Password: otdpopy1234

5. Activate telnet
• Click the “telnetd” link.
• Click the “start” button

6. Connect via telnet to the router
• Run putty
• Select “telnet” for connection type
• For the hostname (or IP address) put 192.168.11.1
• Click the “open” button
• You will now be at a BusyBox prompt.
• There is no need to create a flash backup of the ROM, I have it hosted here: [2]

7. Flash the redboot configuration on the router with Holgi’s redboot configuration.
• In the Putty window, type the following commands in order:

cd /tmp
wget ftp://192.168.11.10/RedBoot_config_gdb.rom

• Confirm at this point that the file transferred correctly by typing “ls” and verifying it is in the beginning of the directory. (files with capital letters list early in the directory list)

dd if=/tmp/RedBoot_config_gdb.rom of=/dev/mtdblock/4

• Confirm that you see “128+0 records” in and out.
• Close your putty session, and re-open putty, configure it for telnet, but use port 9000 this time.

8. Power cycle the router and reconnect to it via telnet.
• Power cycle the router.
• While the red LED is lit, connect using putty via telnet with port 9000.
• Once you see “== Executing boot script in…” hit CTRL-C which will interrupt the 9 second boot-wait. You should be at a RedBoot> prompt.

9. Connect to your TFTP server, transfer root.fs, flash it, transfer lzma_vmlinus, flash it.
• In the Putty window, type the following commands in order:

ip_address -l 192.168.11.1 -h 192.168.11.10
fis init

• This will initialize flash memory, say yes.

load -r -v -b 0x80041000 root.fs

• Make SURE you do not mistype.
• This loads the root linux filesystem into memory

fis create -b 0x80041000 -f 0xbe050000 -l 0x002a0000 -e 0x00000000 rootfs

• This writes the file to flash. Wait a while.

load -r -v -b 0x80100000 lzma_vmlinus

• This loads the linux kernel into memory.

fis create -r 0x80100000 -e 0x80100000 -l 0x000c0000 -f 0xbe2f0000 linux

• This writes the file to flash. Wait a while.

fis create -f 0xbe3b0000 -b 0x80041000 -l 0x00010000 -e 0x00000000 nvram

• This writes an empty nvram to flash. Wait a while.

fis list

• Make sure all the files are in the correct memory addresses

Name              FLASH addr  Mem addr    Length      Entry point
RedBoot           0xBE000000  0xBE000000  0x00050000  0x00000000
RedBoot config    0xBE3DF000  0xBE3DF000  0x00001000  0x00000000
FIS directory     0xBE3D0000  0xBE3D0000  0x0000F000  0x00000000
rootfs            0xBE050000  0xBE050000  0x002A0000  0x00000000
linux             0xBE2F0000  0x80100000  0x000C0000  0x80100000
nvram             0xBE3B0000  0xBE3B0000  0x00010000  0x00000000

• If these are correct, continue. If not, you may want to redownload and flash root.fs, lzma_vmlinus, and reflash the empty nvram. Don’t mistype this time.

10. Configure the bootloader
• In the Putty window, type the following commands:

fconfig

• Hit enter at “Run script at boot: true”
• Type the following lines into the script. Hit enter after each line once.

fis load linux
exec

• Hit enter again.
• Hit enter at “Boot script timeout …” aka, leave it at 9.
• Hit enter nine times.
• Type “y” and hit enter at “Update RedBoot non-volatile configration”

reset

The router will now reset, and in a couple of minutes it will come back with a default DD-WRT ip address of 192.168.1.1, username of root, and password of admin.



FAQ

- site_survey: In Atheros devices in general site_survey only works in client and WDS staion mode.
- WDS setup (2 Atheros devices): Only set one ap to "wds ap" and the other to "wds station". Put on both the same SSID. Don´t set the wds mac table!

External links

Original Buffalo produkt page
Special DD-WRT WHR-HP-AG108 builds