Current-Users archive

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

Re: config rootdev problem



On Wed, Dec 01, 2010 at 03:36:49PM +0100, Tobias Nygren wrote:
> Hi,
> 
> I have the following kernel configuration file:
> 
> ----
> include "arch/amd64/conf/XEN3_DOM0"
> no config netbsd
> config netbsd root on wd1a type ffs
> ----
> 
> When ran through config(1) it yields (from swapnetbsd.c):
> 
> const char *rootspec = "wd1a";
> dev_t   rootdev = makedev(0, 8);        /* wd1a */
> 
> When I boot this kernel it tries to mount wd0i as the root, and fails.
> The minor number does appear to be wrong:
> 
> tnn@laptop:dev> ls -l /dev/wd0a /dev/wd0i /dev/wd1a
> brw-r-----  1 root  operator  0,  0 Jun 17 00:52 /dev/wd0a
> brw-r-----  1 root  operator  0,  8 Jun 17 00:52 /dev/wd0i
> brw-r-----  1 root  operator  0, 16 Jun 17 00:52 /dev/wd1a
> 
> Any idea why this happens? I'm using NetBSD-5.99.41.

Can you try the attached patch ?

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--
Index: xen/conf/files.xen
===================================================================
RCS file: /cvsroot/src/sys/arch/xen/conf/files.xen,v
retrieving revision 1.109
diff -u -p -r1.109 files.xen
--- xen/conf/files.xen  8 Jul 2010 11:25:00 -0000       1.109
+++ xen/conf/files.xen  1 Dec 2010 20:49:28 -0000
@@ -2,7 +2,11 @@
 #      NetBSD: files.x86,v 1.10 2003/10/08 17:30:00 bouyer Exp 
 #      NetBSD: files.i386,v 1.254 2004/03/25 23:32:10 jmc Exp 
 
+ifdef i386
 maxpartitions 8
+else
+maxpartitions 16
+endif
 
 maxusers 2 16 128
 


Home | Main Index | Thread Index | Old Index