Modify

Opened 2 years ago

Last modified 2 years ago

#21397 reopened defect

Swconfig crashes with Oops and Trace at boot time

Reported by: stefan@… Owned by: developers
Priority: normal Milestone:
Component: kernel Version: Chaos Calmer 15.05
Keywords: Cc:

Description

Package swconfig crashes with Oops and Trace Error.
Router: Trendnet TEW-692GR. Ramips RT3883 mit Switch AR8327.
Affects Trunk and also Stable Version, I believe that the error was not there in the past (maybe a patch that changes something?)
The error occurs directly at boot time, when I try to manually open swconfig at shell the router dies completely (no reaction).
Here the Log:

## Booting image at bc050000 ...

Image Name: MIPS OpenWrt Linux-4.3
Created: 2015-12-15 22:44:38 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1279532 Bytes = 1.2 MB
Load Address: 80000000
Entry Point: 80000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK

No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 64

Starting kernel ...

[ 0.000000] Linux version 4.3.0 (stefan@NAS-Server) (gcc version 5.2.0 (OpenWrt GCC 5.2.0 r47894) ) #1 Tue Dec 15 23:44:22 CET 2015
[ 0.000000] SoC Type: Ralink RT3883 ver:1 eco:5
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[ 0.000000] MIPS: machine is TRENDnet TEW-692GR
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 60912K/65536K available (2868K kernel code, 117K rwdata, 588K rodata, 192K init, 195K bss, 4624K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:256
[ 0.000000] CPU Clock: 500MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041786 ns
[ 0.000010] sched_clock: 32 bits at 250MHz, resolution 4ns, wraps every 8589934590ns
[ 0.015461] Calibrating delay loop... 249.44 BogoMIPS (lpj=1247232)
[ 0.090644] pid_max: default: 32768 minimum: 301
[ 0.099947] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.112982] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.132983] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.152632] pinctrl core: initialized pinctrl subsystem
[ 0.163655] NET: Registered protocol family 16
[ 0.178512] rt3883-pci 10140000.pci: mode: PCIe
[ 1.778148] PCI host bridge /pci@10140000/host-bridge ranges:
[ 1.789464] MEM 0x0000000020000000..0x000000002fffffff
[ 1.799824] IO 0x0000000010160000..0x000000001016ffff
[ 1.822661] rt2880_gpio 10000600.gpio: registering 24 gpios
[ 1.833690] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[ 1.846131] rt2880_gpio 10000638.gpio: registering 16 gpios
[ 1.858070] PCI host bridge to bus 0000:00
[ 1.866070] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[ 1.879784] pci_bus 0000:00: root bus resource [io 0xffffffff]
[ 1.891515] pci_bus 0000:00: root bus resource 0x00000000 flags 0x0
[ 1.905013] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 1.921281] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 1.937838] pci 0000:00:01.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
[ 1.951233] pci 0000:00:01.0: BAR 1: assigned [mem 0x20100000-0x2010ffff]
[ 1.964711] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x2000ffff]
[ 1.978203] pci 0000:00:01.0: PCI bridge to [bus 01]
[ 1.988056] pci 0000:00:01.0: bridge window [mem 0x20000000-0x200fffff]
[ 2.001641] pci 0000:00:01.0: of_irq_parse_pci() failed with rc=-22
[ 2.015190] clocksource: Switched to clocksource MIPS
[ 2.026859] NET: Registered protocol family 2
[ 2.036385] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 2.050166] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 2.062761] TCP: Hash tables configured (established 1024 bind 1024)
[ 2.075508] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 2.087022] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 2.099783] NET: Registered protocol family 1
[ 2.108955] rt-timer 10000100.timer: maximum frequency is 5065Hz
[ 2.121930] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 2.157068] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 2.168594] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 2.191422] io scheduler noop registered
[ 2.199144] io scheduler deadline registered (default)
[ 2.210362] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 2.224307] console [ttyS0] disabled
[ 2.231358] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[ 2.251036] console [ttyS0] enabled
[ 2.251036] console [ttyS0] enabled
[ 2.264844] bootconsole [early0] disabled
[ 2.264844] bootconsole [early0] disabled
[ 2.282041] 1c000000.nor-flash: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x0022cb
[ 2.303080] Amd/Fujitsu Extended Query Table at 0x0040
[ 2.313335] Amd/Fujitsu Extended Query version 1.1.
[ 2.323406] number of CFI chips: 1
[ 2.333070] 4 ofpart partitions found on MTD device 1c000000.nor-flash
[ 2.346138] Creating 4 MTD partitions on "1c000000.nor-flash":
[ 2.357776] 0x000000000000-0x000000030000 : "u-boot"
[ 2.369609] 0x000000030000-0x000000040000 : "u-boot-env"
[ 2.382371] 0x000000040000-0x000000050000 : "factory"
[ 2.394605] 0x000000050000-0x000000800000 : "firmware"
[ 2.409153] 2 uimage-fw partitions found on MTD device firmware
[ 2.421028] 0x000000050000-0x00000018866c : "kernel"
[ 2.432952] 0x00000018866c-0x000000800000 : "rootfs"
[ 2.445001] mtd: device 5 (rootfs) set to be root filesystem
[ 2.456368] 1 squashfs-split partitions found on MTD device rootfs
[ 2.468704] 0x000000340000-0x000000800000 : "rootfs_data"
[ 2.482896] libphy: mdio: probed
[ 2.492734] switch0: Atheros AR8327 rev. 2 switch registered on mdio-bus
[ 2.507315] ralink_soc_eth 10100000.ethernet eth0: ralink at 0xb0100000, irq 5
[ 2.522407] rt2880_wdt 10000120.watchdog: Initialized
[ 2.534098] NET: Registered protocol family 10
[ 2.547315] NET: Registered protocol family 17
[ 2.556344] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 2.581509] 8021q: 802.1Q VLAN Support v1.8
[ 2.596383] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[ 2.611881] Freeing unused kernel memory: 192K (80380000 - 803b0000)
[ 3.606115] init: Console is alive
[ 3.613123] init: - watchdog -
[ 4.620168] init: - preinit -
[ 5.062806] 8021q: adding VLAN 0 to HW filter on device eth0
[ 5.098190] random: procd urandom read with 7 bits of entropy available
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 7.389999] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[ 7.436818] procd: - early -
[ 7.442679] procd: - watchdog -
[ 8.237088] procd: - ubus -
[ 9.248137] procd: - init -
Please press Enter to activate this console.
[ 9.981828] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 10.007786] Loading modules backported from Linux version master-2015-12-03-0-g1677f62
[ 10.023630] Backport generated by backports.git backports-20151120-0-g906a6b3
[ 10.042736] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 10.065760] nf_conntrack version 0.5.0 (954 buckets, 3816 max)
[ 10.121217] xt_time: kernel timezone is -0000
[ 10.153078] cfg80211: World regulatory domain updated:
[ 10.163387] cfg80211: DFS Master region: unset
[ 10.172072] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[ 10.191497] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 10.207455] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 10.223410] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[ 10.239368] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[ 10.258278] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[ 10.277176] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[ 10.293304] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[ 10.309259] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[ 10.392518] PPP generic driver version 2.4.2
[ 10.404204] NET: Registered protocol family 24
[ 10.447493] PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
[ 10.459024] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 3593, rev 0402 detected
[ 10.477945] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 000d detected
[ 10.559581] ieee80211 phy1: rt2x00_set_rt: Info - RT chipset 3883, rev 0400 detected
[ 10.575094] ieee80211 phy1: rt2x00lib_probe_dev: Error - Failed to allocate device
[ 10.590258] rt2800_wmac: probe of 10180000.wmac failed with error -22
[ 15.154742] CPU 0 Unable to handle kernel paging request at virtual address 00000000, epc == 801c6d44, ra == 801c4210
[ 15.175986] Oops#1:
[ 15.180511] CPU: 0 PID: 734 Comm: swconfig Not tainted 4.3.0 #1
[ 15.192299] task: 839ac508 ti: 83b86000 task.ti: 83b86000
[ 15.203042] $ 0 : 00000000 004a0034 00000000 8386fb86
[ 15.213461] $ 4 : 8386e000 00000000 00000000 8386e03c
[ 15.223875] $ 8 : 00000020 80008950 566ff790 000002de
[ 15.234288] $12 : 00000005 83b87dbc 00000000 00020008
[ 15.244703] $16 : 00000000 8386e000 803350d4 8386e1d0
[ 15.255118] $20 : 838abcc0 00000004 839d0500 00000000
[ 15.265530] $24 : 00000000 801c4194
[ 15.275942] $28 : 83b86000 83b87ba8 7fef58d8 801c4210
[ 15.286358] Hi : 0000002f
[ 15.292082] Lo : 02762762
[ 15.297830] epc : 801c6d44 ar8327_init_port+0x24/0xb8
[ 15.308236] ra : 801c4210 ar8xxx_sw_reset_switch+0x7c/0xcc
[ 15.319671] Status: 1100b403 KERNEL EXL IE
[ 15.328005] Cause : 80800008 (ExcCode 02)
[ 15.335980] BadVA : 00000000
[ 15.341705] PrId : 0001974c (MIPS 74Kc)
[ 15.349505] Modules linked in: rt2800soc rt2800pci rt2800mmio rt2800lib pppoe ppp_async iptable_nat rt2x00soc rt2x00pci rt2x00mmio rt2x00lib pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 mac80211 ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_id xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_raw iptable_mangle iptable_filter ip_tables crc_itu_t crc_ccitt compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables eeprom_93cx6 leds_gpio gpio_button_hotplug
[ 15.483615] Process swconfig (pid: 734, threadinfo=83b86000, task=839ac508, tls=779e6614)
[ 15.499897] Stack : 80379a28 00000000 83b87c6c 801c2c6c 8386e000 00000001 803350d4 801c4210

80379a28 8386e000 8033514c 00000001 83b87c6c 80379ab8 8386e000 83b87c6c
831f0500 801c2f20 838ab180 00000000 83b87c6c 00000000 801c28d4 0000000a
80379ab8 00000000 00000000 00000000 00001000 00000000 838abcc0 000000d0
83b87c6f 00000000 803799d0 80379980 831f0500 838abcc0 00000004 839d0500
...

[ 15.570719] Call Trace:
[ 15.575586] [<801c6d44>] ar8327_init_port+0x24/0xb8
[ 15.585302] [<801c4210>] ar8xxx_sw_reset_switch+0x7c/0xcc
[ 15.596055] [<801c2f20>] swconfig_set_attr+0x178/0x244
[ 15.606306] [<8021d67c>] genl_rcv_msg+0x28c/0x31c
[ 15.615677] [<8021c85c>] netlink_rcv_skb+0x78/0xf0
[ 15.625219] [<8021d3d8>] genl_rcv+0x30/0x48
[ 15.633551] [<8021c104>] netlink_unicast+0x150/0x234
[ 15.643440] [<8021c648>] netlink_sendmsg+0x36c/0x3a0
[ 15.653330] [<801dc884>] sock_sendmsg+0x18/0x30
[ 15.662353] [<801ddc30>] _sys_sendmsg+0x174/0x204
[ 15.672069] [<801deb60>]
sys_sendmsg+0x48/0x7c
[ 15.681272] [<8000655c>] syscall_common+0x30/0x54
[ 15.690631]
[ 15.693583]
Code: afb20018 14a00003 8c8201e4 <10000005> 8c460000 24030006 14a30002 24060200 8c460004
[ 15.713434] ---[ end trace 4d324f4c27ec6eba ]---
[ 17.482615] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[ 17.535317] jffs2_build_filesystem(): unlocking the mtd device... done.
[ 17.548537] jffs2_build_filesystem(): erasing all blocks after the end marker...
[ 19.990547] 8021q: adding VLAN 0 to HW filter on device eth0
[ 20.032252] device eth0.1 entered promiscuous mode
[ 20.041881] device eth0 entered promiscuous mode
[ 20.116287] br-lan: port 1(eth0.1) entered forwarding state
[ 20.127498] br-lan: port 1(eth0.1) entered forwarding state
[ 22.125372] br-lan: port 1(eth0.1) entered forwarding state
[ 57.980173] done.
[ 57.984050] jffs2: notice: (800) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 79.625239] random: nonblocking pool is initialized

Attachments (0)

Change History (5)

comment:1 Changed 2 years ago by largon2010

I was such a problem, seek help

Last edited 2 years ago by largon2010 (previous) (diff)

comment:2 Changed 2 years ago by stefan@…

Maybe I found something out after searching in the Internet and Source Code:
The Revisions of AR8327 will be initialized different. After looking at the Wiki Page of TL-WDR4900 i saw, that AL1A is Revision 1 and BL1A is Revision 2. My Version is AL1A but recognized as Version 2? Maybe that this is the problem?

If so, how can I correct it?

comment:3 Changed 2 years ago by largon2010

Are you solve it?I think the problems should be here:
[ 10.575094] ieee80211 phy1: rt2x00lib_probe_dev: Error - Failed to allocate device
[ 10.590258] rt2800_wmac: probe of 10180000.wmac failed with error -22

comment:4 Changed 2 years ago by blogic

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

comment:5 Changed 2 years ago by stefan@…

  • Resolution fixed deleted
  • Status changed from closed to reopened

This has not solved the problem. It crashes as before!

Add Comment

Modify Ticket

Action
as reopened .
Author


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

 
Note: See TracTickets for help on using tickets.