From owner-freebsd-small@FreeBSD.ORG Tue Apr 24 04:42:38 2007 Return-Path: X-Original-To: freebsd-small@freebsd.org Delivered-To: freebsd-small@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 194B116A402 for ; Tue, 24 Apr 2007 04:42:38 +0000 (UTC) (envelope-from davidn04@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.freebsd.org (Postfix) with ESMTP id A782813C48C for ; Tue, 24 Apr 2007 04:42:37 +0000 (UTC) (envelope-from davidn04@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so88122ugh for ; Mon, 23 Apr 2007 21:42:36 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=ejev8K1De2G7Hx2Scug698XMp7jOMcoL7XJqQSJD+JwnXUvcE4mxhHi6ISlcPBt2jELYZReehH9elh7u1dupUiXL3q1ixGzEEDDilBupb2ZNVkbxVgEfeCj/M+nQvf1UCIN/MJHg4HP40F+mt7ek7FEqmgbaNENhsTuat9mwfkY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=NZNMP7erGowbC6jLMfkUPrkhu1o1DSL/J1c92i9TlE5wZLdiz6dWQeYk8d7B7AiOsFi9GawfCsapd9ov2qSNcFNPcLvnNh12dF0Ot7kILwcSNnAFv+vXnWfOPA+uGsBA35qAwExMaFnQtaygB7xjiuLw5QCk2t3AKqYAgpTj020= Received: by 10.66.255.7 with SMTP id c7mr318958ugi.1177388271723; Mon, 23 Apr 2007 21:17:51 -0700 (PDT) Received: by 10.67.12.15 with HTTP; Mon, 23 Apr 2007 21:17:51 -0700 (PDT) Message-ID: <4d7dd86f0704232117h25bb4166s423cf08152c2575d@mail.gmail.com> Date: Tue, 24 Apr 2007 14:17:51 +1000 From: "David N" To: freebsd-small@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: NanoBSD Image X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2007 04:42:38 -0000 Hi, I'm just wondering if its possible to mount the _.disk.full or _.disk.image? Also, is it possible to dd the images to a slice or partition on a HDD as i dont have any Memory Cards to test it on at the moment. such as dd if=_.disk.image of=/dev/ads2 bs=64k Cheers David From owner-freebsd-small@FreeBSD.ORG Tue Apr 24 11:31:03 2007 Return-Path: X-Original-To: small@freebsd.org Delivered-To: freebsd-small@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6301416A401 for ; Tue, 24 Apr 2007 11:31:03 +0000 (UTC) (envelope-from wsk@gddsn.org.cn) Received: from gddsn.org.cn (gddsn.org.cn [218.19.164.145]) by mx1.freebsd.org (Postfix) with ESMTP id E1EB213C44C for ; Tue, 24 Apr 2007 11:30:52 +0000 (UTC) (envelope-from wsk@gddsn.org.cn) Received: from lp.gddsn.org.cn (unknown [10.44.8.159]) by gddsn.org.cn (Postfix) with ESMTP id 1C0E838CBA7; Tue, 24 Apr 2007 13:11:19 +0800 (CST) Message-ID: <462D916E.8090204@gddsn.org.cn> Date: Tue, 24 Apr 2007 13:11:10 +0800 From: wsk User-Agent: Thunderbird 2.0.0.0 (X11/20070421) MIME-Version: 1.0 To: David N , small@freebsd.org References: <4d7dd86f0704232117h25bb4166s423cf08152c2575d@mail.gmail.com> In-Reply-To: <4d7dd86f0704232117h25bb4166s423cf08152c2575d@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: NanoBSD Image X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2007 11:31:03 -0000 David N Wrote: > Hi, > > I'm just wondering if its possible to mount the _.disk.full or > _.disk.image? > > Also, is it possible to dd the images to a slice or partition on a HDD > as i dont have any Memory Cards to test it on at the moment. > > such as > dd if=_.disk.image of=/dev/ads2 bs=64k > > Cheers > David > _______________________________________________ > freebsd-small@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-small > To unsubscribe, send any mail to "freebsd-small-unsubscribe@freebsd.org" > of course you can From owner-freebsd-small@FreeBSD.ORG Tue Apr 24 13:24:05 2007 Return-Path: X-Original-To: freebsd-small@freebsd.org Delivered-To: freebsd-small@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D45F516A402 for ; Tue, 24 Apr 2007 13:24:05 +0000 (UTC) (envelope-from mat@mat.cc) Received: from plouf.absolight.net (plouf.absolight.net [193.30.224.136]) by mx1.freebsd.org (Postfix) with ESMTP id 9E66E13C44C for ; Tue, 24 Apr 2007 13:24:05 +0000 (UTC) (envelope-from mat@mat.cc) Received: from atuin.in.mat.cc (ATuin.in.mat.cc [193.30.224.125]) by plouf.absolight.net (Postfix) with ESMTP id C1F756040EA; Tue, 24 Apr 2007 14:52:16 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by atuin.in.mat.cc (Postfix) with ESMTP id 5959E43EAED; Tue, 24 Apr 2007 14:52:15 +0200 (CEST) Date: Tue, 24 Apr 2007 11:17:51 +0200 From: Mathieu Arnold To: David N , freebsd-small@freebsd.org Message-ID: In-Reply-To: <4d7dd86f0704232117h25bb4166s423cf08152c2575d@mail.gmail.com> References: <4d7dd86f0704232117h25bb4166s423cf08152c2575d@mail.gmail.com> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: Re: NanoBSD Image X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2007 13:24:05 -0000 +-Le 24/04/07 14:17 +1000, David N a dit : | Hi, | | I'm just wondering if its possible to mount the _.disk.full or | _.disk.image? Yes, just use mdconfig, something like mdconfig -a -t vnode -f _.disk.full, you'll have a /dev/mdX with it in. | Also, is it possible to dd the images to a slice or partition on a HDD | as i dont have any Memory Cards to test it on at the moment. | | such as | dd if=_.disk.image of=/dev/ads2 bs=64k You can, but you'll loose a lot of space :) -- Mathieu Arnold From owner-freebsd-small@FreeBSD.ORG Tue Apr 24 22:51:32 2007 Return-Path: X-Original-To: freebsd-small@freebsd.org Delivered-To: freebsd-small@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 549AB16A401 for ; Tue, 24 Apr 2007 22:51:32 +0000 (UTC) (envelope-from davidn04@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id E191B13C459 for ; Tue, 24 Apr 2007 22:51:31 +0000 (UTC) (envelope-from davidn04@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so266747ugh for ; Tue, 24 Apr 2007 15:51:30 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=iNfh5Roa3HX7Ogq2FKM67od/ya/j15SZXMYrWpQS+hn81nNA07G2caJBpv+Ey4PyO6Dp9qbFUYbiHzwru1pEPcvEAk1OM3XUCCUQySEA/YJdy9Y+MyMCuhqzygj8BV2VrTUfQpgCyRCgDMrkkVWNlF94Bkbed30iXUiycsgCsN4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=da2X/kkftVnusSKCzpPmIb92HFo0j+u/YuI4vg61ABO2GmSGODxAtN2x4f4a0ffa+cVtp5VSL5QpapkfyVxCygXrliikN4r6rHyVEfTm47ZHv7YFixzbdyeGEe0xx5m1JuNhV+wVkUOYJJ6oVdfLp5yUboHjFyof7jzTeNyIrOM= Received: by 10.67.115.9 with SMTP id s9mr921032ugm.1177455090573; Tue, 24 Apr 2007 15:51:30 -0700 (PDT) Received: by 10.67.12.15 with HTTP; Tue, 24 Apr 2007 15:51:30 -0700 (PDT) Message-ID: <4d7dd86f0704241551hb530106t22d2d9af3e842e17@mail.gmail.com> Date: Wed, 25 Apr 2007 08:51:30 +1000 From: "David N" To: "Mathieu Arnold" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4d7dd86f0704232117h25bb4166s423cf08152c2575d@mail.gmail.com> Cc: freebsd-small@freebsd.org Subject: Re: NanoBSD Image X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2007 22:51:32 -0000 On 24/04/07, Mathieu Arnold wrote: > +-Le 24/04/07 14:17 +1000, David N a dit : > | Hi, > | > | I'm just wondering if its possible to mount the _.disk.full or > | _.disk.image? > > Yes, just use mdconfig, something like mdconfig -a -t vnode -f _.disk.full, > you'll have a /dev/mdX with it in. > > | Also, is it possible to dd the images to a slice or partition on a HDD > | as i dont have any Memory Cards to test it on at the moment. > | > | such as > | dd if=_.disk.image of=/dev/ads2 bs=64k > > You can, but you'll loose a lot of space :) > > -- > Mathieu Arnold > Thanks Mathieu, the mdconfig worked =) For the hdd dd if=_.disk.image of=/dev/ad0s2 bs=64k worked but had to modify the /etc/fstab of the image and create a /dev/ad0s3 and newfs it for the /cfg. But works great =) David From owner-freebsd-small@FreeBSD.ORG Wed Apr 25 09:19:17 2007 Return-Path: X-Original-To: freebsd-small@freebsd.org Delivered-To: freebsd-small@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B805B16A40A for ; Wed, 25 Apr 2007 09:19:17 +0000 (UTC) (envelope-from davidn04@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.190]) by mx1.freebsd.org (Postfix) with ESMTP id 351E513C45B for ; Wed, 25 Apr 2007 09:19:16 +0000 (UTC) (envelope-from davidn04@gmail.com) Received: by mu-out-0910.google.com with SMTP id g7so164130muf for ; Wed, 25 Apr 2007 02:19:15 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=iYcV5XK3+w8lUWxlrePcHV2BsmfcEwk5wtkCO8ALPdC3VVwZeVHRMGFjpT9/HGNV9EQX03PUhkExNzQdGGNA5XP8Kfr/EEvwtEc2ic1sKobmQq/tSsW4GkyHvmQacpwDIkJBlC53bR7AKwYsfpMAxAoJ/DQEEZ1+KHCTpKMFDQ4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lYnGodd2KJ2RWq0IhegPBjwIVXACS+GkEXHQ49lxdzWUwgMLtCzCFiNn25i2RTuufHTFdYatXcGRvaNBqubnmCp8gWqp3uT4fnXgw0WnSnvlzicVpUzgRrnIOUMsmq2ak1VZbakKJNSu2JsE7k6Gtcao+5QuSBOToeGrNLxoceY= Received: by 10.82.138.6 with SMTP id l6mr615738bud.1177492755265; Wed, 25 Apr 2007 02:19:15 -0700 (PDT) Received: by 10.67.12.15 with HTTP; Wed, 25 Apr 2007 02:19:15 -0700 (PDT) Message-ID: <4d7dd86f0704250219l77babf03gcd5dbd52103b3c5e@mail.gmail.com> Date: Wed, 25 Apr 2007 19:19:15 +1000 From: "David N" To: freebsd-small@freebsd.org In-Reply-To: <4d7dd86f0704250218m2340c79h72da9f507b4f4e95@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4d7dd86f0704232117h25bb4166s423cf08152c2575d@mail.gmail.com> <4d7dd86f0704241551hb530106t22d2d9af3e842e17@mail.gmail.com> <4d7dd86f0704250218m2340c79h72da9f507b4f4e95@mail.gmail.com> Subject: Re: NanoBSD Image X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2007 09:19:17 -0000 On 25/04/07, David N wrote: > On 24/04/07, Mathieu Arnold wrote: > > +-Le 24/04/07 14:17 +1000, David N a dit : > > | Hi, > > | > > | I'm just wondering if its possible to mount the _.disk.full or > > | _.disk.image? > > > > Yes, just use mdconfig, something like mdconfig -a -t vnode -f _.disk.full, > > you'll have a /dev/mdX with it in. > > > > | Also, is it possible to dd the images to a slice or partition on a HDD > > | as i dont have any Memory Cards to test it on at the moment. > > | > > | such as > > | dd if=_.disk.image of=/dev/ads2 bs=64k > > > > You can, but you'll loose a lot of space :) > > > > -- > > Mathieu Arnold > > > > Thanks Mathieu, the mdconfig worked =) > > For the hdd > dd if=_.disk.image of=/dev/ad0s2 bs=64k worked but had to modify the > /etc/fstab of the image and create a /dev/ad0s3 and newfs it for the > /cfg. But works great =) > > David > Hello again, I've got the thing running, but the images are 256MB but I've only managed to get the "used" space down to around 80MB. I was hoping is there anything in the configuration file to get it down to bare bones and slowly add things in. Is it possible to get it down to pretty much a kernel + shell? My config file is NANO_NAME=custom NANO_SRC=/usr/src NANO_KERNEL=GENERIC NANO_IMAGES=2 CONF_BUILD=' NO_KLDLOAD=YES NO_NETGRAPH=YES NO_BIND_LIBS_LWRES=YES ' CONF_INSTALL=' NO_ATM=YES NO_BLUETOOTH=YES NO_FORTH=YES NO_GDB=YES NO_INFO=YES NO_MAILWRAPPER=YES NO_MAN=YES NO_NLS=YES NO_NLS_CATALOGS=YES NO_RCS=YES NO_SENDMAIL=YES NO_TOOLCHAIN=YES ' CONF_WORLD=' NO_ACPI=YES NO_AUDIT=YES NO_AUTHPF=YES NO_BIND=YES NO_BIND_DNSSEC=YES NO_BIND_ETC=YES NO_BIND_NAMED=YES NO_CALENDAR=YES NO_CPP=YES NO_CRYPT=YES NO_CVS=YES NO_CXX=YES NO_DICT=YES NO_DYNAMICROOT=YES NO_EXAMPLES=YES NO_FORTRAN=YES NO_FP_LIBC=YES NO_GAMES=YES NO_GCOV=YES NO_GNU=YES NO_GNU_SUPPORT=YES NO_GPIB=YES NO_GROFF=YES NO_HTML=YES NO_I4B=YES NO_INET6=YES NO_INET6_SUPPORT=YES NO_IPFILTER=YES NO_IPX=YES NO_IPX_SUPPORT=YES NO_KERBEROS=YES NO_KERBEROS_SUPPORT=YES NO_LOCALES=YES NO_LPR=YES NO_MODULES=YES NO_NCP=YES NO_NETCAT=YES NO_NIS=YES NO_OBJC=YES NO_OPENSSH=YES NO_OPENSSL=YES NO_PAM=YES NO_PAM_SUPPORT=YES NO_PCVT=YES NO_PF=YES NO_RESCUE=YES NO_SYSCONS=YES NO_WPA_SUPPLICANT_EAPOL=YES ' Cheers David From owner-freebsd-small@FreeBSD.ORG Wed Apr 25 09:58:37 2007 Return-Path: X-Original-To: small@freebsd.org Delivered-To: freebsd-small@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6247D16A403 for ; Wed, 25 Apr 2007 09:58:37 +0000 (UTC) (envelope-from mat@mat.cc) Received: from plouf.absolight.net (plouf.absolight.net [193.30.224.136]) by mx1.freebsd.org (Postfix) with ESMTP id E52CC13C48A for ; Wed, 25 Apr 2007 09:58:36 +0000 (UTC) (envelope-from mat@mat.cc) Received: from andromede.in.absolight.net (andromede.in.absolight.net [193.30.224.82]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by plouf.absolight.net (Postfix) with ESMTP id 6A9F66040D9; Wed, 25 Apr 2007 11:31:48 +0200 (CEST) Date: Wed, 25 Apr 2007 11:31:47 +0200 From: Mathieu Arnold To: David N Message-ID: In-Reply-To: <4d7dd86f0704250218m2340c79h72da9f507b4f4e95@mail.gmail.com> References: <4d7dd86f0704232117h25bb4166s423cf08152c2575d@mail.gmail.com> <4d7dd86f0704241551hb530106t22d2d9af3e842e17@mail.gmail.com> <4d7dd86f0704250218m2340c79h72da9f507b4f4e95@mail.gmail.com> X-Mailer: Mulberry/4.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: small@freebsd.org Subject: Re: NanoBSD Image X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2007 09:58:37 -0000 +-le 25.04.2007 19:18:19 +1000, David N a dit : | On 25/04/07, David N wrote: |> On 24/04/07, Mathieu Arnold wrote: |> > +-Le 24/04/07 14:17 +1000, David N a dit : |> > | Hi, |> > | |> > | I'm just wondering if its possible to mount the _.disk.full or |> > | _.disk.image? |> > |> > Yes, just use mdconfig, something like mdconfig -a -t vnode -f |> > _.disk.full, you'll have a /dev/mdX with it in. |> > |> > | Also, is it possible to dd the images to a slice or partition on a HDD |> > | as i dont have any Memory Cards to test it on at the moment. |> > | |> > | such as |> > | dd if=_.disk.image of=/dev/ads2 bs=64k |> > |> > You can, but you'll loose a lot of space :) |> > |> > -- |> > Mathieu Arnold |> > |> |> Thanks Mathieu, the mdconfig worked =) |> |> For the hdd |> dd if=_.disk.image of=/dev/ad0s2 bs=64k worked but had to modify the |> /etc/fstab of the image and create a /dev/ad0s3 and newfs it for the |> /cfg. But works great =) |> |> David |> | Hello again, | | I've got the thing running, but the images are 256MB but I've only | managed to get the "used" space down to around 80MB. | | I was hoping is there anything in the configuration file to get it | down to bare bones and slowly add things in. Is it possible to get it | down to pretty much a kernel + shell? | | My config file is Mine is (it was for a 6.1-PRERELEASE though) NANO_NAME=soekris64 NANO_SRC=/usr/src NANO_TOOLS=tools/tools/nanobsd CONF_BUILD=' ' CONF_INSTALL=' NO_INSTALLLIB= NO_TOOLCHAIN= ' CONF_WORLD=' CPUTYPE=i486 CFLAGS=-O -pipe NO_ACPI= NO_ATM= NO_BIND_DNSSEC= NO_BLUETOOTH= NO_CALENDAR= NO_CVS= NO_CXX= NO_DICT= NO_EXAMPLES= NO_FORTRAN= NO_GAMES= NO_GCOV= NO_GDB= NO_GPIB= NO_GROFF=YES NO_HESIOD_LIBC= NO_HTML= NO_I4B= NO_INFO= NO_IPFILTER= NO_IPX=YES NO_KERBEROS= NO_LIBC_R= NO_LIBTHR= NO_LOCALES= NO_LPR= NO_MAKE= NO_MAN= NO_MAN=YES NO_MISC= NO_MODULES= NO_NIS= NO_NLS= NO_NLS=YES NO_OBJC= NO_P1003_1B= NO_PAM= NO_PCVT=YES NO_PROFILE= NO_RCMDS= NO_RESCUE= NO_SENDMAIL= NO_SHARE= NO_SHAREDOCS= NO_SYSCONS= NO_TCSH= PPP_NO_ATM= PPP_NO_I4B= PPP_NO_PAM= PPP_NO_RADIUS= MAKE_IDEA= LOADER_TFTP_SUPPORT=YES ' NANO_KERNEL=SOEKRIS NANO_CUSTOMIZE="" NANO_NEWFS="-b 4096 -f 512 -i 8192 -O2 -U -m 0" NANO_DRIVE=ad0 FlashDevice Soekris 64 NANO_IMAGES=1 NANO_CODESIZE=0 NANO_CONFSIZE=$((1024/512*1024*2)) # 2 M NANO_DATASIZE=0 customize_cmd cust_comconsole customize_cmd cust_allow_ssh_root customize_cmd cust_install_files mat_pkg () ( mkdir -p ${NANO_WORLDDIR}/Pkg cp -r /usr/src/tools/tools/nanobsd/Pkg/* ${NANO_WORLDDIR}/Pkg chroot ${NANO_WORLDDIR} sh -c 'pkg_add -v -p /usr/local Pkg/All/*' rm -rf ${NANO_WORLDDIR}/Pkg ) customize_cmd mat_pkg mat_ssh () ( mkdir -p ${NANO_WORLDDIR}/root/.ssh install -o root -g wheel -m 0600 /home/mat/.ssh/authorized_keys ${NANO_WORLDDIR}/root/.ssh ) customize_cmd mat_ssh mat_root () ( chroot ${NANO_WORLDDIR} chpass -p '$1$foobar' -s /usr/local/bin/bash root ) customize_cmd mat_root mat_comconsole () ( # Enable getty on console sed -i "" -e /ttyd0/s/off/on/ ${NANO_WORLDDIR}/etc/ttys # Disable getty on syscons devices sed -i "" -e '/^ttyv[0-8]/s/ on/ off/' ${NANO_WORLDDIR}/etc/ttys # Tell loader to use serial console early. echo " -h" > ${NANO_WORLDDIR}/boot.config ) customize_cmd mat_comconsole The resulting fits on a 64Mo flash : /dev/ad0s1a 57M 52M 4.7M 92% / /dev/ad0s3 1.8M 116K 1.7M 6% /cfg I was planning to upgrade my soekris to 6.2, I'll try to see if it still fits :) My SOEKRIS kernel contains the following : machine i386 cpu I486_CPU ident SOEKRIS options SCHED_4BSD options PREEMPTION options INET options INET6 options FFS options SOFTUPDATES options MD_ROOT options NFSCLIENT options NFS_ROOT options PROCFS options PSEUDOFS options GEOM_GPT options COMPAT_43 options COMPAT_FREEBSD4 options COMPAT_FREEBSD5 options SCSI_DELAY=5000 options KTRACE options SYSVSHM options SYSVMSG options SYSVSEM options _KPOSIX_PRIORITY_SCHEDULING options KBD_INSTALL_CDEV options AHC_REG_PRETTY_PRINT options AHD_REG_PRETTY_PRINT options ADAPTIVE_GIANT device apic device eisa device pci device ata device atadisk options ATA_STATIC_ID device pmtimer device sio device miibus device sis device loop device random device ether device sl device ppp device tun device pty device md device gif device bpf options CPU_ELAN options CPU_ELAN_PPS options CPU_SOEKRIS options CONSPEED=19200 options INCLUDE_CONFIG_FILE device pf device carp device pflog device pfsync device vlan device tap device gre device if_bridge options PPP_BSDCOMP options PPP_DEFLATE options PPP_FILTER options FAST_IPSEC options TCP_SIGNATURE device crypto device cryptodev options ALTQ options ALTQ_HFSC options ALTQ_CBQ options ZERO_COPY_SOCKETS options HZ=1000 options PPS_SYNC options NO_SWAPPING options DEVICE_POLLING options SMBFS options NETSMB options NETSMBCRYPTO options ALTQ options ALTQ_CBQ options ALTQ_RED options ALTQ_RIO options ALTQ_HFSC options LIBICONV options LIBMCHAIN -- Mathieu Arnold From owner-freebsd-small@FreeBSD.ORG Wed Apr 25 18:56:20 2007 Return-Path: X-Original-To: small@freebsd.org Delivered-To: freebsd-small@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 69E1416A403 for ; Wed, 25 Apr 2007 18:56:20 +0000 (UTC) (envelope-from davidn04@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by mx1.freebsd.org (Postfix) with ESMTP id E683913C457 for ; Wed, 25 Apr 2007 18:56:19 +0000 (UTC) (envelope-from davidn04@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so418797ugh for ; Wed, 25 Apr 2007 11:56:18 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XJx+MpNEXW2Ls0kc1tEjSmNRvsUff8bhxfPLwUlTjVfHYoOn+ktEt7jRxue1H33JbwVRY6/Kpm+1o8RUz6Lkr+YmZNd3zPIoyQvcuCv1EeMgs8nes6GTtNKcYjf0ob/mogaIz3zLmHhyeXnHDOV+pNaNXLnMoQC3bAFasNNaM7A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OaJg6kveNsQLtF+1FDQzRfdf9UxBh5yvL5L7AevRILh/NwWbI8ma6CUKKXLiNWFdEizpFWQg3GroeiS7xK+UQvLyTP9TZAEgWMctpvxG4FwZOI8ztVsUMKo1TEmNbPWrTdhHPENmQ01O0EQ/BeHUTo0tXlBQawRrvLpe4ItHYbA= Received: by 10.67.76.16 with SMTP id d16mr1553456ugl.1177525845941; Wed, 25 Apr 2007 11:30:45 -0700 (PDT) Received: by 10.67.12.15 with HTTP; Wed, 25 Apr 2007 11:30:45 -0700 (PDT) Message-ID: <4d7dd86f0704251130o6f0f1060xdec7c37c8ff5610b@mail.gmail.com> Date: Thu, 26 Apr 2007 04:30:45 +1000 From: "David N" To: "Mathieu Arnold" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4d7dd86f0704232117h25bb4166s423cf08152c2575d@mail.gmail.com> <4d7dd86f0704241551hb530106t22d2d9af3e842e17@mail.gmail.com> <4d7dd86f0704250218m2340c79h72da9f507b4f4e95@mail.gmail.com> Cc: small@freebsd.org Subject: Re: NanoBSD Image X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2007 18:56:20 -0000 On 25/04/07, Mathieu Arnold wrote: > +-le 25.04.2007 19:18:19 +1000, David N a dit : > | On 25/04/07, David N wrote: > |> On 24/04/07, Mathieu Arnold wrote: > |> > +-Le 24/04/07 14:17 +1000, David N a dit : > |> > | Hi, > |> > | > |> > | I'm just wondering if its possible to mount the _.disk.full or > |> > | _.disk.image? > |> > > |> > Yes, just use mdconfig, something like mdconfig -a -t vnode -f > |> > _.disk.full, you'll have a /dev/mdX with it in. > |> > > |> > | Also, is it possible to dd the images to a slice or partition on a HDD > |> > | as i dont have any Memory Cards to test it on at the moment. > |> > | > |> > | such as > |> > | dd if=_.disk.image of=/dev/ads2 bs=64k > |> > > |> > You can, but you'll loose a lot of space :) > |> > > |> > -- > |> > Mathieu Arnold > |> > > |> > |> Thanks Mathieu, the mdconfig worked =) > |> > |> For the hdd > |> dd if=_.disk.image of=/dev/ad0s2 bs=64k worked but had to modify the > |> /etc/fstab of the image and create a /dev/ad0s3 and newfs it for the > |> /cfg. But works great =) > |> > |> David > |> > | Hello again, > | > | I've got the thing running, but the images are 256MB but I've only > | managed to get the "used" space down to around 80MB. > | > | I was hoping is there anything in the configuration file to get it > | down to bare bones and slowly add things in. Is it possible to get it > | down to pretty much a kernel + shell? > | > | My config file is > > Mine is (it was for a 6.1-PRERELEASE though) > > NANO_NAME=soekris64 > NANO_SRC=/usr/src > NANO_TOOLS=tools/tools/nanobsd > CONF_BUILD=' > ' > CONF_INSTALL=' > NO_INSTALLLIB= > NO_TOOLCHAIN= > ' > > CONF_WORLD=' > CPUTYPE=i486 > CFLAGS=-O -pipe > NO_ACPI= > NO_ATM= > NO_BIND_DNSSEC= > NO_BLUETOOTH= > NO_CALENDAR= > NO_CVS= > NO_CXX= > NO_DICT= > NO_EXAMPLES= > NO_FORTRAN= > NO_GAMES= > NO_GCOV= > NO_GDB= > NO_GPIB= > NO_GROFF=YES > NO_HESIOD_LIBC= > NO_HTML= > NO_I4B= > NO_INFO= > NO_IPFILTER= > NO_IPX=YES > NO_KERBEROS= > NO_LIBC_R= > NO_LIBTHR= > NO_LOCALES= > NO_LPR= > NO_MAKE= > NO_MAN= > NO_MAN=YES > NO_MISC= > NO_MODULES= > NO_NIS= > NO_NLS= > NO_NLS=YES > NO_OBJC= > NO_P1003_1B= > NO_PAM= > NO_PCVT=YES > NO_PROFILE= > NO_RCMDS= > NO_RESCUE= > NO_SENDMAIL= > NO_SHARE= > NO_SHAREDOCS= > NO_SYSCONS= > NO_TCSH= > PPP_NO_ATM= > PPP_NO_I4B= > PPP_NO_PAM= > PPP_NO_RADIUS= > MAKE_IDEA= > LOADER_TFTP_SUPPORT=YES > ' > > NANO_KERNEL=SOEKRIS > NANO_CUSTOMIZE="" > NANO_NEWFS="-b 4096 -f 512 -i 8192 -O2 -U -m 0" > NANO_DRIVE=ad0 > FlashDevice Soekris 64 > NANO_IMAGES=1 > NANO_CODESIZE=0 > NANO_CONFSIZE=$((1024/512*1024*2)) # 2 M > NANO_DATASIZE=0 > customize_cmd cust_comconsole > customize_cmd cust_allow_ssh_root > customize_cmd cust_install_files > > mat_pkg () ( > mkdir -p ${NANO_WORLDDIR}/Pkg > cp -r /usr/src/tools/tools/nanobsd/Pkg/* ${NANO_WORLDDIR}/Pkg > chroot ${NANO_WORLDDIR} sh -c 'pkg_add -v -p /usr/local Pkg/All/*' > rm -rf ${NANO_WORLDDIR}/Pkg > ) > > customize_cmd mat_pkg > > mat_ssh () ( > mkdir -p ${NANO_WORLDDIR}/root/.ssh > install -o root -g wheel -m 0600 /home/mat/.ssh/authorized_keys > ${NANO_WORLDDIR}/root/.ssh > ) > > customize_cmd mat_ssh > > mat_root () ( > chroot ${NANO_WORLDDIR} chpass -p '$1$foobar' -s /usr/local/bin/bash > root > ) > > customize_cmd mat_root > > mat_comconsole () ( > # Enable getty on console > sed -i "" -e /ttyd0/s/off/on/ ${NANO_WORLDDIR}/etc/ttys > > # Disable getty on syscons devices > sed -i "" -e '/^ttyv[0-8]/s/ on/ off/' > ${NANO_WORLDDIR}/etc/ttys > > # Tell loader to use serial console early. > echo " -h" > ${NANO_WORLDDIR}/boot.config > ) > > customize_cmd mat_comconsole > > The resulting fits on a 64Mo flash : > /dev/ad0s1a 57M 52M 4.7M 92% / > /dev/ad0s3 1.8M 116K 1.7M 6% /cfg > > I was planning to upgrade my soekris to 6.2, I'll try to see if it still fits > :) > > My SOEKRIS kernel contains the following : > > machine i386 > cpu I486_CPU > ident SOEKRIS > options SCHED_4BSD > options PREEMPTION > options INET > options INET6 > options FFS > options SOFTUPDATES > options MD_ROOT > options NFSCLIENT > options NFS_ROOT > options PROCFS > options PSEUDOFS > options GEOM_GPT > options COMPAT_43 > options COMPAT_FREEBSD4 > options COMPAT_FREEBSD5 > options SCSI_DELAY=5000 > options KTRACE > options SYSVSHM > options SYSVMSG > options SYSVSEM > options _KPOSIX_PRIORITY_SCHEDULING > options KBD_INSTALL_CDEV > options AHC_REG_PRETTY_PRINT > options AHD_REG_PRETTY_PRINT > options ADAPTIVE_GIANT > device apic > device eisa > device pci > device ata > device atadisk > options ATA_STATIC_ID > device pmtimer > device sio > device miibus > device sis > device loop > device random > device ether > device sl > device ppp > device tun > device pty > device md > device gif > device bpf > options CPU_ELAN > options CPU_ELAN_PPS > options CPU_SOEKRIS > options CONSPEED=19200 > options INCLUDE_CONFIG_FILE > device pf > device carp > device pflog > device pfsync > device vlan > device tap > device gre > device if_bridge > options PPP_BSDCOMP > options PPP_DEFLATE > options PPP_FILTER > options FAST_IPSEC > options TCP_SIGNATURE > device crypto > device cryptodev > options ALTQ > options ALTQ_HFSC > options ALTQ_CBQ > options ZERO_COPY_SOCKETS > options HZ=1000 > options PPS_SYNC > options NO_SWAPPING > options DEVICE_POLLING > options SMBFS > options NETSMB > options NETSMBCRYPTO > options ALTQ > options ALTQ_CBQ > options ALTQ_RED > options ALTQ_RIO > options ALTQ_HFSC > options LIBICONV > options LIBMCHAIN > > > -- > Mathieu Arnold > Thanks again, that did the job, got it down to 56MB on 6.2-RELEASE just added some of your options in. Do you know where to get more information on on the make flags available? man make and man make.conf doesn't have much detail. I've been to http://phk.freebsd.dk/misc/build_options/ which helped with my compile errors =) But i'm just out of further information on how to get it slimmer. Cheers David From owner-freebsd-small@FreeBSD.ORG Wed Apr 25 21:23:52 2007 Return-Path: X-Original-To: small@freebsd.org Delivered-To: freebsd-small@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B6B4316A400 for ; Wed, 25 Apr 2007 21:23:52 +0000 (UTC) (envelope-from mat@mat.cc) Received: from plouf.absolight.net (plouf.absolight.net [193.30.224.136]) by mx1.freebsd.org (Postfix) with ESMTP id 7E6BC13C48A for ; Wed, 25 Apr 2007 21:23:52 +0000 (UTC) (envelope-from mat@mat.cc) Received: from atuin.in.mat.cc (ATuin.in.mat.cc [193.30.224.125]) by plouf.absolight.net (Postfix) with ESMTP id 1FB786040C9; Wed, 25 Apr 2007 23:23:51 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by atuin.in.mat.cc (Postfix) with ESMTP id 61D9E43F91A; Wed, 25 Apr 2007 23:23:50 +0200 (CEST) Date: Wed, 25 Apr 2007 23:23:50 +0200 From: Mathieu Arnold To: David N Message-ID: <7C24E0C8DD3FD03ED3458849@atuin.in.mat.cc> In-Reply-To: <4d7dd86f0704251130o6f0f1060xdec7c37c8ff5610b@mail.gmail.com> References: <4d7dd86f0704232117h25bb4166s423cf08152c2575d@mail.gmail.com> <4d7dd86f0704241551hb530106t22d2d9af3e842e17@mail.gmail.com> <4d7dd86f0704250218m2340c79h72da9f507b4f4e95@mail.gmail.com> <4d7dd86f0704251130o6f0f1060xdec7c37c8ff5610b@mail.gmail.com> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: small@freebsd.org Subject: Re: NanoBSD Image X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2007 21:23:52 -0000 +-Le 26/04/07 04:30 +1000, David N a dit : | Thanks again, that did the job, got it down to 56MB on 6.2-RELEASE | just added some of your options in. Do you know where to get more | information on on the make flags available? man make and man make.conf | doesn't have much detail. I've been to | http://phk.freebsd.dk/misc/build_options/ which helped with my compile | errors =) But i'm just out of further information on how to get it | slimmer. I think that when I searched for all thoose, I simply used grep in src's Makefiles. -- Mathieu Arnold From owner-freebsd-small@FreeBSD.ORG Thu Apr 26 05:05:18 2007 Return-Path: X-Original-To: small@freebsd.org Delivered-To: freebsd-small@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CE6EF16A400 for ; Thu, 26 Apr 2007 05:05:18 +0000 (UTC) (envelope-from davidn04@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.freebsd.org (Postfix) with ESMTP id 6256013C455 for ; Thu, 26 Apr 2007 05:05:18 +0000 (UTC) (envelope-from davidn04@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so483025ugh for ; Wed, 25 Apr 2007 22:05:17 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EMEgNV9RyL36q91rPpC5JLqiF4+pxsMo0vsBBIuuHCuHqeTtm+pg2sgUrAW5/Gc9+cvoOcBSJYRWT9gkmlWTGqVaxePagX/xSdRpQwsTtKCFPDVYcmQUzUFSBPrwjuUEBoCAdkv2/IXAcWVGVdThXUiLLiEqR8JL+kbwcNwKsoA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=fyQ09fdIEZJcGv2Rn9+ZI/fkpflHj8WQ1kT4f1Zyp5TU5ouyhzeC12AznqH6Ho0QGRXUDCo2ZWUB9FGAx51efeMMFBuNOZltxIC1LDn4GgoUqE2cUezVlc8LJtO569j8n1P12W8pQSkoY88EQBKCsKYSfBbVOXrz50g11gkAOMs= Received: by 10.66.237.9 with SMTP id k9mr1933893ugh.1177563916100; Wed, 25 Apr 2007 22:05:16 -0700 (PDT) Received: by 10.67.12.15 with HTTP; Wed, 25 Apr 2007 22:05:16 -0700 (PDT) Message-ID: <4d7dd86f0704252205k443f3686nce8f70edac2008a8@mail.gmail.com> Date: Thu, 26 Apr 2007 15:05:16 +1000 From: "David N" To: "Mathieu Arnold" In-Reply-To: <7C24E0C8DD3FD03ED3458849@atuin.in.mat.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4d7dd86f0704232117h25bb4166s423cf08152c2575d@mail.gmail.com> <4d7dd86f0704241551hb530106t22d2d9af3e842e17@mail.gmail.com> <4d7dd86f0704250218m2340c79h72da9f507b4f4e95@mail.gmail.com> <4d7dd86f0704251130o6f0f1060xdec7c37c8ff5610b@mail.gmail.com> <7C24E0C8DD3FD03ED3458849@atuin.in.mat.cc> Cc: small@freebsd.org Subject: Re: NanoBSD Image X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2007 05:05:18 -0000 On 26/04/07, Mathieu Arnold wrote: > +-Le 26/04/07 04:30 +1000, David N a dit : > | Thanks again, that did the job, got it down to 56MB on 6.2-RELEASE > | just added some of your options in. Do you know where to get more > | information on on the make flags available? man make and man make.conf > | doesn't have much detail. I've been to > | http://phk.freebsd.dk/misc/build_options/ which helped with my compile > | errors =) But i'm just out of further information on how to get it > | slimmer. > > I think that when I searched for all thoose, I simply used grep in src's > Makefiles. > > > -- > Mathieu Arnold > At the moment i can get it down to about 41MB by mounting the partition and deleting some files i dont need in /sbin and /usr/sbin /usr/include (I'm not sure if i need it) such as gmirror, ggatec, ggated and all that. Hopefully it doesn't bork it up =) I'm hoping for 16MB, but i don't think thats going to happen From owner-freebsd-small@FreeBSD.ORG Thu Apr 26 05:22:49 2007 Return-Path: X-Original-To: freebsd-small@freebsd.org Delivered-To: freebsd-small@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1697616A402 for ; Thu, 26 Apr 2007 05:22:49 +0000 (UTC) (envelope-from davidn04@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.freebsd.org (Postfix) with ESMTP id A3B0613C43E for ; Thu, 26 Apr 2007 05:22:48 +0000 (UTC) (envelope-from davidn04@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so484243ugh for ; Wed, 25 Apr 2007 22:22:47 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=erF0li/o3qSVBZIOryyeZR+aos4pNlmA13N53LELtPN+VSj0YVh0Gr+6qR7HTVYnSp5b5uwjAfF0lul70d9pRXpsxE35GM/OwdEwmft2oVMlDvy/nbm2ZB+e19Fo9/q2jg820tdy1sxlTVMstthTiVL112+noy9WE2fKjmx1R6k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=MqqsYTQWyOVKPGor/Zik/ckR4t16XrrCbUqSVVx0HDHftIHcaz67s2GWR8KeYvlu2QR6g7ZCkNbFHeu4qYNEFxpYtwPgDcwD9Wt+2hoH5KjvkJ5Xw7/v7YuC9sUHjqT4auK323lhNX+gVp0zwcWOQXM00fMIkgc7bWz/YasFjFo= Received: by 10.67.97.7 with SMTP id z7mr1954394ugl.1177564967402; Wed, 25 Apr 2007 22:22:47 -0700 (PDT) Received: by 10.67.12.15 with HTTP; Wed, 25 Apr 2007 22:22:47 -0700 (PDT) Message-ID: <4d7dd86f0704252222q75bef3f7o2ed2cd5774db943b@mail.gmail.com> Date: Thu, 26 Apr 2007 15:22:47 +1000 From: "David N" To: freebsd-small@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: Building NanoBSD with ports and packages X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2007 05:22:49 -0000 You can create packages from your ports tree by going into your desire ports eg. /usr/ports/editor/nano make install package-recursive and the packages will be placed into 1. Current directory or 2. /usr/ports/packages if you create the directory before hand (recommended). All the files will be in /usr/ports/packages/All/ Then you got prebuilt packages that you can get installed at build time using Eugen's script. or the one from http://www.pean.org/files/uchman.conf its at the end, looks like its from phk I haven't tried this yet, but i will be soon. Good luck Cheers David From owner-freebsd-small@FreeBSD.ORG Thu Apr 26 05:45:20 2007 Return-Path: X-Original-To: freebsd-small@freebsd.org Delivered-To: freebsd-small@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3A1A416A403 for ; Thu, 26 Apr 2007 05:45:20 +0000 (UTC) (envelope-from eugen@kuzbass.ru) Received: from www.svzserv.kemerovo.su (www.svzserv.kemerovo.su [213.184.65.80]) by mx1.freebsd.org (Postfix) with ESMTP id 969F713C45A for ; Thu, 26 Apr 2007 05:45:19 +0000 (UTC) (envelope-from eugen@kuzbass.ru) Received: from kuzbass.ru (kost [213.184.65.82]) by www.svzserv.kemerovo.su (8.13.8/8.13.8) with ESMTP id l3Q5BGRx041184; Thu, 26 Apr 2007 13:11:16 +0800 (KRAST) (envelope-from eugen@kuzbass.ru) Message-ID: <46303474.560186@kuzbass.ru> Date: Thu, 26 Apr 2007 13:11:16 +0800 From: Eugene Grosbein Organization: SVZServ X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: ru,en MIME-Version: 1.0 To: Jordan Coleman References: <14320DBA-7A3B-4CA6-BC60-D2BF8EA77C71@JordanColeman.com> <20070420120952.GA28426@svzserv.kemerovo.su> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Cc: freebsd-small@freebsd.org Subject: Re: Building NanoBSD with ports and packages X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2007 05:45:20 -0000 Jordan Coleman wrote: > > Just add to your nanobsd.conf: > > > > NANO_CUSTOMIZE="/path/to/localfiles" > > > > Place packages to /path/to/Pkg subdirectory. > > > > Here comes the script "localfiles": > [...] > > Okay, neat. Looks like it'll do the trick. This is pretty close to > (but better thought-out than) the approach I had been thinking about. > > I'm wondering, is it possible/practical/safe to do port "make > install"s inside the chroot to avoid having to have pre-built > packages? Is there a simpler way? I prefer to keep pre-built packages. It takes less time to rebuild Nano image then. And makes software behavour more stable. And takes less space in the NANO_WORLDDIR. You can always build a port outside of Nano world and obtain a package using 'pkg_create -b'. Eugene Grosbein From owner-freebsd-small@FreeBSD.ORG Thu Apr 26 07:15:46 2007 Return-Path: X-Original-To: small@freebsd.org Delivered-To: freebsd-small@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 60FF616A401 for ; Thu, 26 Apr 2007 07:15:46 +0000 (UTC) (envelope-from mat@mat.cc) Received: from plouf.absolight.net (plouf.absolight.net [193.30.224.136]) by mx1.freebsd.org (Postfix) with ESMTP id 254AA13C44C for ; Thu, 26 Apr 2007 07:15:45 +0000 (UTC) (envelope-from mat@mat.cc) Received: from atuin.in.mat.cc (ATuin.in.mat.cc [193.30.224.125]) by plouf.absolight.net (Postfix) with ESMTP id EE7D26040D3; Thu, 26 Apr 2007 09:15:44 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by atuin.in.mat.cc (Postfix) with ESMTP id E158F43FAD9; Thu, 26 Apr 2007 09:15:44 +0200 (CEST) Date: Thu, 26 Apr 2007 09:15:44 +0200 From: Mathieu Arnold To: David N Message-ID: <22A0EAB0604551A0D5EF235A@atuin.in.mat.cc> In-Reply-To: <4d7dd86f0704252205k443f3686nce8f70edac2008a8@mail.gmail.com> References: <4d7dd86f0704232117h25bb4166s423cf08152c2575d@mail.gmail.com> <4d7dd86f0704241551hb530106t22d2d9af3e842e17@mail.gmail.com> <4d7dd86f0704250218m2340c79h72da9f507b4f4e95@mail.gmail.com> <4d7dd86f0704251130o6f0f1060xdec7c37c8ff5610b@mail.gmail.com> <7C24E0C8DD3FD03ED3458849@atuin.in.mat.cc> <4d7dd86f0704252205k443f3686nce8f70edac2008a8@mail.gmail.com> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: small@freebsd.org Subject: Re: NanoBSD Image X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2007 07:15:46 -0000 +-Le 26/04/07 15:05 +1000, David N a dit : | On 26/04/07, Mathieu Arnold wrote: |> +-Le 26/04/07 04:30 +1000, David N a dit : |> | Thanks again, that did the job, got it down to 56MB on 6.2-RELEASE |> | just added some of your options in. Do you know where to get more |> | information on on the make flags available? man make and man make.conf |> | doesn't have much detail. I've been to |> | http://phk.freebsd.dk/misc/build_options/ which helped with my compile |> | errors =) But i'm just out of further information on how to get it |> | slimmer. |> |> I think that when I searched for all thoose, I simply used grep in src's |> Makefiles. |> |> |> -- |> Mathieu Arnold |> | | At the moment i can get it down to about 41MB by mounting the | partition and deleting some files i dont need in /sbin and /usr/sbin | /usr/include (I'm not sure if i need it) such as gmirror, ggatec, | ggated and all that. Hopefully it doesn't bork it up =) | | I'm hoping for 16MB, but i don't think thats going to happen I don't know what you're trying to achieve, but you might take a look at m0n0wall the 1.3 branches uses 6.x and fits in something like 10MB. -- Mathieu Arnold From owner-freebsd-small@FreeBSD.ORG Thu Apr 26 13:14:02 2007 Return-Path: X-Original-To: small@freebsd.org Delivered-To: freebsd-small@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B82A416A40E for ; Thu, 26 Apr 2007 13:14:02 +0000 (UTC) (envelope-from jmelo@freebsdbrasil.com.br) Received: from capeta.freebsdbrasil.com.br (vrrp.freebsdbrasil.com.br [200.210.70.30]) by mx1.freebsd.org (Postfix) with SMTP id 3F85C13C48C for ; Thu, 26 Apr 2007 13:14:00 +0000 (UTC) (envelope-from jmelo@freebsdbrasil.com.br) Received: (qmail 15364 invoked by uid 0); 26 Apr 2007 09:56:57 -0300 Received: from jmelo@freebsdbrasil.com.br by capeta.freebsdbrasil.com.br by uid 82 with qmail-scanner-1.22 (spamassassin: 2.64. Clear:RC:1(201.58.85.51):. Processed in 0.622201 secs); 26 Apr 2007 12:56:57 -0000 Received: from unknown (HELO ?10.69.69.66?) (jmelo@201.58.85.51) by capeta.freebsdbrasil.com.br with SMTP; 26 Apr 2007 09:56:57 -0300 Message-ID: <46309F49.10009@freebsdbrasil.com.br> Date: Thu, 26 Apr 2007 09:47:05 -0300 From: Jean Milanez Melo User-Agent: Thunderbird 1.5.0.10 (Macintosh/20070221) MIME-Version: 1.0 To: David N References: <4d7dd86f0704232117h25bb4166s423cf08152c2575d@mail.gmail.com> <4d7dd86f0704241551hb530106t22d2d9af3e842e17@mail.gmail.com> <4d7dd86f0704250218m2340c79h72da9f507b4f4e95@mail.gmail.com> <4d7dd86f0704251130o6f0f1060xdec7c37c8ff5610b@mail.gmail.com> <7C24E0C8DD3FD03ED3458849@atuin.in.mat.cc> <4d7dd86f0704252205k443f3686nce8f70edac2008a8@mail.gmail.com> In-Reply-To: <4d7dd86f0704252205k443f3686nce8f70edac2008a8@mail.gmail.com> X-Enigmail-Version: 0.94.3.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: small@freebsd.org, Mathieu Arnold Subject: Re: NanoBSD Image X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2007 13:14:03 -0000 David N wrote: > > At the moment i can get it down to about 41MB by mounting the > partition and deleting some files i dont need in /sbin and /usr/sbin > /usr/include (I'm not sure if i need it) such as gmirror, ggatec, > ggated and all that. Hopefully it doesn't bork it up =) > > I'm hoping for 16MB, but i don't think thats going to happen > ____________ The TinyBSD (/usr/src/tools/tools/tinybsd) runs on 12MB. -- Jean