From owner-freebsd-mips@FreeBSD.ORG Fri Aug 30 13:43:48 2013 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id AA97E769 for ; Fri, 30 Aug 2013 13:43:48 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ie0-f177.google.com (mail-ie0-f177.google.com [209.85.223.177]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7362C261F for ; Fri, 30 Aug 2013 13:43:48 +0000 (UTC) Received: by mail-ie0-f177.google.com with SMTP id e14so3069750iej.8 for ; Fri, 30 Aug 2013 06:43:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=d/wXRYwptxvwELZmmsdltNlS69XvLH81Ahqbl9+AGkM=; b=iN0lbgQf+fSh3EsYU7V0Wm/yUF+kzJfSpY5UE8h8lqKPpkHPNTFlE7/mjgup7bhvD4 3R9qJlDNmn4DfkL9CzWmo9o4nxoDZDODEQVvoMck0YwTlsHF0dZc+j7+A2lSM6ZUcbh9 HgzFGkYyEgztHwQxEWu7rajyxL+omHDd26WuXd3/X0WdWH0vqQKsf/lxRwQhsOyH8B4O LGRE85BXirjlbpqBDLGOa9OV8iArFlDHBKaA3fKGiEh/1Ks1L/065KioZpAKZgqC0a6E yVHOQY7tCPkylCFnp/VgKrfbt6cQTRupmGphe189RYXOL8J60aoRALQ0en/19sqTmoO5 oJ0g== X-Gm-Message-State: ALoCoQnyJplPOPOqxg649NX5OQjKMUJ2M1ny+0fK4ll+2yl/VgtYnxLMuHTc6ViDb/6OpHb1Ha/1 X-Received: by 10.50.109.132 with SMTP id hs4mr2427298igb.34.1377870222290; Fri, 30 Aug 2013 06:43:42 -0700 (PDT) Received: from 53.imp.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPSA id w4sm3984458igb.5.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 30 Aug 2013 06:43:41 -0700 (PDT) Sender: Warner Losh Subject: Re: TP-Link 1043ND - its tme :) Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: Date: Fri, 30 Aug 2013 07:43:39 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <761FE460-03DA-4697-BC44-9DEF5C6AE28A@bsdimp.com> References: <04dc16e8adc42b571915e7fc51ec9a57.squirrel@arroway.org> <8FFD8F5B-FCE4-4062-B6B7-7A46943E91AE@bsdimp.com> <59d6b005e19dfc803b06a607bd6dc984.squirrel@arroway.org> To: Adrian Chadd X-Mailer: Apple Mail (2.1085) Cc: "freebsd-mips@freebsd.org" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Aug 2013 13:43:48 -0000 And my changes won't affect rootfs size either, just the size of the = kernel. Warner On Aug 30, 2013, at 6:43 AM, Adrian Chadd wrote: > AH_DEBUG_ALQ just adds some debugging bits to the ath/hal code to let = you > do live register tracing. >=20 > It won't affect the rootfs size. >=20 >=20 >=20 > -adrian >=20 >=20 >=20 > On 30 August 2013 02:30, Nenhum_de_Nos = wrote: >=20 >>=20 >> On Thu, August 29, 2013 20:20, Nenhum_de_Nos wrote: >>>=20 >>> On Thu, August 29, 2013 19:51, Warner Losh wrote: >>>>=20 >>>> On Aug 29, 2013, at 4:06 PM, Warner Losh wrote: >>>>=20 >>>>>=20 >>>>>> [mktplinkfw] *** error: rootfs image is too big >>>>>=20 >>>>> OK. This isn't for root image, but to make the uncompressed kernel >> ~685k smaller. So maybe 200k >>>>> smaller after compression. >>>>>=20 >>>>> http://people.freebsd.org/~imp/smalller-mips >>>>=20 >>>> I've moved this to = http://people.freebsd.org/~imp/smaller-mips.difffor nicer downloading, = and >>>> the >>>> original link had too many l's in it... >>>>=20 >>>>> basically it does EXTRA_FLAGS+=3D-fno-inline -Wno-inline -Os >> -Wno-strict-aliasing while setting >>>>> the inline limit to 0 and adding some libkern functions that need = it. >> Plus adding the canonical >>>>> MUTEX/RWLOCK/SX_NOINLINE options. >>>>>=20 >>>>> text data bss dec hex filename >>>>> 3598994 270588 153056 4022638 3d616e kernel.debug with = patch >>>>> 4285106 270632 153056 4708794 47d9ba kernel.debug built >> without >>>>>=20 >>>>> Comments? >>>>=20 >>>> Btw, the extra initialization is for a few places where -Os = produces >> different (and I think >>>> spurious) warnings vs -O2. That's also the purpose of the >> MIPS_SMALL_HACK option, so the three >>>> shift routines that are normally inlined by the compiler have >> definitions. But those few bytes >>>> may >>>> not be worth optimizing... >>>=20 >>> I dont know if I got it. Should I try it or not ? :) >>>=20 >>> and, I must find where to change it. Not yet familiar with the build >> scripts and cfg files. >>>=20 >>> thanks, >>>=20 >>> matheus >>=20 >> It will be hard to get it. >>=20 >> Populating = `/root/work/freebsd/head/src/../mfsroot-tl-wr1043nd_matheus.img' >> Image = `/root/work/freebsd/head/src/../mfsroot-tl-wr1043nd_matheus.img' >> complete >> *** Running mkuzip to create a compressed filesystem .. >> *** Target Done. >> *** Target : tplink >> 3831+2 records in >> 3831+1 records out >> 1961523 bytes transferred in 1.025448 secs (1912845 bytes/sec) >> [mktplinkfw] *** error: rootfs image is too big >> root@dev:~ # >>=20 >> I commented out some AH_DEBUG_ALQ. I imagine it is about ALTQ new >> implementation. Am I right ? >>=20 >> still not there yet :( >>=20 >> matheus >>=20 >>>> Warner >>>>=20 >>>>=20 >>>>> Warner >>>>>=20 >>>>> P.S. Don't have this hardware, so no test boots. >>>>>=20 >>>>=20 >>>>=20 >>>=20 >>>=20 >>> -- >>> We will call you Cygnus, >>> The God of balance you shall be >>>=20 >>> A: Because it messes up the order in which people normally read = text. >>> Q: Why is top-posting such a bad thing? >>>=20 >>> http://en.wikipedia.org/wiki/Posting_style >>> _______________________________________________ >>> freebsd-mips@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-mips >>> To unsubscribe, send any mail to = "freebsd-mips-unsubscribe@freebsd.org" >>>=20 >>=20 >>=20 >> -- >> We will call you Cygnus, >> The God of balance you shall be >>=20 >> A: Because it messes up the order in which people normally read text. >> Q: Why is top-posting such a bad thing? >>=20 >> http://en.wikipedia.org/wiki/Posting_style >> _______________________________________________ >> freebsd-mips@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-mips >> To unsubscribe, send any mail to = "freebsd-mips-unsubscribe@freebsd.org" >>=20 > _______________________________________________ > freebsd-mips@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to = "freebsd-mips-unsubscribe@freebsd.org"