Subject: Re: Success! We have multi-user with swap over NFS! A few niggling
To: None <port-dreamcast@netbsd.org>
From: Andy Michaels <lego1974@optonline.net>
List: port-dreamcast
Date: 08/29/2002 08:00:31
Hey, Josh, that's great news.  Now, can you update that ancient how-to on 
the dreamcast port site :P ?  That'd be cool!

Andy

At 12:09 AM 8/29/2002 -0500, Josh Tolbert wrote:
>Hello Dreamcasters,
>         It's alive! The thing boots from CD, picks up DHCP info and mounts
>an nfs share. The only problem is it seems to boot with init -s, so it
>always starts single-user, which I have to then "exit" from to get it to
>go multi-user. Is there any way I can change that?
>
>         Dmesg output:
>
>Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002
>     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.6F (DREAMCAST) #0: Tue Aug 20 04:46:00 CDT 2002
>     root@netbsd.home.lan:/usr/src/sys/arch/dreamcast/compile/DREAMCAST
>SEGA Dreamcast
>total memory = 16384 KB
>avail memory = 12636 KB
>using 230 buffers containing 920 KB of memory
>mainbus0 (root)
>cpu0 at mainbus0: HITACHI SH4 199.600MHz PCLOCK 49.900 MHz
>8KB/32B direct-mapped Instruction cache.
>16KB/32B direct-mapped Data cache.
>P0, U0, P3 write-through P1 write-through
>full-associative 4 ITLB, 64 UTLB entries
>multiple virtual storage mode, SQ access: kernel, wired 61
>shb0 at mainbus0
>scif0 at shb0
>maple0 at shb0
>mapleA at maple0 port 0: Keyboard
>mkbd0 at mapleA: US keyboard
>wskbd0 at mkbd0 (mux ignored): console keyboard
>pvr0 at shb0: 640 x 480, 16bpp, VGA, RGB
>wsdisplay0 at pvr0 (kbdmux ignored): console (80x30, vt100 emulation),
>using wsk
>bd0
>gdrom0 at shb0: SH4 IRL 9
>g2bus0 at shb0
>gapspci0 at g2bus0: SEGA GAPS PCI Bridge
>pci0 at gapspci0 bus 0
>pci0: memory space enabled
>rtk0 at pci0 dev 0 function 0: SEGA Broadband Adapter
>rtk0: interrupting at SH4 IRL 11
>rtk0: Ethernet address 00:d0:f1:02:98:b9
>ukphy0 at rtk0 phy 7: Generic IEEE 802.3u media interface
>ukphy0: OUI 0x000000, model 0x0000, rev. 0
>ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
>md0: internal 1440 KB image area
>root on md0a dumps on md0b
>no file system for md0 (dev 0x1100)
>cannot mount root, error = 79
>root device (default md0a): rtk0
>dump device:
>file system (default generic):
>root on rtk0
>nfs_boot: trying DHCP/BOOTP
>nfs_boot: DHCP next-server: 192.168.0.21
>nfs_boot: my_name=dreamcast
>nfs_boot: my_domain=home.lan
>nfs_boot: my_addr=192.168.0.22
>nfs_boot: my_mask=255.255.255.0
>nfs_boot: gateway=192.168.0.5
>root on 192.168.0.21:/usr/local/dc
>root file system type: nfs
>
>         /etc/fstab is:
>
>192.168.0.21:/usr/local/dc / nfs rw,auto 0 0
>192.168.0.21:/usr/local/swap none swap sw,nfsmntpt=/swap 0 0
>
>I know I'm missing /kern and /proc; I'm going to add those soon.
>
>dreamcast: {7} swapctl -lk
>Device      1K-blocks     Used    Avail Capacity  Priority
>/swap           32768        0    32768     0%    0
>
>         I need to compile a new kernel with the memory disk stuff removed
>and with the boot device set to rtk0, but other than that there's not much
>else to do with the kernel.
>         I can ssh to it, ssh from it, add users and make it do all sorts
>of neat tricks, but there's pieces missing. I don't have any terminal
>definitions at all, and since I'm not very familiar with NetBSD I don't
>know where to get them. Those must have been part of the world that would
>have got built after the point where my cross-compile world build broke.
>Also missing are manpages and other docs.
>         So, my two main problems are a) booting to single-user, then
>having to "exit" to multi-user, and b) missing pieces. I think a is
>something I'm just overlooking; maybe something IP.BIN and b could
>probably be solved by grabbing the latest -current source and compiling
>everything from scratch...On the Dreamcast...Via NFS...With swap on NFS.
>Possibly I could solve b by grabbing terminal info from an existing
>(working) install, but I'm not sure where that info is.
>         Can you guys help me fill in the gaps?
>         Alex, you were right. NFS-mounting things is so much easier than
>using a CD for everything.
>
>Thanks,
>Josh
>
>------     ---   -
>Josh Tolbert
>hemi@scoundrelz.net
>
>Every time the power flickers, a squirrel gets his wings.