Re: nanobsd.sh

From: Marc Veldman <fbsd_at_lurkie.xs4all.nl>
Date: Thu, 20 Oct 2005 14:46:53 +0200
Hello,

On Thu, Oct 20, 2005 at 12:54:19PM +0200, Jiri Mikulas wrote:
> is there any actual documentation saying how to work with the new nanobsd.sh please ?
>  http://www.freebsd.org/projects/nanobsd/index.html
> is for old one.
> 
> How to create own config ?
> In old config file is defined variable NANOBSD_PRUNE, but not in the new version of nanobsd.sh.
> With the help of which/what 'variable' , can I define the files/dirs not to be installed?
> Where can I define my NO_xxx options, how can I add my own packages?
> etc...

It is actually fairly easy.
Below the steps I used to build a custom image for a
soekris net4801.

1. Create a custom kernel config in the usual place.
for example: /sys/i386/conf/NET4801

2. Create a build config file in /usr/src/tools/tools/nanobsd,
for example net4801.conf

3. Run the build script: ./nanobsd.sh -c net4801.conf.

4. In a directory below /usr/obj, in my case /usr/obj/nanobsd.net4801,
the script will put its build output and a disk image (actually,
two disk images) _.disk.full

5. You can put the disk image on a CF using 
dd if=_.disk.full of=/dev/da9 obs=64k
(da9 is the device for your CF reader, it will depend on your
own machine what you have to put there. Be VERY careful, 
you can ruin your data if you put the wrong thing here !)

Attached the config files I used.
Notes: NO_TOOLCHAIN is broken for -current, and with NO_SHARE 
vi will not work properly.

Hope this helps,

Marc.

Received on Thu Oct 20 2005 - 10:54:45 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:45 UTC