On Mon, 1 Jun 2020, Paul Goyette wrote:

On Mon, 1 Jun 2020, Jukka Ruohonen wrote:

On Mon, Jun 01, 2020 at 01:36:01PM +0300, Jukka Ruohonen wrote:
I'd like to run amd64/MODULAR, but I have forgotten how to load modules via
the boot loader. In particular, I need FFS in order to boot.

To reply to myself: it works if I uncomment "-no file-system FFS". I do not
know whether I actually have ever had FFS as a module.

It's really easy.  Just fix your syntax:

        load=ffs

Also, you'll need to include a couple of dependency/required modules:

        load=ufs
        load=wapbl

And finally, there are a couple of options which are not yet modular.
You may need to remove some options from the modules' Makefile and
build custom modules.

Oh yeah, one more thing!  You will also need to update the boot
loader stuff:

Index: sys/lib/libsa/ffsv1.c
===================================================================
RCS file: /cvsroot/src/sys/lib/libsa/ffsv1.c,v
retrieving revision 1.7
diff -u -p -r1.7 ffsv1.c
--- sys/lib/libsa/ffsv1.c       24 Jun 2019 13:58:24 -0000      1.7
+++ sys/lib/libsa/ffsv1.c       5 May 2020 19:39:22 -0000
@@ -15,7 +15,7 @@
 #define ufs_dinode     ufs1_dinode
 #define indp_t         int32_t

-#if 0
+#if 1  /*XXX-PRG 0 */
 #define        FSMOD   "wapbl/ufs/ffs"
 #endif

Index: sys/lib/libsa/ffsv2.c
===================================================================
RCS file: /cvsroot/src/sys/lib/libsa/ffsv2.c,v
retrieving revision 1.7
diff -u -p -r1.7 ffsv2.c
--- sys/lib/libsa/ffsv2.c       24 Jun 2019 13:58:24 -0000      1.7
+++ sys/lib/libsa/ffsv2.c       5 May 2020 19:39:23 -0000
@@ -15,7 +15,7 @@
 #define ufs_dinode     ufs2_dinode
 #define indp_t         int64_t

-#if 0
+#if 1  /*XXX-PRG 0 */
 #define        FSMOD   "wapbl/ufs/ffs"
 #endif




In any case, amd64/MODULAR is not really that modular...

$ modstat | grep builtin | wc -l
    143

You can strip out a lot more modules and still have a functioning
system.  Mostly you can remove all the device drivers for devices
that don't exist, but there are other things, too.

FWIW,

$ modstat | grep builtin | wc -l
     21
$


+--------------------+--------------------------+-----------------------+
| Paul Goyette       | PGP Key fingerprint:     | E-mail addresses:     |
| (Retired)          | FA29 0E3B 35AF E8AE 6651 | [email protected]     |
| Software Developer | 0786 F758 55DE 53BA 7731 | [email protected]   |
+--------------------+--------------------------+-----------------------+


+--------------------+--------------------------+-----------------------+
| Paul Goyette       | PGP Key fingerprint:     | E-mail addresses:     |
| (Retired)          | FA29 0E3B 35AF E8AE 6651 | [email protected]     |
| Software Developer | 0786 F758 55DE 53BA 7731 | [email protected]   |
+--------------------+--------------------------+-----------------------+

Reply via email to