Menu

Tree [r2305] / trunk / build /
 History

HTTPS access


File Date Author Commit
 distfiles 2007-12-03 votdev [r2297] Update distfiles
 drivers 2007-12-01 votdev [r2283] Modify driver Makefile.
 kernel-config 2007-12-03 votdev [r2300] Update kernel config files. Use GENERIC as patt...
 mk 2007-08-16 votdev [r1625] Modify build scripts. Add environment variable ...
 packages 2007-05-26 votdev [r958] Remove local lcdproc patch, use official port i...
 ports 2007-12-03 votdev [r2296] - Upgrade netbsd-iscsi (iscsi-target) to 20071122.
 CHANGES 2007-12-04 votdev [r2302] Fix bug when setting static IP for LAN via WebGUI.
 LICENSE 2007-11-29 votdev [r2270] Fix typo. Thanks to laur.
 README 2007-11-17 votdev [r2242] Add kernel build notes to README.
 freenas-create-bootdir.sh 2007-11-18 votdev [r2246] Backup kernel to working dir.
 freenas-create-pot.sh 2007-11-30 votdev [r2276] Display file location after language template f...
 freenas-create-rootfs.sh 2007-10-17 cochard [r2038] Fix big bug in creating X11R6 symlink that prev...
 freenas-modify-permissions.sh 2007-03-22 votdev [r652] Rename directory 'misc' to 'build'.
 freenas.files 2007-11-27 votdev [r2261] Add bgfsck rc-script.
 make.conf 2007-08-13 votdev [r1570] Modify make.conf
 make.sh 2007-12-03 votdev [r2295] Modify build script.
 source-supfile 2007-09-09 votdev [r1817] Use another cvsup server.

Read Me

FreeNAS (http://www.freenas.org) 
Olivier Cochard-Labbe (olivier@freenas.org)
Licence: BSD

============== SUMMARY =========

1. Files and directories listing
2. How to generate an FreeNAS ISO or IMG  file
3. Building FreeNAS with the latest sources
4. Building kernel

================================
1. Files and directories listing
- /freenas/bootloader : contain FreeBSD boot loader files
- /freenas/rootfs: Minimum FreeBSD root filesystem and FreeNAS script/WebGUI
- /freenas/svn: contain all the up-to-date (working) release and scripts

================================
2. How to generate an FreeNAS ISO or IMG  file

Edit the scripts '/freenas/svn/build/make.sh' and modify the directory
variables with your local ones.

Check that you have installed the following ports:
- subversion
- bash
- cdrtools

Start /freenas/svn/build/make.sh

Burn the freenas.iso file created.

=================================
3. Building FreeNAS with the latest sources

(normally possible with make.sh)

Here is how to build a FreeNAS from the latest source file:

- Use the root user account on your FreeBSD system

3.1 Update your freenas scripts/WebGUI code with SVN:
(this create the svn directory)

cd /usr/local/freenas

svn co https://freenas.svn.sourceforge.net/svnroot/freenas/trunk svn

You should now have this directories now:
/usr/local/freenas
/usr/local/freenas/svn

3.2 Update your ports collection:

Using portsnap the first time:
portsnap fetch extract

To update the ports collection:
portsnap fetch update

3.3 Use the building script:

svn/build/make.sh

Execute all menus in '20 - Build FreeNAS from scratch advanced menu' to build your FreeNAS
from scretch. After that use one of the following menus:

10 - Create 'Embedded' (IMG) file (rawrite to CF/USB/DD)
11 - Create 'LiveCD' (ISO) file
12 - Create 'LiveCD' (ISO) file without 'Embedded' file
13 - Create 'Full' (TGZ) update file

=================================
4. Building kernel

Before building the kernel it is recommended to delete the directory /usr/src completely.
After that run the build scripts and update the kernel sources via cvsup + freebsd-update.
Continue building using the 'Build kernel' menu in the build script.
 
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.