Hi, The following patch and John Birrell's patch posted earlier appear to fix the problem when booting a 4.0-current install floppy(kern.flp).
The DEVT_FASCIST macro is incorrect and does the wrong thing when the device id 'x' passed into makedev is 255. Thanks, John Index: kern_conf.c =================================================================== RCS file: /mirror/ncvs/src/sys/kern/kern_conf.c,v retrieving revision 1.40 diff -u -r1.40 kern_conf.c --- kern_conf.c 1999/05/18 13:14:43 1.40 +++ kern_conf.c 1999/05/22 05:32:59 @@ -200,6 +200,8 @@ makedev(int x, int y) { #ifdef DEVT_FASCIST + if (x == 255) + return ((dev_t) ((x << 8) | y)); return ((dev_t) (((255 - x) << 8) | y)); #else return ((dev_t) ((x << 8) | y)); John Birrell's patch: Index: vfs_conf.c =================================================================== RCS file: /mirror/ncvs/src/sys/kern/vfs_conf.c,v retrieving revision 1.26 diff -u -r1.26 vfs_conf.c --- vfs_conf.c 1998/09/14 19:56:40 1.26 +++ vfs_conf.c 1999/05/22 03:15:41 @@ -52,6 +52,7 @@ * on SMP reentrancy */ #include "opt_bootp.h" +#include "opt_mfs.h" #include <sys/param.h> /* dev_t (types.h)*/ #include <sys/kernel.h> @@ -136,6 +137,9 @@ /* * Attempt the mount */ +#ifdef MFS_ROOT + err = VFS_MOUNT(mp, NULL, NULL, NULL, p); +#else err = ENXIO; orootdev = rootdev; if (rootdevs[0] == NODEV) @@ -154,6 +158,7 @@ if (err != ENXIO) break; } +#endif if (err) { /* * XXX should ask the user for the name in some cases. > Hi, > > I build a 4.0-current SNAP each evenning, and thought I'd give a new > install a try since the dev_t issue appears to have been resolved.. > > Unfortunately, booting from either a CD or boot floppies, after > probing the ppi0(or maybe plip0) device, the system spontaniously > reboots (and I can't easily read the last few message lines). > > I then went into the /snap/release area and starting re-running > the release.8 target while removing devices from the GENERIC > config file used for the boot floppies. > > I finally got it down to the point where I get the following: > > error 6: panic: cannot mount root (2) > syncing disks... done > Automatic reboot in 15 seconds... > > etc, etc, etc > > > > So, I'll continue to see if I can narrow down the problem, but > it looks like we have a problem mounting an MFSROOT root partition > which the boot/install system requires. > > Comments & critiques are welcome! > > > Thanks! > - -John > > > To Unsubscribe: send mail to majord...@freebsd.org > with "unsubscribe freebsd-current" in the body of the message > > ------------------------------ > To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message