When restoring to default settings by erasing the jffs partition (mtd -r erase rootfs_data), I get a kernel oops after reset (see output below). This is also evident when "restoring factory defaults" via LuCI (as this erases rootfs_data I believe).

I'm running on a Ralink RT3052 board with the latest trunk. I have a couple patches in my build (VLAN configuration and WLAN LED support) and some custom uci-defaults scripts: system (setup LEDs, timezone and hostname), qos (enabled=0) and multiwan (disable via /etc/init.d/multiwan disable). It looks like it panicked on process 'uci', so maybe the uci-defaults are the problem?

I see no errors during initial flash/firstboot and all uci-defaults scripts seem to work as expected (updated /etc/config and empty /etc/uci-defaults).

Any ideas/suggestions?

Thanks,
Layne

---

root@OpenWrt:/# mtd -r erase rootfs_data
Unlocking rootfs_data ...
Erasing rootfs_data ...
Rebooting ...
br-lan: port 1(eth0.1) entering forwarding state
device eth0 left promiscuous mode
device eth0.1 left promiscuous mode
br-lan: port 1(eth0.1) entering disabled state
Restarting system.


U-Boot 1.1.3 (Dec 14 2008 - 16:34:00)

Board: Ralink APSoC DRAM:  32 MB
relocate_code Pointer at: 81fac000
flash_protect ON: from 0xBF000000 to 0xBF02006F
protect on 0
protect on 1
protect on 2
protect on 3
protect on 4
protect on 5
protect on 6
protect on 7
protect on 8
protect on 9
flash_protect ON: from 0xBF030000 to 0xBF03FFFF
protect on 10
============================================
Ralink UBoot Version: 3.2
--------------------------------------------
ASIC 3052_MP2 (Port5<->None)
DRAM COMPONENT: 128Mbits
DRAM BUS: 32BIT
Total memory: 32 MBytes
Date:Dec 14 2008  Time:16:34:00
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:128, ways:4, linesz:32 ,total:16384

 ##### The CPU freq = 384 MHZ ####

 SDRAM bus set to 32 bit
 SDRAM size =32 Mbytes

Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   9: Load Boot Loader code then write to Flash via TFTP.
 0

3: System Boot system code via Flash.
## Booting image at bf050000 ...
   Image Name:   MIPS OpenWrt Linux-2.6.36.4
   Created:      2011-03-22  15:18:11 UTC

 System Control Status = 0x00440000
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    786124 Bytes = 767.7 kB
   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, 32

Starting kernel ...

Linux version 2.6.36.4 (ledwards@OpenSuSE) (gcc version 4.5.2 (Linaro GCC 4.5-2011.02-0) ) #2 Tue Mar 22 09:45:39 CDT 2011
bootconsole [early0] enabled
CPU revision is: 0001964c (MIPS 24Kc)
Ralink RT3052   id:1 rev:2 running at 384.00 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: board=HW550-3G mtdparts=physmap-flash.0:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,832k(kernel),7040k(ro2
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 32kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
Writing ErrCtl register=00003830
Readback ErrCtl register=00003830
Memory: 30152k/32768k available (1788k kernel code, 2616k reserved, 298k data, 140k init, 0k highmem)
SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
        RCU-based detection of stalled CPUs is disabled.
        Verbose stalled-CPUs detection is disabled.
NR_IRQS:48
console [ttyS1] enabled, bootconsole disabled
console [ttyS1] enabled, bootconsole disabled
Calibrating delay loop... 255.59 BogoMIPS (lpj=1277952)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MIPS: machine is Aztech HW550-3G
bio: create slab <bio-0> at 0
Switching to clocksource MIPS
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
msgmni has been set to 58
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x10000500 (irq = 13) is a 16550A
serial8250: ttyS1 at MMIO 0x10000c00 (irq = 20) is a 16550A
physmap platform flash device: 00800000 at bf000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x0022cb
Amd/Fujitsu Extended Query Table at 0x0040
  Amd/Fujitsu Extended Query version 1.1.
number of CFI chips: 1
6 cmdlinepart partitions found on MTD device physmap-flash.0
Creating 6 MTD partitions on "physmap-flash.0":
0x000000000000-0x000000030000 : "u-boot"
0x000000030000-0x000000040000 : "u-boot-env"
0x000000040000-0x000000050000 : "factory"
0x000000050000-0x000000120000 : "kernel"
0x000000120000-0x000000800000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=5B0000, len=250000
0x0000005b0000-0x000000800000 : "rootfs_data"
0x000000050000-0x000000800000 : "firmware"
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <[email protected]>
All bugs added by David S. Miller <[email protected]>
VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
Freeing unused kernel memory: 140k freed
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
switching to jffs2
mini_fo: using base directory: /
mini_fo: using storage directory: /overlay
- init -
CPU 0 Unable to handle kernel paging request at virtual address c0881681, epc == 800eaab8, ra == 800eaa3c
Oops[#1]:
Cpu 0
$ 0   : 00000000 80230000 c0881681 00002000
$ 4   : 00000000 0000001e 0000000c 00000000
$ 8   : c0966644 0000000a 00000001 00000000
$12   : 00000001 0000000e 801ca358 00000001
$16   : 00000fc9 00000007 c0882000 c0966000
$20   : 0000f948 00000000 01000000 000002e1
$24   : 00000000 8004baa0
$28   : 81a34000 81a35bd8 00000000 800eaa3c
Hi    : 00000002
Lo    : 00000000
epc   : 800eaab8 0x800eaab8
    Not tainted
ra    : 800eaa3c 0x800eaa3c
Status: 10008403    KERNEL EXL IE
Cause : 00800008
BadVA : c0881681
PrId  : 0001964c (MIPS 24Kc)
Modules linked in: leds_gpio
Process uci (pid: 251, threadinfo=81a34000, task=81a32b20, tls=2accd2f0) Stack : 00000002 81882a00 81a35c48 80096f3c 0000000c 0000001f 0000001e 0020006c 00200000 00000000 00000000 800e9d10 c004b519 c004b000 c004bb18 00000b18 015e7e0a 01d0948f 01d0948f 80200000 00000000 c004b000 000001d5 00000001 00000339 00000001 00000003 00000003 00000008 c0966644 00000001 00000008 81922100 80240000 80200000 81922000 81922700 00000002 00000004 819ff190
        ...
Call Trace:[<80096f3c>] 0x80096f3c
[<800e9d10>] 0x800e9d10
[<800bbc0c>] 0x800bbc0c
[<800bba98>] 0x800bba98
[<800b838c>] 0x800b838c
[<8002f704>] 0x8002f704
[<800bee44>] 0x800bee44
[<800b8718>] 0x800b8718
[<800c1568>] 0x800c1568
[<800b8cc4>] 0x800b8cc4
[<800be8ec>] 0x800be8ec
[<800b90d8>] 0x800b90d8
[<8006111c>] 0x8006111c
[<800bee44>] 0x800bee44
[<800818e4>] 0x800818e4
[<8000ea60>] 0x8000ea60
[<800bed60>] 0x800bed60
[<800815a8>] 0x800815a8
[<800818e4>] 0x800818e4
[<80081ae8>] 0x80081ae8
[<800804a0>] 0x800804a0
[<80002544>] 0x80002544


Code: 5080fffe 00431021 02421021 <90430000> 02501021 26100001 12a0000e a0430000 8ba20020
Disabling lock debugging due to kernel taint

Please press Enter to activate this console.

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to