Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 Sep 2014 21:32:58 +0200
From:      Piotr Kubaj <pkubaj@riseup.net>
To:        freebsd-mips@freebsd.org
Subject:   WR1043ND - too big kernel
Message-ID:  <5408BE6A.4050500@riseup.net>
In-Reply-To: <5408BB36.5060409@riseup.net>
References:  <5408BB36.5060409@riseup.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--IQU2BFP8idKsJQjF5b3L3S9OoCco90Hjo
Content-Type: multipart/mixed;
 boundary="------------050809070707080900030203"

This is a multi-part message in MIME format.
--------------050809070707080900030203
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable




-------- Forwarded Message --------
Subject: WR1043ND - too big kernel
Date: Thu, 04 Sep 2014 21:19:18 +0200
From: Piotr Kubaj <pkubaj@riseup.net>
To: adrian@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=3D64*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=3D\"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 :)





--------------050809070707080900030203
Content-Type: application/pgp-signature;
 name="signature.asc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="signature.asc"

LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KCmlRSWNCQUVCQ2dBR0JRSlVDTHMyQUFv
SkVDOW5LdWtSc2ZZK05WZ1FBTnJDUUs0SWJUbDRxRzRMYXpSbWFoKzQKK0Y5eXV5R1RCYlRG
VTdFTmJUdUcybkNIVWprUC8zR2I5NUlZOXpIcWJ6Qk1NNzlLRmMzWHBUM2hKT3JQdnliaApW
UzFXRzBuVmhBMkdDQnRaK2ZJWHFrbnZQVEdpWFF5c2hNUTR6YWYrRGF4eGhLbjdZWWlCanZJ
V0RvQ3FxRVJOCnNOdW5qbE1HM3lDSjRLNENMWlRVT2VmVklLU1UydUNEYllFdkFLbTN1UGk4
cDF5UjBOY3pXK3pnMW1XaFJySisKMFdXYnpMNmZKV1AzYjFhODZ1azJ6YTRGQTZzdUF4VG41
WThTckxScFpmUVFqK2xocWRkOUFVQmhVM05UNVM4SApsdzNzaXBLYk5hVjNBT1NuTnBjL1Bs
clduWFdZdmhkRk5TcW9qRWc2NFJEOEdPckZONE50RnV1NEZjVWNlby9zClBKaTFyaFhXRUZP
eVVJZmd5ZXFYZEN3bkZXMGhvZ2tGRzRtRytHYmRXQ2wxb2dlc0VjSFY5TXNBUTM0cm5mKzcK
L1kySXdLWTAxYWR1cWN5NlN0TUt3c0VaSnRDa2tIRG5zVzE5NmtXR244eFIwQTI0QmpkaE90
ZnlVeDN6OVRCcApHQ2x0aFpxTmRyZ0h2a2N5VmVSZmFMc2NrWW5MZzlzbkVaakM2OEFBSjFS
ZzNWZSs0ckRkKzZSVTBWMWVlRjl0CkQxTVM2UWliOEQ4OWEydkJGMkxiU3BXTHphK3NRSWZ6
ZFFCN09xOC9MOHZyTk5vQ093Q3g3SGdLa3ZaV29JOUoKSkxIUks0RU02dWVXNWM2YWQzclEv
ais2dTNqUVV6QVliOUdyQ2tVNjd0RCtaa0dJM0tWWjlmK2JrQTkxY0IrMQpDdmJxQlN0dDVK
MG1TL1l4VFEzeQo9ZVZKMgotLS0tLUVORCBQR1AgU0lHTkFUVVJFLS0tLS0KCg==
--------------050809070707080900030203--

--IQU2BFP8idKsJQjF5b3L3S9OoCco90Hjo
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJUCL5rAAoJEC9nKukRsfY+L1UQAJ4jz2cg+8tRZ0E5Ayb/ZbZz
XqLYqrczW8kWtQI9A2d8qwy/KCb5NVTCpztHxFYzxQEXjtTMKQa4L39Jctqimj1i
SUDhhQRIeOtTyjuvNlRZiAj9cfcx9J/cU1y0d4ub6rBdNaXN62AamAMg1LRbzCB7
8wtDthaAEbBBCfxbp6iZChwRRP2TvwbYmcMqYI8kvrHaPsyCND11Jj5zFlo7liXc
nXJpQ3LqmQ32s3iN7zUmNgSL/IfgNkEVTox6PlkwWaaXstBNkgwrd+7U1UpIBjxc
FtWB8vt1D/NEVZV0H3v9/EPwHoIHo4duz897z3yvpKQmWabbDVxN5OWEg7FFRphk
EP8DU6FvgnxlD6CX9AyqHSLYbU7xO1M/nr6AAs18bS4EFfSjmaOvgb6FVuUPcHAj
lMWENc4Bg5HZ+IqKzVqfyeGFKMwXEcEx6HoSAqt4pFDpiR8WhCJYu5LLu3fzAeV8
9jNBLuwe/i0uwLqmlbyLw2khACFFJ0Puisvbso+Vxrjhl82uahqoHXENCRWYcfZE
s2gt0CBZAvLHhtRdJKIQmFKKFIlqKQvEVNp7KzMKhNCKirdl1XbF5wKCfz/i3ygG
4jZzshrsW99Q2fUM7DOWpHqZzJJRhicEYrbAjB8xdJ6PxPYOLctD3IpaTCBp8GIQ
iQltVWg2fgZL/xhM1ACl
=V7pT
-----END PGP SIGNATURE-----

--IQU2BFP8idKsJQjF5b3L3S9OoCco90Hjo--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5408BE6A.4050500>