This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
freebsd:nanobsd_router [2015/02/12 10:10] tschulz [Misc Config Files] |
freebsd:nanobsd_router [2015/02/12 15:57] (current) tschulz [Misc Nanobsd notes] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== NanoBSD Router ====== | ====== NanoBSD Router ====== | ||
+ | ===== Notes ===== | ||
+ | * The following configs and files should make a diskimage for a 1GB CF card in use with a Soekris 4801 or better. | ||
+ | * It was designed to work with a 5 ethernet port variant. | ||
+ | * You will need to build this on **FreeBSD 10.1 32bit**. | ||
+ | * port speed is set to **115200** | ||
+ | * root password is set to "pwd" | ||
+ | * When the build process will create a image file **/usr/obj/nanobsd.seokris/nanobsd_seokris.img**. | ||
+ | * Write this file to a CF card using **dd** or something simular | ||
+ | |||
+ | ==== Misc Nanobsd notes ==== | ||
+ | * by default nanobsd.sh rebuilds world and kernel every build to reuse existing world and kernel builds use the **-b** swtich <file>./nanobsd.sh -c seokris.nano -b</file> | ||
+ | * [[http://bsdrp.net/documentation/technical_docs/nanobsd|Super Handy nanobsd reference]] | ||
+ | * [[https://www.freebsd.org/doc/en/articles/nanobsd/howto.html|Not a terribly usful nanobsd howto]] | ||
+ | * [[https://www.freebsd.org/cgi/man.cgi?query=nanobsd|nanobsd.sh man page]] | ||
===== seokris.nano (nano BSD build definition) ===== | ===== seokris.nano (nano BSD build definition) ===== | ||
Line 39: | Line 53: | ||
===== Fix nanobsd.sh ===== | ===== Fix nanobsd.sh ===== | ||
I had to comment out **exit 2** on line 849 of **/usr/src/tools/tools/nanobsd/nanobsd.sh** | I had to comment out **exit 2** on line 849 of **/usr/src/tools/tools/nanobsd/nanobsd.sh** | ||
- | <file bash> | + | <file bash /usr/src/tools/tools/nanobsd/nanobsd.sh> |
... | ... | ||
elif [ $now -eq $have ] ; then | elif [ $now -eq $have ] ; then | ||
Line 48: | Line 62: | ||
... | ... | ||
</file> | </file> | ||
+ | |||
+ | ===== Kernel Config ===== | ||
+ | <file kernel /usr/src/sys/i386/conf/NANO> | ||
+ | ... | ||
+ | ident NANO | ||
+ | |||
+ | options IPSEC #IP security | ||
+ | device crypto | ||
+ | options ALTQ | ||
+ | options ALTQ_CBQ # Class Based Queuing (CBQ) | ||
+ | options ALTQ_RED # Random Early Detection (RED) | ||
+ | options ALTQ_RIO # RED In/Out | ||
+ | options ALTQ_HFSC # Hierarchical Packet Scheduler (HFSC) | ||
+ | options ALTQ_PRIQ # Priority Queuing (PRIQ) | ||
+ | |||
+ | #makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols | ||
+ | ... | ||
+ | </file> | ||
+ | |||
+ | ===== Packages ===== | ||
+ | {{:freebsd:pkg.tar|Download}} the package arch and extract it to **/Pkg** on the build machine. | ||
+ | e.g. <file> | ||
+ | tar xvpf pkg.tar -C / | ||
+ | </file> | ||
+ | |||
+ | |||
===== Misc Config Files ===== | ===== Misc Config Files ===== |