Port-powerpc archive

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

Re: Problems with disks on port-ofppc



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Mar 3, 2008, at 11:20, Patrick Finnegan wrote:

On Monday 03 March 2008 01:53, you wrote:
On 03-Mar-2008 Patrick Finnegan wrote:
So, I'm trying to label and newfs a disk, but it seems like the raw
devices don't work:

# disklabel sd0
disklabel: /dev/rsd0c: Device not configured

Thats really bizzare.  Do your device nodes for /dev/rsd match the
ones from /dev/sd ?

I think so, but I'm not familiar enough with NetBSD to be sure.  Tim,
this is the kernel that you sent me, running off a nfs root on a Debian
Linux box.  I exploded the tarballs (except for the x11 stuff and
kern-GENERIC.tgz) from
ftp.netbsd.org:/pub/NetBSD-daily/netbsd-4/200802280000Z/ofppc/ binary/sets

Here's an ls -l of the first few sd0/rsd0 device nodes in /dev (created
on mfs by whatever does that at boot):

crw-r-----  1 root  operator  15, 0 Mar  3 04:54 rsd0a
crw-r-----  1 root  operator  15, 1 Mar  3 04:54 rsd0b
crw-r-----  1 root  operator  15, 2 Mar  3 04:54 rsd0c
brw-r-----  1 root  operator   4, 0 Mar  3 04:54 sd0a
brw-r-----  1 root  operator   4, 1 Mar  3 04:54 sd0b
brw-r-----  1 root  operator   4, 2 Mar  3 04:54 sd0c
# mount | grep dev
mfs:3 on /dev type mfs (synchronous, local)

I tihnk I see the problem - arch/powerpc/conf/majors.powerpc shows this:
device-major    sd              char 13  block 4        sd

so rsd* should be major number 13, not 15, which explains the errors you get. No idea why that would happen though, must be a bug in the script that populates /dev on mfs.

have fun
Michael

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iQEVAwUBR8woI8pnzkX8Yg2nAQJJ2wf/Ye0XdZQ5uuW9SH4gxCLHulGcvyg/k3Km
8Kjj/MiB5TE3a8/EbPYd78J4Y7Mk2nzANy19pDqsEgPYx9T9/EvcgvFsmTl8Fmzt
jTOegMLPJywYxLoRniqmNakH/3UzOGYnRvFnXSJXLeJ4fylQ21oJGtx/Nr5LECfD
GPp/fToBVlMrLzT86QnCQfkskBLrDsabokscRr3cmikV3yiVSJj4miiUPTyZix8Z
IcblP2vcKe3DqWJn2TFqz3WiB91icZolcEXg68YOPRp8/vkJIPaM9NUTEdyPiDN6
YcSOBWLD4M/nsgIgEhFA4/eo4nZLnLHmV25RfggRqYk5UoBBP6Tclg==
=PpYK
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index | Old Index