some problems with nanobsd

Jack Mc Lauren jack.mclauren at yahoo.com
Wed Oct 17 11:56:04 UTC 2012


hi
i have some problems with nanobsd, please help me ...
this is my nanobsd.sh file :



# Name of this NanoBSD build.  (Used to construct workdir names)
NANO_NAME=full

# Source tree directory
NANO_SRC=/usr/src

# Where nanobsd additional files live under the source tree
NANO_TOOLS=tools/tools/nanobsd

# Where cust_pkg() finds packages to install
NANO_PACKAGE_DIR=${NANO_SRC}/${NANO_TOOLS}/Pkg
NANO_PACKAGE_LIST="*"

# Object tree
 directory
# default is subdir of /usr/obj
#NANO_OBJ="/usr/images"

# The directory to put the final images
# default is ${NANO_OBJ}
#NANO_DISKIMGDIR=""

# Parallel Make
NANO_PMAKE="make -j 3"

# The default name for any image we create.
NANO_IMGNAME="_.disk.full"

# Options to put in make.conf during buildworld only
#CONF_BUILD=' '

# Options to put in make.conf during installworld only
#CONF_INSTALL=' '

# Options to put in make.conf during both build- & installworld.
#CONF_WORLD='
 '

CONF_BUILD='
NO_KLDLOAD=YES
NO_NETGRAPH=YES
NO_PAM=YES
'
CONF_INSTALL='
NO_ACPI=YES
NO_BLUETOOTH=YES
NO_CVS=YES
NO_FORTRAN=YES
NO_HTML=YES
NO_LPR=YES
NO_MAN=YES
NO_SENDMAIL=YES
NO_SHAREDOCS=YES
NO_EXAMPLES=YES
NO_INSTALLLIB=YES
NO_CALENDAR=YES
NO_MISC=YES
NO_SHARE=YES
'
CONF_WORLD='
WITHOUT_BIND=YES
WITHOUT_BLUETOOTH=YES
WITHOUT_CALENDAR=YES
WITHOUT_EXAMPLES=YES
WITHOUT_FORTRAN=YES
WITHOUT_GAMES=YES
WITHOUT_I4B=YES
WITHOUT_INET6=YES
WITHOUT_INFO=YES
WITHOUT_IPX=YES
WITHOUT_KERBEROS=YES
WITHOUT_MAN=YES
WITHOUT_SPP=YES
WITHOUT_SYSCONS=YES
WITHOUT_USB=YES
WITHOUT_WPA_SUPPLICANT_EAPOL=YES
WITHOUT_ZFS=YES
'


# Kernel config file to use
NANO_KERNEL=GENERIC

# Customize commands.
NANO_CUSTOMIZE=""

# Late customize commands.
NANO_LATE_CUSTOMIZE=""

# Newfs paramters to use
NANO_NEWFS="-b 4096 -f
 512 -i 8192 -O1 -U"

# The drive name of the media at runtime
NANO_DRIVE=ad0

# Target media size in 512 bytes sectors
NANO_MEDIASIZE=1200000

# Number of code images on media (1 or 2)
NANO_IMAGES=2

# 0 -> Leave second image all zeroes so it compresses better.
# 1 -> Initialize second image with a copy of the first
NANO_INIT_IMG2=1

# Size of code file system in 512 bytes sectors
# If zero, size will be as large as possible.
NANO_CODESIZE=0

# Size of configuration file system in 512 bytes sectors
# Cannot be zero.
NANO_CONFSIZE=2048

# Size of data file system in 512 bytes sectors
# If zero: no partition configured.
# If negative: max size possible
NANO_DATASIZE=0

# Size of the /etc ramdisk in 512 bytes sectors
NANO_RAM_ETCSIZE=10240

# Size of the /tmp+/var ramdisk in 512 bytes sectors
NANO_RAM_TMPVARSIZE=10240

# Media geometry, only relevant
 if bios doesn't understand LBA.
NANO_SECTS=63
NANO_HEADS=16

# boot0 flags/options and configuration
NANO_BOOT0CFG="-o packet -s 1 -m 3"
NANO_BOOTLOADER="boot/boot0sio"

# boot2 flags/options
# default force serial console
NANO_BOOT2CFG="-h"

# Backing type of md(4) device
# Can be "file" or "swap"
NANO_MD_BACKING="file"

# Progress Print level
PPLEVEL=3

after running this command :

[root@ /usr/src/tools/tools/nanobsd]# sh nanobsd.sh
i have these output messages :

00:00:00 # NanoBSD image full build starting
00:00:00 ## Clean and create object directory
 (/usr/obj/nanobsd.full/)
00:00:00 ## Construct build make.conf (/usr/obj/nanobsd.full//make.conf.build)
00:00:00 ## run buildworld
00:00:00 ### log: /usr/obj/nanobsd.full//_.bw
00:31:12 ## build kernel (GENERIC)
00:31:12 ### log: /usr/obj/nanobsd.full//_.bk
00:41:10 ## Clean and create world directory (/usr/obj/nanobsd.full//_.w)
00:41:10 ## Construct install make.conf (/usr/obj/nanobsd.full//make.conf.install)
00:41:10 ## installworld
00:41:10 ### log: /usr/obj/nanobsd.full//_.iw
00:41:51 ## install /etc
00:41:51 ### log: /usr/obj/nanobsd.full//_.etc
00:41:52 ## configure nanobsd /etc
00:41:52 ## install kernel
00:41:52 ### log: /usr/obj/nanobsd.full//_.ik
00:42:16 ## run customize scripts
00:42:16 ## configure nanobsd setup
00:42:16 ### log: /usr/obj/nanobsd.full//_.dl
00:42:16 ## run late customize scripts
00:42:16 ## build diskimage
00:42:16 ### log:
 /usr/obj/nanobsd.full//_.di

/usr/obj/nanobsd.full/_.mnt: write failed, filesystem is full
[root@ /usr/src/tools/tools/nanobsd]#

what does this error say? and how can i solve the problem ?


the other problem is that whether i have lots of WITHOUT options or a few , volume of _.disk.full is about 600MB. what should i do in order to have a very light image? what options should i set ?

thank you all ...


More information about the freebsd-embedded mailing list