Subject: Re: Crosscompiling for evbarm - working, but more questions
To: None <port-arm@netbsd.org>
From: Richard =?iso-8859-1?q?K=E4stner?= <richard.kaestner@kabsi.at>
List: port-arm
Date: 12/09/2006 22:31:03
I finally managed to cross compile all - thanks for all infos and help!
However, to save time, I would like to boot 'diskless' or provide an md-image.
Neither of them I got to work ...
I can boot with USB-Disk (/usr via NFS)
I can't setup a memory disk in a bootable kernel
I can't boot a kernel with root on NFS
1. how to setup memory disk:
how do I get 'netbsd-sd0.bin' from 'netbsd-sd0' + md-image for
loading with RedBoot without doing a 'distribution'?
( /usr/src/distrib/evbarm ?)
Here is what mdsetimage says:
epia1(root) OLIMEX_EP9301_INSTALL> mdsetimage -vx netbsd-epe0
netbsd-epe0-IMAGE
got symbols from netbsd-epe0
mapped netbsd-epe0
copying image netbsd-epe0-IMAGE from netbsd-epe0
done copying image
exiting
epia1(root) OLIMEX_EP9301_INSTALL> mdsetimage -vx netbsd-epe0.bin
netbsd-epe0.bin-IMAGE
check format: File format not recognized
... so I didn't even try to set an md-image
2. bootp / dhcp does not work
I simply get "nfs_boot: timeout..."
Server doesn't get any request
(BTW: dhclient also doesn't work from the Olimex provided 3.0 NetBSD,
and my dhcp-server is verified to work!)
The 'diskless' Documents are not very expressive about sepcifics for the
ARM-ports.
Things work, when using an USB-disk and NFS-mount /usr ... but that's what
I would like to avoid
Kernel Config:
config netbsd-epe0 root on epe0 type nfs
epe0 at epsoc? addr 0x80010000 size 0x10000 intr 39
options NFS_BOOT_BOOTP
options NFS_BOOT_DHCP
Here is a boot-log, trying DHCP:
RedBoot>
RedBoot> load -v -h 10.200.1.60 -m http -r -b
0x00200000 /ftp/pub/NetBSD/DIRECT_OBJ/sys/arch/evbarm/compile/OLIMEX_EP9301/netbsd-epe0.bin
Raw file loaded 0x00200000-0x004c041b, assumed entry at 0x00200000
RedBoot> go
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
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.5 (OLIMEX_EP9301) #2: Sat Dec 9 15:09:31 CET 2006
root@epia1:/usr/www/pages/ftp/pub/NetBSD/evbarm-4-current/OBJ/usr/www/pages/ftp/pub/NetBSD/evbarm-4-current/SRC/sys/arch/evbarm/compile/OLIMEX_EP9301
total memory = 32768 KB
avail memory = 28280 KB
mainbus0 (root)
cpu0 at mainbus0: ARM920T rev 0 (ARM9TDMI core)
cpu0: DC enabled IC enabled WB enabled EABT
cpu0: 16KB/32B 64-way Instruction cache
cpu0: 16KB/32B 64-way write-back-locking-A Data cache
epsoc0 at mainbus0: Cirrus Logic EP93xx SoC rev E0
epsoc0: fclk 166.02 MHz hclk 66.41 MHz pclk 33.20 MHz
epclk0 at epsoc0 addr 0x80810000-0x8081008f intr 35
epgpio0 at epsoc0 addr 0x80840000-0x808400cb intr 59
gpio0 at epgpio0: port A: 8 pins
gpio1 at epgpio0: port B: 8 pins
gpio2 at epgpio0: port C: 8 pins
gpio3 at epgpio0: port D: 8 pins
gpio4 at epgpio0: port E: 8 pins
gpio5 at epgpio0: port F: 8 pins
gpio6 at epgpio0: port G: 8 pins
gpio7 at epgpio0: port H: 8 pins
ohci0 at epsoc0 addr 0x80020000-0x80020fff intr 56
epe0 at epsoc0 addr 0x80010000-0x8001ffff intr 39
epe0: MAC address 78:56:34:12:1c:32
ukphy0 at epe0 phy 0: Generic IEEE 802.3u media interface
ukphy0: OUI 0x006011, model 0x0020, rev. 5
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ukphy1 at epe0 phy 1: Generic IEEE 802.3u media interface
ukphy1: OUI 0x006011, model 0x0020, rev. 5
ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ifmedia_match: multiple match for 0x20/0xfffffff, selected instance 0
epcom0 at epsoc0 addr 0x808c0000-0x808c0fff intr 52
epcom0: console
epcom1 at epsoc0 addr 0x808d0000-0x808d0fff intr 54
epwdog0 at epsoc0 addr 0x80940000-0x80940007 intr 36
eprtc0 at epsoc0 addr 0x80920000-0x8092010b intr 37
ohci0: OHCI version 1.0
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Cirrus Logic OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
umass0 at uhub0 port 3 configuration 1 interface 0
umass0: NEC Electronics USB 2.0 IDE Bridge, rev 2.00/0.00, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <IBM, DJNA-351520, J56O> disk fixed
sd0: 14664 MB, 29795 cyl, 16 head, 63 sec, 512 bytes/sect x 30033360 sectors
boot device: <unknown>
root on epe0
nfs_boot: trying DHCP/BOOTP
nfs_boot: timeout...
nfs_boot: timeout...
nfs_boot: timeout...
cannot mount root, error = 60
root device (default epe0):
One more question:
during boot, I can see 'epgpio0' and 'gpio' but in /dev I only see 'gpio' ...
similar with 'eprtc', 'epwdog'
what am I missing?
Thanks for help!
Richard
--
Richard Kaestner
IT-Consulting - Training - Development
Woerthgasse 17
A-2500 Baden
Austria
richard.kaestner@ycn.com
richard.kaestner@kabsi.at