Hi, Following up on my own mail... I applied the patch below from John Birrell, and the boot process got farther, but still fails.
Chasing the problem alittle farther I found the following in ufs/mfs/mfs_vfsops.c: rootdev = makedev(255, mfs_minor++); printf("rootfs is %ld Kbyte compiled in MFS: dev_t 0x%08x\n", mfs_rootsize/1024,rootdev); if ((err = bdevvp(rootdev, &rootvp))) { printf("mfs_mountroot: can't find rootvp\n"); return (err); } After the assignment, rootdev is 0. The function bdevvp() then contains the following test: int bdevvp(dev, vpp) dev_t dev; struct vnode **vpp; { register struct vnode *vp; struct vnode *nvp; int error; if (dev == NODEV || major(dev) >= nblkdev || bdevsw(dev) == NULL) { *vpp = NULLVP; return (ENXIO); } Well, bdevsw(dev) is returning 0, thus the 3rd expression in the 'if' statement is true and causes ENXIO to be returned. I'm not sure where to go from here... Would someone more familiar with the mfs code and the boot sequence please comment on the above? Thanks! John 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