Building CUWiNware From Source

You can build your own CUWiNware images from the CUWiN sources with your local modifications included. Local modifications that you can make include setting up a default config file, changing the default root password and adding default local users, adding public key authentication for login to the nodes. You can also build against newer NetBSD sources to update the available kernel drivers and if you are a programmer you can freely modify the code as you see fit.

In order to build the software you will need a working NetBSD build environment. Once you have that you will need both the CUWiN sources and an appropriate NetBSD source snapshot.

You can get NetBSD sources either from sourceforge by downloading the cuwin-x.y.z-src-netbsd.tar.gz file or by going to NetBSD's anonymous CVS server and grabbing the CURRENT sources.

You can get the CUWiN sources via SVN from http://svn.cuwireless.net/svn/cuw/trunk/ or from anonymous CVS at sourceforge or by downloading cuwin-x.y.z-src-main.tar.gz from sourceforge. You will also need the src-extern file from sourceforge. The source forge downloads are source snapshots used to make our releases whereas the SVN and CVS repositories have the bleeding edge code.

Once you have unpacked all the sources you should have a trunk/src/boot-image directory. Parallel to the "trunk" directory you can create a "private-trunk/image-data" directory. In that directory you can put in local customization files that will be used instead of the defaults during the build process:

authorized_keys/
This directory contains files named after usernames. The contents of the file are put in the user's .ssh/authorized_keys file within the built image.
cuw_config
This file will be installed at /etc/cuw_config instead of the default.
known_hosts/
This directory contains files named after usernames. The contents of the file are put in the user's .ssh/known_hosts file within the built image.
pwds
This file has /etc/passwd style entries for each user that should be added to the built image. This overwrites the default root password.

When the tree is configured for build as you'd like it, you can call the mkstaboot script to build the sources into an image. The build script is a helper that makes calling mkstaboot easier. The Perl script nightly-test.pl calls build for several different targets and provides a good example for how it is called. Read over the comments in these scripts before attempting to build.

If you need help building CUWiNware please contact cu-wireless-info@cuwireless.net

Anonymous CVS and SVN access

mkstaboot