Modify

Opened 18 months ago

#23372 new defect

kernel panic if CONFIG_USE_MKLIBS is set (mipsel target)

Reported by: pmrbpmrb Owned by: developers
Priority: normal Milestone:
Component: kernel Version: Trunk
Keywords: Cc: pmlists@…

Description

Hi,

When CONFIG_USE_MKLIBS is set (Strip unnecessary functions from libraries), then the kernel panics on my board.

Steps to reproduce:

  • git clone ​git://github.com/openwrt/openwrt.git
  • cd openwrt
  • make menuconfig
    • Target System -> Broadcom BCM47xx/53xx (MIPS)
    • Target Profile -> ASUS WL-500g Premium v1 (Atheros WiFi using ath5k)
    • Global build settings -> Strip unnecessary functions from libraries -> yes
  • make
  • flash the device

Here the output from the serial interface:

CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: �| 10�� 12 22:21:19 CST 2006 (root@localhost.localdomain)
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.

Initializing Arena
Initializing Devices.
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 3.90.7.0
rndis0: Broadcom USB RNDIS Network Adapter (P-t-P)
CPU type 0x29006: 264MHz
Total memory: 134217728 KBytes

Total memory used by CFE:  0x80800000 - 0x8089AF40 (634688)
Initialized Data:          0x808313D0 - 0x80833790 (9152)
BSS Area:                  0x80833790 - 0x80834F40 (6064)
Local Heap:                0x80834F40 - 0x80898F40 (409600)
Stack Area:                0x80898F40 - 0x8089AF40 (8192)
Text (code) segment:       0x80800000 - 0x808313D0 (201680)
Boot area (physical):      0x0089B000 - 0x008DB000
Relocation Factor:         I:00000000 - D:00000000

Device eth0:  hwaddr 00-1F-C6-3D-99-85, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
Null Rescue Flag.
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
Loading: .. 3800 bytes read
Entry at 0x80001000
Closing network.
Starting program at 0x80001000
Linux version 4.1.27 (peter@micropit) (gcc version 5.3.0 (OpenWrt GCC 5.3.0 49881) ) #21 Sun Aug 14 09:14:30 UTC 2016
CPU0 revision is: 00029006 (Broadcom BMIPS3300)
bcm47xx: Using ssb bus
ssb: Found chip with id 0x4704, rev 0x08 and package 0x00
ssb: Sonics Silicon Backplane found at address 0x18000000
Determined physical RAM map:
 memory: 08000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone ranges:
  Normal   [mem 0x0000000000000000-0x0000000007ffffff]
Movable zone start for each node
Early memory node ranges
  node   0: [mem 0x0000000000000000-0x0000000007ffffff]
Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
Primary instruction cache 16kB, VIPT, 2-way, linesize 16 bytes.
Primary data cache 16kB, 2-way, VIPT, cache aliases, linesize 16 bytes
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line:  noinitrd console=ttyS0,115200
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 126448K/131072K available (2568K kernel code, 103K rwdata, 324K rodata, 192K init, 253K bss, 4624K reserved, 0K cma-reserved)
NR_IRQS:128
MIPS: machine is Asus WL500GP V1
clocksource MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 14479245804 ns
sched_clock: 32 bits at 132MHz, resolution 7ns, wraps every 16268815356ns
Calibrating delay loop... 262.96 BogoMIPS (lpj=1314816)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
NET: Registered protocol family 16
Switched to clocksource MIPS
PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [mem 0x40000000-0x7fffffff]
pci_bus 0000:00: root bus resource [io  0x0100-0x07ff]
pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
ssb: PCI: Fixing up bridge 0000:00:00.0
ssb: PCI: Fixing up device 0000:00:00.0
ssb: PCI: Fixing latency timer of device 0000:00:00.0 to 168
pci 0000:00:02.0: BAR 0: assigned [mem 0x40000000-0x40001fff]
pci 0000:00:03.2: BAR 0: assigned [mem 0x40002000-0x400020ff]
pci 0000:00:03.0: BAR 4: assigned [io  0x0400-0x041f]
pci 0000:00:03.1: BAR 4: assigned [io  0x0420-0x043f]
PCI: Enabling device 0000:00:02.0 (0000 -> 0002)
ssb: PCI: Fixing up device 0000:00:02.0
ssb: Found chip with id 0x4318, rev 0x02 and package 0x02
ssb: Sonics Silicon Backplane found on PCI device 0000:00:02.0
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
futex hash table entries: 256 (order: -1, 3072 bytes)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
console [ttyS0] disabled
serial8250.0: ttyS0 at MMIO 0xb8000300 (irq = 3, base_baud = 4125000) is a 16550A
console [ttyS0] enabled
serial8250.0: ttyS1 at MMIO 0xb8000400 (irq = 3, base_baud = 4125000) is a 16550A
physmap platform flash device: 02000001 at 1c000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000001 Chip ID 0x001301
Amd/Fujitsu Extended Query Table at 0x0040
  Amd/Fujitsu Extended Query version 1.3.
number of CFI chips: 1
6 bcm47xxpart partitions found on MTD device physmap-flash.0
Creating 6 MTD partitions on "physmap-flash.0":
0x000000000000-0x000000040000 : "boot"
0x000000040000-0x0000007f0000 : "firmware"
0x00000004001c-0x000000040918 : "loader"
0x000000040918-0x00000013f400 : "linux"
0x00000013f400-0x0000007f0000 : "rootfs"
mtd: device 4 (rootfs) set to be root filesystem
1 squashfs-split partitions found on MTD device rootfs
0x0000005b0000-0x0000007f0000 : "rootfs_data"
0x0000007f0000-0x000000800000 : "nvram"
libphy: Fixed MDIO Bus: probed
bcm47xx-wdt bcm47xx-wdt.0: BCM47xx Watchdog Timer enabled (30 seconds, Software Timer)
GPIO_WDT: failed to register misc device
NET: Registered protocol family 17
bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
8021q: 802.1Q VLAN Support v1.8
VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
Freeing unused kernel memory: 192K (802f0000 - 80320000)
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004

---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004

random: nonblocking pool is initialized

Peter

Attachments (0)

Change History (0)

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.