Subject: Re: NFS root problems [Was: Re: Kernel cross build problems]
To: Ben Harris <bjh21@netbsd.org>
From: Ian Fry <Ian.Fry@sophos.com>
List: port-arm26
Date: 11/20/2001 09:55:32
--YZ5djTAD1cGYuMQK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Sun, Nov 18, 2001 at 03:49:54PM +0000, Ben Harris wrote:
> On Tue, 13 Nov 2001, Ian Fry wrote:
> > So, of these, only an 8k file produces an 8k file! Anything less than
> > 8k produces a zero size file, and anything above 32k (including 32k)
> > produces a file 24k too short. Hmmm...
> Both of those bugs are now either fixed or worked around, depending on
> your point of view. You'll want pmap.c 1.35 or later.
Success! With the latest pmap.c (1.36), I can boot multi-user (you have to
boot single user and enable swap first, though). I've attached a dmesg from
the boot.
Is there any way to get swap enabled earlier for netbooting? I looked at the
rc.d scripts, and swap2 enables swap on network devices, but it gets run far
too late to be useful.
I tried doing a few things and pretty much everything I tried works:
traceroute, ping, vi (although it was a bit tricky due to terminal settings),
restarting services via /etc/rc.d/<script>, file. However, host does not
work, it fails with 'unable to allocate memory' and ldd fails with 'unable to
mmap bss'. I don't have 'options KTRACE' in my kernel config, so I can't
currently track down exactly what is failing.
Ian.
--YZ5djTAD1cGYuMQK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="dmesg.boot"
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001
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 1.5Y (A4000) #4: Mon Nov 19 22:13:12 GMT 2001
ief@neo.localnet:/mnt/source/kernels/A4000
total memory = 4096 KB
avail memory = 2272 KB
using 16 buffers containing 256 KB of memory
cpu0 (root): ARM250
iobus0 (root)
ioc0 at iobus0 base 0x200000
iic0 at ioc0
rtc0 at iic0 addr 0xa0: PCF8583, 32.768 kHz clock
ioeb0 at ioc0 bank 5
arckbd0 at ioc0 bank 0 offset 0x04
arcwskbd0 at arckbd0
wskbd0 at arcwskbd0: console keyboard
arcwsmouse0 at arckbd0
wsmouse0 at arcwsmouse0
podulebus0 at ioc0 bank 4
eh0 at podulebus0 slot 1: 8-bit, 32 KB RAM, 10BASE-T only
eh0: Ethernet address 00:c0:32:00:81:37
upc0 at iobus0 base 0x010000: config state bb 87 1c 00 00
fdc at upc0 offset 0x3f4 not configured
wdc0 at upc0 offset 0x1f0
wd0 at wdc0 channel 0 drive 0: <Conner Peripherals 85MB - CP30084E>
wd0: drive supports 16-sector PIO transfers, chs addressing
wd0: 83076 KB, 903 cyl, 4 head, 46 sec, 512 bytes/sect x 166152 sectors
lpt0 at upc0 offset 0x278
com0 at upc0 offset 0x3f8: ns8250 or ns16450, no fifo
arcvideo0 (root)
wsdisplay0 at arcvideo0: console (arccons, dumb emulation), using wskbd0
arckbd0: layout 1
cpu0: 10000 loops in 11596 microseconds, delay factor = 1
root device: eh0
dump device:
file system (default generic):
root on eh0
cpu_dumpconf: Doing something here would be useful
nfs_boot: trying BOOTP
nfs_boot: BOOTP next-server: 192.168.100.1
nfs_boot: my_domain=localnet
nfs_boot: my_addr=192.168.100.62
nfs_boot: my_mask=255.255.255.0
root on 192.168.100.1:/mnt/export/arm/root
root file system type: nfs
pid 10: VM shortage, sleeping
pid 11: VM shortage, sleeping
pid 10: VM shortage, sleeping
pid 11: VM shortage, sleeping
pid 10: VM shortage, sleeping
pid 11: VM shortage, sleeping
pid 10: VM shortage, sleeping
pid 11: VM shortage, sleeping
--YZ5djTAD1cGYuMQK--