Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#8671 closed defect (fixed)

Recent trunk builds fail to boot on FR-RTR54 (DIR-600 A1)

Reported by: anonymous Owned by: juhosg
Priority: normal Milestone: Barrier Breaker 14.07
Component: kernel Version: Trunk
Keywords: Cc:


Router is FR-RTR54, a DIR-600 A1 clone. Current Backfire builds still work on this router, but current trunk fails:

U-Boot 1.1.4 (Apr 17 2009 - 14:44:49)

AP91 (ar7240) U-boot
#### TAP VALUE 1 = 8, 2 = 9
32 MB
Top of RAM usable for U-Boot at: 82000000
Reserving 243k for U-Boot at: 81fc0000
Reserving 192k for malloc() at: 81f90000
Reserving 44 Bytes for Board Info at: 81f8ffd4
Reserving 36 Bytes for Global Data at: 81f8ffb0
Reserving 128k for boot params() at: 81f6ffb0
Stack Pointer at: 81f6ff98
Now running in RAM - U-Boot at: 81fc0000
id read 0x100000ff
flash size 4194304, sector count = 64
Flash: 4 MB
* Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Net: ag7240_enet_initialize...
Fetching MAC Address from 0x81fe6e50
: cfg1 0xf cfg2 0x7014
eth0: 00:03:7f:e0:05:d8
eth0 up
No valid address in Flash. Using fixed address
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
ATHRS26: resetting s26
ATHRS26: s26 reset done
eth1 up
eth0, eth1
Hit any key to stop autoboot: 0
## Booting image at bf040000 ...

Image Name: MIPS OpenWrt Linux-
Created: 2011-01-15 23:52:22 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 864864 Bytes = 844.6 kB
Load Address: 80060000
Entry Point: 80060000
Verifying Checksum ... OK
LZMA Umcompressing Kernel Image ... Image loaded from 80060000-802ebc54


No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 33554432

Starting kernel ...

Linux version (buildslave@…) (gcc version 4.3.3 (GCC) ) #1 Sun Jan 16 00:52:10 CET 2011
bootconsole [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
Atheros AR7240 rev 2, CPU:350.000 MHz, AHB:175.000 MHz, DDR:350.000 MHz
Determined physical RAM map:

memory: 02000000 @ 00000000 (usable)

Initrd not found or empty - disabling initrd
Zone PFN ranges:

Normal 0x00000000 -> 0x00002000

Movable zone start PFN for each node
early_node_map[1] active PFN ranges

0: 0x00000000 -> 0x00002000

Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
Kernel command line: rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200 board=DIR-600-A1 mtdparts=spi0.0:192)
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 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: 29376k/32768k available (2059k kernel code, 3392k reserved, 392k data, 152k init, 0k highmem)
SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
Calibrating delay loop... 232.65 BogoMIPS (lpj=1163264)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MIPS: machine is D-Link DIR-600 rev. A1
CPU 0 Unable to handle kernel paging request at virtual address 00000000, epc == 802c9014, ra == 802ca75c
Cpu 0
$ 0 : 00000000 802f0000 00000000 8184f880
$ 4 : 802ae250 00000000 00000000 802ac8a0
$ 8 : 00000070 00000001 00000020 00000012
$12 : ffffffff 0000000a 00000000 ffffffff
$16 : 81819e88 802ea6a4 802c8b64 00000000
$20 : 00000000 00000000 00000000 00000000
$24 : 00000000 80074c0c
$28 : 81818000 81819e78 00000000 802ca75c
Hi : 00000014
Lo : 00000000
epc : 802c9014 0x802c9014

Not tainted

ra : 802ca75c 0x802ca75c
Status: 1000c003 KERNEL EXL IE
Cause : 00800008
BadVA : 00000000
PrId : 00019374 (MIPS 24Kc)
Modules linked in:
Process swapper (pid: 1, threadinfo=81818000, task=81814000, tls=00000000)
Stack : 00000000 801a3c0c 81819e94 00000000 00265acb 0571e068 802c8b64 802ea420

802ea6a4 802c8b64 00000000 802c8b8c 802ea6a4 802d637c 00000000 802ea41c
802ea6a4 8006b4f0 802bd5e0 00000038 802c0000 00000000 00000000 800abb7c
802ea3c4 802d81a4 802baf50 802ea420 802ea6a4 00000000 00000000 802c633c
00e00770 04f00240 00800000 01c10020 00000000 00000000 00000000 8006d5f8

Call Trace:[<801a3c0c>] 0x801a3c0c
[<802c8b64>] 0x802c8b64
[<802c8b64>] 0x802c8b64
[<802c8b8c>] 0x802c8b8c
[<802d637c>] 0x802d637c
[<8006b4f0>] 0x8006b4f0
[<800abb7c>] 0x800abb7c
[<802d81a4>] 0x802d81a4
[<802c633c>] 0x802c633c
[<8006d5f8>] 0x8006d5f8
[<802c626c>] 0x802c626c
[<8006d5e8>] 0x8006d5e8

Code: 8fb00020 03e00008 27bd0028 <90a80000> 00803821 31020001 1440001e 00c05821 90a20001
Disabling lock debugging due to kernel taint
Kernel panic - not syncing: Attempted to kill init!

Attachments (1)

FR-RTR54_1.log (4.4 KB) - added by anonymous 7 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 follow-up: Changed 7 years ago by jow

Please build the kernel with debug info (menuconfig, Global build settings -> [x] Compile the kernel with symbol table information) to get a meaningful backtrace.

comment:2 in reply to: ↑ 1 Changed 7 years ago by anonymous

Replying to jow:

Please build the kernel with debug info (menuconfig, Global build settings -> [x] Compile the kernel with symbol table information) to get a meaningful backtrace.

OK. Do you prefer the log as an attachment?

comment:3 follow-up: Changed 7 years ago by jow

Yes, attachment is fine.

Changed 7 years ago by anonymous

comment:4 Changed 7 years ago by anonymous

I have attached the log you requested with symbols enabled.

comment:5 in reply to: ↑ 3 Changed 7 years ago by anonymous

Replying to jow:

Yes, attachment is fine.

Proper model should read FR-54RTR, I got some numbers switched...

comment:6 Changed 7 years ago by jow

  • Owner changed from developers to juhosg
  • Status changed from new to assigned

comment:7 Changed 7 years ago by jow

Something's going on with the machine setup:

[<802d8014>] ar71xx_init_mac+0x0/0xa4
[<802d975c>] dir_600_a1_setup+0x50/0x150
[<802d7b8c>] ar71xx_machine_setup+0x28/0x38
[<8006b4a0>] do_one_initcall+0x68/0x1ec
[<802d533c>] kernel_init+0xd0/0x13c
[<8006d8a8>] kernel_thread_helper+0x10/0x18

comment:8 follow-up: Changed 7 years ago by jow

Yeah, indeed. It uses a NULL pointer for settings the macs, probably an oversight. Please try the following patch:

--- target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-600-a1.c	(revision 25030)
+++ target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-600-a1.c	(working copy)
@@ -118,8 +118,8 @@
 	if (nvram_parse_mac_addr(nvram, DIR_600_A1_NVRAM_SIZE,
 				"lan_mac=", mac_buff) == 0) {
-		ar71xx_init_mac(ar71xx_eth0_data.mac_addr, mac, 0);
-		ar71xx_init_mac(ar71xx_eth1_data.mac_addr, mac, 1);
+		ar71xx_init_mac(ar71xx_eth0_data.mac_addr, mac_buff, 0);
+		ar71xx_init_mac(ar71xx_eth1_data.mac_addr, mac_buff, 1);
 		mac = mac_buff;

comment:9 in reply to: ↑ 8 Changed 7 years ago by anonymous

Replying to jow:

Yeah, indeed. It uses a NULL pointer for settings the macs, probably an oversight. Please try the following patch:

Thank you for the fast resolution! The patch solves the problem.

comment:10 Changed 7 years ago by jow

  • Resolution set to fixed
  • Status changed from assigned to closed

Fix committed in r25043, thanks for your confirmation.

comment:11 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

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.