Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: panic: pmap_map_chunk: no L2 table for VA 0xc0400000



Matt Thomas wrote:

On May 7, 2008, at 7:29 PM, Donald T Hayford wrote:

hamajima%nagoya.bug.gr.jp@localhost wrote:
panic: pmap_map_chunk: no L2 table for VA 0xc0400000

This panic is kernel virtual address mismatch. You need to rewrite the
following to the same values.

<sys/arch/evbarm/include/vmparam.h>
#ifdef KERNEL_BASE_EXT
#define KERNEL_BASE KERNEL_BASE_EXT
#else
#define KERNEL_BASE 0x80000000
#endif

<sys/arch/evbarm/conf/mk.nslu2>
KERNEL_BASE_VIRT=0xc0200000




Add
options KERNEL_BASE_EXT=0xc0000000
to sys/arch/evbarm/conf/std.nslu2

The slug successfully booted, but failed during ifconfig. If it matters, I'm running a 4.99.62 kernel with a 4.99.60 world. Boot output:

NetBSD/evbarm (Linksys NSLU2) booting ...
kernsize=0x2e0164
physmemory: 8192 pages at 0x10000000 -> 0x11ffffff
Allocating page tables
physical_start = 0x10000000, physical_end = 0x12000000
IRQ stack: p0x10011000 v0xc0011000
ABT stack: p0x10012000 v0xc0012000
UND stack: p0x10013000 v0xc0013000
SVC stack: p0x10014000 v0xc0014000
Creating L1 page table at 0x10000000
Mapping kernel
pmap_map_chunk: pa=0x10200000 va=0xc0200000 size=0x22f000 resid=0x22f000 prot=0x3 cache=1
SSLLPPPPPPPPPPPPPPP
pmap_map_chunk: pa=0x1042f000 va=0xc042f000 size=0xb2000 resid=0xb2000 prot=0x3 cache=1
PLLLLLLLLLLLP
Constructing L2 page tables
pmap_map_chunk: pa=0x10011000 va=0xc0011000 size=0x1000 resid=0x1000 prot=0x3 cache=1
P
pmap_map_chunk: pa=0x10012000 va=0xc0012000 size=0x1000 resid=0x1000 prot=0x3 cache=1
P
pmap_map_chunk: pa=0x10013000 va=0xc0013000 size=0x1000 resid=0x1000 prot=0x3 cache=1
P
pmap_map_chunk: pa=0x10014000 va=0xc0014000 size=0x2000 resid=0x2000 prot=0x3 cache=1
PP
pmap_map_chunk: pa=0x10000000 va=0xc0000000 size=0x4000 resid=0x4000 prot=0x3 cache=2
PPPP
pmap_map_chunk: pa=0x10004000 va=0xc0004000 size=0x1000 resid=0x1000 prot=0x3 cache=2
P
pmap_map_chunk: pa=0x10005000 va=0xc0005000 size=0x1000 resid=0x1000 prot=0x3 cache=2
P
pmap_map_chunk: pa=0x10006000 va=0xc0006000 size=0x1000 resid=0x1000 prot=0x3 cache=2
P
pmap_map_chunk: pa=0x10007000 va=0xc0007000 size=0x1000 resid=0x1000 prot=0x3 cache=2
P
pmap_map_chunk: pa=0x10008000 va=0xc0008000 size=0x1000 resid=0x1000 prot=0x3 cache=2
P
pmap_map_chunk: pa=0x10009000 va=0xc0009000 size=0x1000 resid=0x1000 prot=0x3 cache=2
P
pmap_map_chunk: pa=0x1000a000 va=0xc000a000 size=0x1000 resid=0x1000 prot=0x3 cache=2
P
pmap_map_chunk: pa=0x1000b000 va=0xc000b000 size=0x1000 resid=0x1000 prot=0x3 cache=2
P
pmap_map_chunk: pa=0x1000c000 va=0xc000c000 size=0x1000 resid=0x1000 prot=0x3 cache=2
P
pmap_map_chunk: pa=0x1000d000 va=0xc000d000 size=0x1000 resid=0x1000 prot=0x3 cache=2
P
pmap_map_chunk: pa=0x1000e000 va=0xc000e000 size=0x1000 resid=0x1000 prot=0x3 cache=2
P
pmap_map_chunk: pa=0x1000f000 va=0xc000f000 size=0x1000 resid=0x1000 prot=0x3 cache=2
P
devmap: c8000000 -> c800ffff @ f0000000
pmap_map_chunk: pa=0xc8000000 va=0xf0000000 size=0x10000 resid=0x10000 prot=0x3 cache=0
L
devmap: c4000000 -> c4000fff @ f0010000
pmap_map_chunk: pa=0xc4000000 va=0xf0010000 size=0x1000 resid=0x1000 prot=0x3 cache=0
P
devmap: c0000000 -> c0000fff @ f0011000
pmap_map_chunk: pa=0xc0000000 va=0xf0011000 size=0x1000 resid=0x1000 prot=0x3 cache=0
P
devmap: cc000000 -> cc000fff @ f0200000
pmap_map_chunk: pa=0xcc000000 va=0xf0200000 size=0x1000 resid=0x1000 prot=0x3 cache=0
P
devmap: 48000000 -> 4bffffff @ f8000000
pmap_map_chunk: pa=0x48000000 va=0xf8000000 size=0x4000000 resid=0x4000000 prot=0x3 cache=0
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
devmap: 50000000 -> 507fffff @ fc000000
pmap_map_chunk: pa=0x50000000 va=0xfc000000 size=0x800000 resid=0x800000 prot=0x3 cache=0
SSSSSSSS
freestart = 0x104e1000, free_pages = 6943 (0x1b1f)
switching to new L1 page table @0x10000000...bootstrap done.
init subsystems: stacks vectors undefined page pmap irq
All initialize done!
Now Starting NetBSD, Hear we go!
[ Kernel symbol table missing! ]
pmap_postinit: Allocated 9 static L1 descriptor tables
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.

NetBSD 4.99.62 (NSLU2_ALL) #0: Thu May 8 07:29:41 EDT 2008
hayford@Fed8:/home/hayford/testbuild/net/src/sys/arch/evbarm/compile/obj/NSLU2_ALL
total memory = 32768 KB
avail memory = 26960 KB
mainbus0 (root)
cpu0 at mainbus0: IXP425 266MHz rev 1 (XScale core)
cpu0: DC enabled IC enabled WB enabled LABT branch prediction enabled
cpu0: 32KB/32B 32-way Instruction cache
cpu0: 32KB/32B 32-way write-back-locking Data cache
ixpsip0 at mainbus0
com0 at ixpsip0 addr 0xc8000000-0xc8000fff: ns16550a, working fifo
com0: console
ixp425_intr_establish(irq=15, ipl=3, func=c027d914, arg=c10b8200)
ixpclk0 at ixpsip0 addr 0xc8005000-0xc800502f
ixpclk0: IXP425 Interval Timer
ixpdog0 at ixpsip0: Watchdog Timer
slugiic0 at ixpsip0: I2C bus
slugbutt0 at ixpsip0: Power and Reset buttons
slugled0 at ixpsip0: LED support
ixpio0 at mainbus0
ixpio0: configuring PCI bus
pci0 at ixpio0 bus 0
ohci0 at pci0 dev 1 function 0: vendor 0x1033 product 0x0035 (rev. 0x43)
ixp425_intr_establish(irq=28, ipl=1, func=c0284c28, arg=c1112000)
ohci0: interrupting at INTA
ohci0: OHCI version 1.0
usb0 at ohci0: USB revision 1.0
ohci1 at pci0 dev 1 function 1: vendor 0x1033 product 0x0035 (rev. 0x43)
ixp425_intr_establish(irq=27, ipl=1, func=c0284c28, arg=c1113000)
ohci1: interrupting at INTB
ohci1: OHCI version 1.0
usb1 at ohci1: USB revision 1.0
ehci0 at pci0 dev 1 function 2: vendor 0x1033 product 0x00e0 (rev. 0x04)
ixp425_intr_establish(irq=26, ipl=1, func=c0285b84, arg=c10e5800)
ehci0: interrupting at INTC
ehci0: companion controllers, 3 ports each: ohci0 ohci1
usb2 at ehci0: USB revision 2.0
ixme0 at mainbus0: IXP4xx MicroEngine Support
ixp425_intr_establish(irq=3, ipl=1, func=c03d7d50, arg=c1110000)
ixp425_intr_establish(irq=4, ipl=1, func=c03d7d50, arg=c1110000)
ixpnpe0 at ixme0 NPE-B
ixp425_intr_establish(irq=1, ipl=1, func=c03d9ab0, arg=c110e300)
npe0 at ixpnpe0: Ethernet co-processor
npe0: remember to fix rx q setup
npe0: Ethernet address 00:18:39:a2:26:7c
rlphy0 at npe0 phy 1: RTL8201L 10/100 media interface, rev. 1
rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
clock: hz=100 stathz=0 profhz=0
ixp425_intr_establish(irq=5, ipl=2, func=c03d6f94, arg=00000000)
iic0 at slugiic0: I2C bus
xrtc0 at iic0 addr 0x6f: Xicor X1226 Real-time Clock/NVRAM
ixp425_intr_establish(irq=22, ipl=1, func=c03dca40, arg=c110ec00)
ixp425_intr_establish(irq=29, ipl=1, func=c03dc9d4, arg=c110ec00)
ixp425_intr_establish(irq=28, ipl=1, func=c03dcdc8, arg=c10b8000)
ixp425_intr_establish(irq=27, ipl=1, func=c03dcd20, arg=c10b8000)
ixp425_intr_establish(irq=26, ipl=1, func=c03dcc78, arg=c10b8000)
ixp425_intr_establish(irq=5, ipl=2, func=c03dcba0, arg=00000000)
uhub0 at usb1: vendor 0x1033 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1 at usb2: vendor 0x1033 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2 at usb0: vendor 0x1033 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3 at uhub1 port 1: vendor 0x0409 product 0x005a, class 9/0, rev 2.00/1.00, addr 2
uhub3: single transaction translator
umass0 at uhub3 port 2 configuration 1 interface 0
umass0: Generic USB TO IDE Bridge, rev 2.00/1.00, addr 3
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <Generic, USB Disk, 9.02> disk fixed
sd0: fabricating a geometry
sd0: 298 GB, 305245 cyl, 64 head, 32 sec, 512 bytes/sect x 625142448 sectors
umass1 at uhub3 port 3 configuration 1 interface 0
umass1: Maxtor OneTouch III, rev 2.00/0.01, addr 4
umass1: using SCSI over Bulk-Only
scsibus1 at umass1: 2 targets, 1 lun per target
sd1 at scsibus1 target 0 lun 0: <Maxtor, OneTouch III, 035f> disk fixed
sd1: fabricating a geometry
sd1: 298 GB, 305245 cyl, 64 head, 32 sec, 512 bytes/sect x 625142448 sectors
boot device: <unknown>
root on sd1a dumps on sd1b
sd1: fabricating a geometry
init: copying out path `/sbin/init' 11
Thu May 8 18:43:25 EST 2008
swapctl: adding /dev/sd1b as swap device at priority 0
Starting file system checks:
/dev/rsd1a: file system is clean; not checking
Setting tty flags.
Setting sysctl variables:
Starting network.
Hostname: slug.
IPv6 mode: host
Configuring network interfaces: npe0
uvm_fault(0xc1c19b7c, 0, 1) -> e
Fatal kernel mode data abort: 'Translation Fault (P)'
trapframe: 0xc2d87d0c
FSR=00000007, FAR=00000034, spsr=a0000013
r0 =00000000, r1 =c2d87e2c, r2 =00000002, r3 =00000000
r4 =c110e200, r5 =c1114e98, r6 =c1114c84, r7 =00000000
r8 =c1114c00, r9 =c10ccde0, r10=c2d42260, r11=c2d87d6c
r12=c2d87d70, ssp=c2d87d58, slr=c026fea0, pc =c0327484

Stopped in pid 68.1 (ifconfig) at 0xc0327484: ldr r0, [r0, #0x034]

db> trace
0xc026fe68
scp=0xc026fe68 rlv=0xc03da904 (0xc03da904)
rsp=0xc2d87d70 rfp=0xc2d87d84
r5=0xc2d87e2c r4=0xc1114c00
0xc03da8e8
scp=0xc03da8e8 rlv=0xc0386374 (0xc0386374)
rsp=0xc2d87d88 rfp=0xc2d87dac
r5=0xc2d87e2c r4=0xc1114e98
0xc03862f0
scp=0xc03862f0 rlv=0xc03dba4c (0xc03dba4c)
rsp=0xc2d87db0 rfp=0xc2d87dd0
r10=0xc2d42260 r8=0xc1114c00
r7=0x00000000 r6=0xc0487ed0 r5=0xc2d87e2c r4=0xc1114c84
0xc03dba30
scp=0xc03dba30 rlv=0xc0383b28 (0xc0383b28)
rsp=0xc2d87dd4 rfp=0xc2d87e14
r8=0x00008843 r7=0xc1114c84
r6=0x00000000 r5=0xc2d87e2c r4=0xc0286936
0xc03838f4
scp=0xc03838f4 rlv=0xc033f458 (0xc033f458)
rsp=0xc2d87e18 rfp=0xc2d87ed4
r10=0xc1c146a0 r9=0xc2d87e2c
r8=0x00000000 r7=0xc0286936 r6=0xc2d4cea8 r5=0xc2d87fb8
r4=0x00000028
0xc033f378
scp=0xc033f378 rlv=0xc03962fc (0xc03962fc)
rsp=0xc2d87ed8 rfp=0xc2d87f5c
r10=0x0001d060 r9=0x00000004
r8=0xc2d42260 r7=0xc2d87fb8 r6=0xc2d87fb4 r5=0x00000003
r4=0xefa00036
0xc03961f8
scp=0xc03961f8 rlv=0xc03967c4 (0xc03967c4)
rsp=0xc2d87f60 rfp=0xc2d87fb0
r10=0x0001d060 r9=0x0001d054
r8=0x00000001 r7=0xc1c146a0 r6=0xefa00036 r5=0xc2d87fb4
r4=0xc2d42260
0xc0396734
scp=0xc0396734 rlv=0xc03994d8 (0xc03994d8)
rsp=0xc2d87fb4 rfp=0xbfffee60
r8=0x00012960 r7=0xbfffffac
r6=0xbfffeefc r5=0xbfffffa6 r4=0xc0487ed0

Getting closer.

Thanks, Don



Home | Main Index | Thread Index | Old Index