documentation:technical_docs
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| documentation:technical_docs [2021/01/15 21:23] – [Getting BSDRP source code] olivier | documentation:technical_docs [2024/11/12 15:23] (current) – [Current problems with make] olivier | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| - | ====== | + | ====== |
| + | |||
| + | Note that work-in-progess to migrate from the old NanoBSD to the [[Documentation: | ||
| + | |||
| - | The first step was to understand [[Documentation: | ||
| ====== How to build BSDRP images ====== | ====== How to build BSDRP images ====== | ||
| Line 16: | Line 19: | ||
| ===== Prerequisite ===== | ===== Prerequisite ===== | ||
| - | You need 21G of free space (1G for FreeBSD installation, | + | You need 21G of free space (1G for FreeBSD installation, |
| ==== Getting BSDRP source code ==== | ==== Getting BSDRP source code ==== | ||
| - | You can download the source code of BSDRP with svnlite (included in FreeBSD): | + | git clone: |
| < | < | ||
| - | pkg install | + | pkg install git sudo poudriere-devel |
| - | svnlite co https:// | + | |
| - | cd BSDRP | + | |
| - | </ | + | |
| - | + | ||
| - | or using git if you had installed it: | + | |
| - | < | + | |
| - | pkg install ca_root_nss | + | |
| git clone https:// | git clone https:// | ||
| </ | </ | ||
| - | Once you download the code, you can kept your BSDRP sources up-to-date with these commands: | ||
| - | < | ||
| - | tools/ | ||
| - | ./make -u | ||
| - | </ | ||
| - | |||
| - | ===== make.sh flowshart ===== | ||
| - | |||
| - | Here is the big picture regarding BSDRP image build process: | ||
| - | {{BSDRP.framework.flowshart.png| BSDRP build framework flowshart}} | ||
| ===== Running the build script ===== | ===== Running the build script ===== | ||
| Line 50: | Line 36: | ||
| < | < | ||
| - | ./make.sh -h | + | make |
| </ | </ | ||
| The FreeBSD code include all architecture and limited cross-compiling tools: You can generate an i386 BSDRP image from a FreeBSD amd64, but you can't generate a sparc64 image from an i386/amd64 host. | The FreeBSD code include all architecture and limited cross-compiling tools: You can generate an i386 BSDRP image from a FreeBSD amd64, but you can't generate a sparc64 image from an i386/amd64 host. | ||
| - | ===== Current problems with make ===== | ||
| - | |||
| - | ==== Disk image creation can fail ==== | ||
| - | |||
| - | On FreeBSD dektop, sometimes NanoBSD can't umount the md during image creation. | ||
| - | |||
| - | "fstat | grep BSDRP" display the name of the process locking the temporary mount point. It can be: | ||
| - | * gam_server | ||
| - | * gvfsd-trash | ||
| - | |||
| - | here is the log of a failed build: | ||
| + | Once you download the code, you can kept your BSDRP sources up-to-date with these commands: | ||
| < | < | ||
| - | ### log : / | + | make upstream-sync |
| - | Error encountered. Check errors in last log file. | + | |
| - | Running exit trap code | + | |
| - | root@dev # tail -n 4 / | + | |
| - | unmount: unmount of / | + | |
| </ | </ | ||
| - | ==== gam_server ==== | ||
| - | For preventing gamin to lock the working mount point, create this configuration file and force a restart of gamin: | ||
| - | < | ||
| - | mkdir / | ||
| - | echo "fsset ufs poll 10" > / | ||
| - | killall -9 gam_server | ||
| - | </ | ||
| - | ==== gvfsd-trash ==== | ||
| - | I don't know how to fix this gvfs bug. | + | |
| ====== How to generate customized BSDRP images ====== | ====== How to generate customized BSDRP images ====== | ||
documentation/technical_docs.1610742225.txt.gz · Last modified: 2021/01/15 21:23 by olivier
