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)



Please Ignore the first part of the log where apparently I copy-pasted
too much initially (there was a user error in the boot attempt right
before the one I was talking about).

In the quote below I removed the irelevant part, so the log should be
just clean now.

2015-03-05 22:51 GMT+02:00 Eddy Petrișor <eddy.petrisor%gmail.com@localhost>:
> 2015-03-05 10:15 GMT+02:00 Nick Hudson <skrll%netbsd.org@localhost>:
>> On 03/04/15 21:31, Eddy Petrișor wrote:
>>>
>>> I retried building an older version and encountered a somewhat
>>> different problem (entire boot log is attached):
>>>
>> Hi,
>>
>> Can you post full dmesg, please?
>
> I sent it as attachment in my previous message (it was a copy-paste
> from the serial console), but here it is again in the body of the
> mail.
>
[removed irrelevant part]

> [..] ��+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
>
>
>> Could you be mixing ABIs?
>
> I am not doing anything explicit about changing ABIs, unless the
> build.sh script doesn't do that itself.
>
> I even automated the build for NSLU2 to try to identify via git
> bisect, the script is below:
>
>
> ============================
> #!/bin/sh
> set -e
>
> git clean -x -f -d
>
> cp ../NSLU2_ALL sys/arch/evbarm/conf/
> cp ../IxNpeMicrocode.dat sys/arch/arm/xscale/
>
> ./build.sh -j 3 -U -m evbarm -a armeb tools
> ./build.sh -j 3 -u -U -m evbarm -a armeb build
> ./build.sh -j 3 -u -U -m evbarm -a armeb -V KERNEL_SETS=NSLU2_ALL release
>
> ls -l obj/releasedir/evbarm/binary/sets
> ============================
>
> I also made a script to automate the copying, unpacking, configuration
> and deployment of the sets and kernel image:
> ============================
> #!/bin/sh
>
> set -e
>
> if [ $(id -u) -ne 0 ]; then
>     echo 'This script should be run as uid=0 to set the correct permissions'
>     exit 1
> fi
>
> srcdir=$(pwd)
>
> NETBSDOUT=/media/SonyExt4/netbsd/$(git describe --always)
> NETBSDRFS=${NETBSDOUT}/root
> SETSDIR=${srcdir}/obj/releasedir/evbarm/binary/sets
>
> mkdir -p ${NETBSDRFS}
> mkdir -p ${NETBSDOUT}/home
> mkdir -p ${NETBSDRFS}/swap
> swapf=${NETBSDOUT}/swap
> touch ${swapf}
> dd if=/dev/zero of=${swapf} bs=4k count=4k
> chmod 600 ${swapf}
> unset swapf
>
> #cp obj/releasedir/evbarm/binary/sets/* $NETBSDOUT/
>
> for bsdset in base etc misc modules text kern-NSLU2_ALL ; do
>     tar --numeric-owner -xvpzf $SETSDIR/$bsdset.tgz -C $NETBSDOUT/root/
> done
>
> mknod=$srcdir/obj/tooldir.$(uname -s)-$(uname -r)-$(uname -m)/bin/nbmknod
> cd $NETBSDOUT/root/dev && sh ./MAKEDEV -m $mknod all && cd -
>
> cat <<EOHOSTS >>${NETBSDOUT}/root/etc/hosts
> 192.168.77.251  kinder
> 192.168.77.1    toblerone
> 192.168.77.250  ritter nfsserver
> EOHOSTS
>
> cat <<EOFSTAB > ${NETBSDOUT}/root/etc/fstab
> #/etc/fstab
> nfsserver:/export/netbsd-nslu2/swap   none  swap  sw,nfsmntpt=/swap
> nfsserver:/export/netbsd-nslu2/root   /     nfs   rw 0 0
> nfsserver:/export/netbsd-nslu2/usr    /usr  nfs   rw 0 0
> nfsserver:/export/netbsd-nslu2/home   /home nfs   rw 0 0
> EOFSTAB
>
> echo 'inet client netmask 255.255.255.0 broadcast 192.168.77.251' >
> ${NETBSDRFS}/etc/ifconfig.npe0
>
> sed -i 's|^#telnet|telnet|' ${NETBSDRFS}/etc/inetd.conf
>
> export rcconf=${NETBSDRFS}/etc/rc.conf
> sed -i 's@rc_configured=.*@rc_configured=YES@' $rcconf
> cat <<EORCCONF >>$rcconf
> sshd=YES
> hostname="kinder"
> defaultroute="192.168.77.1"
> nfs_client=YES
> auto_ifconfig=NO
> net_interfaces=""
> EORCCONF
> unset rcconf
>
> # prepare copy
> cat <<EOCOPY >$NETBSDOUT/copy.sh
> #!/bin/sh
>
> HASH=\$(basename "$NETBSDOUT")
> rm -fr /export/netbsd-nslu2
> cp -ar /mnt/netbsd/\${HASH} /export/netbsd-nslu2
> rm -f /srv/tftp/netbsd-nfs.bin
> cp -a /export/netbsd-nslu2/root/netbsd-nfs.bin /srv/tftp/netbsd-nfs.bin
> EOCOPY
> chmod +x $NETBSDOUT/copy.sh
>
> echo "Changes done in ${NETBSDRFS}."
>
> ===============================
>
>
> P.S.: Sorry for the empty messages, apparently gmail activated some
> automatic vacation reply somehow. I disabled it now.
>
>
> --
> Eddy Petrișor



-- 
Eddy Petrișor



Home | Main Index | Thread Index | Old Index