Problems building nanoBSD

David Witten wittend at wwrinc.com
Mon May 9 15:21:50 PDT 2005


Pardon my naivete, but I keep failing in my attempts to build  the 
nanobsd image using the directions in phk's "nanobsd prototype" message 
dated Tue Mar 9 15:16:40 PST 2004.  There is probably something blatant 
that I just don't get.

Can anyone point me to the error of my ways?

There is much that I don't understand in this process. Perhaps I am 
expecting the wrong end product.  In the past, I have successfully built 
the monoBSD package and gotten it running on a Soekris 4526 board, but 
at present I really have no specific objective (or target board) in 
mind.  What I expected to come out of this exercise was a a disk image 
that could simply be dd'd or physdiskwrite'd to removable media of 
appropriate size and booted, as with monoBSD or picoBSD.

I am doing this mucking about on a VIA miniITX machine with 0.5GB ram 
and a 65GB drive, etc. I am running freeBSD 5.3-RELEASE with a freshly 
installed /usr/src tree.

Over the last couple of days, I have succeeded in provoking the build 
system into producing a number of different kinds of 'stop in build' 
situations, but I think my most recent is representative.

-- Dave

#--------------------------------------------
# The last few lines on stdout read:
#--------------------------------------------
...
touch /usr/obj/usr/src/nanobsd/_.w/etc/diskless
mkdir -p /usr/obj/usr/src/nanobsd/_.w/conf/base/var
mtree -deU -f /usr/obj/usr/src/nanobsd/_.w/etc/mtree/BSD.var.dist -p
/usr/obj/usr/src/nanobsd/_.w/conf/base/var
./account missing (created)
./at missing (created)
./at/jobs missing (created)
./at/spool missing (created)

...

./spool/opielocks missing (created)
./spool/output missing (created)
./spool/output/lpd missing (created)
./tmp missing (created)
./tmp/vi.recover missing (created)
./yp missing (created)
mkdir -p /usr/obj/usr/src/nanobsd/_.w/conf/base/etc
( cd /usr/obj/usr/src/nanobsd/_.w/etc && find . -print | cpio -dumpl
../conf/base/etc )
0 blocks
mkdir -p /usr/obj/usr/src/nanobsd/_.w/conf/default/etc
echo "mount -o ro /dev/ad0s3" >
/usr/obj/usr/src/nanobsd/_.w/conf/default/etc/remount
ln -s var/tmp /usr/obj/usr/src/nanobsd/_.w/tmp
mtree -deU -f /usr/obj/usr/src/nanobsd/_.w/etc/mtree/BSD.root.dist -p
/usr/obj/usr/src/nanobsd/_.w/
tmp changed
         type expected dir found link
mtree -deU -f /usr/obj/usr/src/nanobsd/_.w/etc/mtree/BSD.usr.dist -p
/usr/obj/usr/src/nanobsd/_.w/usr
mtree -deU -f /usr/obj/usr/src/nanobsd/_.w/etc/mtree/BSD.include.dist -p
/usr/obj/usr/src/nanobsd/_.w/usr/include
(cd /usr/obj/usr/src/nanobsd/_.w && mtree -c -Kmd5digest ) > _.mtree.tmp
/usr/src/nanobsd/i386.diskimage  501760  16  32  2048
/usr/obj/usr/src/nanobsd/_.w /usr/obj/usr/src/nanobsd/_.i  > _.md.tmp 2>&1
*** Error code 126

Stop in /usr/src/nanobsd.

#--------------------------------------------
# the last few lines of _.bw.tmp are:
#--------------------------------------------
....
===> usr.sbin/yppoll
===> usr.sbin/yppush
===> usr.sbin/ypserv
===> usr.sbin/ypset
===> usr.sbin/zic
===> usr.sbin/zic/zic
===> usr.sbin/zic/zdump
===> usr.sbin/zzz

#--------------------------------------------
# the entirety of _.md.tmp is one line:
#--------------------------------------------
/usr/src/nanobsd/i386.diskimage: Permission denied

#--------------------------------------------
# the file _.iw begins by complaining about
# a missing environment variable, but continues
# to a conclusion that doesn't seem to imply
# a problem
#--------------------------------------------
env: not found
"/usr/src/Makefile.inc1", line 94: warning: "env -i 
PATH=/usr/obj/usr/src/i386/legacy/usr/sbin:/usr/obj/usr/src/i386/legacy/usr/bin:
/usr/obj/usr/src/i386/legacy/usr/games:/usr/obj/usr/src/i386/usr/sbin:/usr/obj/usr/src/i386/usr/bin:/usr/obj/usr/src/i386/usr/games:
/tmp/install.3dZi2r4g MAKEFLAGS=" -j 12 -s 
DESTDIR=/usr/obj/usr/src/nanobsd/_.w 
__MAKE_CONF=/usr/src/nanobsd/make.conf -m /usr/src/s
hare/mk" make  -f /dev/null -V MAKEOBJDIRPREFIX dummy" returned non-zero 
status
--------------------------------------------------------------
 >>> Making hierarchy
--------------------------------------------------------------
env: not found
"/usr/src/Makefile.inc1", line 94: warning: "env -i 
PATH=/usr/obj/usr/src/i386/legacy/usr/sbin:/usr/obj/usr/src/i386/legacy/usr/bin:
/usr/obj/usr/src/i386/legacy/usr/games:/usr/obj/usr/src/i386/usr/sbin:/usr/obj/usr/src/i386/usr/bin:/usr/obj/usr/src/i386/usr/games:
/tmp/install.3dZi2r4g MAKEFLAGS=" -j 12 -s 
DESTDIR=/usr/obj/usr/src/nanobsd/_.w 
__MAKE_CONF=/usr/src/nanobsd/make.conf -m /usr/src/s
hare/mk" make  -f /dev/null -V MAKEOBJDIRPREFIX dummy" returned non-zero 
status
./bin missing (created)
./boot missing (created)
./boot/defaults missing (created)
... etc.


More information about the freebsd-small mailing list