OpenWrt Forum Archive

Topic: WZR-HP-G301NH Bricked?

The content of this topic has been archived between 14 Apr 2018 and 20 Apr 2018. Unfortunately there are posts – most likely complete pages – missing.

ego2006 wrote:

Hi guys,

i'm running into the same problem. But i managed to get the module from the original firmware.
It's over here: http://dezoeten.mine.nu/ag7100_mod.ko

Cool, thanks. I'll take a look at it as soon as I have time (shouldn't take very long then).

KM

Hi everybody !

I got a problem with my WZR-HP-G300NH that seems to be bricked ! Obviously some of you have been able to connect through the serial port !? Where on the board are situated the pin 1 ... pin 4 described in openWrt wiki ?

Thanks

I am not sure if the unit I bought is defective or not(I have the WZR-HP-G300NH )  .
So like I have serial console access. In dd-wrt and the original firmware the ethernet connection to the device does not work. (eth0 on dd-wrt doesn't appear to be operating).

When booting the device I get something similar what was posted earlier in this thread
-->
"Realtek RTL8366S ethernet switch driver version 0.2.2
rtl8366s rtl8366s: using GPIO pins 19 (SDA) and 20 (SCK)
rtl8366s rtl8366s: unknown chip id (0000)
rtl8366s rtl8366s: chip detection failed, err=-19
eth0: Atheros AG71xx at 0xb9000000, irq 4
eth0: unable to find MII bus on device 'rtl8366s'
eth0: Atheros AG71xx at 0xba000000, irq 5
eth0: unable to find MII bus on device 'rtl8366s'
"

When the device is on and running dd-wrt I get the following output in dmesg:

<4>[ 1157.370000] rtl8366sr_get_link_status: fail rtl8366s_getAsicPHYRegs(): unit=1, port=4: ignore this port
<4>[ 1157.380000] rtl8366sr_get_link_status: fail rtl8366s_getAsicPHYRegs(): unit=1 use previous status(linkStatus=1)

Uboot has this -->

ag7100_enet_initialize...
: cfg1 0xf cfg2 0x7114
RTL8366 series driver, reading model-id...
  ID:0x0, REV:0x0

(Last edited by d-b on 11 Jan 2011, 09:31)

Hello.
Sentences might be amusing because of the machine translation.
I have three WZR-HP-G301NH.
Two installs, and is using Openwrt.
http://downloads.openwrt.org/backfire/1 … 2-tftp.bin

One of the remainder can only install it.
However, it doesn't become possible to use the network.

The serial console is connected.
It confirms it with the serial console.

ifconfig  only lo.
uboot log:
RTL8366 series driver, reading model-id...
ID:0x5937, REV:0x0
rtl8366rb_phy_setup ethUnit=0
Realtek 8366RB switch ID:0x5937 REV:0x3
linux log:
Realtek RTL8366S ethernet switch driver version 0.2.2
rtl8366s rtl8366s: using GPIO pins 19 (SDA) and 20 (SCK)
rtl8366s rtl8366s: unknown chip id (0000)
rtl8366s rtl8366s: chip detection failed, err=-19
eth0: Atheros AG71xx at 0xb9000000, irq 4
eth0: unable to find MII bus on device 'rtl8366s'
eth0: Atheros AG71xx at 0xba000000, irq 5
eth0: unable to find MII bus on device 'rtl8366s'

Ag7100_mod.ko that opened to the public by Mr. ego2006 and was was downloaded.

The usb memory was formatted with fat32.
Ag7100_mod.ko was copied there.

dmesg:
The usb memory was connected with the usb port of wzr-hp-g301nh.
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
dme
ar71xx-ehci ar71xx-ehci: Atheros AR91xx built-in EHCI controller
ar71xx-ehci ar71xx-ehci: new USB bus registered, assigned bus number 1
ar71xx-ehci ar71xx-ehci: irq 3, io mem 0x1b000000
ar71xx-ehci ar71xx-ehci: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected

Because it is not possible to connect it with the network, the following commands cannot be executed.
http://wiki.openwrt.org/oldwiki/UsbStorageHowto
ipkg install kmod-usb-storage
insmod scsi_mod
insmod sd_mod
insmod usb-storage
ipkg install kmod-vfat
ipkg install kmod-fs-vfat
insmod fat
insmod vfat

I want to use openwrt by all means.
Isn't there something good method?

My best regards.

Hello.

http://wiki.openwrt.org/oldwiki/ImageBuilderHowTo
http://downloads.openwrt.org/backfire/1 … 86.tar.bz2
imagebuilder download

It referred to the above-mentioned link.
The bin file was made.
It wrote it in the router.

root@OpenWrt:/# ls
ag7100_mod.ko  init           proc           sys            www
bin            lib            rom            tmp
dev            mnt            root           usr
etc            overlay        sbin           var
root@OpenWrt:/# insmod ag7100_mod.ko
ag7100_mod: version magic '2.6.15 MIPS32_R2 32BIT gcc-3.4' should be '2.6.32.10 mod_unload MIPS32_R2 32BIT '
insmod: can't insert 'ag7100_mod.ko': invalid module format
root@OpenWrt:/# insmod ag7100_mod.ko --force
insmod: unrecognized option `--force'
BusyBox v1.15.3 (2010-03-28 15:11:15 CEST) multi-call binary

Usage: insmod FILE [symbol=value]...

Load the specified kernel modules into the kernel

When the lsmod command was executed, it became an error.
This way was given up.

Next, the compilation order was tried.
https://dev.openwrt.org/wiki/GetSource
It referred to this link.

Ubuntu 10.04 32bit is used.
The openwrt folder was made for the home directory.
The following commands were executed with the openwrt folder.
svn co svn://svn.openwrt.org/openwrt/trunk/
The make config command was executed.
What installed the program for [**].
Make menuconfig was executed.
Target System(Athros AR71xx/AR71xx....) was selected.
Build the OpenWrt Image Builder was selected.
Other parameters have not changed.

The composition was kept.
The make config command was executed.
cd bin/ar71xx
openwrt-ar71xx-generic-wzr-hp-g300nh-jffs2-tftp.bin
It was possible to image it as follows.
It installed it in the router by way of experiment.
It seemed to be unquestionable excluding lan.

The following files were downloaded.
http://page.mi.fu-berlin.de/jgorski/ope … itch.patch

x@ubuntu:~/openwrt/trunk$ patch < 0001-ar71xx-Disable-realtek-switch.patch
patching file mach-wzr-hp-g300nh.c
Hunk #1 FAILED at 232.
Hunk #2 FAILED at 251.
2 out of 2 hunks FAILED -- saving rejects to file mach-wzr-hp-g300nh.c.rej

My not been like development etc. , and no understanding whether this procedure well.
When having retrieved it, patch < file name Though it is not thought it is wrong because it was written  ???

Please teach which procedure is wrong.

My best regards.

KanjiMonster wrote:

Getting the switch to work is a bit harder since we have to find out what are the SCK/SDA GPIOs for it. This can be done by either reversing the bootloader or the ag7100.ko (assuming you can access it) from the original firmware.

Requesting the source code for the bootloader might work too, if its U-Boot.  Then Buffalo is supposed to provide the sources, which will tell us what the GPIOs are.

KM

The GPIO pins are the same as for G300NH with 8366SR ie 19 (SDA) and 20 (SCK)

(Last edited by JonnyM on 27 Jan 2011, 14:33)

nekokawaii wrote:

Please teach which procedure is wrong.

Nothing was wrong, my patch was just too old smile

Please try [s]this one[/s](Edit: Removed until correct PLL values inserted. This should build an image explicitly for it which might or might not work. It builds one for me, but without the device I can't test whether it really boots ;-).

JonnyM wrote:

The GPIO pins are the same as for G300NH with 8366SR ie 19 (SDA) and 20 (SCK)

Cool, thank you very much. Haven't had the time yet to really look at the module. You don't by chance have the PLL value for gigabit, too?

Regards,
KM

(Last edited by KanjiMonster on 29 Jan 2011, 15:42)

KanjiMonster wrote:

. You don't by chance have the PLL value for gigabit, too?

Regards,
KM

double values, I don't know how they are used but I guess you do..
8366sr values included as reference.

   .globl e1000rb_pll
.data:0002796C 1F 00 00 00             e1000rb_pll:    .word 0x1F000000       
.data:00027970 00 00 01 00                             .word 0x100



   .globl e1000sr_pll
.data:00027974 1E 00 01 00             e1000sr_pll:    .word 0x1E000100
.data:00027978 1E 00 01 00                             .word 0x1E000100

JonnyM wrote:

double values, I don't know how they are used but I guess you do..

Easy, these are two  32-bit values, one for each ethernet interface.

JonnyM wrote:

8366sr values included as reference.

   .globl e1000rb_pll
.data:0002796C 1F 00 00 00             e1000rb_pll:    .word 0x1F000000       
.data:00027970 00 00 01 00                             .word 0x100



   .globl e1000sr_pll
.data:00027974 1E 00 01 00             e1000sr_pll:    .word 0x1E000100
.data:00027978 1E 00 01 00                             .word 0x1E000100

Thanks, and confirmed. Just found them myself (and checked how they are used smile). I'll update the patch in a few minute.

KM

Ah, did take a bit longer than expected. Anyway, this patch might now enable everything for it.

Please test.

Regards,
KM

Hello.
Thank you for making patch.
I have not developed.
Compiling from the source is the first experience to me.
Therefore, the possibility that the report is wrong is high.

x@ubuntu:~/openwrt/trunk$ patch < 0001-ar71xx-basic-support-for-WZR-HP-G301NH.patch
patching file network
patching file diag.sh
Hunk #1 FAILED at 120.
1 out of 1 hunk FAILED -- saving rejects to file diag.sh.rej
patching file wzr-hp-g300nh
Hunk #1 FAILED at 32.
1 out of 1 hunk FAILED -- saving rejects to file wzr-hp-g300nh.rej
patching file ar71xx.sh
Hunk #1 FAILED at 145.
1 out of 1 hunk FAILED -- saving rejects to file ar71xx.sh.rej
patching file platform.sh
Hunk #1 FAILED at 69.
1 out of 1 hunk FAILED -- saving rejects to file platform.sh.rej
patching file mach-wzr-hp-g300nh.c
Hunk #1 FAILED at 13.
Hunk #2 FAILED at 225.
Hunk #3 FAILED at 251.
Hunk #4 FAILED at 262.
4 out of 4 hunks FAILED -- saving rejects to file mach-wzr-hp-g300nh.c.rej
patching file machtype.h
Hunk #1 FAILED at 60.
1 out of 1 hunk FAILED -- saving rejects to file machtype.h.rej
patching file Makefile
Hunk #1 FAILED at 140.
Hunk #2 FAILED at 659.
Hunk #3 FAILED at 706.
3 out of 3 hunks FAILED -- saving rejects to file Makefile.rej

I have two personal computers.
The following files were able to be made in one pc.
openwrt-ar71xx-generic-wzr-hp-g301nh-jffs2-tftp.bin
In another pc, the image of g301nh was not made.
I wrote the image with the serial console.

KanjiMonster wrote:

BUFFALO U-BOOT Ver 1.07
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:0x0000000? 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 275k for U-Boot at: 83fb8000
Reserving 256k for malloc()0at: 83f78000
Reserving 44 Bytes for Board Info at: 83f77fd4
Reserving 36 Bytes for Global Data at: 83f77fb0
Reserving 128k for boot params() at: 83f57fb0
Stack Pointer at: 83f57f98
Now running in RAM - U-Boot at: 83fb8000
Dev ID2:2222
Dev ID3:2201
Name: AMD-SPANSION Flash id: 0x1227E, Size:033554432 bytes.
Flash: 32 MB
In:    serial
Out:   serial
Err:   serial
Memory Test
uboot use  83F57FB0 - 84000000
Memory Test start(80000000) end(83F00000) size(03F00000)
Pattern 00000000  Writing...  Reading...
Memory Test OK
### buf_ver=[1.07] U-Boot Ver.=[1.07]
### build_date(env)=[Dec 21 2009 - 10:37:30] build_date(bin)=[Dec 21 2009 - 10:37:30]
ag7100_enet_initialize...
: cfg1 0xf cfg2 0x7114
RTL8366 series driver, reading model-id...
  ID:0x5937, REV:0x0
rtl8366rb_phy_setup  ethUnit=0
Realtek 8366RB switch ID:0x5937 REV:0x3
Realtek Greeen Ethernet Setup
eth0: 02:aa:bb:cc:dd:1a
eth0 up
: cfg1 0xf cfg2 0x7114
RTL8366 series driver, reading model-id...
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

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

TftpServer Timeout;
no file was loaded.
## Booting image at be060000 ...
   Image Name:   MIPS OpenWrt Linux-2.6.32.27
   Created:      2011-01-30  17:37:18 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    834355 Bytes = 814.8 kB
   Load Address: 80060000
   Entry Point:  80060000
0  Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to(Linux (at address 80060000) ...
## Giving linux memsize in bytes, 67108864

Starting kernel ...

Linux version 2.6.32.27 (x@ubuntu) (gcc version 4.3.3 (GCC) ) #3 Sun Jan 30 09:36:06 PST 2011
bootconsole [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
Atheros AR9132 rev 2, CPU:400.000 MHz, AHB:200.000 MHz, DDR:400.000 MHz
Determined physical RAM map:
memory: 04000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00004000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00004000
Built 1 zonelists in0Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200 board=WZR-HP-G301NH
MIPS: no machine found for id 'WZR-HP-G321NH', supported machines:
id                       : name
Generic                  : Generic AR71xx board
AP81   "                 :0Atheros AP81
AP83                     : Atheros AP83
AP96                     : Atheros AP96
AW-NR580                 : AzureWave AW-NR580
DIR-600-A1               : D-Link DIR-600 rev. A1
DIR-615-C1               : D-Link DIR-615 rev. C1
DIR-825-B1               : D-Link DIR-825 rev. B1
EAP7660D                 : Senao EAP7660D
JA76PF                   : jjPlus JA76PF
JWAP003                  : jjPlus JWAP003
MZK-W04NU            `   : Planex MZK-W04NU
MZK-W300NH               : Planex MZK-W300NH
NBG460N                  : Zyxel NBG460N/550N/550NH
PB42                     : Atheros PB42
PB44                     : Atheros PB44
PB92                     : Atheros PB92
493                      : MikroTik RouterBOARD 493/AH
450G                     : MikroTik RouterBOARD 450G
450                      : MikroTik RouterBOARD 450
433U                     : MikroTik RouterBOARD 433UAH
433                      : MikroTik RouterBOARD 433/AH
411U                     : MikroTik RouterBOARD 411U
411                      : MikroTik RouterBOARD 411/A/AH
750i0                    : MikroTik RouterBOARD 750
TEW-632BRP               : TRENDnet TEW-632BRP
TL-MR3420                : TP-LINK TL-MR3420
TL-MR3220                : TP-LINK TL-MR3220
TL-WA901ND               : TP-LINK TL-WA901ND
TL-WR741ND  (            : TP-LINK TL-WR741ND
TL-WR841N-v1.5           : TP-LINK TL-WR841N v1
TL-WR941ND               : TP-LINK TL-WR941ND
TL-WR1043ND              : TP-LINK TL-WR1043ND
UBNT-XM                  : Ubiquiti UniFi
UBNT-NM                  : Ubiquiti Nanostation M
UBNT-RM                  : Ubiquiti Rocket M
UBNT-BM                  : Ubiquiti Bullet M
UBNT-LS-SR71      000    : Ubiquiti LS-SR71
UBNT-LSX                 : Ubiquiti LSX
UBNT-RSPRO               : Ubiquiti RouterStation Pro
UBNT-RS                  : Ubiquiti RouterStation
WNDR3700v2               : NETGEAR WNDR3700v2
WNDR3700   00            : NETGEAR WNDR3700
WNR2000                  : NETGEAR WNR2000
WP543                    : Compex WP543
WRT160NL   `             : Linksys WRT160NL
WRT400N                  : Linksys WRT400N
WZR-HP-G300NH            : Buffalo WZR-HP-G300NH
ZCN-1523H-5              : Zcomax ZCN-1523H-5
ZCN-1523H-2 0            : Zcomax ZCN-1523H-2
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 61892k/65536k available (1974k kernel code, 3572k reserved, 386k data, 148k init, 0k highmem)
SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1. Nodes=1
Hierarchical RCU implementation.
NR_IRQS:56
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MIPS: machine is Generic AR71xx board
bio: create slab <bio-0> at 0
Switching to clocksource MIPS
NET: Registered protocol family 2
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
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering0mini_fo version $Id$
JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
msgmni has been set to 121
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
Atheros AR71xx SPI Controller driver version 0.2.4
Atheros AR71xx hardware watchdog driver version 0.1.0
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Cannot open root device "<NULL>" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

It is uncertain whether the application of the patch has failed.
I want to test it can open the image file of tftp to the public.

My best regards.

nekokawaii wrote:

x@ubuntu:~/openwrt/trunk$ patch < 0001-ar71xx-basic-support-for-WZR-HP-G301NH.patch
patching file network
patching file diag.sh
Hunk #1 FAILED at 120.
1 out of 1 hunk FAILED -- saving rejects to file diag.sh.rej
patching file wzr-hp-g300nh
Hunk #1 FAILED at 32.
1 out of 1 hunk FAILED -- saving rejects to file wzr-hp-g300nh.rej
patching file ar71xx.sh
Hunk #1 FAILED at 145.
1 out of 1 hunk FAILED -- saving rejects to file ar71xx.sh.rej
patching file platform.sh
Hunk #1 FAILED at 69.
1 out of 1 hunk FAILED -- saving rejects to file platform.sh.rej
patching file mach-wzr-hp-g300nh.c
Hunk #1 FAILED at 13.
Hunk #2 FAILED at 225.
Hunk #3 FAILED at 251.
Hunk #4 FAILED at 262.
4 out of 4 hunks FAILED -- saving rejects to file mach-wzr-hp-g300nh.c.rej
patching file machtype.h
Hunk #1 FAILED at 60.
1 out of 1 hunk FAILED -- saving rejects to file machtype.h.rej
patching file Makefile
Hunk #1 FAILED at 140.
Hunk #2 FAILED at 659.
Hunk #3 FAILED at 706.
3 out of 3 hunks FAILED -- saving rejects to file Makefile.rej

Hmm, this shouldn't happen. Are you using a recent trunk? 'svn info' should tell you the revision. The patch is based on r23536, but should apply to newer revisions, too.

Kernel command line: rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200 board=WZR-HP-G301NH
MIPS: no machine found for id 'WZR-HP-G321NH', supported machines:

This does not make sense, where does the '2' come from?

Anyway, this might have come from a "stale" kernel build, please do a

make target/linux/clean

before rebuilding. Changes to files in target/linux/ don't get picked up when the kernel is already built.

KM

Hello.
Thank you for the reply.

KanjiMonster wrote:

Hmm, this shouldn't happen. Are you using a recent trunk? 'svn info' should tell you the revision. The patch is based on r23536, but should apply to newer revisions, too.

I've run the following command.
svn co svn://svn.openwrt.org/openwrt/trunk/
svn info
x@ubuntu:~/openwrt/trunk$ svn info
revisions:25259

The patch performed in the following directories.
/home/x/openwrt/trunk
x@ubunt:~/openwrt/trunk$ patch < 0001-ar71xx-basic-support-for-WZR-HP-G301NH.patch

KanjiMonster wrote:

This does not make sense, where does the '2' come from?
Anyway, this might have come from a "stale" kernel build, please do a

'2''WZR-HP-G321NH'?
I came out from where the numbers do not understand.
hunk message came out, patch command to run-six five times.
Could not understand the meaning.
Then made a compilation.
wzr-hp-g301nh image has been created.

KanjiMonster wrote:

make target/linux/clean
before rebuilding. Changes to files in target/linux/ don't get picked up when the kernel is already built.

x@ubuntu:~/openwrt/trunk$ make target/linux/clean
make[1] target/linux/clean
make[2] -C target/linux clean
now,The make command is being executed.

My best regards.

The patch is applying cleanly for me:

jonas@shaker64:~/tmp/openwrt$ svn up
At revision 25261.
jonas@shaker64:~/tmp/openwrt$ svn diff
jonas@shaker64:~/tmp/openwrt$ wget http://page.mi.fu-berlin.de/jgorski/openwrt/temp/2011-01-29-wzrhp301nh/0001-ar71xx-basic-support-for-WZR-HP-G301NH.patch
--2011-01-31 13:29:53--  http://page.mi.fu-berlin.de/jgorski/openwrt/temp/2011-01-29-wzrhp301nh/0001-ar71xx-basic-support-for-WZR-HP-G301NH.patch
Resolving page.mi.fu-berlin.de... 160.45.117.196
Connecting to page.mi.fu-berlin.de|160.45.117.196|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9826 (9.6K) [text/plain]
Saving to: `0001-ar71xx-basic-support-for-WZR-HP-G301NH.patch'

100%[====================================================================================================================>] 9,826       --.-K/s   in 0.1s

2011-01-31 13:29:53 (67.1 KB/s) - `0001-ar71xx-basic-support-for-WZR-HP-G301NH.patch' saved [9826/9826]

jonas@shaker64:~/tmp/openwrt$ patch -p1 < 0001-ar71xx-basic-support-for-WZR-HP-G301NH.patch
patching file target/linux/ar71xx/base-files/etc/defconfig/wzr-hp-g301nh/network
patching file target/linux/ar71xx/base-files/etc/diag.sh
patching file target/linux/ar71xx/base-files/etc/uci-defaults/wzr-hp-g300nh
patching file target/linux/ar71xx/base-files/lib/ar71xx.sh
patching file target/linux/ar71xx/base-files/lib/upgrade/platform.sh
patching file target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-g300nh.c
patching file target/linux/ar71xx/files/arch/mips/ar71xx/machtype.h
patching file target/linux/ar71xx/image/Makefile
jonas@shaker64:~/tmp/openwrt$

I needed to use -p1 for patch, maybe yours is differently configured.

Also make sure that you don't have any local changes from an earlier patch before applying by doing a

svn revert

.

KM

hello

Trunk build but I have compiled, WZR-HG-301NH did not create the image.
svn co svn://svn.openwrt.org/openwrt/branches/backfire

x@ubuntu:~/openwrt$ cd backfire/
x@ubuntu:~/openwrt/backfire$ svn info
URL: svn://svn.openwrt.org/openwrt/branches/backfire
svn://svn.openwrt.org/openwrt
UUID: 3c298f89-4303-0410-b956-a3cf2f4a3e73
REVISION  : 25260
Last Modified By: juhosg
Last Changed: 25257
Last modified: 2011-01-31 06:15:06 +0900 (MONTH, 31  1MONTH 2011)

x@ubuntu:~/openwrt/backfire$ patch < 0001-ar71xx-basic-support-for-WZR-HP-G301NH.patch
patching file network
patching file diag.sh
Hunk #1 FAILED at 120.
1 out of 1 hunk FAILED -- saving rejects to file diag.sh.rej
patching file wzr-hp-g300nh
Hunk #1 FAILED at 32.
1 out of 1 hunk FAILED -- saving rejects to file wzr-hp-g300nh.rej
patching file ar71xx.sh
Hunk #1 FAILED at 145.
1 out of 1 hunk FAILED -- saving rejects to file ar71xx.sh.rej
patching file platform.sh
Hunk #1 FAILED at 69.
1 out of 1 hunk FAILED -- saving rejects to file platform.sh.rej
patching file mach-wzr-hp-g300nh.c
Hunk #1 FAILED at 13.
Hunk #2 FAILED at 225.
Hunk #3 FAILED at 251.
Hunk #4 FAILED at 262.
4 out of 4 hunks FAILED -- saving rejects to file mach-wzr-hp-g300nh.c.rej
patching file machtype.h
Hunk #1 FAILED at 60.
1 out of 1 hunk FAILED -- saving rejects to file machtype.h.rej
patching file Makefile
Hunk #1 FAILED at 140.
Hunk #2 FAILED at 659.
Hunk #3 FAILED at 706.
3 out of 3 hunks FAILED -- saving rejects to file Makefile.rej

x@ubuntu:~/openwrt/backfire$ make menuconfig
Checking 'working-make'... ok.
Checking 'case-sensitive-fs'... ok.
Checking 'getopt'... ok.
Checking 'fileutils'... ok.
Checking 'working-gcc'... ok.
Checking 'working-g++'... ok.
Checking 'ncurses'... ok.
Checking 'zlib'... ok.
Checking 'gawk'... ok.
Checking 'flex'... ok.
Checking 'unzip'... ok.
Checking 'bzip2'... ok.
Checking 'patch'... ok.
Checking 'perl'... ok.
Checking 'python'... ok.
Checking 'wget'... ok.
Checking 'gnutar'... ok.
Checking 'svn'... ok.
Checking 'gnu-find'... ok.
Checking 'getopt-extended'... ok.
Checking 'non-root'... ok.
Collecting package info: done
Collecting target info: done


*** End of OpenWrt configuration.
*** Execute 'make' to build the OpenWrt or try 'make help'.

x@ubuntu:~/openwrt/backfire$ make -j 3
++ mkdir -p /home/x/openwrt/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1
++ cd /home/x/openwrt/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1
++ mkdir -p stamp lib usr/include usr/lib
make[4]: Entering directory `/home/x/openwrt/backfire/target/linux'
make[5]: Entering directory `/home/x/openwrt/backfire/target/linux/ar71xx'
make[6]: Entering directory `/home/x/openwrt/backfire/target/linux/ar71xx/image'
make[6]: Leaving directory `/home/x/openwrt/backfire/target/linux/ar71xx/image'
make[5]: Leaving directory `/home/x/openwrt/backfire/target/linux/ar71xx'
make[4]: Leaving directory `/home/x/openwrt/backfire/target/linux'
make[1] world
make[2] tools/install
make[3] -C tools/gmp compile
make[3] -C tools/bison compile
make[3] -C tools/m4 compile
make[3] -C tools/sed compile
make[3] -C tools/mklibs compile
make[3] -C tools/sstrip compile
make[3] -C tools/ipkg-utils compile
make[3] -C tools/genext2fs compile
make[3] -C tools/libuuid compile
make[3] -C tools/firmware-utils compile
make[3] -C tools/patch-cmdline compile
make[3] -C tools/yaffs2 compile
make[3] -C tools/xz compile
make[3] -C tools/lzma-old compile
make[3] -C tools/lzma compile
make[3] -C tools/m4 install
make[3] -C tools/bison install
make[3] -C tools/sed install
make[3] -C tools/mklibs install
make[3] -C tools/sstrip install
make[3] -C tools/ipkg-utils install
make[3] -C tools/genext2fs install
make[3] -C tools/libuuid install
make[3] -C tools/mkimage compile
make[3] -C tools/firmware-utils install
make[3] -C tools/patch-cmdline install
make[3] -C tools/yaffs2 install
make[3] -C tools/xz install
make[3] -C tools/lzma-old install
make[3] -C tools/lzma install
make[3] -C tools/autoconf compile
make[3] -C tools/pkg-config compile
make[3] -C tools/mtd-utils compile
make[3] -C tools/mkimage install
make[3] -C tools/squashfs compile
make[3] -C tools/squashfs4 compile
make[3] -C tools/gmp install
make[3] -C tools/autoconf install
make[3] -C tools/mtd-utils install
make[3] -C tools/squashfs install
make[3] -C tools/squashfs4 install
make[3] -C tools/mpfr compile
make[3] -C tools/automake compile
make[3] -C tools/quilt compile
make[3] -C tools/automake install
make[3] -C tools/quilt install
make[3] -C tools/pkg-config install
make[3] -C tools/mpfr install
make[2] toolchain/install
make[3] -C toolchain/kernel-headers prepare
make[3] -C toolchain/binutils prepare
make[3] -C toolchain/binutils compile
make[3] -C toolchain/binutils install
make[3] -C toolchain/gcc prepare
make[3] -C toolchain/kernel-headers compile
make[3] -C toolchain/kernel-headers install
make[3] -C toolchain/uClibc prepare
make[3] -C toolchain/gcc compile
make[3] -C toolchain/uClibc compile
make[3] -C toolchain/gcc install
make[3] -C toolchain/uClibc install
make[2] target/compile
make[3] -C target/linux compile
make[2] package/cleanup
make[2] package/compile
make[3] -C package/libtool host-compile
make[3] -C package/busybox compile
make[3] -C package/button-hotplug compile
make[3] -C package/wireless-tools compile
make[3] -C package/libnl-tiny compile
make[3] -C package/hotplug2 compile
make[3] -C package/dnsmasq compile
make[3] -C package/dropbear compile
make[3] -C package/libtool compile
make[3] -C package/wprobe compile
make[3] -C package/kernel compile
make[3] -C package/mtd compile
make[3] -C package/linux-atm compile
make[3] -C package/libpcap compile
make[3] -C package/lua compile
make[3] -C package/udevtrigger compile
make[3] -C package/vsc73x5-ucode compile
make[3] -C package/opkg host-compile
make[3] -C package/iw compile
make[3] -C package/iptables compile
make[3] -C package/madwifi compile
make[3] -C package/opkg compile
make[3] -C package/ppp compile
make[3] -C package/uci compile
make[3] -C package/base-files compile
make[3] -C package/mac80211 compile
make[3] -C package/firewall compile
make[3] -C package/swconfig compile
make[3] -C package/hostapd compile
make[3] -C package/crda compile
make[2] package/install
make[3] -C package/base-files install
make[3] -C package/busybox install
make[3] -C package/button-hotplug install
make[3] -C package/crda install
make[3] -C package/dnsmasq install
make[3] -C package/dropbear install
make[3] -C package/firewall install
make[3] -C package/hostapd install
make[3] -C package/hotplug2 install
make[3] -C package/iptables install
make[3] -C package/iw install
make[3] -C package/kernel install
make[3] -C package/libnl-tiny install
make[3] -C package/mac80211 install
make[3] -C package/madwifi install
make[3] -C package/mtd install
make[3] -C package/opkg install
make[3] -C package/ppp install
make[3] -C package/swconfig install
make[3] -C package/uci install
make[3] -C package/udevtrigger install
make[3] -C package/vsc73x5-ucode install
make[3] -C package/wireless-tools install
make[2] package/rootfs-prepare
make[3] package/preconfig
make[2] target/install
make[3] -C target/linux install
make[3] -C target/imagebuilder install
make[2] package/index

x@ubuntu:~/openwrt/backfire/bin/ar71xx$ ls
OpenWrt-ImageBuilder-ar71xx-for-Linux-i686.tar.bz2
md5sums
openwrt-ar71xx-a02-rb-w300n-squashfs-factory.bin
openwrt-ar71xx-a02-rb-w300n-squashfs-sysupgrade.bin
openwrt-ar71xx-ap81-jffs2-sysupgrade.bin
openwrt-ar71xx-ap81-kernel.bin
openwrt-ar71xx-ap81-rootfs-jffs2.bin
openwrt-ar71xx-ap81-rootfs-squashfs.bin
openwrt-ar71xx-ap81-squashfs-sysupgrade.bin
openwrt-ar71xx-ap83-jffs2-sysupgrade.bin
openwrt-ar71xx-ap83-kernel.bin
openwrt-ar71xx-ap83-rootfs-jffs2.bin
openwrt-ar71xx-ap83-rootfs-squashfs.bin
openwrt-ar71xx-ap83-squashfs-sysupgrade.bin
openwrt-ar71xx-dir-600-a1-squashfs-factory.bin
openwrt-ar71xx-dir-600-a1-squashfs-sysupgrade.bin
openwrt-ar71xx-dir-615-c1-squashfs-factory.bin
openwrt-ar71xx-dir-615-c1-squashfs-sysupgrade.bin
openwrt-ar71xx-dir-825-b1-jffs2-backup-loader.bin
openwrt-ar71xx-dir-825-b1-jffs2-factory.bin
openwrt-ar71xx-dir-825-b1-jffs2-sysupgrade.bin
openwrt-ar71xx-dir-825-b1-squashfs-backup-loader.bin
openwrt-ar71xx-dir-825-b1-squashfs-factory.bin
openwrt-ar71xx-dir-825-b1-squashfs-sysupgrade.bin
openwrt-ar71xx-fr-54rtr-squashfs-factory.bin
openwrt-ar71xx-fr-54rtr-squashfs-sysupgrade.bin
openwrt-ar71xx-mzk-w04nu-jffs2-factory.bin
openwrt-ar71xx-mzk-w04nu-jffs2-sysupgrade.bin
openwrt-ar71xx-mzk-w04nu-squashfs-factory.bin
openwrt-ar71xx-mzk-w04nu-squashfs-sysupgrade.bin
openwrt-ar71xx-mzk-w300nh-jffs2-factory.bin
openwrt-ar71xx-mzk-w300nh-jffs2-sysupgrade.bin
openwrt-ar71xx-mzk-w300nh-squashfs-factory.bin
openwrt-ar71xx-mzk-w300nh-squashfs-sysupgrade.bin
openwrt-ar71xx-pb42-jffs2-sysupgrade.bin
openwrt-ar71xx-pb42-kernel.bin
openwrt-ar71xx-pb42-rootfs-jffs2.bin
openwrt-ar71xx-pb42-rootfs-squashfs.bin
openwrt-ar71xx-pb42-squashfs-sysupgrade.bin
openwrt-ar71xx-pb44-jffs2-sysupgrade.bin
openwrt-ar71xx-pb44-kernel.bin
openwrt-ar71xx-pb44-rootfs-jffs2.bin
openwrt-ar71xx-pb44-rootfs-squashfs.bin
openwrt-ar71xx-pb44-squashfs-sysupgrade.bin
openwrt-ar71xx-root.jffs2-128k
openwrt-ar71xx-root.jffs2-64k
openwrt-ar71xx-root.squashfs
openwrt-ar71xx-root.squashfs-4k
openwrt-ar71xx-rootfs.tar.gz
openwrt-ar71xx-tew-632brp-squashfs-factory.bin
openwrt-ar71xx-tew-632brp-squashfs-sysupgrade.bin
openwrt-ar71xx-tew-652brp-recovery-squashfs-factory.bin
openwrt-ar71xx-tew-652brp-recovery-squashfs-sysupgrade.bin
openwrt-ar71xx-tew-652brp-squashfs-factory.bin
openwrt-ar71xx-tew-652brp-squashfs-sysupgrade.bin
openwrt-ar71xx-tl-wr1043nd-v1-squashfs-factory.bin
openwrt-ar71xx-tl-wr1043nd-v1-squashfs-sysupgrade.bin
openwrt-ar71xx-tl-wr741nd-v1-squashfs-factory.bin
openwrt-ar71xx-tl-wr741nd-v1-squashfs-sysupgrade.bin
openwrt-ar71xx-tl-wr841n-v1.5-squashfs-factory.bin
openwrt-ar71xx-tl-wr841n-v1.5-squashfs-sysupgrade.bin
openwrt-ar71xx-tl-wr841nd-v3-squashfs-factory.bin
openwrt-ar71xx-tl-wr841nd-v3-squashfs-sysupgrade.bin
openwrt-ar71xx-tl-wr841nd-v5-squashfs-factory.bin
openwrt-ar71xx-tl-wr841nd-v5-squashfs-sysupgrade.bin
openwrt-ar71xx-tl-wr941nd-v2-squashfs-factory.bin
openwrt-ar71xx-tl-wr941nd-v2-squashfs-sysupgrade.bin
openwrt-ar71xx-tl-wr941nd-v3-squashfs-factory.bin
openwrt-ar71xx-tl-wr941nd-v3-squashfs-sysupgrade.bin
openwrt-ar71xx-tl-wr941nd-v4-squashfs-factory.bin
openwrt-ar71xx-tl-wr941nd-v4-squashfs-sysupgrade.bin
openwrt-ar71xx-uImage-gzip.bin
openwrt-ar71xx-uImage-lzma.bin
openwrt-ar71xx-ubnt-bullet-m-jffs2-factory.bin
openwrt-ar71xx-ubnt-bullet-m-jffs2-sysupgrade.bin
openwrt-ar71xx-ubnt-bullet-m-squashfs-factory.bin
openwrt-ar71xx-ubnt-bullet-m-squashfs-sysupgrade.bin
openwrt-ar71xx-ubnt-ls-sr71-jffs2-factory.bin
openwrt-ar71xx-ubnt-ls-sr71-jffs2-sysupgrade.bin
openwrt-ar71xx-ubnt-ls-sr71-squashfs-factory.bin
openwrt-ar71xx-ubnt-ls-sr71-squashfs-sysupgrade.bin
openwrt-ar71xx-ubnt-nano-m-jffs2-factory.bin
openwrt-ar71xx-ubnt-nano-m-jffs2-sysupgrade.bin
openwrt-ar71xx-ubnt-nano-m-squashfs-factory.bin
openwrt-ar71xx-ubnt-nano-m-squashfs-sysupgrade.bin
openwrt-ar71xx-ubnt-rocket-m-jffs2-factory.bin
openwrt-ar71xx-ubnt-rocket-m-jffs2-sysupgrade.bin
openwrt-ar71xx-ubnt-rocket-m-squashfs-factory.bin
openwrt-ar71xx-ubnt-rocket-m-squashfs-sysupgrade.bin
openwrt-ar71xx-ubnt-rs-jffs2-factory.bin
openwrt-ar71xx-ubnt-rs-jffs2-sysupgrade.bin
openwrt-ar71xx-ubnt-rs-squashfs-factory.bin
openwrt-ar71xx-ubnt-rs-squashfs-sysupgrade.bin
openwrt-ar71xx-ubnt-rspro-jffs2-factory.bin
openwrt-ar71xx-ubnt-rspro-jffs2-sysupgrade.bin
openwrt-ar71xx-ubnt-rspro-squashfs-factory.bin
openwrt-ar71xx-ubnt-rspro-squashfs-sysupgrade.bin
openwrt-ar71xx-vmlinux.bin
openwrt-ar71xx-vmlinux.elf
openwrt-ar71xx-vmlinux.gz
openwrt-ar71xx-vmlinux.lzma
openwrt-ar71xx-wndr3700-jffs2-factory.img
openwrt-ar71xx-wndr3700-jffs2-sysupgrade.bin
openwrt-ar71xx-wndr3700-squashfs-factory.img
openwrt-ar71xx-wndr3700-squashfs-sysupgrade.bin
openwrt-ar71xx-wp543-jffs2-16M-factory.img
openwrt-ar71xx-wp543-jffs2-8M-factory.img
openwrt-ar71xx-wp543-squashfs-16M-factory.img
openwrt-ar71xx-wp543-squashfs-4M-factory.img
openwrt-ar71xx-wp543-squashfs-8M-factory.img
openwrt-ar71xx-wrt160nl-jffs2-factory.bin
openwrt-ar71xx-wrt160nl-jffs2-sysupgrade.bin
openwrt-ar71xx-wrt160nl-squashfs-factory.bin
openwrt-ar71xx-wrt160nl-squashfs-sysupgrade.bin
openwrt-ar71xx-wrt400n-jffs2-factory.bin
openwrt-ar71xx-wrt400n-jffs2-sysupgrade.bin
openwrt-ar71xx-wrt400n-squashfs-factory.bin
openwrt-ar71xx-wrt400n-squashfs-sysupgrade.bin
openwrt-ar71xx-wzr-hp-g300nh-jffs2-sysupgrade.bin
openwrt-ar71xx-wzr-hp-g300nh-jffs2-tftp.bin
openwrt-ar71xx-wzr-hp-g300nh-squashfs-sysupgrade.bin
openwrt-ar71xx-wzr-hp-g300nh-squashfs-tftp.bin
packages
x@ubuntu:~/openwrt/backfire/bin/ar71xx$

WZR-HP-G301NH no longer creates the image.
I was using the wrong method, Could you tell me again

sorry,Did not reappear before posting.

KanjiMonster wrote:

I needed to use -p1 for patch, maybe yours is differently configured.
Also make sure that you don't have any local changes from an earlier patch before applying by doing a

Thanks for the reply.
And try again.

Ah, I see why:

nekokawaii wrote:

svn co svn://svn.openwrt.org/openwrt/branches/backfire

My patch is against trunk, not backfire. That's why it doesn't apply. If you need, I can try to make it a patch against backfire, but I can't really test build it (since I lack the space).

KM

(Last edited by KanjiMonster on 31 Jan 2011, 13:57)

KanjiMonster wrote:

My patch is against trunk, not backfire. That's why it doesn't apply. If you need, I can try to make it a patch against backfire, but I can't really test build it (since I lack the space).

I'm sorry again and again.
I tried to compile trunk on the failed image.
I tried different sources just in case.

Different sources, I can successfully tried patching and compiling

I do the following.

I delete all the directories.
Download it again from the links below.
svn co svn://svn.openwrt.org/openwrt/trunk/

Thanks for advice

nekokawaii wrote:

I'm sorry again and again.

No need to apologize. Everyone makes mistakes smile I do very often.

nekokawaii wrote:

Different sources, I can successfully tried patching and compiling

I do the following.

I delete all the directories.
Download it again from the links below.
svn co svn://svn.openwrt.org/openwrt/trunk/

Great. Let's see if it works this time.

KM

KanjiMonster wrote:

No need to apologize. Everyone makes mistakes smile I do very often.
Great. Let's see if it works this time.

Thank you for your reply

code KanjiMonster wrote:

jonas@shaker64:~/tmp/openwrt$ svn up
At revision 25261.
jonas@shaker64:~/tmp/openwrt$ svn diff
jonas@shaker64:~/tmp/openwrt$ wget http://page.mi.fu-berlin.de/jgorski/ope … 01NH.patch
--2011-01-31 13:29:53--  http://page.mi.fu-berlin.de/jgorski/ope … 01NH.patch
Resolving page.mi.fu-berlin.de... 160.45.117.196
Connecting to page.mi.fu-berlin.de|160.45.117.196|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9826 (9.6K) [text/plain]
Saving to: `0001-ar71xx-basic-support-for-WZR-HP-G301NH.patch'

100%[====================================================================================================================>] 9,826       --.-K/s   in 0.1s

2011-01-31 13:29:53 (67.1 KB/s) - `0001-ar71xx-basic-support-for-WZR-HP-G301NH.patch' saved [9826/9826]

jonas@shaker64:~/tmp/openwrt$ patch -p1 < 0001-ar71xx-basic-support-for-WZR-HP-G301NH.patch
patching file target/linux/ar71xx/base-files/etc/defconfig/wzr-hp-g301nh/network
patching file target/linux/ar71xx/base-files/etc/diag.sh
patching file target/linux/ar71xx/base-files/etc/uci-defaults/wzr-hp-g300nh
patching file target/linux/ar71xx/base-files/lib/ar71xx.sh
patching file target/linux/ar71xx/base-files/lib/upgrade/platform.sh
patching file target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-g300nh.c
patching file target/linux/ar71xx/files/arch/mips/ar71xx/machtype.h
patching file target/linux/ar71xx/image/Makefile
jonas@shaker64:~/tmp/openwrt$

After I remove the existing directory, I run the same command.

Amazing!!!!
Successfully patched and compiled.
I am very thankful

BUFFALO U-BOOT Ver 1.07
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 0x00000455 0xAAAAAAAA
Address line test start:0x00000000 len:0x4000000 pattern 0xAAAAAAAA 0x55555555
Fill test patnum:5
fill Pattern 5555AAAA  Writing...   Reading...
fill Pattern AAAA5555 0Writing...   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 275k for U-Boot at: 83fb8000
Reserving 256k for malloc() at: 83f78000
Reserving 44 Bytes for`Board Info at: 83f77fd4
Reserving 36 Bytes for Global Data at: 83f77fb0
Reserving 128k for boot params() at: 83f57fb0
Stack Pointer at: 83f57f98
Now running in RAM - U-Boot at: 83fb8000
Dev ID2:2222
Dev ID3:2201
Name: AMD-SPANSION Flash id: 0x1227E, Size: 33554432 bytes.
Flash: 32 MB
In:    serial
Out:   serial
Err:   serial
Memory Test
uboot use  83F57FB0 - 84000000
Memory Test start(80000000) end(83F00000) size(03F00000)
Pattern 00000000  Writing...  Reading.....
Memory Test OK
### buf_ver=[1.07] U-Boot Ver.=[1.07]
### build_date(env)=[Dec 21 2009 - 10:37:30] build_date(bin)=[Dec 21 2009 - 10:37:30]
ag7100_enet_initialize...
: cfg1 0xf cfg2 0x7114
RTL8366 series driver, reading model-id...
  ID:0x5937, REV:0x0
rtl8366rb_phy_setup  ethUnit=0
Realtek 8366RB switch ID:0x5937 REV:0x3
Realtek Greeen Ethernet Setup
eth0: 02:aa:bb:cc:dd:1a
eth0 up
: cfg1 0xf cfg2 0x7114
RTL8366 series driver, reading model-id...
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

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

TftpServer Timeout;
no file was loaded.
## Booting image at be060000 ...
   Image Name:   MIPS OpenWrt Linux-2.6.32.27
   Created:      2011-01-31  15:10:46 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    833970 Bytes = 814.4 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 ...

Linux version 2.6.32.27 (x@ubuntu) (gcc version 4.3.3 (GCC) ) #1 Tue Feb 1 00:09:24 JST 2011
bootconsole [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
Atheros AR9132 rev 2, CPU:400.000 MHz, AHB:200.000 MHz, DDR:400.000 MHz
Determined physical RAM map:
memory: 04000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00004000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00004000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200 board=WZR-HP-G301NH
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 61892k/65536k available (1974k kernel code, 3572k reserved, 386k data, 148k init, 0k highmem)
SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:56
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MIPS: machine is Buffalo WZR-HP-G301NH
bio: create slab <bio-0> at 0
Switching to clocksource MIPS
NET: Registered protocol family 2
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
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
msgmni has been set to 121
io scheduler noop registered
io sgheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
Atheros AR71xx SPI Controller driver version 0.2.4
ar91xx-flash ar91xx-flash: 02000000 at 1e000000
ar91xx-flash: Found 1 x16 devices at 0x0 in 16-bit bank
CFI mfr 0x00000001
CFI id  0x00002201
Amd/Fujitsu Extended Query Table at 0x0040
  Amd/Fujitsu Extended Query version 1.3.
ar91xx-flash: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
ar91xx-flash ar91xx-flash: using static partition mapping
Creating 7 MTD partitions on "ar91xx-flash":
0x000000000000-0x000000040000 : "u-boot"
0x000000040000-0x000000060000 : "u-boot-env"
0x000000060000-0x000000160000 : "kernel"
0x000000160000-0x000001fc0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
split_squashfs: no squashfs found in "ar91xx-flash"
0x000001fc0000-0x000001fe0000 : "user_property"
0x000001fe0000-0x000002000000 : "art"
0x000000060000-0x000001fc0000 : "firmware"
Realtek RTL8366RB ethernet switch driver version 0.2.3
rtl8366rb rtl8366rb: using GPIO pins 19 (SDA) and 20 (SCK)
rtl8366rb rtl8366rb: RTL5937 ver. 3 chip found
rtl8366rb: probed
eth0: Atheros AG71xx at 0xb9000000, irq 4
eth1: Atheros AG71xx at 0xba000000, irq 5
eth1: could not connect to PHY at rtl8366rb:04
ag71xx: probe of ag71xx.1 failed with error -22
Atheros AR71xx hardware watchdog driver version 0.1.0
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
jffs2_scan_eraseblock(): End of filesystem marker found at 0x240040
jffs2_build_filesystem(): unlocking the mtd device... done.
jffs2_build_filesystem(): erasing all blocks after the end marker... done.
VFS: Mounted root (jffs2 filesystem) readonly on device 31:3.
Freeing unused kernel memory: 148k freed
Please be patient, while OpenWrt loads ...
input: gpio-buttons as /devices/platform/gpio-buttons/input/input0
Button Hotplug driver version 0.4.1
eth0: link up (1000Mbps/Full duplex)
- preinit -
Registered led device: wzr-hp-g300nh:orange:security
Registered led device: wzr-hp-g300nh:green:wireless
Registered led device: wzr-hp-g300nh:green:router
Registered led device: wzr-hp-g300nh:red:diag
Registered led device: wzr-hp-g300nh:blue:usb
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
- init -
eth0: link down

Please press Enter to activate this console. eth0: link up (1000Mbps/Full duplex)
Compat-wireless backport release: compat-wireless-2011-01-06-3-g8db1608
Backport based on wireless-testing.git master-2011-01-21-2
device eth0.1 entered promiscuous mode
device eth0 entered promiscuous mode
br-lan: port 1(eth0.1) entering forwarding state
cfg80211: Calling CRDA to update world regulatory domain
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device$driver usb
ieee80211 phy0: Atheros AR9100 MAC/BB Rev:0 AR2133 RF Rev:a2 mem=0xb80c0000, irq=2
PPP generic driver version 2.4.2
cfg80211: World regulatory domain updated:
cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000$mBm)
cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi,(2000 mBm)
cfg80211: Calling CRDA for country: US
ip_tables: (C) 2000-2006 Netfilter Core Team
cfg80211: Regulatory domain changed to country: US
cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
cfg80211:     (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5490800 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
NET: Registered protocol family 24
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ar71xx-ehci ar71xx-ehci: Atheros AR91xx built-in EHCI controller
ar71xx-ehci ar71xx-ehci: new USB bus registered,?assigned bus number 1
ar71xx-ehci ar71xx-ehci: irq 3, io mem 0x1b000000
ar71xx-ehci ar71xx-ehci: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 tort detected
nf_conntrack version 0.5.8 (970 buckets, 3880 max)
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver



BusyBox v1.17.3 (2011-01-31 23:52:13 JST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
|       |.-----.-----.-----.|  |  |  |.----.|  |_
|   -   ||  _8 |  -__|     ||  |  |  ||   _||   _|
|_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
KAMIKAZE (bleeding edge, r25259) ------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
---------------------------------------------------
root@OpenWrt:/# ifconfig
br-lan    Link encap:Ethernet  HWaddr 00:24:A5:DA:21:CA
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:402 (402.0 B)

eth0      Link encap:Ethernet  HWaddr 00:24:A5:DA:21:CA
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:38 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2280 (2.2 KiB)  TX bytes:1449 (1.4 KiB)
          Interrupt:4

eth0.1    Link encap:Ethernet  HWaddr 00:24:A5:DA:21:CA
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:446 (406.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX |ackets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

I ran the passwd command.
I was able to log on to the router?with ssh.
However, web gui does not appear.
htt://192.168.1.1 can't connect(no response)

root@OpenWrt:~# ps -a
  PID USER       VSZ STAT COMMAND
    1 root      1380 S    init
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    4 root         0 SW   [events/0]
    5 root         0 SW   [khelper]
    8 root         0 SW   [async/mgr]
   40 root         0 SW   [sync_supers]
   42 root         0 SW   [bdi-default]
   44 root         0 SW   [kblockd/0]
   71 root         0 SW   [kswapd0]
   72 root         0 SW   [aio/0]
   73 root         0 SW   [crypto/0]
   89 root         0 SW   [mtdblockd]
  235 root         0 SW   [ipolldevd]
  277 root         0 SWN  [jffs2_gcd_mtd3]
  284 root      1376 S    /bin/ash --login
  298 root      1384 S    syslogd -C16
  300 root      1364 S    klogd
  314 root       804 S    /sbin/hotplug2 --override --persistent --set-worker
  429 root         0 SW   [cfg80211]
  439 root         0 SW   [khubd]
  445 root         0 SW   [phy0]
  820 root      1168 S    /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
  846 nobody     936 S    /usr/sbin/dnsmasq -K -D -y -Z -b -E -s lan -S /lan/
  856 root      1376 S    watchdog -t 5 /dev/watchdog
  865 root      1224 S    /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
  866 root      1380 S    -ash
  871 root      1372 R    ps -a

I need the relay capability.
I need web interface.
I need the wireless feature.

When I do make menuconfig, what parameters should I care what


My best regards.

I installed the luci

opkg update
root@OpenWrt:~# opkg install luci
Installing luci (0.10+svn6835-1) to root...
Downloading http://downloads.openwrt.org/snapshots/ … ar71xx.ipk.
Installing uhttpd (22) to root...
Downloading http://downloads.openwrt.org/snapshots/ … ar71xx.ipk.
Installing luci-mod-admin-full (0.10+svn6835-1) to root...
Downloading http://downloads.openwrt.org/snapshots/ … ar71xx.ipk.
Installing luci-mod-admin-core (0.10+svn6835-1) to root...
Downloading http://downloads.openwrt.org/snapshots/ … ar71xx.ipk.
Installing luci-lib-web (0.10+svn6835-1) to root...
Downloading http://downloads.openwrt.org/snapshots/ … ar71xx.ipk.
Installing luci-lib-core (0.10+svn6835-1) to root...
Downloading http://downloads.openwrt.org/snapshots/ … ar71xx.ipk.
Installing lua (5.1.4-7) to root...
Downloading http://downloads.openwrt.org/snapshots/ … ar71xx.ipk.
Installing liblua (5.1.4-7) to root...
Downloading http://downloads.openwrt.org/snapshots/ … ar71xx.ipk.
Installing libuci-lua (2011-01-19.1-1) to root...
Downloading http://downloads.openwrt.org/snapshots/ … ar71xx.ipk.
Installing luci-lib-sys (0.10+svn6835-1) to root...
Downloading http://downloads.openwrt.org/snapshots/ … ar71xx.ipk.
Installing luci-lib-nixio (0.10+svn6835-1) to root...
Downloading http://downloads.openwrt.org/snapshots/ … ar71xx.ipk.
Installing luci-sgi-cgi (0.10+svn6835-1) to root...
Downloading http://downloads.openwrt.org/snapshots/ … ar71xx.ipk.
Installing luci-lib-lmo (0.10+svn6835-1) to root...
Downloading http://downloads.openwrt.org/snapshots/ … ar71xx.ipk.
Installing luci-i18n-english (0.10+svn6835-1) to root...
Downloading http://downloads.openwrt.org/snapshots/ … ar71xx.ipk.
Installing luci-lib-ipkg (0.10+svn6835-1) to root...
Downloading http://downloads.openwrt.org/snapshots/ … ar71xx.ipk.
Installing luci-theme-openwrt (0.10+svn6835-1) to root...
Downloading http://downloads.openwrt.org/snapshots/ … ar71xx.ipk.
Installing luci-theme-base (0.10+svn6835-1) to root...
Downloading http://downloads.openwrt.org/snapshots/ … ar71xx.ipk.
Installing luci-app-firewall (0.10+svn6835-1) to root...
Downloading http://downloads.openwrt.org/snapshots/ … ar71xx.ipk.
Installing luci-app-initmgr (0.10+svn6835-1) to root...
Downloading http://downloads.openwrt.org/snapshots/ … ar71xx.ipk.
Installing libiwinfo (13) to root...
Downloading http://downloads.openwrt.org/snapshots/ … ar71xx.ipk.
Configuring luci-lib-sys.
Configuring liblua.
Configuring libuci-lua.
Configuring lua.
Configuring luci-lib-core.
Configuring luci-lib-nixio.
Configuring luci-sgi-cgi.
Configuring luci-lib-lmo.
Configuring luci-lib-web.
Configuring luci-i18n-english.
Configuring luci-mod-admin-core.
Configuring libiwinfo.
Configuring luci-theme-base.
Configuring luci-theme-openwrt.
Configuring luci-app-firewall.
Configuring luci-lib-ipkg.
Configuring luci-mod-admin-full.
Configuring uhttpd.
Configuring luci-app-initmgr.
Configuring luci.

Once installed, rebooted.
However, interface web is not to start.
maybe,luci does't work?

root@OpenWrt:~# ps
  PID USER       VSZ STAT COMMAND
    1 root      1380 S    init
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    4 root         0 SW   [events/0]
    5 root         0 SW   [khelper]
    8 root         0 SW   [async/mgr]
   40 root         0 SW   [sync_supers]
   42 root         0 SW   [bdi-default]
   44 root         0 SW   [kblockd/0]
   71 root         0 SW   [kswapd0]
   72 root         0 SW   [aio/0]
   73 root         0 SW   [crypto/0]
   89 root         0 SW   [mtdblockd]
  235 root         0 SW   [ipolldevd]
  278 root         0 SWN  [jffs2_gcd_mtd3]
  285 root      1380 S    init
  304 root      1384 S    syslogd -C16
  306 root      1364 S    klogd
  320 root       804 S    /sbin/hotplug2 --override --persistent --set-worker
  427 root         0 SW   [cfg80211]
  445 root         0 SW   [khubd]
  451 root         0 SW   [phy0]
  729 root      1456 S    hostapd -P /var/run/wifi-phy0.pid -B /var/run/hostap
  974 root      1168 S    /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
  998 nobody     932 S    /usr/sbin/dnsmasq -K -D -y -Z -b -E -s lan -S /lan/
1006 root       776 S    /usr/bin/luci-bwc -d
1011 root      1376 S    watchdog -t 5 /dev/watchdog
1154 root      1224 S    /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
1155 root      1380 S    -ash
1160 root      1372 R    ps

root@OpenWrt:~# vi /etc/config/network
config interface loopback
        option ifname   lo
        option proto    static
        option ipaddr   127.0.0.1
        option netmask  255.0.0.0
config interface lan
        option ifname   eth0.1
        option type     bridge
        option proto    static
        option ipaddr   192.168.100.173
        option netmask  255.255.255.0
        option gateway  192.168.100.1
        option dns      192.168.100.1
config interface wan
        option ifname   eth1
        option proto    dhcp
config switch
        option name     rtl8366rb
        option reset    1
        option enable_vlan 1
config switch_vlan
        option device   rtl8366rb
        option vlan     1
        option ports    "0 1 2 3 5t"

root@OpenWrt:~# vi /etc/config/wireless
config  wifi-device     radio0
        option type     mac80211
        option channel  11
        option macaddr  00:24:a5:da:21:ca
        option hwmode   11ng
        option htmode   HT20
        list ht_capab   SHORT-GI-40
        list ht_capab   DSSS_CCK-40
        option disabled 0
config wifi-iface
        option device   radio0
        option network  lan
        option mode     ap
        option ssid     ctc002
        option encryption psk
        option key      aaaaaaaaa

lan and wireless is working.
Try to confirm the operation for a week.
Why luci (web interface) does not work....

My best regards.

nekokawaii wrote:

eth1: Atheros AG71xx at 0xba000000, irq 5
eth1: could not connect to PHY at rtl8366rb:04
ag71xx: probe of ag71xx.1 failed with error -22

Hmm, this doesn't look right yet. Can you connect through the wan port to the device (as if it were a normal lan port)?

nekokawaii wrote:

I installed the luci
...
Why luci (web interface) does not work....

Try the following:

root@openwrt:# /etc/init.d/uhttpd enable
root@openwrt:# /etc/init.d/uhttpd start

KM

KanjiMonster wrote:

Hmm, this doesn't look right yet. Can you connect through the wan port to the device (as if it were a normal lan port)?

I do not wan to use.
lan cable is not connected to eth1.
WZR-HP-G301NH will use the AP as this.
If you need a test for confirming the operation, not do so after one week.
While I'm busy tomorrow,Sorry.

KanjiMonster wrote:

Try the following:
root@openwrt:# /etc/init.d/uhttpd enable
root@openwrt:# /etc/init.d/uhttpd start

luci is moved.
WEBINTERFACE I could see.
The Eth0, 1G I are connected.

I have three WZR-HP-G301NH.
The two WZR-HP-G301NH , it operated WZR-HP-G300firmware.

This router did not do anything without the patch.
I'll be reporting again.

I appreciate very much.

nekokawaii wrote:

I do not wan to use.
lan cable is not connected to eth1.
WZR-HP-G301NH will use the AP as this.

Well, we need to know (and probably fix it), else the support can't be added to OpenWrt. And support in OpenWrt means downloadable images with LuCI included - you'll probably want that, too wink.

nekokawaii wrote:

If you need a test for confirming the operation, not do so after one week.
While I'm busy tomorrow,Sorry.

No problem, I can wait. I might need you to build (and test) a new image if I find out that eth1 is supposed to work, but first we have to find out if that is the case, and then what we did wrong.

Have fun with the working device for now,
KM

Hello.
The report

Unfortunately, they seem to work.
lan cable connected to eth1.
pppoe, and tried the connection provider.
eth1 is not working properly.

root@openwrt for test:~# dmesg
Linux version 2.6.32.27 (x@ubuntu) (gcc version 4.3.3 (GCC) ) #1 Tue Feb 1 00:09                                                 :24 JST 2011
prom: fw_arg0=00000007, fw_arg1=a3f57fb0, fw_arg2=a3f58480, fw_arg3=00000020
MyLoader: sysp=00000000, boardp=00000000, parts=00000000
bootconsole [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
Atheros AR9132 rev 2, CPU:400.000 MHz, AHB:200.000 MHz, DDR:400.000 MHz
Determined physical RAM map:
memory: 04000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00004000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00004000
On node 0 totalpages: 16384
free_area_init_node: node 0, pgdat 802adad0, node_mem_map 81000000
  Normal zone: 128 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 16256 pages, LIFO batch:3
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200 boa                                                 rd=WZR-HP-G301NH
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 61892k/65536k available (1974k kernel code, 3572k reserved, 386k data, 1                                                 48k init, 0k highmem)
SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:56
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MIPS: machine is Buffalo WZR-HP-G301NH
bio: create slab <bio-0> at 0
Switching to clocksource MIPS
NET: Registered protocol family 2
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
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006                                                  Red Hat, Inc.
msgmni has been set to 121
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console [ttyS0] enabled, bootconsole disabled
Atheros AR71xx SPI Controller driver version 0.2.4
ar91xx-flash ar91xx-flash: 02000000 at 1e000000
ar91xx-flash: Found 1 x16 devices at 0x0 in 16-bit bank
CFI mfr 0x00000001
CFI id  0x00002201
Amd/Fujitsu Extended Query Table at 0x0040
  Amd/Fujitsu Extended Query version 1.3.
ar91xx-flash: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
ar91xx-flash ar91xx-flash: using static partition mapping
Creating 7 MTD partitions on "ar91xx-flash":
0x000000000000-0x000000040000 : "u-boot"
0x000000040000-0x000000060000 : "u-boot-env"
0x000000060000-0x000000160000 : "kernel"
0x000000160000-0x000001fc0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
split_squashfs: no squashfs found in "ar91xx-flash"
0x000001fc0000-0x000001fe0000 : "user_property"
0x000001fe0000-0x000002000000 : "art"
0x000000060000-0x000001fc0000 : "firmware"
Realtek RTL8366RB ethernet switch driver version 0.2.3
rtl8366rb rtl8366rb: using GPIO pins 19 (SDA) and 20 (SCK)
rtl8366rb rtl8366rb: RTL5937 ver. 3 chip found
rtl8366rb: probed
eth0: Atheros AG71xx at 0xb9000000, irq 4
eth0: using fixed link parameters
eth1: Atheros AG71xx at 0xba000000, irq 5
eth1: could not connect to PHY at rtl8366rb:04
ag71xx: probe of ag71xx.1 failed with error -22
Atheros AR71xx hardware watchdog driver version 0.1.0
ar71xx-wdt: timeout=15 secs (max=21)
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (jffs2 filesystem) readonly on device 31:3.
Freeing unused kernel memory: 148k freed
Please be patient, while OpenWrt loads ...
input: gpio-buttons as /devices/platform/gpio-buttons/input/input0
Button Hotplug driver version 0.4.1
ar71xx: pll_reg 0xb8050014: 0x1f000000
eth0: link up (1000Mbps/Full duplex)
Registered led device: wzr-hp-g300nh:orange:security
Registered led device: wzr-hp-g300nh:green:wireless
Registered led device: wzr-hp-g300nh:green:router
Registered led device: wzr-hp-g300nh:red:diag
Registered led device: wzr-hp-g300nh:blue:usb
eth0: link down
ar71xx: pll_reg 0xb8050014: 0x1f000000
eth0: link up (1000Mbps/Full duplex)
Compat-wireless backport release: compat-wireless-2011-01-06-3-g8db1608
Backport based on wireless-testing.git master-2011-01-21-2
device eth0.1 entered promiscuous mode
device eth0 entered promiscuous mode
br-lan: port 1(eth0.1) entering forwarding state
cfg80211: Calling CRDA to update world regulatory domain
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ath: EEPROM regdomain: 0x0
ath: EEPROM indicates default country code should be used
ath: doing EEPROM country->regdmn map search
ath: country maps to regdmn code: 0x3a
ath: Country alpha2 being used: US
ath: Regpair used: 0x3a
ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
ieee80211 phy0: Atheros AR9100 MAC/BB Rev:0 AR2133 RF Rev:a2 mem=0xb80c0000, irq                                                 =2
PPP generic driver version 2.4.2
cfg80211: World regulatory domain updated:
cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211: Calling CRDA for country: US
ip_tables: (C) 2000-2006 Netfilter Core Team
cfg80211: Regulatory domain changed to country: US
cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
cfg80211:     (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
NET: Registered protocol family 24
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ar71xx-ehci ar71xx-ehci: Atheros AR91xx built-in EHCI controller
ar71xx-ehci ar71xx-ehci: new USB bus registered, assigned bus number 1
ar71xx-ehci ar71xx-ehci: irq 3, io mem 0x1b000000
ar71xx-ehci ar71xx-ehci: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected[
nf_conntrack version 0.5.0 (970 buckets, 3880 max)
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
cfg80211: Calling CRDA for country: JP
cfg80211: Regulatory domain changed to country: JP
cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm)
cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (N/A, 2000 mBm)
cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm)
cfg80211:     (4910000 KHz - 4930000 KHz @ 10000 KHz), (N/A, 2300 mBm)
cfg80211:     (4910000 KHz - 4990000 KHz @ 40000 KHz), (N/A, 2300 mBm)
cfg80211:     (4930000 KHz - 4950000 KHz @ 10000 KHz), (N/A, 2300 mBm)
cfg80211:     (5030000 KHz - 5045000 KHz @ 10000 KHz), (N/A, 2300 mBm)
cfg80211:     (5030000 KHz - 5090000 KHz @ 40000 KHz), (N/A, 2300 mBm)
cfg80211:     (5050000 KHz - 5060000 KHz @ 10000 KHz), (N/A, 2300 mBm)
cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm)
cfg80211:     (5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm)
cfg80211:     (5490000 KHz - 5710000 KHz @ 40000 KHz), (N/A, 2300 mBm)
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
ar71xx-wdt: enabling watchdog timer

root@openwrt for test:~# ifconfig
br-lan    Link encap:Ethernet  HWaddr 00:24:A5:DA:21:CA
          inet addr:192.168.55.1  Bcast:192.168.55.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1441 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1228 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:137232 (134.0 KiB)  TX bytes:310384 (303.1 KiB)

eth0      Link encap:Ethernet  HWaddr 00:24:A5:DA:21:CA
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1549 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1229 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:169946 (165.9 KiB)  TX bytes:316339 (308.9 KiB)
          Interrupt:4

eth0.1    Link encap:Ethernet  HWaddr 00:24:A5:DA:21:CA
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1441 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1228 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:142996 (139.6 KiB)  TX bytes:315296 (307.9 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

mon.wlan0 Link encap:UNSPEC  HWaddr 00-24-A5-DA-21-CA-00-00-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:762 (762.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 00:24:A5:DA:21:CA
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:103 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:34226 (33.4 KiB)

config 'wifi-device' 'radio0'
        option 'type' 'mac80211'
        option 'macaddr' '00:24:a5:da:21:ca'
        option 'hwmode' '11ng'
        option 'htmode' 'HT20'
        list 'ht_capab' 'SHORT-GI-40'
        list 'ht_capab' 'DSSS_CCK-40'
        option 'disabled' '0'
        option 'channel' '2'
        option 'txpower' '10'
        option 'country' 'JP'

config 'wifi-iface'
        option 'device' 'radio0'
        option 'network' 'lan'
        option 'mode' 'ap'
        option 'ssid' 'ctc002'
        option 'key' 'aaaaaaaa'
        option 'encryption' 'psk2'

The use of wireless LAN is possible.
The log is as follows.

br-lan: port 1(eth0.1) entering forwarding state
ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
ath: Could not stop RX, we could be confusing the DMA engine when we start RX up
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
ath: Could not stop RX, we could be confusing the DMA engine when we start RX up
ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
device wlan0 left promiscuous mode

If you could guarantee to make the patch, whenever I try it.
My best regards.

Sorry, posts 51 to 50 are missing from our archive.