WR1043ND - too big kernel
hiren panchasara
hiren at freebsd.org
Fri Sep 5 17:59:35 UTC 2014
On Thu, Sep 4, 2014 at 2:27 PM, hiren panchasara <hiren at freebsd.org> wrote:
> On Thu, Sep 4, 2014 at 1:44 PM, hiren panchasara <hiren at freebsd.org> wrote:
>> On Thu, Sep 4, 2014 at 1:39 PM, Piotr Kubaj <pkubaj at riseup.net> wrote:
>>> Adding following lines to kernel config shrinks size to 1750991 (on
>>> releng/10.0):
>>> makeoptions INLINE_LIMIT=768
>>> nomakeoptions DEBUG
>>> nomakeoptions ALQ
>>> nooptions INET6
>>> options NO_SWAPPING
>>> nooptions HWPMC_HOOKS
>>> nodevice hwpmc
>>> nodevice hwpmc_mips24k
>>> nooptions KDB
>>>
>>> Any ideas what else I can remove? :P
>>
>> I see you already have r255656.
>> Let me try to build for -head and see.
>
>
>>[mktplinkfw] *** error: kernel image is too big. Max[1572352] kernel img [2000794]
>
> ugh. Need to trim more. I'll see if I can find time this week to check
> where/what we can trim.
Randomly disabled a ton of things and then I could create small enough
kernel. I'm not even sure if things will actually work.
We've grown too big, it seems :-(
Diffs against -head.
Index: sys/mips/conf/TP-WN1043ND
===================================================================
--- sys/mips/conf/TP-WN1043ND (revision 271137)
+++ sys/mips/conf/TP-WN1043ND (working copy)
@@ -16,7 +16,7 @@
options AR71XX_REALMEM=32*1024*1024
# i2c GPIO bus
-device gpioiic
+#device gpioiic
device iicbb
device iicbus
device iic
@@ -28,7 +28,7 @@
device rtl8366rb
# read MSDOS formatted disks - USB
-options MSDOSFS
+#options MSDOSFS
# Enable the uboot environment stuff rather then the
# redboot stuff.
@@ -57,3 +57,29 @@
nooptions WITNESS_SKIPSPIN
nooptions DEBUG_REDZONE
nooptions DEBUG_MEMGUARD
+
+nooptions DDB
+nooptions KDB
+nooptions ALQ
+nooptions HWPMC_HOOKS
+nodevice hwpmc
+nodevice hwpmc_mips24k
+nooptions INET6 #InterNETworking
+
+nooptions ATH_DEBUG
+nooptions AH_DEBUG
+nooption AH_DEBUG_ALQ
+nooptions IEEE80211_DEBUG
+nooptions IEEE80211_SUPPORT_MESH
+nooptions IEEE80211_SUPPORT_TDMA
+nooptions IEEE80211_ALQ # 802.11 ALQ logging support
+
+nodevice usb
+nooptions USB_EHCI_BIG_ENDIAN_DESC
+nooptions USB_DEBUG
+nooptions USB_HOST_ALIGN
+nodevice umass
+nodevice ehci
+
+nodevice gpio
+nodevice gpioled
More information about the freebsd-mips
mailing list