Build firmware with official CURRENT¶
No switchctl¶
Remove switchctl from SMALL_ profile or replace it with etherswitchcfg
Missing kernel configuration¶
ERROR: Missing kernel configuration file(s) (/zrouter-obj/prj/zrouter/conf/TPLink_TL-WR1043ND-v1).
Copy TPLink_TL-WR1043ND-v1 to /zrouter-obj/prj/zrouter/tmp/mips.mips/prj/FreeBSD-head/tmp/sys/mips/conf
In zrouter Makefile change
diff -r d76e5bad5ed1 Makefile --- a/Makefile Fri Nov 02 16:01:47 2012 +0200 +++ b/Makefile Sun Nov 11 00:05:10 2012 +0100 @@ -261,7 +261,7 @@ .if defined(WITH_KERNFAST) MAKEOBJDIRPREFIX=${ZROUTER_OBJ}/tmp/ ${MAKE} ${_KERNEL_BUILD_ENV} -C ${FREEBSD_SRC_TREE} KERNFAST=${KERNEL_CONFIG_FILE} buildkernel .else - MAKEOBJDIRPREFIX=${ZROUTER_OBJ}/tmp/ ${MAKE} ${_KERNEL_BUILD_ENV} -C ${FREEBSD_SRC_TREE} KERNCONF=${KERNEL_CONFIG_FILE} buildkernel + MAKEOBJDIRPREFIX=${ZROUTER_OBJ}/tmp/ ${MAKE} ${_KERNEL_BUILD_ENV} -C ${FREEBSD_SRC_TREE} KERNCONF=TPLink_TL-WR1043ND-v1 buildkernel .endif #XXX_BEGIN Only for testing @@ -610,7 +610,7 @@ ${KERNELDESTDIR}/boot/kernel/kernel: ${ZROUTER_FREEBSD_OBJDIR}/sys/${KERNEL_CONFIG_FILE}/kernel kernel-install-dir @echo "++++++++++++++ Making $@ ++++++++++++++" .if !empty(KERNELDESTDIR) - MAKEOBJDIRPREFIX=${ZROUTER_OBJ}/tmp/ ${MAKE} ${_KERNEL_BUILD_ENV} -C ${FREEBSD_SRC_TREE} DESTDIR=${KERNELDESTDIR} KERNCONF=${KERNEL_CONFIG_FILE} installkernel + MAKEOBJDIRPREFIX=${ZROUTER_OBJ}/tmp/ ${MAKE} ${_KERNEL_BUILD_ENV} -C ${FREEBSD_SRC_TREE} DESTDIR=${KERNELDESTDIR} KERNCONF=TPLink_TL-WR1043ND-v1 installkernel .else .error "KERNELDESTDIR must be set for kernel-install, since we always do cross-build" .endif
Unknown kernel options¶
/prj/FreeBSD-head/sys/mips/conf/TPLink_TL-WR1043ND-v1: unknown option "IPFIREWALL_FORWARD" /prj/FreeBSD-head/sys/mips/conf/TPLink_TL-WR1043ND-v1: unknown option "DEVICE_MODEL" /prj/FreeBSD-head/sys/mips/conf/TPLink_TL-WR1043ND-v1: unknown option "DEVICE_VENDOR" /prj/FreeBSD-head/sys/mips/conf/TPLink_TL-WR1043ND-v1: unknown option "SOC_MODEL" /prj/FreeBSD-head/sys/mips/conf/TPLink_TL-WR1043ND-v1: unknown option "SOC_VENDOR"
Remove this entries from TPLink_TL-WR1043ND-v1
ldscript.mips.bin¶
make: don't know how to make /home/eric/prj/FreeBSD-head/sys/conf/ldscript.mips.bin. Stop *** [buildkernel] Error code 2
Copy zrouterfreebsdhead/sys/conf/ldscript.mips.bin to currenthead/sys/conf/ldscript.mips.bin