Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Mar 2002 13:03:19 -0800 (PST)
From:      "Bruce R. Montague" <brucem@mail.cruzio.com>
To:        freebsd-small@freebsd.org
Subject:   pico dial, isp, net configs under 5.0
Message-ID:  <200203142103.g2EL3JY00352@mail.cruzio.com>

next in thread | raw e-mail | index | archive | help


This file contains what I did (with diffs) to make
the current dial, isp, and net picobsd reference
configurations build under 5.0-Current from
12-March-2002. I haven't yet tested the resulting
kernels.

-----------------------------------
 Changes:

=========== dial configuration

- File PICOBSD needs "options PCI_QUIET" removed
(no such option).  With this fixed, dial builds
OK but doesn't fit on a 1440 floppy (kernel.gz is
1493601).  At "Capacity 89%" it's might not be
worth trying to shrink the md.

=========== isp configuration
- File PICOBSD needs "options PCI_QUIET" removed.
- File PICOBSD needs "options NFS" deleted and
"options NFS_NOSERVER" deleted. Both these lines
are replaced with "options NFSCLIENT", which I
presume is the new thing to be done...
- File PICOBSD needs "device miibus" added to support
the nic drivers.
- File PICOBSD needs "options PROCFS" removed.
If this is not done, undefined "pfs_*" references
to the "pseudo filesystem" (fs/pseudofs) exist.
Should the pseudo filesystem be included instead?
(PROCFS is commented out in the bridge config,
also).

- File crunch.conf needs the "srcdirs ...tinyware" line
put before the "srcdirs ...usr.bin" so that pico-login
is used in preference to usr.bin/login. If this is not
done undefined reference to PAM routines result.
 
 Elabortation:      

 File crunch.conf contains
buildopts -DNOPAM -DRELEASE_CRUNCH -DNOSECURE -DNOCRYPT -DNONETGRAPH -DNOIPSEC
 The -DNOPAM is a control flag in the Makefile in 
/usr/src/release/picobsd/tinyware/login
which contains:
----
.if !defined(NOPAM)
CFLAGS+= -DUSE_PAM
----
However, the crunch is pulling in /usr/src/usr.bin/login/login.c
instead of /usr/src/release/picobsd/tinyware/login/pico-login.c
The crunch.conf line
"srcdirs /usr/src/release/picobsd/tinyware"
needs to go before
"srcdirs /usr/src/usr.bin"


=========== net configuration (fixes are almost same as isp fixes)
- File PICOBSD needs "options PCI_QUIET" removed.
- File PICOBSD needs "options NFS_NOSERVER" replaced with 
"options NFSCLIENT" (net did not have "options NFS" set).
- File PICOBSD needs "device miibus" added to support
the nic drivers.

- File crunch.conf needs the "srcdirs ...tinyware" line
put before the "srcdirs ...usr.bin" so that pico-login
is used in preference to usr.bin/login. If this is not
done undefined reference to PAM routines result.



-----------------------------------
 Sizes of uncompressed kernels (other than bridge conf)
built as above are:

-rwxr-xr-x  1 root  wheel  3418596 Mar 14 12:03 ./build_dir-mrouter/kernel
-rwxr-xr-x  1 root  wheel  3691684 Mar 14 12:11 ./build_dir-mdial/kernel
-rwxr-xr-x  1 root  wheel  3971972 Mar 14 12:20 ./build_dir-misp/kernel
-rwxr-xr-x  1 root  wheel  3892004 Mar 14 12:44 ./build_dir-mnet/kernel




============================================
DIFFS:


================== dial ===================
--- /usr/src/release/picobsd/dial/PICOBSD       Thu Sep 20 04:30:32 2001
+++ PICOBSD     Wed Mar 13 11:12:23 2002
@@ -22,7 +22,6 @@
 options                EXT2FS
 options                COMPAT_43               #Compatible with BSD 4.3 [KEEP THIS!]
 #options               DEVFS
-options                PCI_QUIET
 options                NO_SWAPPING
 options         COMPAT_OLDISA   #Use ISA shims and glue for old drivers
 

================= isp ==============

-------------------------------------
--- /usr/src/release/picobsd/isp/PICOBSD        Thu Sep 20 04:30:35 2001
+++ PICOBSD     Wed Mar 13 13:57:56 2002
@@ -18,19 +18,17 @@
 options                MATH_EMULATE            #Support for x87 emulation
 options                INET                    #InterNETworking
 options                FFS                     #Berkeley Fast Filesystem
-options                NFS                     #Network Filesystem
-options                NFS_NOSERVER            #Network Filesystem
+options                NFSCLIENT               #Network Filesystem
 #options               BOOTP
 options                MD_ROOT                 #MFS as root
 options                MSDOSFS                 #MSDOS Filesystem
 options                CD9660                  #ISO 9660 Filesystem
-options                PROCFS                  #Process filesystem
+#options               PROCFS                  #Process filesystem
 options                COMPAT_43               #Compatible with BSD 4.3 [KEEP THIS!]
 options                IPFIREWALL
 options                IPFIREWALL_DEFAULT_TO_ACCEPT
 options                IPDIVERT
 #options               DEVFS
-options                PCI_QUIET
 # Support for bridging and bandwidth limiting
 options                DUMMYNET
 options                HZ=1000
@@ -85,6 +83,7 @@
 #
 # The following Ethernet NICs are all PCI devices.
 #
+device miibus
 device de
 device fxp
 

-------------------------------------
--- /usr/src/release/picobsd/isp/crunch.conf    Fri Jun  1 05:06:04 2001
+++ crunch.conf Thu Mar 14 10:57:16 2002
@@ -8,6 +8,8 @@
 buildopts -DNOPAM -DRELEASE_CRUNCH -DNOSECURE -DNOCRYPT -DNONETGRAPH -DNOIPSEC
 
 # other sources
+# sources for ns & vm
+srcdirs /usr/src/release/picobsd/tinyware
 srcdirs /usr/src/bin
 srcdirs /usr/src/sbin/i386
 srcdirs /usr/src/sbin
@@ -15,8 +17,6 @@
 srcdirs /usr/src/gnu/usr.bin
 srcdirs /usr/src/usr.sbin
 srcdirs /usr/src/libexec
-# sources for ns & vm
-srcdirs /usr/src/release/picobsd/tinyware
 
 progs sh test echo hostname ln login getty
 progs inetd telnetd stty w msg kget natd reboot



=================== net ======================

----------------------------------------
--- /usr/src/release/picobsd/net/PICOBSD        Thu Sep 20 04:30:36 2001
+++ PICOBSD     Wed Mar 13 11:52:39 2002
@@ -18,7 +18,7 @@
 options                MATH_EMULATE            #Support for x87 emulation
 options                INET                    #InterNETworking
 options                FFS                     #Berkeley Fast Filesystem
-options                NFS_NOSERVER            #Network Filesystem
+options                NFSCLIENT               #Network Filesystem
 options                MD_ROOT                 #MFS as root
 options                MSDOSFS                 #MSDOS Filesystem
 options                CD9660                  #ISO 9660 Filesystem
@@ -26,7 +26,6 @@
 options                IPFIREWALL
 options                IPFIREWALL_DEFAULT_TO_ACCEPT
 options                IPDIVERT
-options                PCI_QUIET
 options         COMPAT_OLDISA   #Use ISA shims and glue for old drivers
 #options               DEVFS
 # Support for bridging and bandwidth limiting
@@ -65,6 +64,7 @@
 #
 # The following Ethernet NICs are all PCI devices.
 #
+device miibus
 device de
 device fxp
 


-------------------------------------
--- /usr/src/release/picobsd/net/crunch.conf    Fri Jun  1 05:06:05 2001
+++ crunch.conf Thu Mar 14 12:35:34 2002
@@ -7,6 +7,8 @@
 # Default build options.
 buildopts -DNOPAM -DRELEASE_CRUNCH -DNOSECURE -DNOCRYPT -DNONETGRAPH -DNOIPSEC
 
+# sources for ns & vm
+srcdirs /usr/src/release/picobsd/tinyware
 # other sources
 srcdirs /usr/src/bin
 srcdirs /usr/src/sbin/i386
@@ -15,8 +17,6 @@
 srcdirs /usr/src/gnu/usr.bin
 srcdirs /usr/src/usr.sbin
 srcdirs /usr/src/libexec
-# sources for ns & vm
-srcdirs /usr/src/release/picobsd/tinyware
 
 progs sh test echo hostname ln login getty stty
 progs inetd telnetd w msg kget reboot



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-small" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203142103.g2EL3JY00352>