Subject: Re: NWS 3410 install : still trying
To: None <port-newsmips@netbsd.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-newsmips
Date: 05/22/2003 23:19:06
In article <3ECC7BBD.6040000@enseeiht.fr>
Emmanuel.Chaput@enseeiht.fr wrote:
> >>>At least, sd0a (root partition) must start at sector zero
> >>>to install bootblock which can be loaded by PROM.
>
> Here is the disklabel output. Looks good, no ? It says 8 partitions
> while there are only 4 of them, is it OK ?
:
> 8 partitions:
> # size offset fstype [fsize bsize cpg/sgs]
> a: 131544 0 4.2BSD 1024 8192 16448 # (Cyl. 0 - 31)
> b: 132678 131544 swap # (Cyl. 232 - 465)
Hmm, spg/sgs seems a bit strange, but it should be OK
if you can mount the partition.
"8 partitions" is no problem.
> > You can see if boot loader is written properly by commands
> > like "dd if=/dev/rsd0c | hexdump -Cv" and the first 16 bytes
> > should be like this:
> > 00000000 10 00 00 7f 00 00 00 00 19 90 01 06 00 00 00 00
> |................|
>
> It does ! The 16 first bytes look correct ! Maybe a wrong
> bootloader ?
Then we should check if these data are loaded into memory properly
by PROM. You can dump memory by "md" command:
---
NEWS> help
bf [.{b|w|l}] <bgn> {<end>|:<cnt>} <data> : Fill mem
bm <bgn> {<end>|:<cnt>} <dest> : Move mem
bo [/<bootsw>] [<devspec>[<file>]] : Boot
cls : Clear screen
cp <srcdev> <bgn> {<end>|:<cnt>} <dstdev> <dest> : Copy dev
di [<devspec>] : Disk info
eject : Eject floppy
format {fh|fd} : Format floppy
help : Display this
ld <devspec> <bgn> {<end>|:<cnt>} <addr> : Load from dev
md [.{b|w|l}] [<bgn> [{<end>|:<cnt>}]] : Display mem
ms [.{b|w|l}] [<addr> [<data>]] : Substitute mem
off : Turn power off
revarp : Get IP addr
set [<var>[=<val>]] : Set / unset var
sv <bgn> {<end>|:<cnt>} <devspec> <dest> : Save to dev
vers : Version number
NEWS> bo sd(2) <== no valid bootloader on ID 2 disk here
Reserved instruction exception
cause=30000028, sr=40c404, badvaddr=c0006438, epc=a0000000
NEWS> md .b a0000000 a00000ff
a0000000: 7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00 |.ELF............|
a0000010: 00 02 00 08 00 00 00 01 00 40 4a 00 00 00 00 34 |.........@J....4|
a0000020: 00 03 df ec 00 00 00 05 00 34 00 20 00 07 00 28 |.........4. ...(|
a0000030: 00 19 00 18 00 00 00 06 00 00 00 34 00 40 00 34 |...........4.@.4|
a0000040: 00 40 00 34 00 00 00 e0 00 00 00 e0 00 00 00 05 |.@.4............|
a0000050: 00 00 00 04 00 00 00 03 00 00 01 14 00 40 01 14 |.............@..|
a0000060: 00 40 01 14 00 00 00 13 00 00 00 13 00 00 00 04 |.@..............|
a0000070: 00 00 00 01 70 00 00 00 00 00 01 60 00 40 01 60 |....p......`.@.`|
a0000080: 00 40 01 60 00 00 00 18 00 00 00 18 00 00 00 04 |.@.`............|
a0000090: 00 00 00 10 00 00 00 01 00 00 00 00 00 40 00 00 |.............@..|
a00000a0: 00 40 00 00 00 03 49 38 00 03 49 38 00 00 00 05 |.@....I8..I8....|
a00000b0: 00 00 10 00 00 00 00 01 00 03 50 00 10 00 00 00 |..........P.....|
a00000c0: 10 00 00 00 00 00 17 98 00 00 64 30 00 00 00 06 |..........d0....|
a00000d0: 00 00 10 00 00 00 00 02 00 00 01 80 00 40 01 80 |.............@..|
a00000e0: 00 40 01 80 00 00 47 e8 00 00 47 e8 00 00 00 04 |.@....G...G.....|
a00000f0: 00 00 00 10 00 00 00 04 00 00 01 28 00 40 01 28 |...........(.@.(|
NEWS>
---
BTW, what SCSI ID is your sd0 disk? If your disk is not ID 0,
you have to specify SCSI ID of the disk on boot command like
"bo sd(2)" etc.
NWS-3410 was designed for diskless use, so it might have
some other quirks. At least the default bootdevice on 3410
is rd (remote disk) and "set bootdev=scsi" command is needed
to change default bootdev. "set" command will print current settings.
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp