Hello everybody.
Sorry for my English.
Recently I bought a router and almost immediately flashed with Openwrt. Firmware is taken on this site, version 12.09. Also tried the version r37754 made by bassman which is placed in this post. The problem lies in the periodic router hangs with oops and kernel panic. Dependence on something is not detected. This can happen when booting the router, when operating the web interface LuCi, when downloading anything from the Internet. I have made a console port on it so I have the logs.
Sometimes it can't boot a kernel with LZMA error:
U-Boot 1.1.4 (Jun 20 2013 - 17:34:51)
U-boot AP123
DRAM: 32 MB
id read 0x100000ff
Flash: 4 MB
Using default environment
In: serial
Out: serial
Err: serial
Net: ag934x_enet_initialize...
wasp reset mask:c03300
WASP ----> S27 PHY
file: ag934x.c,line: 179==: set LAN&WAN SWAP. --debug by HouXB
GMAC: cfg1 0x7 cfg2 0x7214
eth0: ba:be:fa:ce:08:41
s27 reg init lan
ATHRS27: resetting s27
ATHRS27: s27 reset done
athrs27_phy_setup ATHR_PHY_CONTROL 0: 0x7478
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 0: 0x7478
athrs27_phy_setup ATHR_PHY_CONTROL 1: 0x7478
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 1: 0x7478
athrs27_phy_setup ATHR_PHY_CONTROL 2: 0x7478
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 2: 0x7478
athrs27_phy_setup ATHR_PHY_CONTROL 3: 0x7478
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 3: 0x7478
eth0 up
WASP ----> S27 PHY
file: ag934x.c,line: 179==: set LAN&WAN SWAP. --debug by HouXB
GMAC: cfg1 0x5 cfg2 0x81ff765c
eth1: ba:be:fa:ce:08:41
s27 reg init lan
ATHRS27: resetting s27
ATHRS27: s27 reset done
eth1 up
eth0, eth1
Autobooting in 1 seconds
## Booting image at 9f020000 ...
Uncompressing Kernel Image ... ERROR: LzmaDecode.c, 543
Decoding error = 1
LZMA ERROR 1 - must RESET board to recover
and then it reboots and same things again.
Sometimes I turn on the router and nothing is happened, I cannot see anything on the console and only Power LED is turned on.
I tried to do a memory test on the U-Boot command line, but had never seen him perform. Once I ran the test for the whole night and in the morning, nothing has changed in the console:
U-Boot 1.1.4 (Jun 20 2013 - 17:34:51)
U-boot AP123
DRAM: 32 MB
id read 0x100000ff
Flash: 4 MB
Using default environment
In: serial
Out: serial
Err: serial
Net: ag934x_enet_initialize...
wasp reset mask:c03300
WASP ----> S27 PHY
file: ag934x.c,line: 179==: set LAN&WAN SWAP. --debug by HouXB
GMAC: cfg1 0x5 cfg2 0x7114
eth0: ba:be:fa:ce:08:41
s27 reg init
athrs27_phy_setup ATHR_PHY_CONTROL 4: 0x1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 4: 0x10
eth0 up
WASP ----> S27 PHY
file: ag934x.c,line: 179==: set LAN&WAN SWAP. --debug by HouXB
GMAC: cfg1 0x7 cfg2 0x7214
eth1: ba:be:fa:ce:08:41
s27 reg init lan
ATHRS27: resetting s27
ATHRS27: s27 reset done
athrs27_phy_setup ATHR_PHY_CONTROL 0: 0x1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 0: 0x10
athrs27_phy_setup ATHR_PHY_CONTROL 1: 0x1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 1: 0x10
athrs27_phy_setup ATHR_PHY_CONTROL 2: 0x1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 2: 0x10
athrs27_phy_setup ATHR_PHY_CONTROL 3: 0x1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 3: 0x10
eth1 up
eth0, eth1
Autobooting in 1 seconds
wasp> ; help
? - alias for 'help'
bootm - boot application image from memory
cp - memory copy
erase - erase FLASH memory
help - print online help
md - memory display
mm - memory modify (auto-incrementing)
mtest - simple RAM test
mw - memory write (fill)
nm - memory modify (constant address)
printenv- print environment variables
progmac - Set ethernet MAC addresses
reset - Perform RESET of the CPU
setenv - set environment variables
tftpboot- boot image via network using TFTP protocol
version - print monitor version
wasp> printenv
bootargs=console=ttyS0,115200 root=31:02 rootfstype=squashfs init=/sbin/init mtdparts=ath-nor0:128k(u-boot),1024k(kernel),2816k(rootfs),64k(config),64k(art)
bootcmd=bootm 0x9f020000
bootdelay=1
baudrate=115200
ethaddr=0xba:0xbe:0xfa:0xce:0x08:0x41
ipaddr=192.168.1.111
serverip=192.168.1.100
dir=
bc=ap123
lu=tftp 0x81000000 ${dir}u-boot.bin&&erase 0x9f000000 +$filesize;cp.b $fileaddr 0x9f000000 $filesize
lf=tftp 0x81000000 ${dir}${bc}-squashfs&&erase 0x9f120000 +$filesize;cp.b $fileaddr 0x9f120000 $filesize
stdin=serial
stdout=serial
stderr=serial
ethact=eth0
Environment size: 565/65532 bytes
wasp> version
U-Boot 1.1.4 (Jun 20 2013 - 17:34:51)
wasp> mtest
Pattern 00000000 Writing...
...and from this point nothing is changed.
Here comes the boot logs with oops and faults. These logs are divided by boot attempts:
http://pastebin.com/iceChpSr - oops during boot and many oops during reboot procedure
http://pastebin.com/bnqcZtue - oops during work with LuCi web interface
http://pastebin.com/UXYHh1Db - 8 oops and finally kernel panic during OpenWRT boot
http://pastebin.com/rXtZv5uC - kernel panic during console session. Router cannot rebooting automatically
http://pastebin.com/rqCUp1mJ - failsafe boot are normal.
http://pastebin.com/2KrVsG6Z - stock firmware boot, OpenWRT r37754 (by bassman) flash process and OpenWRT boot process with no faults. This is one of the few normal attempts.
What does all it means? DRAM faults or another hardware faults? How can I locate and fix these problems?