Subject: Re: Issues netbooting 7043
To: Tim Rightnour <root@garbled.net>
From: ober <ober@linbsd.org>
List: port-prep
Date: 06/14/2006 08:16:27
-Ober


On Tue, 13 Jun 2006, Tim Rightnour wrote:

> Date: Tue, 13 Jun 2006 23:09:36 -0700 (MST)
> From: Tim Rightnour <root@garbled.net>
> To: ober <ober@linbsd.org>
> Cc: port-prep@NetBSD.org
> Subject: Re: Issues netbooting 7043
> 
>
> On 14-Jun-2006 ober wrote:
>> No the nfs root filesystem is a amd64.
>> Not sure why the kernel looks for wd0a, as it has never been configured
>> accorrdingly.
>
> on your NFS server (I assume the amd64 machine) whose IP addr is 24.153.143.183,
> could you show me:
>
> cat /stuff/prep/etc/fstab
colbert:/stuff/prep  /  nfs rw 1 1
/swap none      swap sw 0 0
colbert:/stuff/pkgsrc /usr/pkgsrc nfs rw
colbert:/stuff/pkg_ppc /usr/pkg nfs rw

> file /stuff/prep/sbin/init
/stuff/prep/sbin/init: ELF 32-bit MSB executable, PowerPC or cisco 4500, 
version 1 (SYSV), for NetBSD 3.0, dynamically linked (uses shared libs), 
not stripped
> cat /stuff/prep/etc/ttys
#
#       from: @(#)ttys  5.1 (Berkeley) 4/17/89
#       $NetBSD: ttys,v 1.7 2004/06/20 21:30:27 christos Exp $
#
# name  getty                           type    status          comments
#
console "/usr/libexec/getty std.38400"  vt100   off secure
ttyE0   "/usr/libexec/getty std.9600"   vt100   on secure
tty00   "/usr/libexec/getty std.38400"  vt100   on secure
tty01   "/usr/libexec/getty std.9600"   unknown off secure
tty02   "/usr/libexec/getty std.9600"   unknown off secure
tty03   "/usr/libexec/getty std.9600"   unknown off secure
tty04   "/usr/libexec/getty std.9600"   unknown off secure
tty05   "/usr/libexec/getty std.9600"   unknown off secure
tty06   "/usr/libexec/getty std.9600"   unknown off secure
tty07   "/usr/libexec/getty std.9600"   unknown off secure

> ls /stuff/prep/dev
Tons of stuff.
everything sh MAKEDEV all generates.
>
> Also.. did you say previously that you can boot fine in single user, but if it
> goes multi it dies?  That leads me to believe something in /stuff/prep is,
> well, stuffed.  :)  What kind of prep userland is that?  Is it a 3.0 build, or
> did you grab a -current snapshot.
>
The userland is infact from 3.0. I have been using it with a 3.0 kernel 
fine with my 7248. It netboots this same directory as root filesystem 
without a problem.

> Also.. one other thing that unnerves me.. I have a machine that NFS's root as
> well..  and when I built that one, I had a mostly empty dev tree...IE:
> polaris# ls /usr/src/distrib/dev
> MAKEDEV         MAKEDEV.local   altq            fd              log
Yes, I netboot all my primary servers, so I am very use to sh MAKEDEV all.
I no doubt did this from amd64 without error.
7248 has no apparant issues so far.
>
> How did you build yours?  Did you run MAKEDEV from the amd64 box? When mine
> boots, I get:
>
3.0 prep tgz files were just untarred, sh MAKEDEV all, and a couple of 
changes to rc.conf
> nfs_boot: gateway=192.168.10.11
> root on polaris.garbled.net:/usr/src/distrib
> root file system type: nfs
> warning: no /dev/console
> init: Creating mfs /dev (407 blocks, 1024 inodes)
> Tue Jun 13 13:37:55 UTC 2006
>
> And one final question:
> boot device: ex0
> root on ex0
>
> Do you type that in, or is that automatically probed?  If thats automatically
> probed..  umm.. wow.. thats cool.  :)  You *are* netbooting off the ex card,
> and not the pcn builtin.. right?
Odd thing, on pcn0 it would prompt me for boot device.
However, changing the boot list to the ex0 does not prompt me, and 
continues all the way to multiuser before dropping once it hits rc.conf 
since rc_configured=NO is set to allow me to login.
Then I fire up /etc/rc.d/sshd and mount /usr/pkgsrc and /usr/pkg
And everything works fine from there on out.
  >
> My assumption is that your /dev/console device is broken, or your /etc/ttys
> points to the wrong thing.. but I'm not entirely sure about it.
Good point.
just wondering why it works so well on 7248 but not the 7043.

Thanks again for the help, and the good work on making this port active 
again. :D
>
>
> ---
> Tim Rightnour <root@garbled.net>
> NetBSD: Free multi-architecture OS http://www.netbsd.org/
> Genecys: Open Source 3D MMORPG: http://www.genecys.org/
>