Opened 8 years ago

Closed 8 years ago

#3482 closed defect (invalid)

adm5120 (rb133) crashes with rev 11269

Reported by: carlopires@… Owned by: developers
Priority: normal Milestone:
Component: kernel Version:
Keywords: Cc:


I noticed my RB133 with rev 11269 detects 64mb ram instead of 32. But it crashes few seconds after boot:

RouterBOOT booter 2.12

RouterBoard 133

CPU frequency: 175 MHz
  Memory size:  32 MB

Press any key within 2 seconds to enter setup..
loading kernel from nand... OK
setting up elf image... OK
jumping to kernel code
Linux version (carlo@carlo-nave1) (gcc version 4.1.2) #1 Mon May 26 19:00:35 BRT 2008
console [early0] enabled
CPU revision is: 0001800b (MIPS 4Kc)
SoC      : ADM5120 revision 8, running at 175MHz
Bootdev  : NAND flash
Prom     : RouterBOOT
Determined physical RAM map:
 memory: 04000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal          0 ->    16384
Movable zone start PFN for each node
early_nctive PFN ranges
    0:        0 ->    16384
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: root=/dev/mtdblock3 rootfstype=yaffs2 init=/etc/preinit
Primary instruction cache 8kB, VIPT, 2-way, linesize 16 bytes.
Primary data cache 8kB, 2-way, VIPT, no aliases, linesize 16 bytes
Synthesized clear page handler (26 instructions).
Synthesized copy page handler (46 instructions).
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB stinstructions).
Synthesized TLB modify handler fastpath (31 instructions).
PID hash table entries: 256 (order: 8, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 62444k/65536k available (1868k kernel code, 3020k reserved, 343k data, 132k init, 0k highmem)
Mount-cache hash table entries: 512
adm5120: registered board 'Generic ADM5120 board'
adm5120: registered board 'Cellvision NFS-101U/101WU'
adm5120: regisCellvision CAS-861/861W'
adm5120: registered board 'Cellvision CAS-790'
adm5120: registered board 'Cellvision CAS-771/771W'
adm5120: registered board 'Cellvision CAS-700/700W'
adm5120: registered board 'Cellvision CAS-670/670W'
adm5120: registered board 'Cellvision CAS-630/630W'
adm5120: registered board 'Compex WPP54G'
adm5120: registered board 'Compex WPP54AG'
adm5120: registered board 'Compex WP54G-WRT'
adm5120: registered board 'Compex WP54G'
adm5120: registered board 'Compex WP54AG'
adm5120: registered board 'Compex NetPassage 28G'
adm5120: registered board 'Compex NetPassage 27G'
adm5120: registered board 'Edimax BR-6104WG/6114WG'
adm5120: registered board 'Edimax BR-6104K/6104KP'
adm5120: registered board 'Infineon EASY 83000 Reference Board'
adm5120: registered board 'Infineon EASY 5120-WVoIP Reference Board'
adm5120: registered board 'Infineon EASY 5120-RT Reference Board'
adm5120: registered board 'Infineon EASY 5120P-ATA Reference Board'
adm5120: registered board 'Mikrotik RouterBOARD 192'
adm5120: registered board 'Mikrotik RouterBOARD 153'
adm5120: registered board 'Mikrotik RouterBOARD 150'
adm5120: registered board 'Mikrotik RouterBOARD 133C'
adm5120: registered board 'Mikrotik RouterBOARD 133'
adm5120: registered board 'Mikrotik RouterBOARD 112'
adm5120: registered board 'Mikrotik RouterBOARD 111'
adm5120: registered board 'ZyXEL Prestige 335/335WT'
adm5120: registered board 'ZyXEL Prestige 334WT'
net_namespace: 64 bytes
NET: Registered protocol family 16
adm5120: setting up board 'Mikrotik RouterBOARD 133'
adm5120: system has PCI BIOS
registering PCI controllerTime: MIPS clocksource has been installed.
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
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2.-2006yaffs May 26 2008 18:58:35 Installing. 
io scheduler noop registered
io scheduler deadline registered (default)
Serial: AMBA driver $Revision: 1.41 $
APB:UART0: ttyS0 at MMIO 0x12600000 (irq = 9) is a AMBA
console handover: boot [early0] -> real [ttyS0]
APB:UART1: ttyS1 at MMIO 0x12800000 (irq = 10) is a AMBA
ADM5120 built-in ethernet switch driver version 0.1.1
adm5120-flash.0: probing at 0x1FC00000, size:1024KiB, width:8 biC Pm39LV010
adm5120-flash.0: Found 1 x8 devices at 0x0 in 8-bit bank
number of JEDEC chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
adm5120-flash.0: reducing map size to 128KiB
adm5120-flash.0: found at 0x1FC00000, size:128KiB, width:8 bits
adm5120-flash.0: adding static partitions
Creating 2 MTD partitions on "adm5120-flash.0":
0x00000000-0x00010000 : "booter"
0x00010000-0x00020000 : "firmware"
NAND device: Manufacturer ID: 0xad, Chip ID: 0x76 (Hynix NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 2 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00400000 : "kernel"
0x00400000-0x04000000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
split_squashfs: no squashfs found in "NAND 64MiB 3,3V 8-bit"
adm5120_wdt: Watchdog Timer version 0.1
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP vegas registered
NET: Registered protocol family 1
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <>
All bugs added by David S. Miller <>
trxsplit: searching TRX header in 'booter'
trxsplit: searching TRX header in 'firmware'
trxsplit: 'kernel' is not a NOR flash, skipped
trxsplit: 'rootfs' is not a NOR flash, skipped
yaffs: dev is 32505859 name is "mtdblock3"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.3, "mtdblock3"
yaffs: auto selecting yaffs1
VFS: Mounted root (yaffs2 filesystem) readonly.
Freeing unused kernel memory: 132k freed
Please be patient, while OpenWrt loads ...
Algorithmics/MIPS FPU Emulator v1.5
- preinit -
- init -

Please press Enter to activate this console. PPP generic driver version 2.4.2
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <>
IPP2P v0.8.1_rc1 loading
nf_nat_amanda: Unknown symbol nf_nat_amanda_hook
nf_conntrack_rtsp v0.6.21 loading
nf_nat_rtsp v0.6.21 loading
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: [0.7-beta.377] (AR5212, RF5111, RF5112, RF2413, RF5413)
Bad page state in process 'S50olsrd'
page:81004760 flags:0x00000008 mapping:00000000 mapcount:1 count:0
Trying to fix it up, but a reboot is needed
Call Trace:[<80007c78>][<80007c78>][<800501a4>][<800509f0>][<800da4d0>][<800da4d0>][<8004da2c>][<8004d75c>][<80051004>][<8005a3b0>][<80051350>][<8005c240>][<8005c580>][<80025844>][<8000b2c0>][<8005f7f8>][<80010cfc>][<8002b1a8>][<8002b278>][<80002bc0>][<80009650>]
Bad page state in process 'dropbearkey'
page:81004d00 flags:0x00000008 mapping:00000000 mapcount:1 count:0
Trying to fix it up, but a reboot is needed
Call Trace:[<80007c78>][<80007c78>][<800501a4>][<800509f0>][<800da4d0>][<800da4d0>][<8004da2c>][<8004d75c>][<80051350>][<8005a3b0>][<8005bdcc>][<8005c240>][<8005bf60>][<8004b49c>][<8007a108>][<8007a0f4>][<800da328>][<8000b2c0>][<8004d64c>][<80053ea8>][<800584ec>][<8005ee78>][<8005f998>][<8005f904>][<80060200>][<800601d8>][<80002bc0>][<800a3714>][<801023b0>][<800a4c70>][<800a4af4>][<8005c7b4>][<8005c658>][<80073ddc>][<800754e8>][<800067f8>][<800067d4>][<80009650>]
Bad page state in process 'dropbearkey'
page:81004d00 flags:0x0000000d mapping:00000000 mapcount:0 count:1
Trying to fix it up, but a reboot is needed
Call Trace:[<80007c78>][<80007c78>][<800501a4>][<80051154>][<800da4d0>][<80051350>][<8005a484>][<8005bdcc>][<8005c240>][<8005bf60>]<8007a0f4>][<800da328>][<8000b2c0>][<8004d64c>][<80053ea8>][<800584ec>][<8005ee78>][<8005f998>][<8005f904>][<80060200>][<800601d8>][<80002bc0>][<800a3714>][<801023b0>][<800a4c70>][<800a4af4>][<8005c7b4>][<8005c658>][<80073ddc>][<800754e8>][<800067f8>][<800067d4>][<80009650>]
Break instruction in kernel code[#1]:
Cpu 0
$ 0   : 00000000 10008400 00000001 00000000
$ 4   : 81004d00 00000000 00000268 00000000
$ 8   : 10400016 00000000 10000014 aca80060

$12   : 80250000 00000000 80252b88 ffffffff
$16   : 81004d00 00268717 83ec056c 00000001
$20   : 2aaed0d6 83e3dba0 00000001 00000000
$24   : 834319e8 000186a0                  
$28   : 83430000 83431be8 00000001 8005a6d0
Hi    : 00000000
Lo    : 00000000
epc   : 8004a9f0     Tainted: P    B  
ra    : 8005a6d0 Status: 10008403    KERNEL EXL IE 
Cause : 10800024
PrId  : 0001800b (MIPS 4Kc)
Modules linked in: ath_pci wlan_xauth wlan_wep wlan_tkip wlan_ccmp wlan_acl ath_rate_minstrel ath_hal(P) wlan_scan_sta wlan_scan_ap wlan ip_queue nf_nat_snmp_basic nf_nat_sip nf_conntrack_sip nf_nat_rtsp nf_conntrack_rtsp nf_nat_pptp nf_conntrack_pptp nf_nat_h323 nf_conntrack_h323 nf_nat_proto_gre nf_conntrack_proto_gre nf_nat_tftp nf_conntrack_tftp nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp ipt_REDIRECT ipt_NETMAP xt_string xt_layer7 ipt_ipp2p ipt_LOG xt_CHAOS xt_DELUDE xt_TARPIT xt_quota xt_portscan xt_pkttype ipt_owner iptable_raw xt_NOTRACK xt_CONNMARK ipt_recent xt_helper xt_conntrack xt_connmark xt_connbytes tun ppp_async ppp_generic slhc crc_ccitt
Process dropbearkey (pid: 2115, threadinfo=83430000, task=83cee8d8)
Stack : 2aaed0d6 83e3dba0 81004d00 83f982a8 00000000 800056c
        83e3dba0 83ec056c 00000204 00000001 00000005 2aaed00 8005bdcc
        83cee8d8 00000000 00000001 83ec056c 00000001 83f982a8 00000bb4 2aaed0d6
        8005c240 8005bf60 83431d28 8004b49c 8007a108 8007a0f4 00000005 00000001
        00000000 800da328 83cee8d8 83ec056c 83e3dbd4 83e3dba0 2aaed0d6 83431d60
Call Trace:[<8005a6d0>][<8005bdcc>][<8005c240>][<8005bf60>][<8004b49c>][<8007a108>][<8007a0f4>][<800da328>][<8000b2c0>][<8004d64c>][<80053ea8>][<800584ec>][<8005ee78>][<8005f998>][<8005f904>][<80060200>][<800601d8>][<80002bc0>][<800a3714>][<801023b0>][<800a4c70>][<800a4af4>][<8005c7b4>][<8005c658>][<80073ddc>][<800754e8>][<800067f8>][<800067d4>][<80009650>]

Code: 00622824  14a00002  00000000 <0200000d> 0c012714  00000000  00402021  02002821  8fbf0014

Attachments (0)

Change History (6)

comment:1 Changed 8 years ago by carlopires@…

Backing to rev 11192 everything works fine again.

comment:2 Changed 8 years ago by florian

This is a madwifi related bug. Can you try without madwifi installed in your rootfs ?

comment:3 Changed 8 years ago by florian

I did not notice the kernel detected 64MB of RAM instead of 32, which explains the crash.

comment:4 Changed 8 years ago by acoul <alex@…>

r11293 works fine on my RB133 compiled with gcc-4.2.3 & binutils-2.18. I just had to fully erase the older trunk as it looked that something made unhappy the "make menuconfig" command. this has happened to me in the past but have not further research the issue. Building from scratch is usually a good thing to do every now and then especially on a quad Intel(R) Core(TM)2 Extreme CPU X9650 @ 3.00GHz machine :-)

you may find an r11293 build here

comment:5 Changed 8 years ago by anonymous

Erasing older trunk and rebuilding worked fine. Thanks.

comment:6 Changed 8 years ago by juhosg

  • Resolution set to invalid
  • Status changed from new to closed

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.