Date: Thu, 7 Nov 2002 19:56:47 -0800 (PST) From: "Bruce R. Montague" <brucem@mail.cruzio.com> To: freebsd-small@FreeBSD.ORG Subject: Making 5.0 picobsd floppies ("bridge" patches) Message-ID: <200211080356.gA83ulV00672@mail.cruzio.com>
next in thread | raw e-mail | index | archive | help
The picobsd "bridge" reference config doesn't build under 5.0-current due to config file syntax changes (in addition to the picobsd script not working as-is because it uses the now-unsupported "-p" newfs argument). With the following patches to the bridge PICOBSD and crunch.conf files, a 5.0-current picobsd floppy can be built (at 99% floppy capacity). The patch as shown may not be what you really want to do, because it simply removes ssh, which may not be desirable. However, this does provides a picobsd configuration that builds a bootable floppy-image... It may be useful to have such a config as a "starting point". Patches below are the following: - Required patches to /usr/src/release/picobsd/bridge/PICOBSD - Required patches to /usr/src/release/picobsd/bridge/crunch.conf - Optional crunch.conf patches to remove warnings. =========================================================== Required patches to /usr/src/release/picobsd/bridge/PICOBSD --- /usr/src/release/picobsd/bridge/PICOBSD Sun Mar 10 13:10:25 2002 +++ PICOBSD Thu Nov 7 18:21:21 2002 @@ -30,6 +30,7 @@ #options DEVFS #Device Filesystem #options PROCFS #Process filesystem options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!] +options COMPAT_FREEBSD4 #Keep for pico for now. #options DDB @@ -56,7 +57,7 @@ #options ATA_STATIC_ID #Static device numbering # atkbdc0 controls both the keyboard and the PS/2 mouse -device atkbdc 1 # At keyboard controller +device atkbdc # At keyboard controller device atkbd #device psm # do we need the mouse ?? @@ -64,7 +65,7 @@ # syscons is the default console driver, resembling an SCO console -device sc 1 +device sc # Floating point support - do not disable. device npx =============================================================== Required patches to /usr/src/release/picobsd/bridge/crunch.conf --- /usr/src/release/picobsd/bridge/crunch.conf Fri Aug 23 20:33:31 2002 +++ crunch.conf Thu Nov 7 18:29:19 2002 @@ -167,16 +167,16 @@ # Check the ssh license! If you want to use this, # go to /usr/ports/security/ssh-picobsd, do a make extract configure # You also need to install /usr/ports/math/libgmp-freebsd -progs sshd # includes ssh and scp -special sshd objvar SSHD_OBJS -special sshd srcdir /usr/ports/picobsd/ssh-picobsd/work/ssh-1.2.27 -special sshd objdir /usr/ports/picobsd/ssh-picobsd/work/ssh-1.2.27 -ln sshd ssh -ln sshd ssh1 -ln sshd scp +#progs sshd # includes ssh and scp +#special sshd objvar SSHD_OBJS +#special sshd srcdir /usr/ports/picobsd/ssh-picobsd/work/ssh-1.2.27 +#special sshd objdir /usr/ports/picobsd/ssh-picobsd/work/ssh-1.2.27 +#ln sshd ssh +#ln sshd ssh1 +#ln sshd scp ### ee uses ncurses instead of curses libs -ledit -lutil -lmd -lcrypt -lmp -lm -lkvm -libs /usr/local/lib/libgmp.a +#libs /usr/local/lib/libgmp.a libs -lmytinfo -lipx -lz -lpcap -lwrap libs -ltermcap -lgnuregex # -lcurses ============================================ Patches to crunch.conf that remove warnings: --- /usr/src/release/picobsd/bridge/crunch.conf Fri Aug 23 20:33:31 2002 +++ crunch.conf Thu Nov 7 20:02:22 2002 @@ -23,7 +23,7 @@ # directories where to look for sources of various binaries. # @__CWD__@ is a magic keyword in the picobsd's (Makefile.conf) # which is replaced with the picobsd directory. -srcdirs @__CWD__@/src +#srcdirs @__CWD__@/src # Some programs are especially written for PicoBSD and reside here # Make this first in the list so we can override standard programs @@ -34,7 +34,6 @@ # standard locations # srcdirs /usr/src/bin -srcdirs /usr/src/sbin/i386 srcdirs /usr/src/sbin srcdirs /usr/src/usr.bin srcdirs /usr/src/gnu/usr.bin @@ -96,7 +95,6 @@ #progs less # 36KB #ln less more #progs more # 12KB -special more srcdir /usr/ports/misc/44bsd-more/work progs sysctl progs swapon # 0KB. @@ -130,7 +128,7 @@ # libs -lcurses # for vi #progs tcpdump # 100KB. -special tcpdump srcdir /usr/src/usr.sbin/tcpdump/tcpdump +#special tcpdump srcdir /usr/src/usr.sbin/tcpdump/tcpdump progs arp # 0KB. @@ -141,7 +139,7 @@ #progs grep # 16KB. progs date # 4KB. #progs mount_nfs # 0KB. -ln mount_nfs nfs +#ln mount_nfs nfs progs ping # 4KB. #progs routed # 32KB. progs ipfw # 12KB. ==================================== Comments ==================================== * A src subdirectory in the current working directory of the picobsd is always checked. * The /usr/src/sbin/i386 dir that is specified (kept nextboot and fdisk) no longer exists under 5.0. * The ssh port is assumed installed * The 4.4 bsd-more port is assumed installed These cause warnings only. ==================================== Errors and Messages ==================================== --- "config: Error: device "atkbdc" does not take a count" "config: Error: device "sc" does not take a count" --- "/usr/src/sys/kern/kern_sig.c:77:2: #error "You *really* want COMPAT_FREEBSD4 on -current for a while" "mkdep: compile failed" --- "cd: can't cd to /usr/ports/picobsd/ssh-picobsd/work/ssh-1.2.27" "crunchgen: Can't execute: ..." --- "cc: /usr/local/lib/libgmp.a: No such file or directory" Warnings: "crunchgen: ... no prog more previously declared, skipping special" "crunchgen: ... no prog tcpdump previously declared, skipping special" "crunchgen: ... no prog mount_nfs previously declared, skipping link" 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?200211080356.gA83ulV00672>