summaryrefslogtreecommitdiffstats
path: root/sys/mips
diff options
context:
space:
mode:
authorhiren <hiren@FreeBSD.org>2013-09-17 20:33:42 +0000
committerhiren <hiren@FreeBSD.org>2013-09-17 20:33:42 +0000
commit5a339ba5aa8ada3092d9f5715e202e11a1fbed8e (patch)
treeaa078b196649a752685f08d7491f7af40129645a /sys/mips
parent6ac7f5358f32542d65b23ff38877dae8b6ed8d11 (diff)
downloadFreeBSD-src-5a339ba5aa8ada3092d9f5715e202e11a1fbed8e.zip
FreeBSD-src-5a339ba5aa8ada3092d9f5715e202e11a1fbed8e.tar.gz
We have grown a bit too big lately. Shrinking the kernel for TP-Link
TL-WR1043ND. Submitted by: loos (initial version) Reviewed by: adrian Approved by: sbruno (mentor, implicit) Approved by: re (delphij) Tested by: hiren
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/conf/TP-WN1043ND22
1 files changed, 18 insertions, 4 deletions
diff --git a/sys/mips/conf/TP-WN1043ND b/sys/mips/conf/TP-WN1043ND
index 7e1bafb..5493d0f 100644
--- a/sys/mips/conf/TP-WN1043ND
+++ b/sys/mips/conf/TP-WN1043ND
@@ -34,12 +34,26 @@ options MSDOSFS
# redboot stuff.
options AR71XX_ENV_UBOOT
-# uzip - to boot natively from flash
-device geom_uzip
-options GEOM_UZIP
+# uncompress - to boot natively from flash
+device geom_uncompress
+options GEOM_UNCOMPRESS
# Used for the static uboot partition map
device geom_map
# Boot off of the rootfs, as defined in the geom_map setup.
-options ROOTDEVNAME=\"ufs:map/rootfs.uzip\"
+options ROOTDEVNAME=\"ufs:map/rootfs.uncompress\"
+
+# We bite the performance overhead for now; the kernel won't
+# fit if the mutexes are inlined.
+options MUTEX_NOINLINE
+options RWLOCK_NOINLINE
+options SX_NOINLINE
+
+# Remove everything we don't need. We need a _really_ small kernel!
+nooptions INVARIANTS
+nooptions INVARIANT_SUPPORT
+nooptions WITNESS
+nooptions WITNESS_SKIPSPIN
+nooptions DEBUG_REDZONE
+nooptions DEBUG_MEMGUARD
OpenPOWER on IntegriCloud