[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NWS-{3460,5000} (Re: NWS-3xxx)



島岡@中治先生の隣の学生です

報告が遅くなりまして大変申し訳ありません。
結論から言いますと,SPARC station に HDD を接続し,

  sparc# cd /mnt/usr/mdec
  sparc# cp boot /mnt
  sparc# installboot -m newsmips bootxx boot

とすることで起動できました。
ありがとうございました。

> installboot: Need `-B bno' for raw file systems
> installboot: Set bootstrap operation failed
> と怒られたのだとすると指定した filesystem を ffs と
> 理解してもらえなかったんだと思いますが、なんか option の
> 指定を間違えてないですかねえ。

いろいろと installbooot を試しているうちに起動するようになってしまったた
め,再度初期状態に戻し,まず初めに,-m newsmips だけをつけてやったらどの
ようなエラーメッセージが出るかをメモしようと思いました。
しかしやってみると,エラーがでず,しかも接続するとちゃんと NetBSD が起動
してしまったので,エラーが再現できず,という状態です。

以下,行った手順を示します。

用意したものは,
  ○ NWS-3460
  ○ SPARC station LX ( NetBSD 2.0-RELEASE )
  ○ 外付け SCSI HDD ( ID は 5 に設定 )
です。

まず,sparc に接続して disklabel を保存し,少し書換えました。

sparc# disklabel /dev/sd2c > ~/sd2c.label
sparc# cat ~/sd2c.label
# /dev/sd2c:
type: SCSI
disk: mydisk
label: fictitious
flags:
bytes/sector: 512
sectors/track: 126
tracks/cylinder: 8
sectors/cylinder: 1008
cylinders: 4243
total sectors: 4308352
rpm: 5403
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

3 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:   4036032         0     4.2BSD   2048 16384 26192  # (Cyl.      0 -   4003)
 b:    272160   4036032       swap                     # (Cyl.   4004 -   4273)
 c:   4308352         0     unused      0     0        # (Cyl.      0 -   4274*)
sparc# ed ~/sd2c.label
628
/^ a:
 a:   4036032         0     4.2BSD   2048 16384 26192  # (Cyl.      0 -   4003)
s/2048 16384 26192/0 0 0/p
 a:   4036032         0     4.2BSD   0 0 0  # (Cyl.      0 -   4003)
wq
617

次に,先頭をつぶし,0 になっていることを確認しました。

sparc#  dd if=/dev/zero of=/dev/sd2c bs=1024 count=100
100+0 records in
100+0 records out
102400 bytes transferred in 0.225 secs (455111 bytes/sec)
sparc# od -c /dev/sd2c | head
sd2: no disk label
0000000   \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
*
0040000   \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \b  \0  \0  \0 020
0040020   \0  \0  \0 030  \0  \0 005 230  \0  \0  \0  \0 377 377 377 377
0040040    A 314   U   Z  \0 017   e   p  \0 017   (   7  \0  \0  \0 013
0040060   \0  \0   @  \0  \0  \0  \b  \0  \0  \0  \0  \b  \0  \0  \0 005
0040100   \0  \0  \0  \0  \0  \0  \0   < 377 377 300  \0 377 377 370  \0
0040120   \0  \0  \0 016  \0  \0  \0 013  \0  \0  \0 004  \0  \0 020  \0
0040140   \0  \0  \0 003  \0  \0  \0 002  \0  \0  \b  \0  \0  \0  \0  \0
0040160   \0  \0  \0  \0  \0  \0 020  \0  \0  \0  \0 200  \0  \0  \0 004
sparc# disklabel /dev/sd2c
sd2: no disk label
# /dev/sd2c:
type: SCSI
disk: mydisk
label: fictitious
flags:
bytes/sector: 512
sectors/track: 126
tracks/cylinder: 8
sectors/cylinder: 1008
cylinders: 4243
total sectors: 4308352
rpm: 5403
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

3 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 c:   4308352         0     unused      0     0        # (Cyl.      0 -   4274*)
disklabel: boot block size 0
disklabel: super block size 0

しかるのちに,disklabel を復元し,newfs を実行しました。

sparc# disklabel -R /dev/sd2c ~/sd2c.label
sd2: no disk label
sparc# od -c /dev/sd2c | head
0000000    f   i   c   t   i   t   i   o   u   s  \0  \0  \0  \0  \0  \0
0000020   \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
*
0000200  202   V   E   W  \0 004  \0  \0   m   y   d   i   s   k  \0  \0
0000220   \0  \0  \0  \0  \0  \0  \0  \0   f   i   c   t   i   t   i   o
0000240    u   s  \0  \0  \0  \0  \0  \0  \0  \0 002  \0  \0  \0  \0   ~
0000260   \0  \0  \0  \b  \0  \0 020 223  \0  \0 003 360  \0   A 275 200
0000300   \0  \0  \0  \0  \0  \0  \0  \0 025 033  \0 001  \0  \0  \0  \0
0000320   \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
*
sparc# newfs /dev/sd2a
/dev/sd2a: 1970.7MB (4036032 sectors) block size 16384, fragment size 2048
        using 11 cylinder groups of 179.16MB, 11466 blks, 22528 inodes.
super-block backups (for fsck -b #) at:
      32,  366944,  733856, 1100768, 1467680, 1834592, 2201504, 2568416,
 2935328, 3302240, 3669152,

後は,ftp サーバから 2.0 RELEASE の配布物を持ってきて展開し,installboot と
MAKEDEV を実行しました。

sparc# scp shimaoka@ftp:~ftp/pub/NetBSD/NetBSD-2.0/newsmips/binary/sets ~/
sparc# mount /dev/sd2a /mnt
sparc# cd /mnt
sparc# tar zxvpf ~/sets/base.tgz
sparc# tar zxvpf ~/sets/etc.tgz
sparc# tar zxvpf ~/sets/kern-GENERIC.tgz
sparc# cd /mnt/usr/mdec/
sparc# cp boot /mnt/
sparc# installboot -m newsmips /dev/rsd2c bootxx boot
sparc#  od -c /dev/sd2c | head
0000000  020  \0  \0 177  \0  \0  \0  \0 031 220 001 006  \0  \0  \0  \0
0000020   \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
*
0000200  202   V   E   W  \0 004  \0  \0   m   y   d   i   s   k  \0  \0
0000220   \0  \0  \0  \0  \0  \0  \0  \0   f   i   c   t   i   t   i   o
0000240    u   s  \0  \0  \0  \0  \0  \0  \0  \0 002  \0  \0  \0  \0   ~
0000260   \0  \0  \0  \b  \0  \0 020 223  \0  \0 003 360  \0   A 275 200
0000300   \0  \0  \0  \0  \0  \0  \0  \0 025 033  \0 001  \0  \0  \0  \0
0000320   \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
*
sparc# cd /mnt/dev
sparc# ./MAKEDEV all
sparc# poweroff

外付け HDD を sparc から外して NWS-3460 を起動すると,

NEWS> bo sd(5)
NetBSD/newsmips Primary Boot
NetBSD/newsmips Secondary Boot, Revision 1.7
(builds@build, Wed Dec  1 18:26:29 UTC 2004)
Booting sd(5,0,0)
2499648+309896 [96144+83090]=0x2d9dc8

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
    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 2.0 (GENERIC) #0: Wed Dec  1 18:40:08 UTC 2004
        builds@build:/big/builds/ab/netbsd-2-0-RELEASE/newsmips/200411300000Z-ob
j/big/builds/ab/netbsd-2-0-RELEASE/src/sys/arch/newsmips/compile/GENERIC
total memory = 16352 KB
avail memory = 12944 KB
SONY NET WORK STATION, Model NWS-3460, Machine ID #10431
mainbus0 (root)
cpu0 at mainbus0: MIPS R3000 CPU (0x220) Rev. 2.0 with MIPS R3010 FPC Rev. 2.0
cpu0: 64KB/4B direct-mapped Instruction cache, 64 TLB entries
cpu0: 64KB/4B direct-mapped write-through Data cache
hb0 at mainbus0
le0 at hb0 addr 0xbff80000 level 1: address 08:00:46:00:6e:ad
le0: 8 receive buffers, 2 transmit buffers
mkclock0 at hb0 addr 0xbff40000: mk48t02
zsc0 at hb0 addr 0xbfec0000 level 1
zstty0 at zsc0 channel 0 (console i/o)
zstty1 at zsc0 channel 1
kb0 at hb0 addr 0xbfd00000 level 2
wskbd0 at kb0 (mux ignored)
ms0 at hb0 addr 0xbfd00004 level 2
wsmouse0 at ms0 (mux ignored)
sc0 at hb0 addr 0xbfe00100 level 0
scsibus0 at sc0: 8 targets, 8 luns per target
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 0 lun 0: <IMPRIMIS, 94241-7, 0832> disk fixed
SC(t): [istatus=0x80, tstatus=0x2]
SC(t): [istatus=0x80, tstatus=0x2]
sd0: 415 MB, 1756 cyl, 7 head, 69 sec, 512 bytes/sect x 850451 sectors
sd1 at scsibus0 target 5 lun 0: <QUANTUM, VP32210, 81H8> disk fixed
SC(t): [istatus=0x80, tstatus=0x2]
sd1: 2103 MB, 4243 cyl, 8 head, 126 sec, 512 bytes/sect x 4308352 sectors
boot device: sd1
root on sd1a dumps on sd1b
root file system type: ffs
/etc/rc.conf is not configured.  Multiuser boot aborted.
Enter pathname of shell or RETURN for /bin/sh:
Terminal type? [unknown] vt100
Terminal type is vt100.
We recommend creating a non-root account and using su(1) for root access.
#

となりました。

なぜエラーがでないのか,さっぱりわかりません。

-- 
SHIMAOKA Shunsuke (島岡 俊輔)