User Tools

Site Tools


documentation:technical_docs:nanobsd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

documentation:technical_docs:nanobsd [2011/12/27 14:37] – external edit 127.0.0.1documentation:technical_docs:nanobsd [2021/01/18 16:03] (current) olivier
Line 148: Line 148:
  
 ====== BSDRP patches for NanoBSD ====== ====== BSDRP patches for NanoBSD ======
- 
-All this patchs were wrote for NanoBSD included in FreeBSD 8.1-Release. 
- 
-===== AMD64 support ===== 
- 
-This very small patch permit to generate NanoBSD amd64 image. 
- 
-This patch [[http://www.freebsd.org/cgi/query-pr.cgi?pr=135588&cat=|was proposed to be added into the official NanoBSD]] the Mon, 15 Jun 2009 05:51:53 GMT and was included in FreeBSD 8.1. 
- 
-===== Label support: No more hardcoded ad0/da0 for root filesystem ===== 
- 
-The image of NanoBSD hardcode the device type use for mounting the root filesystem: 
-  * ad0 for the first ATA device 
-  * da0 for the first SCSI device (used for USB key) 
-This mean, that a "ad0-nanobsd" image can't be installed on a USB key: It will not correctly boot (because the fstab will indicate the root filesystem on the ad0 drive, but when booting from a USB key, it's on da0). 
- 
-The pfSense team meet the same problem, and Scott Ullrich give me this big advice: Use label in your fstab for avoiding this problem! 
- 
-Then, here is the patch, and the new update script (merged updatep1 and updatep2 nanoBSD script): 
- 
-  * [[http://bsdrp.svn.sourceforge.net/viewvc/bsdrp/tags/1.0/patches/nanobsd.glabel.patch|nanobsd.glabel.patch]] 
-  * [[http://bsdrp.svn.sourceforge.net/viewvc/bsdrp/trunk/Files/usr/local/sbin/upgrade|New update script that support glabel]] 
- 
-This patch [[http://lists.freebsd.org/pipermail/freebsd-embedded/2009-July/000791.html|was proposed to be added into NanoBSD on the FreeBSD-embedded mailing-list]] the Sun Jul 5 22:12:38 UTC 2009, and a modified version is committed in -current. 
  
 ===== Port compiling patches ===== ===== Port compiling patches =====
Line 181: Line 157:
 This patch support cross-compilation i386 ports from an amd64 release. This patch support cross-compilation i386 ports from an amd64 release.
  
-You can found this patches as the function add_port () in the [[http://bsdrp.svn.sourceforge.net/viewvc/bsdrp/trunk/BSDRP.nano|BSDRP nano configuration file]]. +You can found this patches as the function add_port () in the [[https://github.com/ocochard/BSDRP/blob/master/BSDRP/BSDRP.nano|BSDRP nano configuration file]].
- +
-===== Improving mtree generation ===== +
- +
-NanoBSD generate a mtree reference file, but for system security audit the default nanoBSD mtree file didn't contain enough parameters +
- +
-This patch add sha256digest to mtree function of nanoBSD: +
- +
-[[http://bsdrp.svn.sourceforge.net/viewvc/bsdrp/tags/1.0/patches/nanobsd.mtree.patch|nanobsd.mtree.patch]] +
- +
-===== sparc64 support (work in progress) ===== +
- +
-This patch is to be used with the nanobsd glabel patch: +
- +
-[[http://bsdrp.svn.sourceforge.net/viewvc/bsdrp/tags/1.0/patches/nanobsd.sparc64.patch|nanobsd.sparc64.patch]] +
- +
-<note important>Cross-compilation of port is not possible: This patch is usable from a sparc64 computer only. +
- +
-Upgrading nanoBSD image is not supported: There is no FreeBSD bootloader available on sparc64 (the Sun OBP permit to select the partition from where to boot). +
-</note> +
- +
-Actual State: Commenting net/bird and net/openlldp permit to build the sparc64 BSDRP image, but the resulting image don't accept to login (Generate a "__sparc_utrap: fatal illegal instruction"). +
- +
-===== arm support (work in progress) ===== +
- +
-<note warning>This patch, prensently didn't fully works because I didn't found a solution for cross-compil arm ports from an i386/amd64 FreeBSD.  +
- +
-But it should work from an arm FreeBSD (not tested, I didn't have arm computer)</note>+
  
-This patch permit to generate NanoBSD arm image: It's came from the nanobsd/gateworks exemples.+But the best solution should to use poudriere to generate packages.
  
-[[http://bsdrp.svn.sourceforge.net/viewvc/bsdrp/tags/1.0/patches/nanobsd.arm.patch|nanobsd.arm.patch]] 
documentation/technical_docs/nanobsd.txt · Last modified: 2021/01/18 16:03 by olivier

Except where otherwise noted, content on this wiki is licensed under the following license: BSD 2-Clause
Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki