WR1043ND - too big kernel

Piotr Kubaj pkubaj at riseup.net
Thu Sep 4 19:33:02 UTC 2014




-------- Forwarded Message --------
Subject: WR1043ND - too big kernel
Date: Thu, 04 Sep 2014 21:19:18 +0200
From: Piotr Kubaj <pkubaj at riseup.net>
To: adrian at freebsd.org

Hi. I'm trying to build an image for it, but it fails with "kernel
image is too big.", both on releng/10.0 and head (I prefer to use
RELEASE, of course I've modified scripts to build it). On
releng/10.0 the reported size of kernel img is 1933708, on head it's
2000626 (it's the output from mktplinkfw). My kernel config is as
following (I have 64 MB RAM mod):
include         "AR91XX_BASE"

ident           TP-LINK-WN1043ND

# Override hints with board values
hints           "TP-WN1043ND.hints"

# Force the board memory - 64mb
options         AR71XX_REALMEM=64*1024*1024

# i2c GPIO bus
device          gpioiic
device          iicbb
device          iicbus
device          iic

# ethernet switch device
device          etherswitch

# RTL8366RB support
device          rtl8366rb

# Enable the uboot environment stuff rather then the
# redboot stuff.
options         AR71XX_ENV_UBOOT

# 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.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


I've also tried to disable gpioiic, iicbb, iicbus, iic, etherswitch and
rtl8366rb as only WAN Ethernet port will be used (no Ethernet devices,
only Wifi), but it doesn't help. Do you have any not yet commited
patches that make it smaller? If so, I would be grateful if you send
them to me and even more grateful if you somehow manage to push to
stable/10 before releng/10.1 branch-off :)




-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 802 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-mips/attachments/20140904/93453e29/attachment.sig>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-mips/attachments/20140904/93453e29/attachment-0001.sig>


More information about the freebsd-mips mailing list