WZR-HP-AG300H » History » Version 4
Alexey Trenikhin, 10/10/2012 11:00 PM
added dmesg output
1 | 1 | Alexey Trenikhin | h1. WZR-HP-AG300H |
---|---|---|---|
2 | 1 | Alexey Trenikhin | |
3 | 3 | Alexey Trenikhin | * Get zrouter and zrouter's FreeBSD source trees as described in [[Quickstart]] |
4 | 1 | Alexey Trenikhin | * Copy zrouter/boards/D-Link/DIR-825/* to zrouter/boards/Buffalo/WZR-HP-AG300H |
5 | 1 | Alexey Trenikhin | * Edit zrouter/boards/Buffalo/WZR-HP-AG300H/boards.hints |
6 | 1 | Alexey Trenikhin | ** hint.map.* (GEOM MAP) |
7 | 1 | Alexey Trenikhin | <pre> |
8 | 2 | Alexey Trenikhin | hint.map.0.at="flash/spi0" |
9 | 2 | Alexey Trenikhin | hint.map.0.start=0x00000000 |
10 | 2 | Alexey Trenikhin | hint.map.0.end=0x00040000 |
11 | 2 | Alexey Trenikhin | hint.map.0.name="bootloader" |
12 | 2 | Alexey Trenikhin | hint.map.0.readonly=1 |
13 | 2 | Alexey Trenikhin | |
14 | 2 | Alexey Trenikhin | hint.map.1.at="flash/spi0" |
15 | 2 | Alexey Trenikhin | hint.map.1.start=0x00040000 |
16 | 2 | Alexey Trenikhin | hint.map.1.end=0x00050000 |
17 | 2 | Alexey Trenikhin | hint.map.1.name="bootloader-env" |
18 | 2 | Alexey Trenikhin | hint.map.1.readonly=1 |
19 | 2 | Alexey Trenikhin | |
20 | 2 | Alexey Trenikhin | hint.map.2.at="flash/spi0" |
21 | 2 | Alexey Trenikhin | hint.map.2.start=0x00050000 |
22 | 2 | Alexey Trenikhin | hint.map.2.end=0x00060000 |
23 | 2 | Alexey Trenikhin | hint.map.2.name="art" |
24 | 2 | Alexey Trenikhin | hint.map.2.readonly=1 |
25 | 2 | Alexey Trenikhin | |
26 | 2 | Alexey Trenikhin | hint.map.3.at="flash/spi0" |
27 | 2 | Alexey Trenikhin | hint.map.3.start=0x00060000 |
28 | 2 | Alexey Trenikhin | hint.map.3.end=0x007c0000 |
29 | 2 | Alexey Trenikhin | hint.map.3.name="upgrade" |
30 | 2 | Alexey Trenikhin | |
31 | 2 | Alexey Trenikhin | hint.map.4.at="flash/spi0" |
32 | 2 | Alexey Trenikhin | hint.map.4.start=0x00060000 |
33 | 2 | Alexey Trenikhin | hint.map.4.end="search:0x00100000:0x10000:.!/bin/sh" |
34 | 2 | Alexey Trenikhin | hint.map.4.name="kernel" |
35 | 2 | Alexey Trenikhin | |
36 | 2 | Alexey Trenikhin | hint.map.5.at="flash/spi0" |
37 | 2 | Alexey Trenikhin | hint.map.5.start="search:0x00100000:0x10000:.!/bin/sh" |
38 | 2 | Alexey Trenikhin | hint.map.5.end=0x007c0000 |
39 | 2 | Alexey Trenikhin | hint.map.5.name="rootfs" |
40 | 2 | Alexey Trenikhin | |
41 | 2 | Alexey Trenikhin | hint.map.6.start=0x007c0000 |
42 | 2 | Alexey Trenikhin | hint.map.6.end=0x007f0000 |
43 | 2 | Alexey Trenikhin | hint.map.6.name="config" |
44 | 2 | Alexey Trenikhin | #hint.map.6.readonly=1 |
45 | 1 | Alexey Trenikhin | </pre> |
46 | 1 | Alexey Trenikhin | ** Edit zrouter/boards/Buffalo/WZR-HP-AG300H/board.mk |
47 | 3 | Alexey Trenikhin | Specify board flash size |
48 | 3 | Alexey Trenikhin | <pre> |
49 | 3 | Alexey Trenikhin | BOARD_FLASH_SIZE=32M |
50 | 3 | Alexey Trenikhin | </pre> |
51 | 3 | Alexey Trenikhin | Specify board memory |
52 | 3 | Alexey Trenikhin | <pre> |
53 | 3 | Alexey Trenikhin | # Board have 128M of RAM |
54 | 3 | Alexey Trenikhin | KERNCONF_OPTIONS+= AR71XX_REALMEM=128*1024*1024 |
55 | 3 | Alexey Trenikhin | </pre> |
56 | 3 | Alexey Trenikhin | Set maximum firmware size |
57 | 3 | Alexey Trenikhin | <pre> |
58 | 3 | Alexey Trenikhin | # Image must not be biggest than GEOM_MAP_P2 (upgrade part.) |
59 | 3 | Alexey Trenikhin | FIRMWARE_IMAGE_SIZE_MAX=0x00760000 |
60 | 3 | Alexey Trenikhin | </pre> |
61 | 1 | Alexey Trenikhin | * Build |
62 | 3 | Alexey Trenikhin | ** make TARGET_PAIR=Buffalo/WZR-HP-AG300H. This will produce Buffalo_WZR-HP-AG300H.zimage under $OBJ_DIR/... |
63 | 3 | Alexey Trenikhin | ** Prepare TFTP image. I have used buffaulo-tftp utility from OpenWRT (in future should be included into build) |
64 | 3 | Alexey Trenikhin | <pre> |
65 | 3 | Alexey Trenikhin | (echo -n "# Airstation FirmWareNrun u_fwNresetNN" | tr "N" "\012" | dd bs=512 count=1 conv=sync; dd if=Buffalo_WZR-HP-AG300H.zimage) > tftp.tmp |
66 | 3 | Alexey Trenikhin | buffalo-tftp -i tftp.tmp -o Buffalo_WZR-HP-AG300H-tftp.bin |
67 | 3 | Alexey Trenikhin | </pre> |
68 | 3 | Alexey Trenikhin | Resulting Buffalo_WZR-HP-AG300H-tftp.bin can be flashed via tftp. (I believe Buffalo_WZR-HP-AG300H.zimage can be flashed via OpenWRT upgrade utility, but I never tried) |
69 | 1 | Alexey Trenikhin | * flash |
70 | 3 | Alexey Trenikhin | ** TFTP flash procedure described in http://wiki.openwrt.org/toh/buffalo/wzr-hp-ag300h |
71 | 4 | Alexey Trenikhin | |
72 | 4 | Alexey Trenikhin | *dmesg |
73 | 4 | Alexey Trenikhin | <pre> |
74 | 4 | Alexey Trenikhin | |
75 | 4 | Alexey Trenikhin | KDB: debugger backends: ddb |
76 | 4 | Alexey Trenikhin | KDB: current backend: ddb |
77 | 4 | Alexey Trenikhin | Copyright (c) 1992-2012 The FreeBSD Project. |
78 | 4 | Alexey Trenikhin | Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 |
79 | 4 | Alexey Trenikhin | The Regents of the University of California. All rights reserved. |
80 | 4 | Alexey Trenikhin | FreeBSD is a registered trademark of The FreeBSD Foundation. |
81 | 4 | Alexey Trenikhin | FreeBSD 10.0-CURRENT #0: Mon Sep 24 20:47:24 PDT 2012 |
82 | 4 | Alexey Trenikhin | alexey@panic:/home/alexey/ZRouter/obj/usr/home/alexey/ZRouter/zrouter/tmp/mips.mips/usr/home/alexey/ZRouter/FreeBSD/head/sys/home/alexey/ZRouter/obj/usr/home/alexey/ZRouter/zrouter/conf/Buffalo_WZR-HP-AG300H mips |
83 | 4 | Alexey Trenikhin | real memory = 134217728 (131072K bytes) |
84 | 4 | Alexey Trenikhin | avail memory = 124792832 (119MB) |
85 | 4 | Alexey Trenikhin | nexus0: <MIPS32 root nexus> |
86 | 4 | Alexey Trenikhin | clock0: <Generic MIPS32 ticker> on nexus0 |
87 | 4 | Alexey Trenikhin | Timecounter "MIPS32" frequency 340000000 Hz quality 800 |
88 | 4 | Alexey Trenikhin | Event timer "MIPS32" frequency 340000000 Hz quality 800 |
89 | 4 | Alexey Trenikhin | cryptosoft0: <software crypto> on nexus0 |
90 | 4 | Alexey Trenikhin | apb0 at irq 4 on nexus0 |
91 | 4 | Alexey Trenikhin | uart0: <16550 or compatible> on apb0 |
92 | 4 | Alexey Trenikhin | uart0: console (115200,n,8,1) |
93 | 4 | Alexey Trenikhin | ohci0: <AR71XX integrated OHCI controller> on apb0 |
94 | 4 | Alexey Trenikhin | usbus0 on ohci0 |
95 | 4 | Alexey Trenikhin | gpio0: <Atheros AR71XX GPIO driver> on apb0 |
96 | 4 | Alexey Trenikhin | gpio0: [GIANT-LOCKED] |
97 | 4 | Alexey Trenikhin | gpio0: gpio pinmask=0xfff |
98 | 4 | Alexey Trenikhin | gpiobus0: <GPIO bus> on gpio0 |
99 | 4 | Alexey Trenikhin | gpiobus0: GPIO device with 12 pins |
100 | 4 | Alexey Trenikhin | gpioled0: Use pinmask=0x00000001 |
101 | 4 | Alexey Trenikhin | gpioled1: Use pinmask=0x00000002 |
102 | 4 | Alexey Trenikhin | gpioled2: Use pinmask=0x00000800 |
103 | 4 | Alexey Trenikhin | gpiobutton0: Use pinmask=0x00001000 |
104 | 4 | Alexey Trenikhin | gpiobutton0: invalid pin 12, max: 11 |
105 | 4 | Alexey Trenikhin | Mapped pin 0 is not owned by child "gpiobutton0" |
106 | 4 | Alexey Trenikhin | gpioc0: <GPIO controller> at pin(s) 0-11 on gpiobus0 |
107 | 4 | Alexey Trenikhin | gpioled0: <GPIO led> at pin(s) 0 on gpiobus0 |
108 | 4 | Alexey Trenikhin | gpioled0: /dev/led/wps flags=0102 |
109 | 4 | Alexey Trenikhin | gpioled1: <GPIO led> at pin(s) 1 on gpiobus0 |
110 | 4 | Alexey Trenikhin | gpioled1: /dev/led/status flags=0102 |
111 | 4 | Alexey Trenikhin | gpioled2: <GPIO led> at pin(s) 11 on gpiobus0 |
112 | 4 | Alexey Trenikhin | gpioled2: /dev/led/usb flags=0102 |
113 | 4 | Alexey Trenikhin | ehci0: <AR71XX Integrated USB 2.0 controller> at mem 0x1b000000-0x1bffffff irq 1 on nexus0 |
114 | 4 | Alexey Trenikhin | usbus1: set host controller mode |
115 | 4 | Alexey Trenikhin | usbus1: EHCI version 1.0 |
116 | 4 | Alexey Trenikhin | usbus1: set host controller mode |
117 | 4 | Alexey Trenikhin | usbus1 on ehci0 |
118 | 4 | Alexey Trenikhin | pcib0 at irq 0 on nexus0 |
119 | 4 | Alexey Trenikhin | pcib0: found EEPROM at 0x1fff1000 on 0.17.0 |
120 | 4 | Alexey Trenikhin | pcib0: EEPROM firmware: 0x1fff1000 @ 4096 bytes |
121 | 4 | Alexey Trenikhin | pcib0: device EEPROM 'pcib.0.bus.0.17.0.eeprom_firmware' registered |
122 | 4 | Alexey Trenikhin | pcib0: found EEPROM at 0x1fff5000 on 0.18.0 |
123 | 4 | Alexey Trenikhin | pcib0: EEPROM firmware: 0x1fff5000 @ 4096 bytes |
124 | 4 | Alexey Trenikhin | pcib0: device EEPROM 'pcib.0.bus.0.18.0.eeprom_firmware' registered |
125 | 4 | Alexey Trenikhin | pci0: <PCI bus> on pcib0 |
126 | 4 | Alexey Trenikhin | pci0: <network, ethernet> at device 17.0 (no driver attached) |
127 | 4 | Alexey Trenikhin | pci0: <network, ethernet> at device 18.0 (no driver attached) |
128 | 4 | Alexey Trenikhin | arge0: <Atheros AR71xx built-in ethernet interface> at mem 0x19000000-0x19000fff irq 2 on nexus0 |
129 | 4 | Alexey Trenikhin | miibus0: <MII bus> on arge0 |
130 | 4 | Alexey Trenikhin | floatphy0 PHY 0 on miibus0 |
131 | 4 | Alexey Trenikhin | floatphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseSX, 1000baseSX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto |
132 | 4 | Alexey Trenikhin | arge0: Ethernet address: 62:73:64:dd:57:14 |
133 | 4 | Alexey Trenikhin | arge1: <Atheros AR71xx built-in ethernet interface> at mem 0x1a000000-0x1a000fff irq 3 on nexus0 |
134 | 4 | Alexey Trenikhin | miibus1: <MII bus> on arge1 |
135 | 4 | Alexey Trenikhin | floatphy1 PHY 0 on miibus1 |
136 | 4 | Alexey Trenikhin | floatphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseSX, 1000baseSX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto |
137 | 4 | Alexey Trenikhin | arge1: Ethernet address: 62:73:64:7c:34:b5 |
138 | 4 | Alexey Trenikhin | spi0: <AR71XX SPI> at mem 0x1f000000-0x1fffffff on nexus0 |
139 | 4 | Alexey Trenikhin | spibus0: <spibus bus> on spi0 |
140 | 4 | Alexey Trenikhin | mx25l0: <M25Pxx Flash Family> at cs 0 mode 0 on spibus0 |
141 | 4 | Alexey Trenikhin | mx25l0: mx25ll128, sector 65536 bytes, 256 sectors |
142 | 4 | Alexey Trenikhin | ar71xx_wdog0: <Atheros AR71XX watchdog timer> on nexus0 |
143 | 4 | Alexey Trenikhin | Timecounters tick every 1.000 msec |
144 | 4 | Alexey Trenikhin | IPsec: Initialized Security Association Processing. |
145 | 4 | Alexey Trenikhin | usbus0: 12Mbps Full Speed USB v1.0 |
146 | 4 | Alexey Trenikhin | usbus1: 480Mbps High Speed USB v2.0 |
147 | 4 | Alexey Trenikhin | ugen0.1: <Atheros> at usbus0 |
148 | 4 | Alexey Trenikhin | uhub0: <Atheros OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0 |
149 | 4 | Alexey Trenikhin | ugen1.1: <Atheros> at usbus1 |
150 | 4 | Alexey Trenikhin | uhub1: <Atheros EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1 |
151 | 4 | Alexey Trenikhin | map/rootfs.uncompress: GEOM_ULZMA image found |
152 | 4 | Alexey Trenikhin | map/rootfs.uncompress: 357 x 65536 blocks |
153 | 4 | Alexey Trenikhin | Root mount waiting for: usbus1 usbus0 |
154 | 4 | Alexey Trenikhin | uhub0: 2 ports with 2 removable, self powered |
155 | 4 | Alexey Trenikhin | uhub1: 2 ports with 2 removable, self powered |
156 | 4 | Alexey Trenikhin | Trying to mount root from cd9660:/dev/map/rootfs.uncompress []... |
157 | 4 | Alexey Trenikhin | warning: no time-of-day clock registered, system time will not be set accurately |
158 | 4 | Alexey Trenikhin | gpio0: Will report interrupt on pin 10 |
159 | 4 | Alexey Trenikhin | WARNING: attempt to domain_add(netgraph) after domainfinalize() |
160 | 4 | Alexey Trenikhin | lan0: link state changed to UP |
161 | 4 | Alexey Trenikhin | bridge0: Ethernet address: f2:f6:c1:a8:d0:dd |
162 | 4 | Alexey Trenikhin | lan0: promiscuous mode enabled |
163 | 4 | Alexey Trenikhin | bridge0: link state changed to UP |
164 | 4 | Alexey Trenikhin | KLD ng_ipfw.ko: depends on ipfw - not available or version mismatch |
165 | 4 | Alexey Trenikhin | linker_load_file: Unsupported file type |
166 | 4 | Alexey Trenikhin | wan0: link state changed to UP |
167 | 4 | Alexey Trenikhin | /tmp: optimization changed from SPACE to TIME |
168 | 4 | Alexey Trenikhin | </pre> |