Subject: NetBSD 3.0 cobalt restore CD - success!
To: None <port-cobalt@netbsd.org>
From: Rowdy <rowdy@netspace.net.au>
List: port-cobalt
Date: 01/01/2006 16:26:04
Greetings and happy new year,

After a few false starts, help from the newsgroup, and a lot of reading,
I have succeeded in creating a NetBSD 3.0 cobalt restore CD that has
been used to successfully install NetBSD 3.0 onto a Qube 2.

Claudio has kindly offered to host the ISO, but I have a couple of final
questions.

Is there any point in including the X sets (xbase, xcomp, xetc, xfont
and xserver) in the restore CD?  The Qube has no attached monitor, and I
would not imagine it would be used to run X, however someone, somewhere
might want to.  Removing the files it would reduce the ISO size from
around 200M to around 150M.

Currently games are not installed, but games.tgz is included in the sets
directory.  Should games be included in the installed packages, or left
to the individual user?

I have used netbsd-GENERIC.gz (entire boot log below, in case anyone can
find anything anomalous).  I also compiled a new boot.gz bootloader from
the 3.0 sources.

I have patched a couple of files, as follows:

/nfsroot/install/scripts/install-core.sh:

1. copy netbsd-INSTALL.gz into wd0e:/boot (as a sort of emergency
recovery kernel)
2. copy INSTALL and GENERIC (conf files) into wd0e:/boot (for reference,
should someone want to compile their own kernel)
3. I meant to copy the 1.6 bootloader too, for testing, but it seems
that the 3.0 bootloader works fine
4. corrected /dev/panel0 (/dev/lcd) creation (originally by Andreas
Schaefer)

/nfsroot/install/files/etc/rc.shutdown:

1. echo shutdown messages to the LCD (originally by Andreas Schaefer)

And that's about it.

For reference, here is a list of files in wd0a:/boot:

-r--r--r--  1 root  wheel    14256 Jan  1 14:26 GENERIC
-r--r--r--  1 root  wheel    13552 Jan  1 14:26 INSTALL
-r--r--r--  5 root  wheel    22452 Jan  1 14:26 boot.gz
-r--r--r--  1 root  wheel  1218997 Jan  1 14:26 netbsd-GENERIC.gz
-r--r--r--  1 root  wheel   770446 Jan  1 14:26 netbsd-INSTALL.gz
-r--r--r--  1 root  wheel  1218997 Jan  1 14:26 netbsd.gz
-r--r--r--  5 root  wheel    22452 Jan  1 14:26 vmlinux-nfsroot.gz
-r--r--r--  5 root  wheel    22452 Jan  1 14:26 vmlinux.gz
-r--r--r--  5 root  wheel    22452 Jan  1 14:26 vmlinux_RAQ.gz
-r--r--r--  5 root  wheel    22452 Jan  1 14:26 vmlinux_raq-2800.gz

And below is the complete startup log (after I tweaked a couple of
settings: hostname, IP address, sshd etc.).

For reference, my Qube is a Cobalt Qube 2 with 16M RAM, a 20G 5400RPM
Seagate hard drive, nothing in the PCI slot, and connected to a 10/100
switch via the primary network interface.

And FWIW I have FTPed a 146M file (actually pkgsrc.tar) to, and then
from, the Qube without crashes.

Comments or suggestions welcome.  Questions welcome, but I certainly do
not claim to be an authority on any of this.

Rowdy



Cobalt Microserver Diagnostics - 'We serve it, you surf it'
Built Tue May 25 15:58:41 PDT 1999

  1.LCD Test................................PASS
  2.Controller Test.........................PASS
  5.Bank 0:.................................16M
  6.Bank 1:.................................0M
  7.Bank 2:.................................0M
  8.Bank 3:.................................0M
  9.Serial Test.............................PASS
10.PCI Expansion Slot....................**EMPTY**
12.IDE Test................................PASS
13.Ethernet Test...........................PASS
16.RTC Test................................PASS
BOOTLOADER ramcode: selected partition /dev/hda1
Decompressing -\|/-\|/-\|/-\| done
Executing bootloader kernel...
Decompressing -/ done.

 >> NetBSD/cobalt 3.0 Bootloader, Revision 0.1 [@0x80f00000]
 >> (root@cobalt, Sun Jan  1 10:42:07 UTC 2006)
 >> Memory:		16384 k
 >> PROM boot string:	root=/dev/hda1 ro
Boot [wd0a:netbsd]:
Loading: wd0a:netbsd
|/-\|2552896/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-+147900\ 
[86208|/-\|+77776/-\|/]=0x2bba08
Starting at 0x80001000

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
     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 3.0 (GENERIC) #0: Sun Dec 18 22:39:34 UTC 2005
	builds@b3.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/cobalt/200512182
024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/cobalt/compile/GENERIC
total memory = 16384 KB
avail memory = 13060 KB
mainbus0 (root)
com0 at mainbus0 addr 0x1c800000 level 3: st16650a, working fifo
com0: console
cpu0 at mainbus0: QED RM5200 CPU (0x28a0) Rev. 10.0 with built-in FPU 
Rev. 10.0
cpu0: 32KB/32B 2-way set-associative L1 Instruction cache, 48 TLB entries
cpu0: 32KB/32B 2-way set-associative write-back L1 Data cache
panel0 at mainbus0 addr 0x1f000000
gt0 at mainbus0 addr 0x14000000
pci0 at gt0
pci0: i/o space, memory space enabled, rd/line, wr/inv ok
pchb0 at pci0 dev 0 function 0: Galileo GT-64111 System Controller, rev 1
tlp0 at pci0 dev 7 function 0: DECchip 21143 Ethernet, pass 4.1
tlp0: interrupting at level 1
tlp0: Ethernet address 00:10:e0:00:d7:58
lxtphy0 at tlp0 phy 1: LXT970 10/100 media interface, rev. 3
lxtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pcib0 at pci0 dev 9 function 0
pcib0: VIA Technologies VT82C586 PCI-ISA Bridge, rev 39
viaide0 at pci0 dev 9 function 1
viaide0: VIA Technologies VT82C586 (Apollo VP) ATA33 controller
viaide0: bus-master DMA support present
viaide0: primary channel configured to compatibility mode
viaide0: primary channel interrupting at irq 14
atabus0 at viaide0 channel 0
viaide0: secondary channel configured to compatibility mode
viaide0: secondary channel interrupting at irq 15
atabus1 at viaide0 channel 1
VIA Technologies VT83C572 USB Controller (USB serial bus, revision 0x02) 
at pci0
  dev 9 function 2 not configured
tlp1 at pci0 dev 12 function 0: DECchip 21143 Ethernet, pass 4.1
tlp1: interrupting at level 2
tlp1: Ethernet address 00:10:e0:00:d7:3f
lxtphy1 at tlp1 phy 1: LXT970 10/100 media interface, rev. 3
lxtphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
Kernelized RAIDframe activated
wd0 at atabus0 drive 0: <ST320423A>
wd0: drive supports 32-sector PIO transfers, LBA addressing
wd0: 19536 MB, 39693 cyl, 16 head, 63 sec, 512 bytes/sect x 40011300 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
wd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
swapctl: adding /dev/wd0b as swap device at priority 0
Checking for botched superblock upgrades: done.
Starting file system checks:
/dev/rwd0a: file system is clean; not checking
/dev/rwd0f: file system is clean; not checking
/dev/rwd0g: file system is clean; not checking
Setting tty flags.
Setting sysctl variables:
Starting network.
Hostname: cobalt
Configuring network interfaces: tlp0.
add net default: gateway 192.168.2.1
Adding interface aliases:
Building databases...
Starting syslogd.
Checking for core dump...
savecore: no core dump
Mounting all filesystems...
Clearing /tmp.
Checking quotas: done.
Setting securelevel: kern.securelevel: 0 -> 1
Starting virecover.
Starting local daemons:.
Updating motd.
Starting sshd.
Starting inetd.
Starting cron.
Starting paneld.
Sun Jan  1 14:42:11 UTC 2006

NetBSD/cobalt (cobalt) (tty00)

login: