Port-arm archive

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

Re: Unable to boot NetBSD on Linksys NSLU2 (armbe / armv5tel)



I retried building an older version and encountered a somewhat
different problem (entire boot log is attached):

xrtc0 at iic0 addr 0x6f: Xicor X1226 Real-time Clock/NVRAM
ixp425_intr_establish(irq=22, ipl=5, func=c0410070, arg=c1134008)
ixp425_intr_establish(irq=29, ipl=5, func=c040fff8, arg=c1134008)
ixp425_intr_establish(irq=28, ipl=5, func=c04103fc, arg=c1130790)
ixp425_intr_establish(irq=27, ipl=5, func=c0410354, arg=c1130790)
ixp425_intr_establish(irq=26, ipl=5, func=c04102ac, arg=c1130790)
ixp425_intr_establish(irq=5, ipl=6, func=c04101d8, 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
cprng sysctl: WARNING insufficient entropy at creation.
boot device: <unknown>
root on npe0
nfs_boot: trying DHCP/BOOTP
nfs_boot: DHCP next-server: 192.168.77.250
nfs_boot: my_name=kinder
nfs_boot: my_domain=eddyp.homeunix.net
nfs_boot: my_addr=192.168.77.251
nfs_boot: my_mask=255.255.255.0
nfs_boot: gateway=192.168.77.1
root on 192.168.77.250:/export/netbsd-nslu2/root
root time: 0x54f77695
init: copying out path `/sbin/init' 11
Process (pid 1) got sig 11
Process (pid 1) got sig 11
Process (pid 1) got sig 11
Process (pid 1) got sig 11
Process (pid 1) got sig 11
[...]


The last commit in the source in the rebuild is (the commit in the git
mirror is bf5a62b):

Author: martin <martin>
Date:   Wed Feb 27 09:29:21 2013 +0000

    Disable ICBOPT_FAST_POST for ISP 2100.
    Fixes PR kern/47302. From Matthew Jacob.

This looks like a different error, a segfault.

2015-02-20 0:35 GMT+02:00 Eddy Petrișor <eddy.petrisor%gmail.com@localhost>:
> Hello,
>
> (Please excuse if I use unappropriate terminology, I have years of
> experience with Linux - even embedded Linux - but this is my first
> time trying to run NetBSD.)
>
> Following the great instructions found on the wiki[1] and doing a few
> tweaks here and there (IPL 2.4, using dnsmasq on the server) I have
> managed to build and setup things so that netbsd tries to start
> diskless (root on NFS) on one of my old Linksys NSLU2-s but it fails
> right when the kernel should start /sbin/init, or at least that's what
> I understand from the messages:
NetBSD/evbarm (Linksys NSLU2) booting ...
kernsize=0x34e3e4
physmemory: 8192 pages at 0x10000000 -> 0x11ffffff
Allocating page tables
physical_start = 0x10000000, physical_end = 0x12000000
IRQ stack: p0x1000f000 v0xc000f000
ABT stack: p0x10010000 v0xc0010000
UND stack: p0x10011000 v0xc0011000
SVC stack: p0x10012000 v0xc0012000
Creating L1 page table at 0x10000000
Mapping kernel
pmap_map_chunk: pa=0x10200000 va=0xc0200000 size=0x277000 resid=0x277000 prot=0x3 cache=1
SSLLLLLLLPPPPPPP
pmap_map_chunk: pa=0x10477000 va=0xc0477000 size=0xd8000 resid=0xd8000 prot=0x3 cache=1
PPPPPPPPPLLLLLLLLLLLLPPPPPPPPPPPPPPP
Constructing L2 page tables
pmap_map_chunk: pa=0x1000f000 va=0xc000f000 size=0x1000 resid=0x1000 prot=0x3 cache=1
P
pmap_map_chunk: pa=0x10010000 va=0xc0010000 size=0x1000 resid=0x1000 prot=0x3 cache=1
P
pmap_map_chunk: pa=0x10011000 va=0xc0011000 size=0x1000 resid=0x1000 prot=0x3 cache=1
P
pmap_map_chunk: pa=0x10012000 va=0xc0012000 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
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 = 0x1054f000, free_pages = 6833 (0x1ab1)
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!
Loaded initial symtab at 0xc048ae30, strtab at 0xc04b5c7c, # entries 10286
pmap_postinit: Allocated 9 static L1 descriptor tables
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
    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 6.99.17 (NSLU2_ALL) #0: Wed Mar  4 03:08:28 EET 2015
        eddy@heidi:/home/eddy/usr/src/netbsd/net/src/sys/arch/evbarm/compile/obj/NSLU2_ALL
total memory = 32768 KB
avail memory = 26584 KB
sysctl_createv: sysctl_locate(user_va0_disable) returned 2
cprng kernel: WARNING insufficient entropy at creation.
mainbus0 (root)
cpu0 at mainbus0 core 0: IXP425 266MHz rev 2 (XScale V5TE core)
cpu0: DC enabled IC enabled WB enabled LABT branch prediction enabled
cpu0: 32KB/32B 32-way L1 Instruction cache
cpu0: 32KB/32B 32-way write-back-locking L1 Data cache
ixpsip0 at mainbus0
com0 at ixpsip0 addr 0xc8000000-0xc8000fff: ns16550a, working fifo
com0: console
ixp425_intr_establish(irq=15, ipl=7, func=c027cee8, arg=c10db8c8)
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)
csr: 02100146
ixp425_intr_establish(irq=28, ipl=6, func=c0283dfc, arg=c1137008)
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)
csr: 02100146
ixp425_intr_establish(irq=27, ipl=6, func=c0283dfc, arg=c1138008)
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=6, func=c0288f54, arg=c1132008)
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=5, func=c040a424, arg=c10e0000)
ixp425_intr_establish(irq=4, ipl=5, func=c040a424, arg=c10e0000)
ixpnpe0 at ixme0 NPE-B
ixp425_intr_establish(irq=1, ipl=5, func=c040bb7c, arg=c10d74e8)
npe0 at ixpnpe0: Ethernet co-processor
npe0: remember to fix rx q setup
npe0: Ethernet address 00:1a:70:99:60:bb
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=6, func=c0409844, arg=00000000)
iic0 at slugiic0: I2C bus
xrtc0 at iic0 addr 0x6f: Xicor X1226 Real-time Clock/NVRAM
ixp425_intr_establish(irq=22, ipl=5, func=c0410070, arg=c1134008)
ixp425_intr_establish(irq=29, ipl=5, func=c040fff8, arg=c1134008)
ixp425_intr_establish(irq=28, ipl=5, func=c04103fc, arg=c1130790)
ixp425_intr_establish(irq=27, ipl=5, func=c0410354, arg=c1130790)
ixp425_intr_establish(irq=26, ipl=5, func=c04102ac, arg=c1130790)
ixp425_intr_establish(irq=5, ipl=6, func=c04101d8, 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
cprng sysctl: WARNING insufficient entropy at creation.
boot device: <unknown>
root on npe0
nfs_boot: trying DHCP/BOOTP
nfs_boot: DHCP next-server: 192.168.77.250
nfs_boot: my_name=kinder
nfs_boot: my_domain=eddyp.homeunix.net
nfs_boot: my_addr=192.168.77.251
nfs_boot: my_mask=255.255.255.0
nfs_boot: gateway=192.168.77.1
nfs_boot: mountd `192.168.77.250:/export/netbsd-nslu2/root', error=13
cannot mount root, error = 13
root device (default npe0): ��+Ethernet eth0: MAC address 00:1a:70:99:60:bb
IP: 192.168.0.1/255.255.255.0, Gateway: 192.168.0.1
Default server: 0.0.0.0, DNS server IP: 0.0.0.0

RedBoot(tm) bootstrap and debug environment [ROMRAM]
Red Hat certified release, version 1.92 - built 15:16:07, Feb  3 2004

Platform: IXDP425 Development Platform (XScale) 
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

RAM: 0x00000000-0x02000000, 0x000723a0-0x01ff3000 available
FLASH: 0x50000000 - 0x50800000, 64 blocks of 0x00020000 bytes each.
== Executing boot script in 2.000 seconds - enter ^C to abort

NetBSD/evbarm (Linksys NSLU2) booting ...
kernsize=0x34e3e4
physmemory: 8192 pages at 0x10000000 -> 0x11ffffff
Allocating page tables
physical_start = 0x10000000, physical_end = 0x12000000
IRQ stack: p0x1000f000 v0xc000f000
ABT stack: p0x10010000 v0xc0010000
UND stack: p0x10011000 v0xc0011000
SVC stack: p0x10012000 v0xc0012000
Creating L1 page table at 0x10000000
Mapping kernel
pmap_map_chunk: pa=0x10200000 va=0xc0200000 size=0x277000 resid=0x277000 prot=0x3 cache=1
SSLLLLLLLPPPPPPP
pmap_map_chunk: pa=0x10477000 va=0xc0477000 size=0xd8000 resid=0xd8000 prot=0x3 cache=1
PPPPPPPPPLLLLLLLLLLLLPPPPPPPPPPPPPPP
Constructing L2 page tables
pmap_map_chunk: pa=0x1000f000 va=0xc000f000 size=0x1000 resid=0x1000 prot=0x3 cache=1
P
pmap_map_chunk: pa=0x10010000 va=0xc0010000 size=0x1000 resid=0x1000 prot=0x3 cache=1
P
pmap_map_chunk: pa=0x10011000 va=0xc0011000 size=0x1000 resid=0x1000 prot=0x3 cache=1
P
pmap_map_chunk: pa=0x10012000 va=0xc0012000 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
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 = 0x1054f000, free_pages = 6833 (0x1ab1)
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!
Loaded initial symtab at 0xc048ae30, strtab at 0xc04b5c7c, # entries 10286
pmap_postinit: Allocated 9 static L1 descriptor tables
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
    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 6.99.17 (NSLU2_ALL) #0: Wed Mar  4 03:08:28 EET 2015
        eddy@heidi:/home/eddy/usr/src/netbsd/net/src/sys/arch/evbarm/compile/obj/NSLU2_ALL
total memory = 32768 KB
avail memory = 26584 KB
sysctl_createv: sysctl_locate(user_va0_disable) returned 2
cprng kernel: WARNING insufficient entropy at creation.
mainbus0 (root)
cpu0 at mainbus0 core 0: IXP425 266MHz rev 2 (XScale V5TE core)
cpu0: DC enabled IC enabled WB enabled LABT branch prediction enabled
cpu0: 32KB/32B 32-way L1 Instruction cache
cpu0: 32KB/32B 32-way write-back-locking L1 Data cache
ixpsip0 at mainbus0
com0 at ixpsip0 addr 0xc8000000-0xc8000fff: ns16550a, working fifo
com0: console
ixp425_intr_establish(irq=15, ipl=7, func=c027cee8, arg=c10db8c8)
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)
csr: 02100146
ixp425_intr_establish(irq=28, ipl=6, func=c0283dfc, arg=c1137008)
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)
csr: 02100146
ixp425_intr_establish(irq=27, ipl=6, func=c0283dfc, arg=c1138008)
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=6, func=c0288f54, arg=c1132008)
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=5, func=c040a424, arg=c10e0000)
ixp425_intr_establish(irq=4, ipl=5, func=c040a424, arg=c10e0000)
ixpnpe0 at ixme0 NPE-B
ixp425_intr_establish(irq=1, ipl=5, func=c040bb7c, arg=c10d74e8)
npe0 at ixpnpe0: Ethernet co-processor
npe0: remember to fix rx q setup
npe0: Ethernet address 00:1a:70:99:60:bb
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=6, func=c0409844, arg=00000000)
iic0 at slugiic0: I2C bus
xrtc0 at iic0 addr 0x6f: Xicor X1226 Real-time Clock/NVRAM
ixp425_intr_establish(irq=22, ipl=5, func=c0410070, arg=c1134008)
ixp425_intr_establish(irq=29, ipl=5, func=c040fff8, arg=c1134008)
ixp425_intr_establish(irq=28, ipl=5, func=c04103fc, arg=c1130790)
ixp425_intr_establish(irq=27, ipl=5, func=c0410354, arg=c1130790)
ixp425_intr_establish(irq=26, ipl=5, func=c04102ac, arg=c1130790)
ixp425_intr_establish(irq=5, ipl=6, func=c04101d8, 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
cprng sysctl: WARNING insufficient entropy at creation.
boot device: <unknown>
root on npe0
nfs_boot: trying DHCP/BOOTP
nfs_boot: DHCP next-server: 192.168.77.250
nfs_boot: my_name=kinder
nfs_boot: my_domain=eddyp.homeunix.net
nfs_boot: my_addr=192.168.77.251
nfs_boot: my_mask=255.255.255.0
nfs_boot: gateway=192.168.77.1
root on 192.168.77.250:/export/netbsd-nslu2/root
root time: 0x54f77695
init: copying out path `/sbin/init' 11
Process (pid 1) got sig 11
Process (pid 1) got sig 11
Process (pid 1) got sig 11
Process (pid 1) got sig 11
Process (pid 1) got sig 11
Process (pid 1) got sig 11
Process (pid 1) got sig 11
Process (pid 1) got sig 11
Process (pid 1) got sig 11
Process (pid 1) got sig 11


Home | Main Index | Thread Index | Old Index