Date: Wed, 17 Oct 2012 04:55:56 -0700 (PDT) From: Jack Mc Lauren <jack.mclauren@yahoo.com> To: "freebsd-embedded@freebsd.org" <freebsd-embedded@freebsd.org> Subject: some problems with nanobsd Message-ID: <1350474956.88226.YahooMailNeo@web126001.mail.ne1.yahoo.com> In-Reply-To: <1350474085.65221.YahooMailNeo@web126004.mail.ne1.yahoo.com> References: <1350471464.96400.YahooMailNeo@web126006.mail.ne1.yahoo.com> <507E9077.6000207@farrokhi.net> <1350474085.65221.YahooMailNeo@web126004.mail.ne1.yahoo.com>
index | next in thread | previous in thread | raw e-mail
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 ...
From owner-freebsd-embedded@FreeBSD.ORG Wed Oct 17 13:16:33 2012
Return-Path: <owner-freebsd-embedded@FreeBSD.ORG>
Delivered-To: freebsd-embedded@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
by hub.freebsd.org (Postfix) with ESMTP id 4DFB875C
for <freebsd-embedded@freebsd.org>; Wed, 17 Oct 2012 13:16:33 +0000 (UTC)
(envelope-from imp@bsdimp.com)
Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com
[209.85.223.182])
by mx1.freebsd.org (Postfix) with ESMTP id 085678FC0C
for <freebsd-embedded@freebsd.org>; Wed, 17 Oct 2012 13:16:32 +0000 (UTC)
Received: by mail-ie0-f182.google.com with SMTP id k10so15337591iea.13
for <freebsd-embedded@freebsd.org>; Wed, 17 Oct 2012 06:16:32 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=google.com; s 120113;
h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc
:content-transfer-encoding:message-id:references:to:x-mailer
:x-gm-message-state;
bh»483Dl4LNgV+FzrorHK4PrOxh2H6S8V/etCWewqG1c=;
b=aVpsBZk+aJ6JAyUQu1Q4MqUE/XX1u7VjrSmv/AkbewuvlMB7V5ltd1vvtEmqmFp9KB
itqTjzEGZSBYSQ1L1oN3b4/IFbE3ysuJX8dMR67jmqSPUdNuLS/R9wS0jpcs6xeN3v/e
zf75UKGw7eagkGI/ZFSoANC9DtHIqoXbdruTJUQS8sLX0CYqO6cmV7pHHwTOtb2SdrFZ
1EthqMMtwuQ3qfYP0cBnmTusVrcSh1SL/sfRDSbamUJpbRBhBVXW5nEhOTWM2HbgAtNA
szkfLabvKKlu9x+KAf3qStGnTbIdCNc7p/c/Wldq7r0bCm9BuIwN+OKESc0P2jJW2PuB
jKlg=Received: by 10.50.169.100 with SMTP id ad4mr1449206igc.50.1350479792429;
Wed, 17 Oct 2012 06:16:32 -0700 (PDT)
Received: from 63.imp.bsdimp.com
(50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198])
by mx.google.com with ESMTPS id 7sm10885097igh.0.2012.10.17.06.16.17
(version=TLSv1/SSLv3 cipher=OTHER);
Wed, 17 Oct 2012 06:16:29 -0700 (PDT)
Sender: Warner Losh <wlosh@bsdimp.com>
Subject: Re: some problems with nanobsd
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset=us-ascii
From: Warner Losh <imp@bsdimp.com>
In-Reply-To: <1350474956.88226.YahooMailNeo@web126001.mail.ne1.yahoo.com>
Date: Wed, 17 Oct 2012 07:16:15 -0600
Content-Transfer-Encoding: 7bit
Message-Id: <D0A59464-DC37-481F-AF46-3A1D692F2CB4@bsdimp.com>
References: <1350471464.96400.YahooMailNeo@web126006.mail.ne1.yahoo.com>
<507E9077.6000207@farrokhi.net>
<1350474085.65221.YahooMailNeo@web126004.mail.ne1.yahoo.com>
<1350474956.88226.YahooMailNeo@web126001.mail.ne1.yahoo.com>
To: Jack Mc Lauren <jack.mclauren@yahoo.com>
X-Mailer: Apple Mail (2.1084)
X-Gm-Message-State: ALoCoQlvh5r0mu7d/0szhZuVXyuqJQTMq8dgS2kNg/EAm/QyBTJca83wxFQVj4ncNbceToYvHUJ+
Cc: "freebsd-embedded@freebsd.org" <freebsd-embedded@freebsd.org>
X-BeenThere: freebsd-embedded@freebsd.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Dedicated and Embedded Systems <freebsd-embedded.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-embedded>,
<mailto:freebsd-embedded-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-embedded>
List-Post: <mailto:freebsd-embedded@freebsd.org>
List-Help: <mailto:freebsd-embedded-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-embedded>,
<mailto:freebsd-embedded-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Oct 2012 13:16:33 -0000
On Oct 17, 2012, at 5:55 AM, Jack Mc Lauren wrote:
> NANO_MEDIASIZE00000
Make this bigger.
Warner
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1350474956.88226.YahooMailNeo>
