From owner-freebsd-mips@FreeBSD.ORG Fri Sep 5 17:59:35 2014 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 14C2A88E for ; Fri, 5 Sep 2014 17:59:35 +0000 (UTC) Received: from mail-qa0-x22b.google.com (mail-qa0-x22b.google.com [IPv6:2607:f8b0:400d:c00::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C88D71867 for ; Fri, 5 Sep 2014 17:59:34 +0000 (UTC) Received: by mail-qa0-f43.google.com with SMTP id cm18so11336996qab.16 for ; Fri, 05 Sep 2014 10:59:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=dY9k44YC+oX/+NjR8itlY9XRjYtXoLa0G/agjtbBrX4=; b=Q0Gij+p54h2JZvbdOsgkCZYcpLwHSiy5C6KIZ71NqhjTSrtRs3k7Rmqt9ZBPHmMXbp bc7+e0fpz06oKn0j3tq4uhGCSC4dM6eVTgo315sdbOejX+qT+UaqAKvxO/+z2pLoQDvj CrjX9lmo51UsGL+cgkg313cqYgUAziOEgfdJ4h8MqCSF3tX3qw/v2VjaUB2ifwUErJdq I0BLhnZELRxuyXUW6sN1sILOw6D2QXYY0kg1Hj4idkbyYQZ7rj2HlROLkDuEV7Tfj7i3 d4BRU2k69HQdRgaGyniNVRnhA+nVLfRiKlsJpPHgebl3kYj2GGOuyzG5jSg7vUP3MwQE JaXQ== MIME-Version: 1.0 X-Received: by 10.224.44.14 with SMTP id y14mr20559130qae.34.1409939973728; Fri, 05 Sep 2014 10:59:33 -0700 (PDT) Sender: hiren.panchasara@gmail.com Received: by 10.96.170.230 with HTTP; Fri, 5 Sep 2014 10:59:33 -0700 (PDT) In-Reply-To: References: <5408BB36.5060409@riseup.net> <5408BE6A.4050500@riseup.net> <5408CE14.2090809@riseup.net> Date: Fri, 5 Sep 2014 10:59:33 -0700 X-Google-Sender-Auth: AtEpESVVISrXEJCNfZqCDR7TBIg Message-ID: Subject: Re: WR1043ND - too big kernel From: hiren panchasara To: Piotr Kubaj Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-mips@freebsd.org" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Sep 2014 17:59:35 -0000 On Thu, Sep 4, 2014 at 2:27 PM, hiren panchasara wrote: > On Thu, Sep 4, 2014 at 1:44 PM, hiren panchasara wrote: >> On Thu, Sep 4, 2014 at 1:39 PM, Piotr Kubaj 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