pastcompute / carambola2-freebsd-userbuild Goto Github PK
View Code? Open in Web Editor NEWBuild FreeBSD for Carambola2 using freebsd-wifi-build as non-root user
Build FreeBSD for Carambola2 using freebsd-wifi-build as non-root user
../freebsd-wifi-build/build/bin/build carambola2 buildworld buildkernel installworld installkernel distribution
Error information:
"ake: "/usr/home/freebsd_build/pfsense/freebsd/share/mk/sys.mk" line 331: Unknown keyword "
make: "/usr/home/freebsd_build/pfsense/freebsd/share/mk/sys.mk" line 331: improper shell specification
make: Fatal errors encountered -- cannot continue
make: stopped in /usr/home/freebsd_build/pfsense/freebsd
Complete information:
_$ ../freebsd-wifi-build/build/bin/build carambola2 buildworld buildkernel installworld installkernel distribution
Checking - u-boot-tools .. OK.
Checking - lzma .. OK.
Checking - perl5 .. OK.
Checking - rsync .. OK.
Checking - mips-xtoolchain-gcc .. OK.
*** Configuration file : carambola2
*** Base configuration : mips_ap
*** Platform : mips_ap
Build list: buildworld buildkernel installworld installkernel distribution
*** Target : buildworld
MAKEOBJDIRPREFIX: /home/freebsd_build/pfsense/freebsd/../obj/mips_ap/
*** Stage : buildworld
make: "/usr/home/freebsd_build/pfsense/freebsd/share/mk/sys.mk" line 21: Unassociated shell command "UNIFIED_OBJDIR"
"ake: "/usr/home/freebsd_build/pfsense/freebsd/share/mk/sys.mk" line 31: Unassociated shell command "DIRDEPS_BUILD
make: "/usr/home/freebsd_build/pfsense/freebsd/share/mk/sys.mk" line 32: Unassociated shell command "DIRDEPS_CACHE"
"ake: "/usr/home/freebsd_build/pfsense/freebsd/share/mk/sys.mk" line 35: Unassociated shell command "AUTO_OBJ/DIRDEPS_BUILD
"ake: "/usr/home/freebsd_build/pfsense/freebsd/share/mk/sys.mk" line 36: Unassociated shell command "META_MODE/DIRDEPS_BUILD
"ake: "/usr/home/freebsd_build/pfsense/freebsd/share/mk/sys.mk" line 37: Unassociated shell command "STAGING/DIRDEPS_BUILD
make: "/usr/home/freebsd_build/pfsense/freebsd/share/mk/sys.mk" line 38: Unassociated shell command "SYSROOT/DIRDEPS_BUILD"
"ake: "/usr/home/freebsd_build/pfsense/freebsd/share/mk/sys.mk" line 41: Unassociated shell command "${__DEFAULT_NO_OPTIONS}
"ake: "/usr/home/freebsd_build/pfsense/freebsd/share/mk/sys.mk" line 42: Unassociated shell command "${__DEFAULT_YES_OPTIONS}
make: "/usr/home/freebsd_build/pfsense/freebsd/share/mk/sys.mk" line 43: Unassociated shell command "${_DEFAULT_DEPENDENT_OPTIONS:H}"
make: "/usr/home/freebsd_build/pfsense/freebsd/Makefile.sys.inc" line 11: Malformed conditional (${MK_DIRDEPS_BUILD} == "no")
make: "/usr/home/freebsd_build/pfsense/freebsd/share/mk/src.sys.obj.mk" line 35: Malformed conditional (${MK_UNIFIED_OBJDIR} == "no" && ${MK_DIRDEPS_BUILD} == "no")
make: "/usr/home/freebsd_build/pfsense/freebsd/share/mk/src.sys.obj.mk" line 79: Malformed conditional (${MK_DIRDEPS_BUILD} == "no")
make: "/usr/home/freebsd_build/pfsense/freebsd/share/mk/sys.mk" line 55: Malformed conditional (${MK_META_MODE} == "yes" && defined(.MAKEFLAGS) && ${.MAKEFLAGS:M-B})
make: "/usr/home/freebsd_build/pfsense/freebsd/share/mk/sys.mk" line 59: Malformed conditional (${MK_DIRDEPS_BUILD} == "yes")
make: "/usr/home/freebsd_build/pfsense/freebsd/share/mk/sys.mk" line 117: Malformed conditional (${MK_AUTO_OBJ} == "yes")
make: "/usr/home/freebsd_build/pfsense/freebsd/share/mk/local.sys.mk" line 3: Malformed conditional (${MK_DIRDEPS_BUILD} == "yes" || ${MK_META_MODE} == "yes")
"ake: "/usr/home/freebsd_build/pfsense/freebsd/share/mk/sys.mk" line 331: Unknown keyword "
make: "/usr/home/freebsd_build/pfsense/freebsd/share/mk/sys.mk" line 331: improper shell specification
make: Fatal errors encountered -- cannot continue
make: stopped in /usr/home/freebsd_build/pfsense/freebsd
=========================================================
Here's the order I executed before
${SUDO} pkg install fakeroot gmake bison dialog4ports git wget subversion lzma u-boot-tools libtool
2. Create a working directory
Within that directory, make a copy of the freebsd sources, and freebsd-wifi-build.
For example, using github:
git clone https://github.com/freebsd/freebsd.git
git clone https://github.com/freebsd/freebsd-wifi-build.git
Prepare a user customisation script
Note, by default the kernel in /tftpboot will be read-only which means successive installkernel
will fail unless it is moved out of the way, or the option X_FORCE_TFTPCP=YES is used
echo 'X_FORCE_TFTPCP=YES' > ~/.freebsd-wifi-build-settings.cfg
Build the userland and kernel and the staging tree
../freebsd-wifi-build/build/bin/build carambola2 buildworld buildkernel installworld installkernel distribution
`
=============================================================
sys.mk:
.ifndef WITHOUT_SHELL_ERRCTL
__MAKE_SHELL?=/bin/sh
SHELL: name=sh \ #331line
quiet="set -" echo="set -v" filter="set -"
hasErrCtl=yes check="set -e" ignore="set +e"
echoFlag=v errFlag=e
path=${__MAKE_SHELL}
.endif
====================================================
Can you give me some suggestions to build a FreeBSD image of MIPS.
Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.