From owner-freebsd-embedded@FreeBSD.ORG Sun Oct 14 19:23:56 2012 Return-Path: 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 6367A43E for ; Sun, 14 Oct 2012 19:23:56 +0000 (UTC) (envelope-from masked@internode.on.net) Received: from ipmail07.adl2.internode.on.net (ipmail07.adl2.internode.on.net [IPv6:2001:44b8:8060:ff02:300:1:2:7]) by mx1.freebsd.org (Postfix) with ESMTP id AAE6C8FC14 for ; Sun, 14 Oct 2012 19:23:55 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AggcAEkQe1CWZYlnN2dsb2JhbABEhSlpuXcBAQEBFAgNBQUSJ4JKbh0CBSECETQEFogWm2GGVIdzkVqBIYpDgxGCD4ESA6kcgUg Received: from bld-mail18.adl2.internode.on.net (HELO localhost) ([150.101.137.103]) by ipmail07.adl2.internode.on.net with ESMTP; 15 Oct 2012 05:53:54 +1030 MIME-Version: 1.0 X-Mailer: AtMail PHP 5.3 Message-ID: <33327.1350242634@internode.on.net> To: Content-Type: text/plain; charset="utf-8" X-Origin: 150.101.221.140 X-Atmail-Account: masked@internode.on.net Date: Mon, 15 Oct 2012 05:53:54 +1030 Subject: 4MB Flash TP-Link's From: masked@internode.on.net Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: masked@internode.on.net List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Oct 2012 19:23:56 -0000 Hi,=20 =20 I've managed to build a kernel and rootfs for the TL-WR741ND, however the m= ktplinkfw program will only accept a=20=20 kernel of a set size of which it has exceeded. Is there a way I can flash = both the kernel and the rootfs sepertely within=20=20 the u-boot loader? Remember: the default TP-Link u-boot only seems to acce= pt gzip kernels, else I wouldn't have this=20=20 problem.=20 =20 Regards,=20 =20 Michael Vale=20 =20 P.S. Next I'll report where I'm at with the Ubiqiuti XM series and request = any help as needed.=20 From owner-freebsd-embedded@FreeBSD.ORG Mon Oct 15 11:06:11 2012 Return-Path: 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 C60A1504 for ; Mon, 15 Oct 2012 11:06:11 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [8.8.178.135]) by mx1.freebsd.org (Postfix) with ESMTP id 9430B8FC22 for ; Mon, 15 Oct 2012 11:06:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q9FB6Bm4011446 for ; Mon, 15 Oct 2012 11:06:11 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q9FB6Bbl011445 for freebsd-embedded@FreeBSD.org; Mon, 15 Oct 2012 11:06:11 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 15 Oct 2012 11:06:11 GMT Message-Id: <201210151106.q9FB6Bbl011445@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-embedded@FreeBSD.org Subject: Current problem reports assigned to freebsd-embedded@FreeBSD.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2012 11:06:11 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). From owner-freebsd-embedded@FreeBSD.ORG Wed Oct 17 11:56:03 2012 Return-Path: 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 DCB54C9 for ; Wed, 17 Oct 2012 11:56:03 +0000 (UTC) (envelope-from jack.mclauren@yahoo.com) Received: from nm31-vm0.bullet.mail.ne1.yahoo.com (nm31-vm0.bullet.mail.ne1.yahoo.com [98.138.229.40]) by mx1.freebsd.org (Postfix) with ESMTP id 80A848FC0A for ; Wed, 17 Oct 2012 11:56:03 +0000 (UTC) Received: from [98.138.90.52] by nm31.bullet.mail.ne1.yahoo.com with NNFMP; 17 Oct 2012 11:55:57 -0000 Received: from [98.138.87.3] by tm5.bullet.mail.ne1.yahoo.com with NNFMP; 17 Oct 2012 11:55:56 -0000 Received: from [127.0.0.1] by omp1003.mail.ne1.yahoo.com with NNFMP; 17 Oct 2012 11:55:56 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 883201.98777.bm@omp1003.mail.ne1.yahoo.com Received: (qmail 98262 invoked by uid 60001); 17 Oct 2012 11:55:56 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1350474956; bh=lVSxXUo/y0GPQTnSildfX1McfUiNCrDVz40J4Iv9lcc=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=wdEyDDZjlfAFQrBKjDQWnIT2pebh6qrcoh7WodXx7OQXOioWuekT3mBk61I7JLMS3Zx0A5w2XLAopW8pAVXWl0ZJBGvcMp/DMQt1pujKjoJV84X7L0/7VKyDOaLmjO7DCeC83HMfNm822rhD7xYdvcuMpDFp2V/pLWxQ9BOrgqg= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=z3DgnIwNLXJPQqakr1mrPDFFNZUQC6JdX2IekRo1jYyiYUPv5VtlFZsRv454HVMJrxYYRR5xc5IAnSPcU/D0nV13DQbiURK86EJGRZKnULSpN2F8swY8NkJ7Lcc5XOz5Vo65+rkKultKI/5wEJvRe77nDPE02xCHSclA2QEodFw=; X-YMail-OSG: lQ8E3SAVM1nVK7QYgcMp6aimGQEDrJhgQUQIv_GmBNGv53A yLlThlOIkdXf1YnXISyZ13e.SU35COZaHFIDoFCVW4HuypRCfXClqjOPh5hJ IK0bis3erlW2cxs7rnkM6bCuElqpEOFhceMD7GNYcfyFlml.xcvTchoWvAGA EZLcAVexYE45hAAACMDI9X6MzIaD8yhAG6jhje.0koWDeLLGyPbUC2rmGWmw JOOfZ9.9BWJ2Z4zX.A1zFvCrGDjYXf6kLRN4tcbbsq1Q8oabpvYw61wzO9Sc MjhEkvscAQRZafstqT2PZlpckb8rWjR84Z.SaEi_D4zcK67YdqtpvxRVKl1w Y_bSHv4XQdMZ_n1Y30EzukmDyqZggYdXIMRN64ftn8c_NBj2bHMucKF3ttpJ Tzg3f_f0cDycr5lmD4CeFszqVq3WuQ59QfZXp.mDsf.AFnCwdIzL6k9EasE_ PKYdFiRcFL7Rr1LY2OeBB9a9bRc04ylG6iZGecWmKC5B9idy2E4LSeGPuR4a UQk450bpX1joOIDthl5E3V2MC4LjmOw-- Received: from [89.165.120.140] by web126001.mail.ne1.yahoo.com via HTTP; Wed, 17 Oct 2012 04:55:56 PDT X-Rocket-MIMEInfo: 001.001, aGkKaSBoYXZlIHNvbWUgcHJvYmxlbXMgd2l0aCBuYW5vYnNkLCBwbGVhc2UgaGVscCBtZSAuLi4KdGhpcyBpcyBteSBuYW5vYnNkLnNoIGZpbGUgOgoKCgojIE5hbWUgb2YgdGhpcyBOYW5vQlNEIGJ1aWxkLsKgIChVc2VkIHRvIGNvbnN0cnVjdCB3b3JrZGlyIG5hbWVzKQpOQU5PX05BTUU9ZnVsbAoKIyBTb3VyY2UgdHJlZSBkaXJlY3RvcnkKTkFOT19TUkM9L3Vzci9zcmMKCiMgV2hlcmUgbmFub2JzZCBhZGRpdGlvbmFsIGZpbGVzIGxpdmUgdW5kZXIgdGhlIHNvdXJjZSB0cmVlCk5BTk9fVE9PTFM9dG9vbHMBMAEBAQE- X-Mailer: YahooMailWebService/0.8.123.450 References: <1350471464.96400.YahooMailNeo@web126006.mail.ne1.yahoo.com> <507E9077.6000207@farrokhi.net> <1350474085.65221.YahooMailNeo@web126004.mail.ne1.yahoo.com> Message-ID: <1350474956.88226.YahooMailNeo@web126001.mail.ne1.yahoo.com> Date: Wed, 17 Oct 2012 04:55:56 -0700 (PDT) From: Jack Mc Lauren Subject: some problems with nanobsd To: "freebsd-embedded@freebsd.org" In-Reply-To: <1350474085.65221.YahooMailNeo@web126004.mail.ne1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Jack Mc Lauren List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Oct 2012 11:56:04 -0000 hi=0Ai have some problems with nanobsd, please help me ...=0Athis is my nan= obsd.sh file :=0A=0A=0A=0A# Name of this NanoBSD build.=A0 (Used to constru= ct workdir names)=0ANANO_NAME=3Dfull=0A=0A# Source tree directory=0ANANO_SR= C=3D/usr/src=0A=0A# Where nanobsd additional files live under the source tr= ee=0ANANO_TOOLS=3Dtools/tools/nanobsd=0A=0A# Where cust_pkg() finds package= s to install=0ANANO_PACKAGE_DIR=3D${NANO_SRC}/${NANO_TOOLS}/Pkg=0ANANO_PACK= AGE_LIST=3D"*"=0A=0A# Object tree=0A directory=0A# default is subdir of /us= r/obj=0A#NANO_OBJ=3D"/usr/images"=0A=0A# The directory to put the final ima= ges=0A# default is ${NANO_OBJ}=0A#NANO_DISKIMGDIR=3D""=0A=0A# Parallel Make= =0ANANO_PMAKE=3D"make -j 3"=0A=0A# The default name for any image we create= .=0ANANO_IMGNAME=3D"_.disk.full"=0A=0A# Options to put in make.conf during = buildworld only=0A#CONF_BUILD=3D' '=0A=0A# Options to put in make.conf duri= ng installworld only=0A#CONF_INSTALL=3D' '=0A=0A# Options to put in make.co= nf during both build- & installworld.=0A#CONF_WORLD=3D'=0A '=0A=0ACONF_BUIL= D=3D'=0ANO_KLDLOAD=3DYES=0ANO_NETGRAPH=3DYES=0ANO_PAM=3DYES=0A'=0ACONF_INST= ALL=3D'=0ANO_ACPI=3DYES=0ANO_BLUETOOTH=3DYES=0ANO_CVS=3DYES=0ANO_FORTRAN=3D= YES=0ANO_HTML=3DYES=0ANO_LPR=3DYES=0ANO_MAN=3DYES=0ANO_SENDMAIL=3DYES=0ANO_= SHAREDOCS=3DYES=0ANO_EXAMPLES=3DYES=0ANO_INSTALLLIB=3DYES=0ANO_CALENDAR=3DY= ES=0ANO_MISC=3DYES=0ANO_SHARE=3DYES=0A'=0ACONF_WORLD=3D'=0AWITHOUT_BIND=3DY= ES=0AWITHOUT_BLUETOOTH=3DYES=0AWITHOUT_CALENDAR=3DYES=0AWITHOUT_EXAMPLES=3D= YES=0AWITHOUT_FORTRAN=3DYES=0AWITHOUT_GAMES=3DYES=0AWITHOUT_I4B=3DYES=0AWIT= HOUT_INET6=3DYES=0AWITHOUT_INFO=3DYES=0AWITHOUT_IPX=3DYES=0AWITHOUT_KERBERO= S=3DYES=0AWITHOUT_MAN=3DYES=0AWITHOUT_SPP=3DYES=0AWITHOUT_SYSCONS=3DYES=0AW= ITHOUT_USB=3DYES=0AWITHOUT_WPA_SUPPLICANT_EAPOL=3DYES=0AWITHOUT_ZFS=3DYES= =0A'=0A=0A=0A# Kernel config file to use=0ANANO_KERNEL=3DGENERIC=0A=0A# Cus= tomize commands.=0ANANO_CUSTOMIZE=3D""=0A=0A# Late customize commands.=0ANA= NO_LATE_CUSTOMIZE=3D""=0A=0A# Newfs paramters to use=0ANANO_NEWFS=3D"-b 409= 6 -f=0A 512 -i 8192 -O1 -U"=0A=0A# The drive name of the media at runtime= =0ANANO_DRIVE=3Dad0=0A=0A# Target media size in 512 bytes sectors=0ANANO_ME= DIASIZE=3D1200000=0A=0A# Number of code images on media (1 or 2)=0ANANO_IMA= GES=3D2=0A=0A# 0 -> Leave second image all zeroes so it compresses better.= =0A# 1 -> Initialize second image with a copy of the first=0ANANO_INIT_IMG2= =3D1=0A=0A# Size of code file system in 512 bytes sectors=0A# If zero, size= will be as large as possible.=0ANANO_CODESIZE=3D0=0A=0A# Size of configura= tion file system in 512 bytes sectors=0A# Cannot be zero.=0ANANO_CONFSIZE= =3D2048=0A=0A# Size of data file system in 512 bytes sectors=0A# If zero: n= o partition configured.=0A# If negative: max size possible=0ANANO_DATASIZE= =3D0=0A=0A# Size of the /etc ramdisk in 512 bytes sectors=0ANANO_RAM_ETCSIZ= E=3D10240=0A=0A# Size of the /tmp+/var ramdisk in 512 bytes sectors=0ANANO_= RAM_TMPVARSIZE=3D10240=0A=0A# Media geometry, only relevant=0A if bios does= n't understand LBA.=0ANANO_SECTS=3D63=0ANANO_HEADS=3D16=0A=0A# boot0 flags/= options and configuration=0ANANO_BOOT0CFG=3D"-o packet -s 1 -m 3"=0ANANO_BO= OTLOADER=3D"boot/boot0sio"=0A=0A# boot2 flags/options=0A# default force ser= ial console=0ANANO_BOOT2CFG=3D"-h"=0A=0A# Backing type of md(4) device=0A# = Can be "file" or "swap"=0ANANO_MD_BACKING=3D"file"=0A=0A# Progress Print le= vel=0APPLEVEL=3D3=0A=0Aafter running this command :=0A=0A[root@ /usr/src/to= ols/tools/nanobsd]# sh nanobsd.sh=0Ai have these output messages :=0A=0A00:= 00:00 # NanoBSD image full build starting=0A00:00:00 ## Clean and create ob= ject directory=0A (/usr/obj/nanobsd.full/)=0A00:00:00 ## Construct build ma= ke.conf (/usr/obj/nanobsd.full//make.conf.build)=0A00:00:00 ## run buildwor= ld=0A00:00:00 ### log: /usr/obj/nanobsd.full//_.bw=0A00:31:12 ## build kern= el (GENERIC)=0A00:31:12 ### log: /usr/obj/nanobsd.full//_.bk=0A00:41:10 ## = Clean and create world directory (/usr/obj/nanobsd.full//_.w)=0A00:41:10 ##= Construct install make.conf (/usr/obj/nanobsd.full//make.conf.install)=0A0= 0:41:10 ## installworld=0A00:41:10 ### log: /usr/obj/nanobsd.full//_.iw=0A0= 0:41:51 ## install /etc=0A00:41:51 ### log: /usr/obj/nanobsd.full//_.etc=0A= 00:41:52 ## configure nanobsd /etc=0A00:41:52 ## install kernel=0A00:41:52 = ### log: /usr/obj/nanobsd.full//_.ik=0A00:42:16 ## run customize scripts=0A= 00:42:16 ## configure nanobsd setup=0A00:42:16 ### log: /usr/obj/nanobsd.fu= ll//_.dl=0A00:42:16 ## run late customize scripts=0A00:42:16 ## build diski= mage=0A00:42:16 ### log:=0A /usr/obj/nanobsd.full//_.di=0A=0A/usr/obj/nanob= sd.full/_.mnt: write failed, filesystem is full=0A[root@ /usr/src/tools/too= ls/nanobsd]#=0A=0Awhat does this error say? and how can i solve the problem= ?=0A=0A=0Athe 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 ?=0A=0Athank you all= ... From owner-freebsd-embedded@FreeBSD.ORG Wed Oct 17 13:16:33 2012 Return-Path: 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 ; 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 ; Wed, 17 Oct 2012 13:16:32 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id k10so15337591iea.13 for ; 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=20120113; 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=bB483Dl4LNgV+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 Subject: Re: some problems with nanobsd Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Warner Losh 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: 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 X-Mailer: Apple Mail (2.1084) X-Gm-Message-State: ALoCoQlvh5r0mu7d/0szhZuVXyuqJQTMq8dgS2kNg/EAm/QyBTJca83wxFQVj4ncNbceToYvHUJ+ Cc: "freebsd-embedded@freebsd.org" X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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_MEDIASIZE=1200000 Make this bigger. Warner From owner-freebsd-embedded@FreeBSD.ORG Wed Oct 17 14:28:29 2012 Return-Path: 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 81587BF4 for ; Wed, 17 Oct 2012 14:28:29 +0000 (UTC) (envelope-from freebsd@damnhippie.dyndns.org) Received: from duck.symmetricom.us (duck.symmetricom.us [206.168.13.214]) by mx1.freebsd.org (Postfix) with ESMTP id BC7FF8FC0A for ; Wed, 17 Oct 2012 14:28:28 +0000 (UTC) Received: from damnhippie.dyndns.org (daffy.symmetricom.us [206.168.13.218]) by duck.symmetricom.us (8.14.5/8.14.5) with ESMTP id q9HESLcJ023696 for ; Wed, 17 Oct 2012 08:28:22 -0600 (MDT) (envelope-from freebsd@damnhippie.dyndns.org) Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id q9HESHT4089959; Wed, 17 Oct 2012 08:28:17 -0600 (MDT) (envelope-from freebsd@damnhippie.dyndns.org) Subject: Re: some problems with nanobsd From: Ian Lepore To: Jack Mc Lauren In-Reply-To: <1350474956.88226.YahooMailNeo@web126001.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> <1350474956.88226.YahooMailNeo@web126001.mail.ne1.yahoo.com> Content-Type: text/plain; charset="us-ascii" Date: Wed, 17 Oct 2012 08:28:17 -0600 Message-ID: <1350484097.1123.207.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: "freebsd-embedded@freebsd.org" X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Oct 2012 14:28:29 -0000 On Wed, 2012-10-17 at 04:55 -0700, Jack Mc Lauren wrote: > 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 ? What you can leave off depends on what you'll do with the resulting system, of course. For our embedded products we use most of the same NO_foo and WITHOUT_foo options you have, but we also use a few that are missing from your list: WITHOUT_CLANG WITHOUT_GNU WITHOUT_HTML WITHOUT_OBJC WITHOUT_SHAREDOCS WITHOUT_SENDMAIL WITHOUT_PROFILE The other thing we do is specify an explicit list of directories to visit and run 'make install' during the installworld; this lets us control things that have no WITHOUT knobs. I don't know if nanobsd allows that level of customization (we don't use it to build products). We deploy systems whose image fits in less than 100MB of disk space, sometimes less than 64MB, but they aren't general-purpose computers with all the commands you'd expect to find in a full unix environment. They are very much dedicated-purpose black boxes containing just what's needed to do their jobs. -- Ian From owner-freebsd-embedded@FreeBSD.ORG Wed Oct 17 14:47:27 2012 Return-Path: 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 06C2B168 for ; Wed, 17 Oct 2012 14:47:27 +0000 (UTC) (envelope-from freebsd@psconsult.nl) Received: from mx1.psconsult.nl (unknown [IPv6:2001:7b8:30f:e0::5059:ee8a]) by mx1.freebsd.org (Postfix) with ESMTP id A83BC8FC0A for ; Wed, 17 Oct 2012 14:47:26 +0000 (UTC) Received: from mx1.psconsult.nl (mx1.hvnu.psconsult.nl [46.44.189.154]) by mx1.psconsult.nl (8.14.5/8.14.4) with ESMTP id q9HElJQC095003 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 17 Oct 2012 16:47:24 +0200 (CEST) (envelope-from freebsd@psconsult.nl) Received: (from paul@localhost) by mx1.psconsult.nl (8.14.5/8.14.4/Submit) id q9HElJkk095002 for freebsd-embedded@freebsd.org; Wed, 17 Oct 2012 16:47:19 +0200 (CEST) (envelope-from freebsd@psconsult.nl) X-Authentication-Warning: mx1.psconsult.nl: paul set sender to freebsd@psconsult.nl using -f Date: Wed, 17 Oct 2012 16:47:19 +0200 From: Paul Schenkeveld To: freebsd-embedded@freebsd.org Subject: Re: some problems with nanobsd Message-ID: <20121017144719.GA94848@psconsult.nl> 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> <1350484097.1123.207.camel@revolution.hippie.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1350484097.1123.207.camel@revolution.hippie.lan> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Oct 2012 14:47:27 -0000 On Wed, Oct 17, 2012 at 08:28:17AM -0600, Ian Lepore wrote: > The other thing we do is specify an explicit list of directories to > visit and run 'make install' during the installworld; this lets us > control things that have no WITHOUT knobs. I don't know if nanobsd > allows that level of customization (we don't use it to build products). What mechnism (variable?) do you use to control that list of directories? With kind regards, Paul Schenkeveld From owner-freebsd-embedded@FreeBSD.ORG Wed Oct 17 15:19:55 2012 Return-Path: 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 35DE47AD for ; Wed, 17 Oct 2012 15:19:55 +0000 (UTC) (envelope-from freebsd@damnhippie.dyndns.org) Received: from duck.symmetricom.us (duck.symmetricom.us [206.168.13.214]) by mx1.freebsd.org (Postfix) with ESMTP id 85E1E8FC1A for ; Wed, 17 Oct 2012 15:19:54 +0000 (UTC) Received: from damnhippie.dyndns.org (daffy.symmetricom.us [206.168.13.218]) by duck.symmetricom.us (8.14.5/8.14.5) with ESMTP id q9HFJrg8025084 for ; Wed, 17 Oct 2012 09:19:53 -0600 (MDT) (envelope-from freebsd@damnhippie.dyndns.org) Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id q9HFJpWa090004; Wed, 17 Oct 2012 09:19:51 -0600 (MDT) (envelope-from freebsd@damnhippie.dyndns.org) Subject: Re: some problems with nanobsd From: Ian Lepore To: Paul Schenkeveld In-Reply-To: <20121017144719.GA94848@psconsult.nl> 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> <1350484097.1123.207.camel@revolution.hippie.lan> <20121017144719.GA94848@psconsult.nl> Content-Type: text/plain; charset="us-ascii" Date: Wed, 17 Oct 2012 09:19:51 -0600 Message-ID: <1350487191.1123.216.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-embedded@freebsd.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Oct 2012 15:19:55 -0000 On Wed, 2012-10-17 at 16:47 +0200, Paul Schenkeveld wrote: > On Wed, Oct 17, 2012 at 08:28:17AM -0600, Ian Lepore wrote: > > The other thing we do is specify an explicit list of directories to > > visit and run 'make install' during the installworld; this lets us > > control things that have no WITHOUT knobs. I don't know if nanobsd > > allows that level of customization (we don't use it to build products). > > What mechnism (variable?) do you use to control that list of directories? > I'm on dangerous ground here... if I demonstrate too much knowledge of our crazy-complex build system, suddenly I'm going to find that I'm the new buildmeister. :) But, it didn't take me too long to find where we do this stuff... We have a variable that contains a list of dirs under build-chroot/usr/src and in our script that populates the image we have this loop: for i in ${FreeBSDProgramDirs}; do echo "==> $i" (cd $i && eval env ${mkenv} ${mkcmd} INSTALL=install \ NOINSTALLLIB=yes NO_INSTALLLIB=yes install) done So I gather we never do a full installworld at all, we just run that loop instead. Here's our basic list; we add to this list for some products, others need just this stuff. FREEBSDMIN+= \ bin/cat \ bin/chflags \ bin/chmod \ bin/cp \ bin/csh \ bin/date \ bin/dd \ bin/df \ bin/echo \ bin/expr \ bin/hostname \ bin/kenv \ bin/kill \ bin/ln \ bin/ls \ bin/mkdir \ bin/mv \ bin/pkill \ bin/ps \ bin/pwait \ bin/pwd \ bin/rcp \ bin/realpath \ bin/rm \ bin/rmdir \ bin/sh \ bin/sleep \ bin/stty \ bin/sync \ bin/test \ gnu/lib/libgcc \ gnu/lib/libstdc++ \ lib/libarchive \ lib/libbsm \ lib/libbz2 \ lib/libc \ lib/libcrypt \ lib/libdevstat \ lib/libedit \ lib/libelf \ lib/libexpat \ lib/libgeom \ lib/libipsec \ lib/libipx \ lib/libjail \ lib/libkvm \ lib/liblzma \ lib/libmd \ lib/libmemstat \ lib/libmp \ lib/libnetgraph \ lib/libpam \ lib/libpam/modules \ lib/libpcap \ lib/libradius \ lib/librt \ lib/libsbuf \ lib/libtacplus \ lib/libthr \ lib/libthread_db \ lib/libufs \ lib/libusb \ lib/libutil \ lib/libwrap \ lib/libypclnt \ lib/libz \ lib/libopie \ lib/msun \ lib/ncurses/ncurses \ libexec/ftpd \ libexec/getty \ libexec/rlogind \ libexec/rshd \ libexec/rtld-elf \ libexec/telnetd \ sbin/adjkerntz \ sbin/devd \ sbin/devfs \ sbin/dhclient \ sbin/dmesg \ sbin/dumpon \ sbin/fsck \ sbin/fsck_ffs \ sbin/geom \ sbin/ifconfig \ sbin/init \ sbin/ipfw \ sbin/kldload \ sbin/kldstat \ sbin/kldunload \ sbin/ldconfig \ sbin/md5 \ sbin/mdconfig \ sbin/mdmfs \ sbin/mknod \ sbin/mount \ sbin/mount_nullfs \ sbin/mount_nfs \ sbin/newfs \ sbin/ping \ sbin/rcorder \ sbin/reboot \ sbin/route \ sbin/savecore \ sbin/swapon \ sbin/sysctl \ sbin/umount \ secure/lib/libcrypto \ secure/lib/libssh \ secure/libexec/sftp-server \ secure/usr.bin/scp \ secure/usr.bin/ssh-add \ secure/usr.bin/ssh-agent \ secure/usr.bin/ssh-keygen \ secure/usr.bin/ssh \ secure/usr.sbin/sshd \ share/termcap \ sys/boot \ usr.bin/awk \ usr.bin/basename \ usr.bin/bzip2 \ usr.bin/dirname \ usr.bin/du \ usr.bin/env \ usr.bin/ftp \ usr.bin/find \ usr.bin/fstat \ usr.bin/grep \ usr.bin/gzip \ usr.bin/head \ usr.bin/hexdump \ usr.bin/id \ usr.bin/jot \ usr.bin/killall \ usr.bin/ldd \ usr.bin/less \ usr.bin/logger \ usr.bin/login \ usr.bin/mktemp \ usr.bin/nc \ usr.bin/nice \ usr.bin/netstat \ usr.bin/procstat \ usr.bin/rsh \ usr.bin/rlogin \ usr.bin/script \ usr.bin/sed \ usr.bin/sort \ usr.bin/sockstat \ usr.bin/stat \ usr.bin/su \ usr.bin/tail \ usr.bin/tar \ usr.bin/telnet \ usr.bin/tip \ usr.bin/top \ usr.bin/touch \ usr.bin/tr \ usr.bin/tty \ usr.bin/uname \ usr.bin/vi \ usr.bin/wc \ usr.bin/xargs \ usr.bin/xz \ usr.bin/xzdec \ usr.sbin/arp \ usr.sbin/chown \ usr.sbin/cron \ usr.sbin/daemon \ usr.sbin/gstat \ usr.sbin/inetd \ usr.sbin/mtree \ usr.sbin/newsyslog \ usr.sbin/nologin \ usr.sbin/ntp/ntpd \ usr.sbin/ntp/ntpdate \ usr.sbin/ntp/ntpq \ usr.sbin/kbdcontrol \ usr.sbin/pciconf \ usr.sbin/pstat \ usr.sbin/pwd_mkdb \ usr.sbin/service \ usr.sbin/syslogd \ usr.sbin/tcpdump \ usr.sbin/traceroute \ usr.sbin/usbconfig \ usr.sbin/vidcontrol \ usr.sbin/vipw \ usr.sbin/watchdogd -- Ian