Subject: Could you tell me the exact installation of netbsd/sparc64 ?
To: None <port-sparc64@netbsd.org>
From: Eiji Ota <eiji@fs.fujitsu.com>
List: port-sparc64
Date: 04/11/2000 19:55:01
Hi guys,

I'm trying installing netbsd/sparc64(the current snapshots) on Ultra1,
 but I can't. Could you tell me how to install it ?

My way to install is as follows. I can't find out why it can't
recognize /sbin/init.

	1. placing netbsd.32 and ofwboot.32 under / as netbsd and 
	   ofwboot.

		#  ls /netbsd /ofwboot
		/netbsd   /ofwboot

	2. inactivating swap and copying miniroot into it

		# swap -d /dev/dsk/c0t0d0s1
		/dev/dsk/c0t0d0s1 was dump device --
		invoking dumpadm(1M) -d swap to select new dump device
		dumpadm: no swap devices are available
		# dd if=miniroot-14P.fs of=/dev/rdsk/c0t0d0s1 bs=8192
		768+0 records in
		768+0 records out

	3. extracting binaries from the archive file and put them
	   under another partition(say /dev/dsk/c0t0d0s3)

		# ls
		bin              mnt              sbin             usr.lib.tar
		bin.tar          netbsd           sbin.tar         usr.libexec.tar
		dev              netbsd.32        sys              usr.misc.tar
		dev.tar          netbsd.64        tmp              usr.sbin.tar
		etc              ofwboot          usr              usr.share.tar
		etc.tar          ofwboot.32       usr.bin.tar      var
		lost+found       ofwboot.net      usr.games.tar    var.tar
		miniroot-14P.fs  root             usr.include.tar

	4. rebooting 

		# reboot -- 'ofwboot -as'

	5. typing /ofwboot and /netbsd while booting

		Rebooting with command: boot ofwboot -as                              
		Boot device: /sbus/espdma@e,8400000/esp@e,8800000/sd@0,0  File and args: ofwboot -as
		Enter filename [ofwboot]:  /ofwboot
				  ~~~~~~~~~~
		>> NetBSD/sparc64 OpenFirmware Boot, Revision 
		>> (eeh@nonplus, Sat Nov 21 08:25:45 PST 1998)
		Boot: /netbsd
		     ~~~~~~~~
	6. typing "go" in the OBP prompt

		You said /netbsd
		parseargs says you said /netbsd
		devopen: you want /netbsd
		filename: OF_finddevice(/netbsd) sez ffffffff
		filename: found /netbsd
		devopen: trying /sbus@1f,0/espdma@e,8400000/esp@e,8800000/sd@0,0
		devopen: found /sbus@1f,0/espdma@e,8400000/esp@e,8800000/sd@0,0
		devopen: /sbus@1f,0/espdma@e,8400000/esp@e,8800000/sd@0,0 is called sd
		devopen: /sbus@1f,0/espdma@e,8400000/esp@e,8800000/sd@0,0 is a block device
		devopen: opening /sbus@1f,0/espdma@e,8400000/esp@e,8800000/sd@0,0:0
		devopen: /sbus@1f,0/espdma@e,8400000/esp@e,8800000/sd@0,0:0 is now open
		devopen: trying to read disklabel from sector 0 to 0x3fcd4
		strategy: block 0, partition offset 0, blksz 200
		strategy: seek position should be: 0
		strategy: seeking to 0
		strategy: reading 2000 at 0x3fcd4
		Type  'go' to resume
		ok go
		   ~~
	7. typing sd0d as a root device(/dev/dsk/c0t0d0s03)

				:
		strategy: seek position should be: 9dc000
		strategy: seeking to 0
		strategy: reading 2000 at 0xfff6e010
		 start=0xf8000000
		chain: calling OF_chain(20000, 22034, f8000000, 3e6a8, c)
		OF_chain: prom returned!
		[ preserving 168440 bytes of netbsd symbol table ]
		Failed to map msgbuf
		~~~~~~~~~~~~~~~~~~~~ Is it OK ?
		consinit()
		setting up stdin
		stdin instance = fffe8340
		stdin package = f005a174
		setting up stdout
		stdout instance = fffe8700
		stdout package = f005a174
		console is ttya
		Copyright (c) 1996, 1997, 1998
		    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.3I (NONPLUS) #252: Sun Nov 22 15:22:34 PST 1998
		    eeh@nonplus:/export/home2/working/src/sys/arch/sparc64/compile/NONPLUS
		real mem = 67108864
		avail mem = 59351040
		using 409 buffers containing 3350528 bytes of memory
		bootpath: /sbus@1f,0/espdma@e,8400000/esp@e,8800000/sd@0,0
		mainbus0 (root): SUNW,Ultra-1
		cpu0 at mainbus0: SUNW,UltraSPARC @ 167 MHz, version 0 FPU
		cpu0: physical 4K instruction (32 b/l), 4K data (32 b/l), 2048K external (64 b/l) 
		timer0 at mainbus0 addr 0xfffc3c00 irq vectors 7f0 and 7f1
		sbus0 at mainbus0 addr 0xfffcc000: clock = 25 MHz
		SUNW,CS4231 at sbus0 slot 13 offset 0xc000000 vector 24 ipl 0 not configured
		auxio at sbus0 slot 15 offset 0x1900000 not configured
		flashprom at sbus0 slot 15 offset 0x0 not configured
		SUNW,fdtwo at sbus0 slot 15 offset 0x1400000 vector 29 ipl 11 not configured
		clock0 at sbus0 slot 15 offset 0x1200000: mk48t59 (eeprom) hostid 8079f3b7
		zs0 at sbus0 slot 15 offset 0x1100000 vector 28 ipl 12 softpri 6
		zstty0 at zs0 channel 0 (console)
		zstty1 at zs0 channel 1
		zs1 at sbus0 slot 15 offset 0x1000000 vector 28 ipl 12 softpri 6
		kbd0 at zs1 channel 0
		ms0 at zs1 channel 1
		sc at sbus0 slot 15 offset 0x1300000 not configured
		SUNW,pll at sbus0 slot 15 offset 0x1304000 not configured
		dma0 at sbus0 slot 14 offset 0x8400000: rev 2
		esp0 at dma0 slot 14 offset 0x8800000 vector 20 ipl 3: ESP200, 40MHz, SCSI ID 7
		scsibus0 at esp0: 8 targets
		probe(esp0:0:0): max sync rate 10.00Mb/s
		sd0 at scsibus0 targ 0 lun 0: <SEAGATE, ST32430W SUN2.1G, 0508> SCSI2 0/direct fixed
		sd0: 2049MB, 3992 cyl, 9 head, 116 sec, 512 bytes/sect x 4197405 sectors
		~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
		probe(esp0:6:0): max sync rate 4.23Mb/s
		cd0 at scsibus0 targ 6 lun 0: <TOSHIBA, XM-4101TASUNSLCD, 1084> SCSI2 5/cdrom removable
		ledma0 at sbus0 slot 14 offset 0x8400010: rev 2
		le0 at ledma0 slot 14 offset 0x8c00000 vector 21 ipl 6: address 08:00:20:79:f3:b7
		le0: 8 receive buffers, 2 transmit buffers
		SUNW,bpp at sbus0 slot 14 offset 0xc800000 vector 22 ipl 0 not configured
		cgsix0 at sbus0 slot 2 offset 0x0 vector 5 ipl 5: SUNW,501-2253, 1152 x 900, rev 11
		root device (default sd0a): sd0d
					    ~~~~~
		dump device (default sd0b): 
		file system (default generic): 
		root on sd0d dumps on sd0b
		mountroot: trying msdos...
		mountroot: trying cd9660...
		mountroot: trying nfs...
		mountroot: trying ffs...
		root file system type: ffs
		init: copying out flags `-s' 3
		init: copying out path `/sbin/init' 11
		exec /sbin/init: error 8
		init: copying out flags `-s' 3
		init: copying out path `/sbin/oinit' 12
		init: copying out flags `-s' 3
		init: copying out path `/sbin/init.bak' 15
		init: not found
		~~~~~~~~~~~~~~~~
		panic: no init
		~~~~~~~~~~~~~~~
		kdb breakpoint at 0x0
		Stopped in swapper at   Debugger+0x4:   nop
		db> 

		/sbin/init is in /dev/dsk/c0t0d0s3.
		How come can't it find it out ?

Thank you in advance.

Eiji