Project

General

Profile

Build firmware with official CURRENT » History » Version 1

Eric Krausser, 11/10/2012 11:10 PM
initial version

1 1 Eric Krausser
h1. Build firmware with official CURRENT
2 1 Eric Krausser
3 1 Eric Krausser
h2. No switchctl
4 1 Eric Krausser
5 1 Eric Krausser
Remove _switchctl_ from SMALL_ profile or replace it with _etherswitchcfg_
6 1 Eric Krausser
7 1 Eric Krausser
h2. Missing kernel configuration
8 1 Eric Krausser
9 1 Eric Krausser
<pre>
10 1 Eric Krausser
ERROR: Missing kernel configuration file(s) (/zrouter-obj/prj/zrouter/conf/TPLink_TL-WR1043ND-v1).
11 1 Eric Krausser
</pre>
12 1 Eric Krausser
13 1 Eric Krausser
Copy TPLink_TL-WR1043ND-v1 to /zrouter-obj/prj/zrouter/tmp/mips.mips/prj/FreeBSD-head/tmp/sys/mips/conf
14 1 Eric Krausser
15 1 Eric Krausser
In zrouter Makefile change
16 1 Eric Krausser
<pre>
17 1 Eric Krausser
diff -r d76e5bad5ed1 Makefile
18 1 Eric Krausser
--- a/Makefile	Fri Nov 02 16:01:47 2012 +0200
19 1 Eric Krausser
+++ b/Makefile	Sun Nov 11 00:05:10 2012 +0100
20 1 Eric Krausser
@@ -261,7 +261,7 @@
21 1 Eric Krausser
 .if defined(WITH_KERNFAST)
22 1 Eric Krausser
 	MAKEOBJDIRPREFIX=${ZROUTER_OBJ}/tmp/ ${MAKE} ${_KERNEL_BUILD_ENV} -C ${FREEBSD_SRC_TREE} KERNFAST=${KERNEL_CONFIG_FILE} buildkernel
23 1 Eric Krausser
 .else
24 1 Eric Krausser
-	MAKEOBJDIRPREFIX=${ZROUTER_OBJ}/tmp/ ${MAKE} ${_KERNEL_BUILD_ENV} -C ${FREEBSD_SRC_TREE} KERNCONF=${KERNEL_CONFIG_FILE} buildkernel
25 1 Eric Krausser
+	MAKEOBJDIRPREFIX=${ZROUTER_OBJ}/tmp/ ${MAKE} ${_KERNEL_BUILD_ENV} -C ${FREEBSD_SRC_TREE} KERNCONF=TPLink_TL-WR1043ND-v1 buildkernel
26 1 Eric Krausser
 .endif
27 1 Eric Krausser
 
28 1 Eric Krausser
 #XXX_BEGIN Only for testing
29 1 Eric Krausser
@@ -610,7 +610,7 @@
30 1 Eric Krausser
 ${KERNELDESTDIR}/boot/kernel/kernel:	${ZROUTER_FREEBSD_OBJDIR}/sys/${KERNEL_CONFIG_FILE}/kernel kernel-install-dir
31 1 Eric Krausser
 	@echo "++++++++++++++ Making $@ ++++++++++++++"
32 1 Eric Krausser
 .if !empty(KERNELDESTDIR)
33 1 Eric Krausser
-	MAKEOBJDIRPREFIX=${ZROUTER_OBJ}/tmp/ ${MAKE} ${_KERNEL_BUILD_ENV} -C ${FREEBSD_SRC_TREE} DESTDIR=${KERNELDESTDIR} KERNCONF=${KERNEL_CONFIG_FILE} installkernel
34 1 Eric Krausser
+	MAKEOBJDIRPREFIX=${ZROUTER_OBJ}/tmp/ ${MAKE} ${_KERNEL_BUILD_ENV} -C ${FREEBSD_SRC_TREE} DESTDIR=${KERNELDESTDIR} KERNCONF=TPLink_TL-WR1043ND-v1 installkernel
35 1 Eric Krausser
 .else
36 1 Eric Krausser
 .error "KERNELDESTDIR must be set for kernel-install, since we always do cross-build"
37 1 Eric Krausser
 .endif
38 1 Eric Krausser
39 1 Eric Krausser
</pre>
40 1 Eric Krausser
41 1 Eric Krausser
h2. Unknown kernel options
42 1 Eric Krausser
43 1 Eric Krausser
<pre>
44 1 Eric Krausser
/prj/FreeBSD-head/sys/mips/conf/TPLink_TL-WR1043ND-v1: unknown option "IPFIREWALL_FORWARD"
45 1 Eric Krausser
/prj/FreeBSD-head/sys/mips/conf/TPLink_TL-WR1043ND-v1: unknown option "DEVICE_MODEL"
46 1 Eric Krausser
/prj/FreeBSD-head/sys/mips/conf/TPLink_TL-WR1043ND-v1: unknown option "DEVICE_VENDOR"
47 1 Eric Krausser
/prj/FreeBSD-head/sys/mips/conf/TPLink_TL-WR1043ND-v1: unknown option "SOC_MODEL"
48 1 Eric Krausser
/prj/FreeBSD-head/sys/mips/conf/TPLink_TL-WR1043ND-v1: unknown option "SOC_VENDOR"
49 1 Eric Krausser
</pre>
50 1 Eric Krausser
51 1 Eric Krausser
Remove this entries from TPLink_TL-WR1043ND-v1
52 1 Eric Krausser
53 1 Eric Krausser
h2. ldscript.mips.bin
54 1 Eric Krausser
55 1 Eric Krausser
<pre>
56 1 Eric Krausser
make: don't know how to make /home/eric/prj/FreeBSD-head/sys/conf/ldscript.mips.bin. Stop
57 1 Eric Krausser
*** [buildkernel] Error code 2
58 1 Eric Krausser
</pre>
59 1 Eric Krausser
60 1 Eric Krausser
Copy zrouterfreebsdhead/sys/conf/ldscript.mips.bin to currenthead/sys/conf/ldscript.mips.bin