You might also consider reading Miss Madison has arrived! or BSU Portfolio.

13 Jul Wed 05

NetBSD 2.0 notes

I need a place to keep some notes about installing NetBSD 2.0 on my Cobalt Raq2, which was recently upgraded with a 120GB HD.

Settings for communicating across the serial port:

115200 bps
8 bits
1 stop bit
N parity

Here is the output from bootup:

>> NetBSD/cobalt 3.99.3 Bootloader, Revision 0.1 [@0x80f00000]
>> (root@netbsd20.s-zone.org, Sat May 14 13:10:34 CEST 2005)
>> Memory: 65536 k
>> PROM boot string: root=/dev/hda1 ro
Boot [wd0a:netbsd]:
Loading: wd0a:netbsd
2618464+148172 [83280+74820]=0x2ca464
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.99.7 (GENERIC) #0: Sun Jul 3 11:00:03 CEST 2005
root@netbsd20.diskless.s-zone.org:/Data/NetBSD/cobalt/obj/sys/arch/cobal
t/compile/GENERIC
total memory = 65536 KB
avail memory = 61160 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:52:ba
lxtphy0 at tlp0 phy 1: LXT970 10/100 media interface, rev. 3
lxtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
siop0 at pci0 dev 8 function 0: Symbios Logic 53c860 (ultra scsi)
siop0: interrupting at irq 4
scsibus0 at siop0: 8 targets, 8 luns per target
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:52:e0
lxtphy1 at tlp1 phy 1: LXT970 10/100 media interface, rev. 3
lxtphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
Kernelized RAIDframe activated
scsibus0: waiting 2 seconds for devices to settle...
wd0 at atabus0 drive 0:
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 111 GB, 232632 cyl, 16 head, 63 sec, 512 bytes/sect x 234493056 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
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: 13442 files, 135904 used, 56208762 free (666 frags, 7026012 blocks,
0.0% fragmentation)
/dev/rwd0a: MARKING FILE SYSTEM CLEAN
/dev/rwd0f: FREE BLK COUNT(S) WRONG IN SUPERBLK (SALVAGED)
/dev/rwd0f: SUMMARY INFORMATION BAD (SALVAGED)
/dev/rwd0f: BLK(S) MISSING IN BIT MAPS (SALVAGED)
/dev/rwd0f: 115 files, 233 used, 1032150 free (62 frags, 129011 blocks, 0.0% fra
gmentation)
/dev/rwd0f: MARKING FILE SYSTEM CLEAN
/dev/rwd0g: file system is clean; not checking
Setting tty flags.
Setting sysctl variables:
Starting network.
Configuring network interfaces:.
Adding interface aliases:
Starting dhclient.
Internet Software Consortium DHCP Client V3.0.1rc11
Copyright 1995-2002 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

No bpf devices. Please read the README section for your operating system.

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.
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 inetd.
Starting cron.
Starting paneld.
Jul 13 16:38:41 paneld[472]: cannot attach to device hd44780, node /dev/lcd
Wed Jul 13 16:38:41 UTC 2005

NetBSD/cobalt (Amnesiac) (tty00)

To get the LCD panel working, as root type:

# cd /dev
# ./MAKEDEV panel
# rm /dev/lcd
# ln -s /dev/panel0 /dev/lcd

(from here)

Edit some network settings:

# echo '348north.com' > /etc/defaultdomain
# echo '10.0.1.5 raq.348north.com raq' > /etc/hosts
# echo 'inet 10.0.1.5 netmask 255.255.255.0' > /etc/ifconfig.tlp0
# echo '10.0.1.1' > /etc/mygate
# echo 'raq.348north.com' > /etc/myname

Also need to create /etc/resolv.conf as so:

domain 348north.com
search 348north.com
nameserver 10.0.1.1

Now I need to get pkgsrc:

# cd
# ftp
ftp> open ftp.NetBSD.org
ftp> cd pub/NetBSD/NetBSD-current/tar_files/
ftp> get pkgsrc.tar.gz
ftp> exit
# tar -xzvf ~/pkgsrc.tar.gz -C /usr
# rm pkgsrc.tar.gz

And, of course, my first package:

# cd /usr/pkgsrc/sysutils/webmin
# make install

(which of course installs several other packages)

There’s more, of course — like disabling telnet and setting a root password, but I’ll leave something to the imagination.

 

written by Kevin in web stuff