From owner-freebsd-mips@FreeBSD.ORG Mon Aug 26 11:06:47 2013 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 ESMTP id 8DC00158 for ; Mon, 26 Aug 2013 11:06:47 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7B07C2864 for ; Mon, 26 Aug 2013 11:06:47 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7QB6lwl065994 for ; Mon, 26 Aug 2013 11:06:47 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7QB6l9D065992 for freebsd-mips@FreeBSD.org; Mon, 26 Aug 2013 11:06:47 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 26 Aug 2013 11:06:47 GMT Message-Id: <201308261106.r7QB6l9D065992@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-mips@FreeBSD.org Subject: Current problem reports assigned to 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: Mon, 26 Aug 2013 11:06:47 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/177876 mips [mips] kernel stack overflow panic on mips64, EdgeRout o kern/165951 mips [ar913x] [ath] DDR flush isn't being done for the WMAC p kern/163670 mips [mips][arge] arge can't allocate ring buffer on multip 3 problems total. From owner-freebsd-mips@FreeBSD.ORG Wed Aug 28 10:28:56 2013 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 ESMTP id 40AF6313 for ; Wed, 28 Aug 2013 10:28:56 +0000 (UTC) (envelope-from matheus@eternamente.info) Received: from phoenix.eternamente.info (phoenix.eternamente.info [109.169.62.232]) by mx1.freebsd.org (Postfix) with ESMTP id 1ED782BA4 for ; Wed, 28 Aug 2013 10:28:55 +0000 (UTC) Received: by phoenix.eternamente.info (Postfix, from userid 80) id B8A0C1CC59; Wed, 28 Aug 2013 07:20:53 -0300 (BRT) Received: from 187.61.251.141 (SquirrelMail authenticated user matheus) by arroway.org with HTTP; Wed, 28 Aug 2013 07:20:53 -0300 Message-ID: Date: Wed, 28 Aug 2013 07:20:53 -0300 Subject: TP-Link 1043ND - its tme :) From: "Nenhum_de_Nos" To: freebsd-mips@freebsd.org User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal 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: Wed, 28 Aug 2013 10:28:56 -0000 hail, I'm trying to flash FreeBSD on it, but I can't build it and not get this error: *** Running makefs to build compressed image .. *** from /root/work/freebsd/head/src/../mfsroot/tl-wr1043nd .. Calculated size of `/root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img': 19300352 bytes, 1223 inodes Extent size set to 4096 /root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img: 18.4MB (37696 sectors) block size 4096, fragment size 512 using 2 cylinder groups of 12.96MB, 3319 blks, 896 inodes. super-block backups (for fsck -b #) at: 32, 26584, Populating `/root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img' Image `/root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img' complete *** Running mkuzip to create a compressed filesystem .. *** Target Done. *** Target : tplink 4119+2 records in 4119+1 records out 2109309 bytes transferred in 1.088462 secs (1937880 bytes/sec) [mktplinkfw] *** error: kernel image is too big root@dev:~ # what can I do now ? sometime ago, this was head to blame. What rev from svn is ok on this point ? I tested yesterday the serial cable, and was successful, now its time to make FreeBSD shine on it. thanks, matheus ps: I soldered my DIR-825 also, so when the 1043 is done, I can help debug the other (just need to have one working wifi, so the house keeps up on internet access :) pps: posting to mips@ only, if better suited for embedded, just say so :) -- We will call you Cygnus, The God of balance you shall be A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? http://en.wikipedia.org/wiki/Posting_style From owner-freebsd-mips@FreeBSD.ORG Wed Aug 28 12:07:20 2013 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 ESMTP id 8C098943 for ; Wed, 28 Aug 2013 12:07:20 +0000 (UTC) (envelope-from lists@rewt.org.uk) Received: from hosted.mx.as41113.net (abby.lhr1.as41113.net [91.208.177.20]) by mx1.freebsd.org (Postfix) with ESMTP id 18BEF2210 for ; Wed, 28 Aug 2013 12:07:19 +0000 (UTC) Received: from [192.168.1.218] (staff-ns50-3.as25178.net [212.9.98.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: lists@rewt.org.uk) by hosted.mx.as41113.net (Postfix) with ESMTPSA id 3cQ5Kq6MpzzNJ for ; Wed, 28 Aug 2013 13:07:11 +0100 (BST) Message-ID: <521DE7EB.2020800@rewt.org.uk> Date: Wed, 28 Aug 2013 13:07:07 +0100 From: Joe Holden User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: freebsd-mips@freebsd.org Subject: Re: Hang after usb on EdgeRouter Lite References: <520CC2DC.4060702@rewt.org.uk> <10d401ce9a06$c5016f90$4f044eb0$@rewt.org.uk> <111501ce9a14$b41f59e0$1c5e0da0$@rewt.org.uk> <520DE94E.5050200@rewt.org.uk> <19BE644B-D2A4-42D2-B983-50E90F3D3F8D@bsdimp.com> <149701ce9c3f$7659ea80$630dbf80$@rewt.org.uk> <14bb01ce9c51$c3152530$493f6f90$@rewt.org.uk> <14c801ce9c53$6f19bf20$4d4d3d60$@rewt.org.uk> <14de01ce9c5a$91bc75c0$b5356140$@rewt.org.uk> <1376869486.1201.6.camel@revolution.hippie.lan> In-Reply-To: <1376869486.1201.6.camel@revolution.hippie.lan> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Wed, 28 Aug 2013 12:07:20 -0000 ok so, just built new HEAD with DDB, WITNESS etc to get a backtrace but alas, now it's booting fine... who unbroke it? :) On 19/08/2013 00:44, Ian Lepore wrote: > Olivier made some changes to unbreak the arm stuff right after that > commit. Given that some of the mips code evolved from the arm code, > maybe there are clues in what he did for arm. > > -- Ian > > On Sun, 2013-08-18 at 15:18 -0700, Juli Mallett wrote: >> I looked at that change recently, and it changed how kstacks are allocated >> at least, and while it should have preserved the right alignment behaviour, >> I'm wondering now if there may be some subtler problem in the change there >> now. There were other changes that could be implicated as part of that >> commit, but that's the bit that immediately set off some alarm for me, >> because I know MIPS is an unusual case in that regard. (Requiring kstacks >> to fill up a whole double-TLB entry.) >> >> Thanks for tracking this down, and I'm hopeful that Jeff will have some >> insight. Thanks to Adrian for following up with him. >> >> Juli. >> >> >> On Sun, Aug 18, 2013 at 3:01 PM, Adrian Chadd wrote: >> >>> Ok. I just replied to Jeff's commit and CC'ed you. >>> >>> Let's see if we can work with Jeff to figure out why the hell it broke and >>> get it fixed up before 10.0-REL is cut. >>> >>> Would you please file a PR with all the relevant information that you've >>> found? >>> >>> Thanks! >>> >>> >>> >>> -adrian >>> >>> >>> On 18 August 2013 14:33, Joe Holden wrote: >>> >>>> Ok so r254025 is definitely the commit that broke it (both SMP *and* >>> USB) - >>>> looks like the commit is quite involved so won't be particularly easy to >>>> unbreak just mips (at least for me) :( >>>> >>>>> -----Original Message----- >>>>> From: owner-freebsd-mips@freebsd.org [mailto:owner-freebsd- >>>>> mips@freebsd.org] On Behalf Of Joe Holden >>>>> Sent: 18 August 2013 21:42 >>>>> To: 'Adrian Chadd' >>>>> Cc: freebsd-mips@freebsd.org >>>>> Subject: RE: Hang after usb on EdgeRouter Lite >>>>> >>>>> ... and it boot with the second core disabled (usb still broken >>> though) - >>>>> something has gone horribly wrong :P >>>>> >>>>>> -----Original Message----- >>>>>> From: owner-freebsd-mips@freebsd.org [mailto:owner-freebsd- >>>>>> mips@freebsd.org] On Behalf Of Joe Holden >>>>>> Sent: 18 August 2013 21:30 >>>>>> To: 'Adrian Chadd' >>>>>> Cc: freebsd-mips@freebsd.org >>>>>> Subject: RE: Hang after usb on EdgeRouter Lite >>>>>> >>>>>> Sigh. it's actually getting worse - r254025 hangs after ULE setup. >>>>>> >>>>>> >>>>>> >>>>>> This may take longer than I first thought >>>>>> >>>>>> >>>>>> >>>>>> From: adrian.chadd@gmail.com [mailto:adrian.chadd@gmail.com] On >>>>> Behalf >>>>>> Of Adrian Chadd >>>>>> Sent: 18 August 2013 20:27 >>>>>> To: Joe Holden >>>>>> Cc: Warner Losh; freebsd-mips@freebsd.org >>>>>> Subject: Re: Hang after usb on EdgeRouter Lite >>>>>> >>>>>> >>>>>> >>>>>> .. you can just disable those for now. You're debugging USB hangs, >>> not >>>>>> bootp/nfs compile problems. :0 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -adiran >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On 18 August 2013 11:19, Joe Holden >>>>> > wrote: >>>>>> >>>>>> None yet - getting compilation problems when building with BOOTP and >>>>>> NFS root (undefined references) >>>>>> >>>>>> >>>>>>> -----Original Message----- >>>>>>> From: Warner Losh [mailto:wlosh@bsdimp.com >>>>>> ] >>>>>>> On >>>>>> Behalf Of Warner Losh >>>>>>> Sent: 18 August 2013 07:41 >>>>>>> To: Adrian Chadd >>>>>>> Cc: Joe Holden; freebsd-mips@freebsd.org >>>>>>> >>>>>> >>>>>>> Subject: Re: Hang after usb on EdgeRouter Lite >>>>>>> >>>>>>> >>>>>> >>>>>>> On Aug 16, 2013, at 12:12 PM, Adrian Chadd wrote: >>>>>>>> On 16 August 2013 01:56, Joe Holden >>>>> > wrote: >>>>>>>>> Not getting much closer but so far 253367 works, 253845 and >>> later >>>>>>>>> don't, I can't see any mips-specific changes that might break it >>>>>>>>> but I >>>>>> may >>>>>>> be wrong! >>>>>>>> >>>>>>>> Plenty of non-MIPS stuff does break MIPS. :) >>>>>>> >>>>>>> Any new news? >>>>>>> >>>>>>> Warner >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> 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 >>>> " >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 >>> " >>>> >>>> >>>> >>> _______________________________________________ >>> 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" >>> >> _______________________________________________ >> 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" > > > _______________________________________________ > 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" > From owner-freebsd-mips@FreeBSD.ORG Wed Aug 28 13:17:56 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 A6831F5A for ; Wed, 28 Aug 2013 13:17:56 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qa0-x231.google.com (mail-qa0-x231.google.com [IPv6:2607:f8b0:400d:c00::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 679BA26B3 for ; Wed, 28 Aug 2013 13:17:56 +0000 (UTC) Received: by mail-qa0-f49.google.com with SMTP id w8so383209qac.15 for ; Wed, 28 Aug 2013 06:17:55 -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=Nf/YXSBuR9+hTYhA2HGBCyrTVqSgfRO10FE1gmoCiFU=; b=yksbjhkUOnsnB35PZSMnah7OgVMWN+eyYP0kUje8zD6anwakvmdmQqbz6aPB9jGLqD YOpFojXSyt+aiKNYym7GTaGhYmGhiyDVzy1nNiuquLSN7yelrCBh43eMPEZ9G3bQ7EBA 7uz0VHL8bqUeRSo/5hcOjm8YIMM0QZiihAiOYk0+S9rAODfHGBKb0L/Bmm7caZvkvGeI 2MtNE3zoAGFxrVjFzx4bwHNN/hMqJVdrrf9AwWf0dULjx4ZVlnCaiQLILhpwKT+om/S0 Xs6sN89L+RYq3ILMc1Sqk3gw/3iOX7G85JKl2lWU4A3paIcB04OlicSWYVGNJ0mYZdpN pQtQ== MIME-Version: 1.0 X-Received: by 10.49.107.105 with SMTP id hb9mr16230366qeb.74.1377695875537; Wed, 28 Aug 2013 06:17:55 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.128.70 with HTTP; Wed, 28 Aug 2013 06:17:55 -0700 (PDT) In-Reply-To: References: Date: Wed, 28 Aug 2013 06:17:55 -0700 X-Google-Sender-Auth: H-v0DMx5lCgmYirBgxgYyZ6E7_M Message-ID: Subject: Re: TP-Link 1043ND - its tme :) From: Adrian Chadd To: Nenhum_de_Nos Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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: Wed, 28 Aug 2013 13:17:56 -0000 I'd love to see if we can finish slimming down the kernel some more. Come on peeps, you can do it! (Yes, I need to get the kernel wlan + ath driver to build correctly for these embedded kernels so you can shovel them into the rootfs, but .. aiee.) -adrian On 28 August 2013 03:20, Nenhum_de_Nos wrote: > hail, > > I'm trying to flash FreeBSD on it, but I can't build it and not get this > error: > > *** Running makefs to build compressed image .. > *** from /root/work/freebsd/head/src/../mfsroot/tl-wr1043nd .. > Calculated size of > `/root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img': 19300352 bytes, > 1223 > inodes > Extent size set to 4096 > /root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img: 18.4MB (37696 > sectors) block size 4096, > fragment size 512 > using 2 cylinder groups of 12.96MB, 3319 blks, 896 inodes. > super-block backups (for fsck -b #) at: > 32, 26584, > Populating `/root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img' > Image `/root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img' complete > *** Running mkuzip to create a compressed filesystem .. > *** Target Done. > *** Target : tplink > 4119+2 records in > 4119+1 records out > 2109309 bytes transferred in 1.088462 secs (1937880 bytes/sec) > [mktplinkfw] *** error: kernel image is too big > root@dev:~ # > > what can I do now ? > > sometime ago, this was head to blame. What rev from svn is ok on this > point ? > > I tested yesterday the serial cable, and was successful, now its time to > make FreeBSD shine on it. > > thanks, > > matheus > > ps: I soldered my DIR-825 also, so when the 1043 is done, I can help debug > the other (just need to > have one working wifi, so the house keeps up on internet access :) > > pps: posting to mips@ only, if better suited for embedded, just say so :) > > -- > We will call you Cygnus, > The God of balance you shall be > > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > > 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" > From owner-freebsd-mips@FreeBSD.ORG Wed Aug 28 13:19:12 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 60888F8F for ; Wed, 28 Aug 2013 13:19:12 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-wi0-x234.google.com (mail-wi0-x234.google.com [IPv6:2a00:1450:400c:c05::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D7BB826BE for ; Wed, 28 Aug 2013 13:19:11 +0000 (UTC) Received: by mail-wi0-f180.google.com with SMTP id l12so5228374wiv.1 for ; Wed, 28 Aug 2013 06:19:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=wtGxAwBbV2vfLdPhRFgOecGs8XbvJDTUUV2VoaV17/Q=; b=VQAdxTAbyokKLKyuRDE0Uur8LSrFbWLZXrMtnIwm7L+kO0LpJVeUtH21ZMpy0zod36 ki1jy0zwMi4wxrTPYopOUGKb/UGjEh1GKXi9a94P7pbWwgL5cQMt0agksVu/rioZdARY SgmeAUdBhZT47XfJQferekkq38Z0A0urRfo/VkOkTNkM6A/HnvTZqU5SDIe1XzY4g/XX 5OFVuQYAnuUzAocbN9+6gi+a9VIJD7sO54LMmOIfTn+lgNgr85gdAh+fYMU4aiQGXDgN baJV0ccNACwy8w+eJjHawIK6oHkIWiwm+Cf4pzXYBcBriXewQw2xmiAD0FaeS7Bwt4bD 5xZA== MIME-Version: 1.0 X-Received: by 10.194.75.165 with SMTP id d5mr19662334wjw.18.1377695950142; Wed, 28 Aug 2013 06:19:10 -0700 (PDT) Received: by 10.216.75.140 with HTTP; Wed, 28 Aug 2013 06:19:10 -0700 (PDT) In-Reply-To: References: Date: Wed, 28 Aug 2013 10:19:10 -0300 Message-ID: Subject: Re: TP-Link 1043ND - its tme :) From: Luiz Otavio O Souza To: Nenhum_de_Nos Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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: Wed, 28 Aug 2013 13:19:12 -0000 On 28 August 2013 07:20, Nenhum_de_Nos wrote: > hail, > > I'm trying to flash FreeBSD on it, but I can't build it and not get this > error: > > *** Running makefs to build compressed image .. > *** from /root/work/freebsd/head/src/../mfsroot/tl-wr1043nd .. > Calculated size of > `/root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img': 19300352 bytes, > 1223 > inodes > Extent size set to 4096 > /root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img: 18.4MB (37696 > sectors) block size 4096, > fragment size 512 > using 2 cylinder groups of 12.96MB, 3319 blks, 896 inodes. > super-block backups (for fsck -b #) at: > 32, 26584, > Populating `/root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img' > Image `/root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img' complete > *** Running mkuzip to create a compressed filesystem .. > *** Target Done. > *** Target : tplink > 4119+2 records in > 4119+1 records out > 2109309 bytes transferred in 1.088462 secs (1937880 bytes/sec) > [mktplinkfw] *** error: kernel image is too big > root@dev:~ # > > what can I do now ? > > sometime ago, this was head to blame. What rev from svn is ok on this > point ? > > I tested yesterday the serial cable, and was successful, now its time to > make FreeBSD shine on it. > > thanks, > > matheus > > ps: I soldered my DIR-825 also, so when the 1043 is done, I can help debug > the other (just need to > have one working wifi, so the house keeps up on internet access :) > > pps: posting to mips@ only, if better suited for embedded, just say so :) > > Hey Matheus, Can you show me the size of your kernel and the rootfs images ? The mktplinkfw tool defines some default limits for these sizes: .id = "TL-WR1043NDv1", .hw_id = HWID_TL_WR1043ND_V1, .hw_rev = 1, .fw_max_len = 0x7c0000, .kernel_la = 0x80060000, .kernel_ep = 0x80060000, .rootfs_ofs = 0x140000, So the maximum allowed kernel size (by default) is 0x140000 (1310720 bytes). We can change this offset to accommodate a bigger kernel, but it is going to change a few other settings (like the flash mappings) and i also want to check if it is going to fit in the flash. Regards, Luiz From owner-freebsd-mips@FreeBSD.ORG Wed Aug 28 13:24:25 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 1A4E89E; Wed, 28 Aug 2013 13:24:25 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-wi0-x22b.google.com (mail-wi0-x22b.google.com [IPv6:2a00:1450:400c:c05::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7DC1D2712; Wed, 28 Aug 2013 13:24:24 +0000 (UTC) Received: by mail-wi0-f171.google.com with SMTP id ez12so1977690wid.10 for ; Wed, 28 Aug 2013 06:24:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=BfrhlAYrLsu2bA51Sikiw2SuIw6SakQd/HDZVmLu54k=; b=CotsYxsfZdWOIP1B/pAuk/P2mkOU2Rb2P3Q8nXNEjgisdLX0zqE+ZIUdueJfoHYEBG g09dyTuT8/77u2pwgU0KOCQ+WjO6fvUBJFnPFa53Kw1fr0jP6NngnE9hekbT7s4ZlFu1 86dl7a1pTEyVRUicv+kCs72mM4NG6S7tOYzXyiS4m/heCkMtsOQASoCW+qXmXN9zVC// L51YP3XLIoIMCU9URd7OG7OmHp52RbVjdTQrz6lX+mBQKzbWfCUJJoqlUjrG51+98czK wVlzjyJfHTuX74aaBZZcKqCJT2/9J3RFbjY58GiCpdxZaDHw6+sdEYbmEZAsel4moHIX 4bmQ== MIME-Version: 1.0 X-Received: by 10.194.104.199 with SMTP id gg7mr2361465wjb.52.1377696262664; Wed, 28 Aug 2013 06:24:22 -0700 (PDT) Received: by 10.216.75.140 with HTTP; Wed, 28 Aug 2013 06:24:22 -0700 (PDT) In-Reply-To: References: Date: Wed, 28 Aug 2013 10:24:22 -0300 Message-ID: Subject: Re: TP-Link 1043ND - its tme :) From: Luiz Otavio O Souza To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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: Wed, 28 Aug 2013 13:24:25 -0000 On 28 August 2013 10:17, Adrian Chadd wrote: > I'd love to see if we can finish slimming down the kernel some more. > Yeah, that would be a much better solution. Luiz From owner-freebsd-mips@FreeBSD.ORG Wed Aug 28 13:37:50 2013 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 ESMTP id 90FFE2F2; Wed, 28 Aug 2013 13:37:50 +0000 (UTC) (envelope-from matheus@eternamente.info) Received: from phoenix.eternamente.info (phoenix.eternamente.info [109.169.62.232]) by mx1.freebsd.org (Postfix) with ESMTP id 6C71727B1; Wed, 28 Aug 2013 13:37:49 +0000 (UTC) Received: by phoenix.eternamente.info (Postfix, from userid 80) id 074931CC59; Wed, 28 Aug 2013 10:37:41 -0300 (BRT) Received: from 200.164.157.132 (SquirrelMail authenticated user matheus) by arroway.org with HTTP; Wed, 28 Aug 2013 10:37:41 -0300 Message-ID: In-Reply-To: References: Date: Wed, 28 Aug 2013 10:37:41 -0300 Subject: Re: TP-Link 1043ND - its tme :) From: "Nenhum_de_Nos" To: "Adrian Chadd" User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal 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: Wed, 28 Aug 2013 13:37:50 -0000 On Wed, August 28, 2013 10:17, Adrian Chadd wrote: > I'd love to see if we can finish slimming down the kernel some more. > > Come on peeps, you can do it! > > (Yes, I need to get the kernel wlan + ath driver to build correctly for > these embedded kernels so you can shovel them into the rootfs, but .. aiee.) hehehehe My coding skills are terrible, but now I can help debugging at least :) I will try to see anything and post here. :) matheus > -adrian > > > On 28 August 2013 03:20, Nenhum_de_Nos wrote: > >> hail, >> >> I'm trying to flash FreeBSD on it, but I can't build it and not get this >> error: >> >> *** Running makefs to build compressed image .. >> *** from /root/work/freebsd/head/src/../mfsroot/tl-wr1043nd .. >> Calculated size of >> `/root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img': 19300352 bytes, >> 1223 >> inodes >> Extent size set to 4096 >> /root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img: 18.4MB (37696 >> sectors) block size 4096, >> fragment size 512 >> using 2 cylinder groups of 12.96MB, 3319 blks, 896 inodes. >> super-block backups (for fsck -b #) at: >> 32, 26584, >> Populating `/root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img' >> Image `/root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img' complete >> *** Running mkuzip to create a compressed filesystem .. >> *** Target Done. >> *** Target : tplink >> 4119+2 records in >> 4119+1 records out >> 2109309 bytes transferred in 1.088462 secs (1937880 bytes/sec) >> [mktplinkfw] *** error: kernel image is too big >> root@dev:~ # >> >> what can I do now ? >> >> sometime ago, this was head to blame. What rev from svn is ok on this >> point ? >> >> I tested yesterday the serial cable, and was successful, now its time to >> make FreeBSD shine on it. >> >> thanks, >> >> matheus >> >> ps: I soldered my DIR-825 also, so when the 1043 is done, I can help debug >> the other (just need to >> have one working wifi, so the house keeps up on internet access :) >> >> pps: posting to mips@ only, if better suited for embedded, just say so :) >> >> -- >> We will call you Cygnus, >> The God of balance you shall be >> >> A: Because it messes up the order in which people normally read text. >> Q: Why is top-posting such a bad thing? >> >> 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" >> > -- We will call you Cygnus, The God of balance you shall be A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? http://en.wikipedia.org/wiki/Posting_style From owner-freebsd-mips@FreeBSD.ORG Wed Aug 28 13:47:19 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 DCFCD5EA for ; Wed, 28 Aug 2013 13:47:18 +0000 (UTC) (envelope-from matheus@eternamente.info) Received: from phoenix.eternamente.info (phoenix.eternamente.info [109.169.62.232]) by mx1.freebsd.org (Postfix) with ESMTP id 986712868 for ; Wed, 28 Aug 2013 13:47:18 +0000 (UTC) Received: by phoenix.eternamente.info (Postfix, from userid 80) id 5CE9B1CC59; Wed, 28 Aug 2013 10:47:09 -0300 (BRT) Received: from 200.164.157.132 (SquirrelMail authenticated user matheus) by arroway.org with HTTP; Wed, 28 Aug 2013 10:47:09 -0300 Message-ID: <96102ae72beb72b2ccdbeacb6f0ca0c4.squirrel@arroway.org> In-Reply-To: References: Date: Wed, 28 Aug 2013 10:47:09 -0300 Subject: Re: TP-Link 1043ND - its tme :) From: "Nenhum_de_Nos" Cc: freebsd-mips@freebsd.org User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal 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: Wed, 28 Aug 2013 13:47:19 -0000 On Wed, August 28, 2013 10:19, Luiz Otavio O Souza wrote: > On 28 August 2013 07:20, Nenhum_de_Nos wrote: > >> hail, >> >> I'm trying to flash FreeBSD on it, but I can't build it and not get this >> error: >> >> *** Running makefs to build compressed image .. >> *** from /root/work/freebsd/head/src/../mfsroot/tl-wr1043nd .. >> Calculated size of >> `/root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img': 19300352 bytes, >> 1223 >> inodes >> Extent size set to 4096 >> /root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img: 18.4MB (37696 >> sectors) block size 4096, >> fragment size 512 >> using 2 cylinder groups of 12.96MB, 3319 blks, 896 inodes. >> super-block backups (for fsck -b #) at: >> 32, 26584, >> Populating `/root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img' >> Image `/root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img' complete >> *** Running mkuzip to create a compressed filesystem .. >> *** Target Done. >> *** Target : tplink >> 4119+2 records in >> 4119+1 records out >> 2109309 bytes transferred in 1.088462 secs (1937880 bytes/sec) >> [mktplinkfw] *** error: kernel image is too big >> root@dev:~ # >> >> what can I do now ? >> >> sometime ago, this was head to blame. What rev from svn is ok on this >> point ? >> >> I tested yesterday the serial cable, and was successful, now its time to >> make FreeBSD shine on it. >> >> thanks, >> >> matheus >> >> ps: I soldered my DIR-825 also, so when the 1043 is done, I can help debug >> the other (just need to >> have one working wifi, so the house keeps up on internet access :) >> >> pps: posting to mips@ only, if better suited for embedded, just say so :) >> >> > Hey Matheus, > > Can you show me the size of your kernel and the rootfs images ? > > The mktplinkfw tool defines some default limits for these sizes: > > .id = "TL-WR1043NDv1", > .hw_id = HWID_TL_WR1043ND_V1, > .hw_rev = 1, > .fw_max_len = 0x7c0000, > .kernel_la = 0x80060000, > .kernel_ep = 0x80060000, > .rootfs_ofs = 0x140000, > > So the maximum allowed kernel size (by default) is 0x140000 (1310720 > bytes). We can change this offset to accommodate a bigger kernel, but it is > going to change a few other settings (like the flash mappings) and i also > want to check if it is going to fit in the flash. > > Regards, > Luiz Luiz, -rw-r--r-- 1 root wheel 19300352 Aug 28 00:49 mfsroot-tl-wr1043nd.img dir ~/work/freebsd/head. Although the hint to build as user, this vm is just for this and I am using root all the way (is not a problem, right?!). -rwxr-xr-x 1 root wheel 5909301 /root/work/freebsd/head/obj/mipseb/mips.mips/root/work/freebsd/head/src/sys/TP-WN1043ND/kernel are they the right ones to look ? thanks for the answer. With time, I'll get familiar with the whole thing and walk with my own feet more easily :) matheus -- We will call you Cygnus, The God of balance you shall be A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? http://en.wikipedia.org/wiki/Posting_style From owner-freebsd-mips@FreeBSD.ORG Wed Aug 28 14:03:54 2013 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 ESMTP id 7A5FCCD4 for ; Wed, 28 Aug 2013 14:03:54 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qe0-x232.google.com (mail-qe0-x232.google.com [IPv6:2607:f8b0:400d:c02::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 382362999 for ; Wed, 28 Aug 2013 14:03:54 +0000 (UTC) Received: by mail-qe0-f50.google.com with SMTP id s14so3484278qeb.9 for ; Wed, 28 Aug 2013 07:03:53 -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=ZoQwRmhr/JPAnJ1VOeRWa3EpXR31rbb9eUDigMO3Ihg=; b=TCcDsKPFHhKBNIa0WKsukXKhljMsjvx+O0uncare94dRspUHwhMcJubeoEodYZnFi3 5qkRTiy5mynqMpsa16n/pxuOQ08f+G9NUbmVxDconnenAuLG1axnGDK1qB+eAcEaqWow q+VDd4rX4PbbUlZzcsCsEGDaJiR+rQ1uit6aQ2iEglL598Fo+el+I1FD3mTGqRVU4hFa 8Jut8hsr5isJpgiP1GOa1oAJ8Ar/sifpfumZm7cA0dlfkuBVE5JCQCkAsEw/DzMaIt9h qkaox29Qicl+HYpGo0oCHWO2MVnKSmPizKsY/IyCJiiRLTJyFPQLQ//gSyvrD/119wdl 0srA== MIME-Version: 1.0 X-Received: by 10.229.103.135 with SMTP id k7mr8077236qco.22.1377698633330; Wed, 28 Aug 2013 07:03:53 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.128.70 with HTTP; Wed, 28 Aug 2013 07:03:53 -0700 (PDT) In-Reply-To: References: Date: Wed, 28 Aug 2013 07:03:53 -0700 X-Google-Sender-Auth: xrrnkIt7OE_xlccdfFQkPK3Vd64 Message-ID: Subject: Re: TP-Link 1043ND - its tme :) From: Adrian Chadd To: Luiz Otavio O Souza Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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: Wed, 28 Aug 2013 14:03:54 -0000 We're going to keep chasing this tail. I suggest we focus on actually looking to slim down the kernel size and root size. -adrian On 28 August 2013 06:19, Luiz Otavio O Souza wrote: > On 28 August 2013 07:20, Nenhum_de_Nos wrote: > > > hail, > > > > I'm trying to flash FreeBSD on it, but I can't build it and not get this > > error: > > > > *** Running makefs to build compressed image .. > > *** from /root/work/freebsd/head/src/../mfsroot/tl-wr1043nd .. > > Calculated size of > > `/root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img': 19300352 bytes, > > 1223 > > inodes > > Extent size set to 4096 > > /root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img: 18.4MB (37696 > > sectors) block size 4096, > > fragment size 512 > > using 2 cylinder groups of 12.96MB, 3319 blks, 896 inodes. > > super-block backups (for fsck -b #) at: > > 32, 26584, > > Populating `/root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img' > > Image `/root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img' complete > > *** Running mkuzip to create a compressed filesystem .. > > *** Target Done. > > *** Target : tplink > > 4119+2 records in > > 4119+1 records out > > 2109309 bytes transferred in 1.088462 secs (1937880 bytes/sec) > > [mktplinkfw] *** error: kernel image is too big > > root@dev:~ # > > > > what can I do now ? > > > > sometime ago, this was head to blame. What rev from svn is ok on this > > point ? > > > > I tested yesterday the serial cable, and was successful, now its time to > > make FreeBSD shine on it. > > > > thanks, > > > > matheus > > > > ps: I soldered my DIR-825 also, so when the 1043 is done, I can help > debug > > the other (just need to > > have one working wifi, so the house keeps up on internet access :) > > > > pps: posting to mips@ only, if better suited for embedded, just say so > :) > > > > > Hey Matheus, > > Can you show me the size of your kernel and the rootfs images ? > > The mktplinkfw tool defines some default limits for these sizes: > > .id = "TL-WR1043NDv1", > .hw_id = HWID_TL_WR1043ND_V1, > .hw_rev = 1, > .fw_max_len = 0x7c0000, > .kernel_la = 0x80060000, > .kernel_ep = 0x80060000, > .rootfs_ofs = 0x140000, > > So the maximum allowed kernel size (by default) is 0x140000 (1310720 > bytes). We can change this offset to accommodate a bigger kernel, but it is > going to change a few other settings (like the flash mappings) and i also > want to check if it is going to fit in the flash. > > Regards, > Luiz > _______________________________________________ > 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" > From owner-freebsd-mips@FreeBSD.ORG Thu Aug 29 17:41:41 2013 Return-Path: Delivered-To: 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 3FD3FA4D for ; Thu, 29 Aug 2013 17:41:41 +0000 (UTC) (envelope-from alc@rice.edu) Received: from pp2.rice.edu (proofpoint2.mail.rice.edu [128.42.201.101]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0B9432B6D for ; Thu, 29 Aug 2013 17:41:40 +0000 (UTC) Received: from pps.filterd (pp2.rice.edu [127.0.0.1]) by pp2.rice.edu (8.14.5/8.14.5) with SMTP id r7TBPMp8005900 for ; Thu, 29 Aug 2013 12:41:33 -0500 Received: from mh1.mail.rice.edu (mh1.mail.rice.edu [128.42.201.20]) by pp2.rice.edu with ESMTP id 1eh1mfs6dx-1 for ; Thu, 29 Aug 2013 12:41:33 -0500 X-Virus-Scanned: by amavis-2.7.0 at mh1.mail.rice.edu, auth channel Received: from adsl-216-63-78-18.dsl.hstntx.swbell.net (adsl-216-63-78-18.dsl.hstntx.swbell.net [216.63.78.18]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) (Authenticated sender: alc) by mh1.mail.rice.edu (Postfix) with ESMTPSA id 29ACD460175; Thu, 29 Aug 2013 12:41:33 -0500 (CDT) Message-ID: <521F87CC.9050205@rice.edu> Date: Thu, 29 Aug 2013 12:41:32 -0500 From: Alan Cox User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:17.0) Gecko/20130127 Thunderbird/17.0.2 MIME-Version: 1.0 To: mips@freebsd.org Subject: pmap patch X-Enigmail-Version: 1.4.6 Content-Type: multipart/mixed; boundary="------------030709000804010206080405" Cc: Alan Cox 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: Thu, 29 Aug 2013 17:41:41 -0000 This is a multi-part message in MIME format. --------------030709000804010206080405 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Can folks here please test the attached patch against HEAD? This patch implements the new pmap_advise() function for MIPS. Alan --------------030709000804010206080405 Content-Type: text/plain; charset=ISO-8859-15; name="mips_pmap_advise.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="mips_pmap_advise.patch" Index: mips/mips/pmap.c =================================================================== --- mips/mips/pmap.c (revision 255028) +++ mips/mips/pmap.c (working copy) @@ -2919,6 +2919,85 @@ pmap_is_prefaultable(pmap_t pmap, vm_offset_t addr void pmap_advise(pmap_t pmap, vm_offset_t sva, vm_offset_t eva, int advice) { + pd_entry_t *pde, *pdpe; + pt_entry_t *pte; + vm_offset_t va, va_next; + vm_paddr_t pa; + vm_page_t m; + + if (advice != MADV_DONTNEED && advice != MADV_FREE) + return; + rw_wlock(&pvh_global_lock); + PMAP_LOCK(pmap); + for (; sva < eva; sva = va_next) { + pdpe = pmap_segmap(pmap, sva); +#ifdef __mips_n64 + if (*pdpe == 0) { + va_next = (sva + NBSEG) & ~SEGMASK; + if (va_next < sva) + va_next = eva; + continue; + } +#endif + va_next = (sva + NBPDR) & ~PDRMASK; + if (va_next < sva) + va_next = eva; + + pde = pmap_pdpe_to_pde(pdpe, sva); + if (*pde == NULL) + continue; + + /* + * Limit our scan to either the end of the va represented + * by the current page table page, or to the end of the + * range being write protected. + */ + if (va_next > eva) + va_next = eva; + + va = va_next; + for (pte = pmap_pde_to_pte(pde, sva); sva != va_next; pte++, + sva += PAGE_SIZE) { + if (!pte_test(pte, PTE_MANAGED | PTE_V)) { + if (va != va_next) { + pmap_invalidate_range(pmap, va, sva); + va = va_next; + } + continue; + } + pa = TLBLO_PTE_TO_PA(*pte); + m = PHYS_TO_VM_PAGE(pa); + m->md.pv_flags &= ~PV_TABLE_REF; + if (pte_test(pte, PTE_D)) { + if (advice == MADV_DONTNEED) { + /* + * Future calls to pmap_is_modified() + * can be avoided by making the page + * dirty now. + */ + vm_page_dirty(m); + } else { + pte_clear(pte, PTE_D); + if (va == va_next) + va = sva; + } + } else { + /* + * Unless PTE_D is set, any TLB entries + * mapping "sva" don't allow write access, so + * they needn't be invalidated. + */ + if (va != va_next) { + pmap_invalidate_range(pmap, va, sva); + va = va_next; + } + } + } + if (va != va_next) + pmap_invalidate_range(pmap, va, sva); + } + rw_wunlock(&pvh_global_lock); + PMAP_UNLOCK(pmap); } /* --------------030709000804010206080405-- From owner-freebsd-mips@FreeBSD.ORG Thu Aug 29 20:51:03 2013 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 ESMTP id 87622B75 for ; Thu, 29 Aug 2013 20:51:03 +0000 (UTC) (envelope-from matheus@eternamente.info) Received: from phoenix.eternamente.info (phoenix.eternamente.info [109.169.62.232]) by mx1.freebsd.org (Postfix) with ESMTP id 616982843 for ; Thu, 29 Aug 2013 20:51:03 +0000 (UTC) Received: by phoenix.eternamente.info (Postfix, from userid 80) id 1DFF01CC59; Thu, 29 Aug 2013 17:50:45 -0300 (BRT) Received: from 187.61.251.141 (SquirrelMail authenticated user matheus) by arroway.org with HTTP; Thu, 29 Aug 2013 17:50:45 -0300 Message-ID: In-Reply-To: References: Date: Thu, 29 Aug 2013 17:50:45 -0300 Subject: Re: TP-Link 1043ND - its tme :) From: "Nenhum_de_Nos" Cc: "freebsd-mips@freebsd.org" User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal 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: Thu, 29 Aug 2013 20:51:03 -0000 On Wed, August 28, 2013 10:24, Luiz Otavio O Souza wrote: > On 28 August 2013 10:17, Adrian Chadd wrote: > >> I'd love to see if we can finish slimming down the kernel some more. >> > > Yeah, that would be a much better solution. > > Luiz there you go. I tried to make it smaller, but the only conf I could say I wont need is ipv6. now, it is smaller, but not enought :( Image `/root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img' complete *** Running mkuzip to create a compressed filesystem .. *** Target Done. *** Target : tplink 3888+2 records in 3888+1 records out 1991055 bytes transferred in 1.070230 secs (1860399 bytes/sec) [mktplinkfw] *** error: rootfs image is too big that's 2109309 to 1991055, even though I don't know if there is the kernel for sure. I searched both 1043 kernel config and the ar71xx one. Just this from ar71xx I took away. And that option I don't know if is necessary :) I know its dangerous, but witness and the debug info may be commented out ? the dir-825 I got to compile ok. So I'm really thinking of using it first, at least I see some FreeBSD on mips in action :) any hints ? thanks, matheus -- We will call you Cygnus, The God of balance you shall be A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? http://en.wikipedia.org/wiki/Posting_style From owner-freebsd-mips@FreeBSD.ORG Thu Aug 29 21:31:36 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 C91219D3 for ; Thu, 29 Aug 2013 21:31:36 +0000 (UTC) (envelope-from matheus@eternamente.info) Received: from phoenix.eternamente.info (phoenix.eternamente.info [109.169.62.232]) by mx1.freebsd.org (Postfix) with ESMTP id A2BA52AFF for ; Thu, 29 Aug 2013 21:31:36 +0000 (UTC) Received: by phoenix.eternamente.info (Postfix, from userid 80) id 25B0F1CC59; Thu, 29 Aug 2013 18:31:35 -0300 (BRT) Received: from 187.61.251.141 (SquirrelMail authenticated user matheus) by arroway.org with HTTP; Thu, 29 Aug 2013 18:31:35 -0300 Message-ID: <04dc16e8adc42b571915e7fc51ec9a57.squirrel@arroway.org> In-Reply-To: References: Date: Thu, 29 Aug 2013 18:31:35 -0300 Subject: Re: TP-Link 1043ND - its tme :) From: "Nenhum_de_Nos" Cc: "freebsd-mips@freebsd.org" User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal 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: Thu, 29 Aug 2013 21:31:36 -0000 On Thu, August 29, 2013 17:50, Nenhum_de_Nos wrote: > > On Wed, August 28, 2013 10:24, Luiz Otavio O Souza wrote: >> On 28 August 2013 10:17, Adrian Chadd wrote: >> >>> I'd love to see if we can finish slimming down the kernel some more. >>> >> >> Yeah, that would be a much better solution. >> >> Luiz > > there you go. > > I tried to make it smaller, but the only conf I could say I wont need is ipv6. > > now, it is smaller, but not enought :( > > Image `/root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img' complete > *** Running mkuzip to create a compressed filesystem .. > *** Target Done. > *** Target : tplink > 3888+2 records in > 3888+1 records out > 1991055 bytes transferred in 1.070230 secs (1860399 bytes/sec) > [mktplinkfw] *** error: rootfs image is too big > > that's 2109309 to 1991055, even though I don't know if there is the kernel for sure. > > I searched both 1043 kernel config and the ar71xx one. Just this from ar71xx I took away. And that > option I don't know if is necessary :) > > I know its dangerous, but witness and the debug info may be commented out ? > > the dir-825 I got to compile ok. So I'm really thinking of using it first, at least I see some > FreeBSD on mips in action :) > > any hints ? > > thanks, > > matheus errata: s/ar71xx/ar91xx/g ./src/sys/mips/conf/AR91XX_BASE this was the file matheus -- We will call you Cygnus, The God of balance you shall be A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? http://en.wikipedia.org/wiki/Posting_style From owner-freebsd-mips@FreeBSD.ORG Thu Aug 29 22:06:52 2013 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 ESMTP id 0F6E49D2 for ; Thu, 29 Aug 2013 22:06:52 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ob0-f171.google.com (mail-ob0-f171.google.com [209.85.214.171]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C9AA22DEF for ; Thu, 29 Aug 2013 22:06:51 +0000 (UTC) Received: by mail-ob0-f171.google.com with SMTP id tb18so1145705obb.16 for ; Thu, 29 Aug 2013 15:06:50 -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=Fu9ypVddQnjs9HSG5Of9tV9X/rnRX8kGtzTCpk+SKKA=; b=glFJPWOaFuqC1gZeujpoqsemvmI+IQxxiIjO7LFOk6hGre4yrY4El7zjBelvV0k2Yt 7lnEEPamqTxAO+dPildL0i0NlrsfOTCWmQKdZtPvmDNLAHznQ6P3JwHfkDykZgaMoDnu o+twiySM9zcPfz7aYIdIfoZ1UjYTFS6WdiOnlCGMZAnW25J42E1vbFLkBTNur8iMm8/u iH2N50HgOM93O+OvxI4LTrT1AAyL6sDrgVKr8ZMmGJrx/FHmAsBzvnNzRaRm8fcU7keD b9J9z0dPOrbBiT3e5qW5HfXYZo0G4N/B4xei11j8wFi5Puj1kWYf79TmHr1B0Q7/GW8H gUaw== X-Gm-Message-State: ALoCoQlJNqP/qdyWF6QUkWd6vBktOwk/6vbIxyJHOdU6Wg6OXa0inrxhMGLR11aEC9XX1dLdnsFa X-Received: by 10.60.40.67 with SMTP id v3mr4365544oek.16.1377814010837; Thu, 29 Aug 2013 15:06:50 -0700 (PDT) Received: from monkey-bot.int.fusionio.com ([209.117.142.2]) by mx.google.com with ESMTPSA id nw5sm5634800obc.9.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 29 Aug 2013 15:06:50 -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 X-Priority: 3 (Normal) In-Reply-To: <04dc16e8adc42b571915e7fc51ec9a57.squirrel@arroway.org> Date: Thu, 29 Aug 2013 16:06:47 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <8FFD8F5B-FCE4-4062-B6B7-7A46943E91AE@bsdimp.com> References: <04dc16e8adc42b571915e7fc51ec9a57.squirrel@arroway.org> To: "Nenhum_de_Nos" 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: Thu, 29 Aug 2013 22:06:52 -0000 > [mktplinkfw] *** error: rootfs image is too big OK. This isn't for root image, but to make the uncompressed kernel ~685k = smaller. So maybe 200k smaller after compression. http://people.freebsd.org/~imp/smalller-mips 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. text data bss dec hex filename 3598994 270588 153056 4022638 3d616e kernel.debug with patch 4285106 270632 153056 4708794 47d9ba kernel.debug built = without Comments? Warner P.S. Don't have this hardware, so no test boots. From owner-freebsd-mips@FreeBSD.ORG Thu Aug 29 22:51:51 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 EC21623B for ; Thu, 29 Aug 2013 22:51:51 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id AFDB0208C for ; Thu, 29 Aug 2013 22:51:51 +0000 (UTC) Received: by mail-ob0-f182.google.com with SMTP id wo10so1173107obc.41 for ; Thu, 29 Aug 2013 15:51:50 -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=RkCBA6TdHsbJOAmdiaTP5Clf3p0yK19wutCfNK9WEjc=; b=JvlLbz0KonNd74Cdgql3AR9tAN2tAbIUq+zspFNd7+e1kJKwYC/ihlfbDsoCFmh+ld gV+rQMsicP08fUAYYTBHB8pwgeQDt5dKDn+BHoQeJvwpqJcSpX4l70mA1GTPwelG/Fsn rdClS5UqcWMsyTxPW27S/18CwDIP7AJ62TgSSzGsZhRG3BZESQ4FgpFpvK/gJ9RLwFx/ xqcJ6qfuM/mIyQzkcYewZVUpKxQ51ZWakbK35zuJUwAVWA3O86jjnjTm9fkV1gD5fbmv JbU0kB2oash1EwG0v/sfAlWe8XOyfJt99hUN+0dPlyAyTC9pi+qIPHgKVr6GU3hvM9AW La5A== X-Gm-Message-State: ALoCoQnS2nY3a7GgDuDtLEPKzAH7Q5Rwrt0f3Pr0MdbUTWHKionVliVFfJOX3977ZSEe1hIgVmgq X-Received: by 10.182.104.36 with SMTP id gb4mr4494733obb.43.1377816710508; Thu, 29 Aug 2013 15:51:50 -0700 (PDT) Received: from monkey-bot.int.fusionio.com ([209.117.142.2]) by mx.google.com with ESMTPSA id s9sm30691839obu.4.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 29 Aug 2013 15:51:49 -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 X-Priority: 3 (Normal) In-Reply-To: <8FFD8F5B-FCE4-4062-B6B7-7A46943E91AE@bsdimp.com> Date: Thu, 29 Aug 2013 16:51:46 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <04dc16e8adc42b571915e7fc51ec9a57.squirrel@arroway.org> <8FFD8F5B-FCE4-4062-B6B7-7A46943E91AE@bsdimp.com> To: Warner Losh 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: Thu, 29 Aug 2013 22:51:52 -0000 On Aug 29, 2013, at 4:06 PM, Warner Losh wrote: >=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 I've moved this to http://people.freebsd.org/~imp/smaller-mips.diff for = nicer downloading, and the original link had too many l's in it... > 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? 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... Warner > Warner >=20 > P.S. Don't have this hardware, so no test boots. >=20 From owner-freebsd-mips@FreeBSD.ORG Thu Aug 29 23:20:22 2013 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 ESMTP id CE02FC69 for ; Thu, 29 Aug 2013 23:20:22 +0000 (UTC) (envelope-from matheus@eternamente.info) Received: from phoenix.eternamente.info (phoenix.eternamente.info [109.169.62.232]) by mx1.freebsd.org (Postfix) with ESMTP id A5062220D for ; Thu, 29 Aug 2013 23:20:22 +0000 (UTC) Received: by phoenix.eternamente.info (Postfix, from userid 80) id 456091CC59; Thu, 29 Aug 2013 20:20:17 -0300 (BRT) Received: from 187.61.251.141 (SquirrelMail authenticated user matheus) by arroway.org with HTTP; Thu, 29 Aug 2013 20:20:17 -0300 Message-ID: In-Reply-To: References: <04dc16e8adc42b571915e7fc51ec9a57.squirrel@arroway.org> <8FFD8F5B-FCE4-4062-B6B7-7A46943E91AE@bsdimp.com> Date: Thu, 29 Aug 2013 20:20:17 -0300 Subject: Re: TP-Link 1043ND - its tme :) From: "Nenhum_de_Nos" Cc: "freebsd-mips@freebsd.org" User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal 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: Thu, 29 Aug 2013 23:20:22 -0000 On Thu, August 29, 2013 19:51, Warner Losh wrote: > > On Aug 29, 2013, at 4:06 PM, Warner Losh wrote: > >> >>> [mktplinkfw] *** error: rootfs image is too big >> >> OK. This isn't for root image, but to make the uncompressed kernel ~685k smaller. So maybe 200k >> smaller after compression. >> >> http://people.freebsd.org/~imp/smalller-mips > > I've moved this to http://people.freebsd.org/~imp/smaller-mips.diff for nicer downloading, and the > original link had too many l's in it... > >> basically it does EXTRA_FLAGS+=-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. >> >> text data bss dec hex filename >> 3598994 270588 153056 4022638 3d616e kernel.debug with patch >> 4285106 270632 153056 4708794 47d9ba kernel.debug built without >> >> Comments? > > 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... I dont know if I got it. Should I try it or not ? :) and, I must find where to change it. Not yet familiar with the build scripts and cfg files. thanks, matheus > Warner > > >> Warner >> >> P.S. Don't have this hardware, so no test boots. >> > > -- We will call you Cygnus, The God of balance you shall be A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? http://en.wikipedia.org/wiki/Posting_style From owner-freebsd-mips@FreeBSD.ORG Fri Aug 30 09:30:06 2013 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 ESMTP id 6D077B0F for ; Fri, 30 Aug 2013 09:30:06 +0000 (UTC) (envelope-from matheus@eternamente.info) Received: from phoenix.eternamente.info (phoenix.eternamente.info [109.169.62.232]) by mx1.freebsd.org (Postfix) with ESMTP id 28AB12524 for ; Fri, 30 Aug 2013 09:30:05 +0000 (UTC) Received: by phoenix.eternamente.info (Postfix, from userid 80) id EEAF11CC5B; Fri, 30 Aug 2013 06:30:03 -0300 (BRT) Received: from 187.61.251.141 (SquirrelMail authenticated user matheus) by arroway.org with HTTP; Fri, 30 Aug 2013 06:30:03 -0300 Message-ID: <59d6b005e19dfc803b06a607bd6dc984.squirrel@arroway.org> In-Reply-To: References: <04dc16e8adc42b571915e7fc51ec9a57.squirrel@arroway.org> <8FFD8F5B-FCE4-4062-B6B7-7A46943E91AE@bsdimp.com> Date: Fri, 30 Aug 2013 06:30:03 -0300 Subject: Re: TP-Link 1043ND - its tme :) From: "Nenhum_de_Nos" To: freebsd-mips@freebsd.org User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal 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 09:30:06 -0000 On Thu, August 29, 2013 20:20, Nenhum_de_Nos wrote: > > On Thu, August 29, 2013 19:51, Warner Losh wrote: >> >> On Aug 29, 2013, at 4:06 PM, Warner Losh wrote: >> >>> >>>> [mktplinkfw] *** error: rootfs image is too big >>> >>> OK. This isn't for root image, but to make the uncompressed kernel ~685k smaller. So maybe 200k >>> smaller after compression. >>> >>> http://people.freebsd.org/~imp/smalller-mips >> >> I've moved this to http://people.freebsd.org/~imp/smaller-mips.diff for nicer downloading, and >> the >> original link had too many l's in it... >> >>> basically it does EXTRA_FLAGS+=-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. >>> >>> text data bss dec hex filename >>> 3598994 270588 153056 4022638 3d616e kernel.debug with patch >>> 4285106 270632 153056 4708794 47d9ba kernel.debug built without >>> >>> Comments? >> >> 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... > > I dont know if I got it. Should I try it or not ? :) > > and, I must find where to change it. Not yet familiar with the build scripts and cfg files. > > thanks, > > matheus It will be hard to get it. 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:~ # I commented out some AH_DEBUG_ALQ. I imagine it is about ALTQ new implementation. Am I right ? still not there yet :( matheus >> Warner >> >> >>> Warner >>> >>> P.S. Don't have this hardware, so no test boots. >>> >> >> > > > -- > We will call you Cygnus, > The God of balance you shall be > > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > > 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" > -- We will call you Cygnus, The God of balance you shall be A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? http://en.wikipedia.org/wiki/Posting_style From owner-freebsd-mips@FreeBSD.ORG Fri Aug 30 12:43:45 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 40027E1D for ; Fri, 30 Aug 2013 12:43:45 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x22f.google.com (mail-we0-x22f.google.com [IPv6:2a00:1450:400c:c03::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B5FAF216F for ; Fri, 30 Aug 2013 12:43:44 +0000 (UTC) Received: by mail-we0-f175.google.com with SMTP id m46so930235wev.20 for ; Fri, 30 Aug 2013 05:43:43 -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=dVSzXA4Gt9OmkC2IKVttHJnPYgGz22oIEbIJGQOjYgM=; b=qsTr26WfgR/pE7t+hO8Ty7ApKXTeYk4/qV4G7DFu2OKAw6aIES50ucWxGSpBB2pC0u 6yVMgQQfPh+iSGxO9TuL0EJBS8WlGuqbkrWN+aMG/geTF4qk0RO1teFIetAefbBd/QPn eDkanhEuvKPetixhLl9PTz0mJTGMSzC6BUDlqo8/fzs3W0mw5rU0jmnqa0glEGYm6BxY bHS5sVYIhiaL2MvH9yIPMAGLkKujllq/eXJN6FUkUluG+b1ZpBN6hjRjbIUdVMrARgYQ 9pSeaVMQTbukcAjTcQXw8XIx0SD6bC4cDVlkZ7ER8L5XbGSuXoKBQzXlAgQ+TebEk5R4 mB1w== MIME-Version: 1.0 X-Received: by 10.194.176.163 with SMTP id cj3mr10747443wjc.8.1377866623097; Fri, 30 Aug 2013 05:43:43 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.146.2 with HTTP; Fri, 30 Aug 2013 05:43:43 -0700 (PDT) In-Reply-To: <59d6b005e19dfc803b06a607bd6dc984.squirrel@arroway.org> References: <04dc16e8adc42b571915e7fc51ec9a57.squirrel@arroway.org> <8FFD8F5B-FCE4-4062-B6B7-7A46943E91AE@bsdimp.com> <59d6b005e19dfc803b06a607bd6dc984.squirrel@arroway.org> Date: Fri, 30 Aug 2013 05:43:43 -0700 X-Google-Sender-Auth: nxgXa2HdbrZfxVBzkUPB1Y2wbuU Message-ID: Subject: Re: TP-Link 1043ND - its tme :) From: Adrian Chadd To: Nenhum_de_Nos Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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 12:43:45 -0000 AH_DEBUG_ALQ just adds some debugging bits to the ath/hal code to let you do live register tracing. It won't affect the rootfs size. -adrian On 30 August 2013 02:30, Nenhum_de_Nos wrote: > > On Thu, August 29, 2013 20:20, Nenhum_de_Nos wrote: > > > > On Thu, August 29, 2013 19:51, Warner Losh wrote: > >> > >> On Aug 29, 2013, at 4:06 PM, Warner Losh wrote: > >> > >>> > >>>> [mktplinkfw] *** error: rootfs image is too big > >>> > >>> OK. This isn't for root image, but to make the uncompressed kernel > ~685k smaller. So maybe 200k > >>> smaller after compression. > >>> > >>> http://people.freebsd.org/~imp/smalller-mips > >> > >> 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... > >> > >>> basically it does EXTRA_FLAGS+=-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. > >>> > >>> text data bss dec hex filename > >>> 3598994 270588 153056 4022638 3d616e kernel.debug with patch > >>> 4285106 270632 153056 4708794 47d9ba kernel.debug built > without > >>> > >>> Comments? > >> > >> 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... > > > > I dont know if I got it. Should I try it or not ? :) > > > > and, I must find where to change it. Not yet familiar with the build > scripts and cfg files. > > > > thanks, > > > > matheus > > It will be hard to get it. > > 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:~ # > > I commented out some AH_DEBUG_ALQ. I imagine it is about ALTQ new > implementation. Am I right ? > > still not there yet :( > > matheus > > >> Warner > >> > >> > >>> Warner > >>> > >>> P.S. Don't have this hardware, so no test boots. > >>> > >> > >> > > > > > > -- > > We will call you Cygnus, > > The God of balance you shall be > > > > A: Because it messes up the order in which people normally read text. > > Q: Why is top-posting such a bad thing? > > > > 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" > > > > > -- > We will call you Cygnus, > The God of balance you shall be > > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > > 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" > From owner-freebsd-mips@FreeBSD.ORG Fri Aug 30 13:12:21 2013 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 ESMTP id F3790E0E for ; Fri, 30 Aug 2013 13:12:20 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-wi0-x234.google.com (mail-wi0-x234.google.com [IPv6:2a00:1450:400c:c05::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 775B62370 for ; Fri, 30 Aug 2013 13:12:20 +0000 (UTC) Received: by mail-wi0-f180.google.com with SMTP id l12so1779873wiv.13 for ; Fri, 30 Aug 2013 06:12:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=d0GD11rzpwogvP7RuRf3zQpuxNdOvZMn2LZGnOikG4E=; b=CPe5Epw9sOqwIiHJ4ham+kXCURwBq0JJ3bEX0zsR1IquVVN+a6CsSlWWPINTSqeg+a Z/sZgpPjelxfgojPE8ojKeP87udTx8pZ28KDGLDKsj3m8HJKDkIdGSwa0TAed664srJ0 sqOMX+tA/rzTFB6Zfm0pxU50x4TH7ulSNPp7OgQDHru3Qy8E/iiJzRu3oYt98cjNYmUc sF84EyLIrcEUGGodSOgEAdeKbCkCHqf7Qn+c7yEgWglHZCLL79ZSpqQESVSIyzaUwxJG r+hJT3WSzaGaMStBTslHNJv/GlyiCFCf37rYw+h2lw/+lbFxuargP2XJcjvpPzVthZeR nsSg== MIME-Version: 1.0 X-Received: by 10.194.24.168 with SMTP id v8mr11012527wjf.28.1377868338854; Fri, 30 Aug 2013 06:12:18 -0700 (PDT) Received: by 10.216.75.140 with HTTP; Fri, 30 Aug 2013 06:12:18 -0700 (PDT) In-Reply-To: <59d6b005e19dfc803b06a607bd6dc984.squirrel@arroway.org> References: <04dc16e8adc42b571915e7fc51ec9a57.squirrel@arroway.org> <8FFD8F5B-FCE4-4062-B6B7-7A46943E91AE@bsdimp.com> <59d6b005e19dfc803b06a607bd6dc984.squirrel@arroway.org> Date: Fri, 30 Aug 2013 10:12:18 -0300 Message-ID: Subject: Re: TP-Link 1043ND - its tme :) From: Luiz Otavio O Souza To: Nenhum_de_Nos Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:12:21 -0000 On 30 August 2013 06:30, Nenhum_de_Nos wrote: > > On Thu, August 29, 2013 20:20, Nenhum_de_Nos wrote: > > > 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:~ # > > I commented out some AH_DEBUG_ALQ. I imagine it is about ALTQ new > implementation. Am I right ? > ALQ stands for asynchronous logging queue. It is used to log all the debug information from ath. See that it is the rootfs that is too big now. DIR825 is using geom_uncompress which supports lzma compressed images. I've two patches one with the changes to TP-WN1043ND kernel and the other to change the rootfs compression method. With these changes i can now create the 1043 image, but it is not tested, so be aware... http://pastebin.com/JY2J8Cen http://pastebin.com/hSZHYsb7 Luiz From owner-freebsd-mips@FreeBSD.ORG Fri Aug 30 13:35:12 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 CADF6F2 for ; Fri, 30 Aug 2013 13:35:12 +0000 (UTC) (envelope-from matheus@eternamente.info) Received: from phoenix.eternamente.info (phoenix.eternamente.info [109.169.62.232]) by mx1.freebsd.org (Postfix) with ESMTP id A1CC42570 for ; Fri, 30 Aug 2013 13:35:12 +0000 (UTC) Received: by phoenix.eternamente.info (Postfix, from userid 80) id 63AAA1CC59; Fri, 30 Aug 2013 10:35:03 -0300 (BRT) Received: from 200.164.157.132 (SquirrelMail authenticated user matheus) by arroway.org with HTTP; Fri, 30 Aug 2013 10:35:03 -0300 Message-ID: <470e0a56a142d6518bfd3bf4034bbb82.squirrel@arroway.org> In-Reply-To: References: <04dc16e8adc42b571915e7fc51ec9a57.squirrel@arroway.org> <8FFD8F5B-FCE4-4062-B6B7-7A46943E91AE@bsdimp.com> <59d6b005e19dfc803b06a607bd6dc984.squirrel@arroway.org> Date: Fri, 30 Aug 2013 10:35:03 -0300 Subject: Re: TP-Link 1043ND - its tme :) From: "Nenhum_de_Nos" To: freebsd-mips@freebsd.org User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal 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:35:12 -0000 On Fri, August 30, 2013 10:12, Luiz Otavio O Souza wrote: > On 30 August 2013 06:30, Nenhum_de_Nos wrote: > >> >> On Thu, August 29, 2013 20:20, Nenhum_de_Nos wrote: >> > >> 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:~ # >> >> I commented out some AH_DEBUG_ALQ. I imagine it is about ALTQ new >> implementation. Am I right ? >> > > ALQ stands for asynchronous logging queue. It is used to log all the debug > information from ath. > > See that it is the rootfs that is too big now. DIR825 is using > geom_uncompress which supports lzma compressed images. > > I've two patches one with the changes to TP-WN1043ND kernel and the other > to change the rootfs compression method. > > With these changes i can now create the 1043 image, but it is not tested, > so be aware... > > http://pastebin.com/JY2J8Cen > > http://pastebin.com/hSZHYsb7 > > Luiz Luiz, my unit is still using TP-Link software, as I never got to create an image small enough. What is the worst that could happen ? Can I void it forever ? any schedule to it being ok to test ? (if it won't ruin it forever, I can test) can I apply this patch to any svn rev ? thanks, matheus -- We will call you Cygnus, The God of balance you shall be A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? http://en.wikipedia.org/wiki/Posting_style 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" From owner-freebsd-mips@FreeBSD.ORG Fri Aug 30 13:49:50 2013 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 ESMTP id C3DA2A57 for ; Fri, 30 Aug 2013 13:49:50 +0000 (UTC) (envelope-from matheus@eternamente.info) Received: from phoenix.eternamente.info (phoenix.eternamente.info [109.169.62.232]) by mx1.freebsd.org (Postfix) with ESMTP id 980BA265F for ; Fri, 30 Aug 2013 13:49:50 +0000 (UTC) Received: by phoenix.eternamente.info (Postfix, from userid 80) id 0DB841CC59; Fri, 30 Aug 2013 10:49:41 -0300 (BRT) Received: from 200.164.157.132 (SquirrelMail authenticated user matheus) by arroway.org with HTTP; Fri, 30 Aug 2013 10:49:41 -0300 Message-ID: In-Reply-To: <470e0a56a142d6518bfd3bf4034bbb82.squirrel@arroway.org> References: <04dc16e8adc42b571915e7fc51ec9a57.squirrel@arroway.org> <8FFD8F5B-FCE4-4062-B6B7-7A46943E91AE@bsdimp.com> <59d6b005e19dfc803b06a607bd6dc984.squirrel@arroway.org> <470e0a56a142d6518bfd3bf4034bbb82.squirrel@arroway.org> Date: Fri, 30 Aug 2013 10:49:41 -0300 Subject: Re: TP-Link 1043ND - its tme :) From: "Nenhum_de_Nos" To: freebsd-mips@freebsd.org User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal 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:49:50 -0000 On Fri, August 30, 2013 10:35, Nenhum_de_Nos wrote: > > On Fri, August 30, 2013 10:12, Luiz Otavio O Souza wrote: >> On 30 August 2013 06:30, Nenhum_de_Nos wrote: >> >>> >>> On Thu, August 29, 2013 20:20, Nenhum_de_Nos wrote: >>> > >>> 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:~ # >>> >>> I commented out some AH_DEBUG_ALQ. I imagine it is about ALTQ new >>> implementation. Am I right ? >>> >> >> ALQ stands for asynchronous logging queue. It is used to log all the debug >> information from ath. >> >> See that it is the rootfs that is too big now. DIR825 is using >> geom_uncompress which supports lzma compressed images. >> >> I've two patches one with the changes to TP-WN1043ND kernel and the other >> to change the rootfs compression method. >> >> With these changes i can now create the 1043 image, but it is not tested, >> so be aware... >> >> http://pastebin.com/JY2J8Cen >> >> http://pastebin.com/hSZHYsb7 >> >> Luiz > > Luiz, > > my unit is still using TP-Link software, as I never got to create an image small enough. What is > the worst that could happen ? Can I void it forever ? > > any schedule to it being ok to test ? (if it won't ruin it forever, I can test) > > can I apply this patch to any svn rev ? > > thanks, > > matheus forgot to tell last message, I commented out msdosfs. I can format all usb media using ufs. That last message with size, has this on. matheus -- We will call you Cygnus, The God of balance you shall be A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? http://en.wikipedia.org/wiki/Posting_style From owner-freebsd-mips@FreeBSD.ORG Fri Aug 30 14:15:37 2013 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 ESMTP id 75E298D3 for ; Fri, 30 Aug 2013 14:15:37 +0000 (UTC) (envelope-from lists@rewt.org.uk) Received: from hosted.mx.as41113.net (abby.lhr1.as41113.net [91.208.177.20]) by mx1.freebsd.org (Postfix) with ESMTP id DCD2C285B for ; Fri, 30 Aug 2013 14:15:36 +0000 (UTC) Received: from [192.168.1.218] (unknown [212.9.98.193]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: lists@rewt.org.uk) by hosted.mx.as41113.net (Postfix) with ESMTPSA id 3cRN4x1BXfztC for ; Fri, 30 Aug 2013 15:15:29 +0100 (BST) Message-ID: <5220A8FC.3020503@rewt.org.uk> Date: Fri, 30 Aug 2013 15:15:24 +0100 From: Joe Holden User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: freebsd-mips@freebsd.org Subject: Re: Hang after usb on EdgeRouter Lite References: <520CC2DC.4060702@rewt.org.uk> <10d401ce9a06$c5016f90$4f044eb0$@rewt.org.uk> <111501ce9a14$b41f59e0$1c5e0da0$@rewt.org.uk> <520DE94E.5050200@rewt.org.uk> <19BE644B-D2A4-42D2-B983-50E90F3D3F8D@bsdimp.com> <149701ce9c3f$7659ea80$630dbf80$@rewt.org.uk> <14bb01ce9c51$c3152530$493f6f90$@rewt.org.uk> <14c801ce9c53$6f19bf20$4d4d3d60$@rewt.org.uk> <14de01ce9c5a$91bc75c0$b5356140$@rewt.org.uk> <1376869486.1201.6.camel@revolution.hippie.lan> <521DE7EB.2020800@rewt.org.uk> In-Reply-To: <521DE7EB.2020800@rewt.org.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 14:15:37 -0000 For a bit, anyway :P Few select bins are dying with similar output to: cpuid = 0 BAD_PAGE_FAULT: pid 1584 tid 100063 (sshd), uid 0: pc 0x16006b5f8 got a write fault (type 0x3) at 0x160375b80 Trapframe Register Dump: zero: 0 at: 0x160088000 v0: 0x120 v1: 0x160375b80 a0: 0x160375b80 a1: 0 a2: 0x480 a3: 0x120 a4: 0x160375b80 a5: 0 a6: 0x1c a6: 0xe90 t0: 0x63 t1: 0x70 t2: 0 t3: 0x16008c780 t8: 0 t9: 0x16006b550 s0: 0x16007c000 s1: 0x1600752e0 s2: 0x3 s3: 0x3 s4: 0x7fffffd040 s5: 0x480 s6: 0 s7: 0x1fa000 k0: 0 k1: 0 gp: 0x16008c780 sp: 0x7fffffcec0 s8: 0x7fffffcf00 ra: 0x1600671b4 sr: 0x8084b3 mullo: 0x290 mulhi: 0 badvaddr: 0x160375b80 cause: 0xc pc: 0x16006b5f8 Page table info for pc address 0x16006b5f8: pde = 0x9800000001fb2000, pte = 0x1400057d9a Dumping 4 words starting at pc address 0x16006b5f8: ac690000 64e7ffff 14e0fffd 64630004 Page table info for bad address 0x160375b80: pde = 0x9800000001fb2000, pte = 0 Failed to write core file for process sshd (error 14) pid 1584 (sshd), uid 0: exited on signal 10 sshd, bsdtar, mostly ok otherwise, any suggestions (HEAD as of an hour ago) Cheers, Joe On 28/08/2013 13:07, Joe Holden wrote: > ok so, just built new HEAD with DDB, WITNESS etc to get a backtrace but > alas, now it's booting fine... who unbroke it? :) > > On 19/08/2013 00:44, Ian Lepore wrote: >> Olivier made some changes to unbreak the arm stuff right after that >> commit. Given that some of the mips code evolved from the arm code, >> maybe there are clues in what he did for arm. >> >> -- Ian >> >> On Sun, 2013-08-18 at 15:18 -0700, Juli Mallett wrote: >>> I looked at that change recently, and it changed how kstacks are >>> allocated >>> at least, and while it should have preserved the right alignment >>> behaviour, >>> I'm wondering now if there may be some subtler problem in the change >>> there >>> now. There were other changes that could be implicated as part of that >>> commit, but that's the bit that immediately set off some alarm for me, >>> because I know MIPS is an unusual case in that regard. (Requiring >>> kstacks >>> to fill up a whole double-TLB entry.) >>> >>> Thanks for tracking this down, and I'm hopeful that Jeff will have some >>> insight. Thanks to Adrian for following up with him. >>> >>> Juli. >>> >>> >>> On Sun, Aug 18, 2013 at 3:01 PM, Adrian Chadd >>> wrote: >>> >>>> Ok. I just replied to Jeff's commit and CC'ed you. >>>> >>>> Let's see if we can work with Jeff to figure out why the hell it >>>> broke and >>>> get it fixed up before 10.0-REL is cut. >>>> >>>> Would you please file a PR with all the relevant information that >>>> you've >>>> found? >>>> >>>> Thanks! >>>> >>>> >>>> >>>> -adrian >>>> >>>> >>>> On 18 August 2013 14:33, Joe Holden wrote: >>>> >>>>> Ok so r254025 is definitely the commit that broke it (both SMP *and* >>>> USB) - >>>>> looks like the commit is quite involved so won't be particularly >>>>> easy to >>>>> unbreak just mips (at least for me) :( >>>>> >>>>>> -----Original Message----- >>>>>> From: owner-freebsd-mips@freebsd.org [mailto:owner-freebsd- >>>>>> mips@freebsd.org] On Behalf Of Joe Holden >>>>>> Sent: 18 August 2013 21:42 >>>>>> To: 'Adrian Chadd' >>>>>> Cc: freebsd-mips@freebsd.org >>>>>> Subject: RE: Hang after usb on EdgeRouter Lite >>>>>> >>>>>> ... and it boot with the second core disabled (usb still broken >>>> though) - >>>>>> something has gone horribly wrong :P >>>>>> >>>>>>> -----Original Message----- >>>>>>> From: owner-freebsd-mips@freebsd.org [mailto:owner-freebsd- >>>>>>> mips@freebsd.org] On Behalf Of Joe Holden >>>>>>> Sent: 18 August 2013 21:30 >>>>>>> To: 'Adrian Chadd' >>>>>>> Cc: freebsd-mips@freebsd.org >>>>>>> Subject: RE: Hang after usb on EdgeRouter Lite >>>>>>> >>>>>>> Sigh. it's actually getting worse - r254025 hangs after ULE setup. >>>>>>> >>>>>>> >>>>>>> >>>>>>> This may take longer than I first thought >>>>>>> >>>>>>> >>>>>>> >>>>>>> From: adrian.chadd@gmail.com [mailto:adrian.chadd@gmail.com] On >>>>>> Behalf >>>>>>> Of Adrian Chadd >>>>>>> Sent: 18 August 2013 20:27 >>>>>>> To: Joe Holden >>>>>>> Cc: Warner Losh; freebsd-mips@freebsd.org >>>>>>> Subject: Re: Hang after usb on EdgeRouter Lite >>>>>>> >>>>>>> >>>>>>> >>>>>>> .. you can just disable those for now. You're debugging USB hangs, >>>> not >>>>>>> bootp/nfs compile problems. :0 >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -adiran >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> On 18 August 2013 11:19, Joe Holden >>>>>> > wrote: >>>>>>> >>>>>>> None yet - getting compilation problems when building with BOOTP and >>>>>>> NFS root (undefined references) >>>>>>> >>>>>>> >>>>>>>> -----Original Message----- >>>>>>>> From: Warner Losh [mailto:wlosh@bsdimp.com >>>>>>> ] >>>>>>>> On >>>>>>> Behalf Of Warner Losh >>>>>>>> Sent: 18 August 2013 07:41 >>>>>>>> To: Adrian Chadd >>>>>>>> Cc: Joe Holden; freebsd-mips@freebsd.org >>>>>>>> >>>>>>> >>>>>>>> Subject: Re: Hang after usb on EdgeRouter Lite >>>>>>>> >>>>>>>> >>>>>>> >>>>>>>> On Aug 16, 2013, at 12:12 PM, Adrian Chadd wrote: >>>>>>>>> On 16 August 2013 01:56, Joe Holden >>>>>> > wrote: >>>>>>>>>> Not getting much closer but so far 253367 works, 253845 and >>>> later >>>>>>>>>> don't, I can't see any mips-specific changes that might break it >>>>>>>>>> but I >>>>>>> may >>>>>>>> be wrong! >>>>>>>>> >>>>>>>>> Plenty of non-MIPS stuff does break MIPS. :) >>>>>>>> >>>>>>>> Any new news? >>>>>>>> >>>>>>>> Warner >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> 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 >>>>> " >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> 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 >>>> " >>>>> >>>>> >>>>> >>>> _______________________________________________ >>>> 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" >>>> >>> _______________________________________________ >>> 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" >> >> >> _______________________________________________ >> 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" >> > > _______________________________________________ > 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" From owner-freebsd-mips@FreeBSD.ORG Fri Aug 30 16:45:19 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 BBC63C96 for ; Fri, 30 Aug 2013 16:45:19 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-we0-x22b.google.com (mail-we0-x22b.google.com [IPv6:2a00:1450:400c:c03::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4C83921A2 for ; Fri, 30 Aug 2013 16:45:19 +0000 (UTC) Received: by mail-we0-f171.google.com with SMTP id p57so1799495wes.2 for ; Fri, 30 Aug 2013 09:45:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=MskyWQQZFvoD224s7VWyhil4W19jftMy4rJvgNDJdAc=; b=klUhH66kI0j9OUSE/ycShcOMcmGC/eam9vayHo0fWCLdPHLw8KupLsGfCwdU5uj6mb J2Zw0Npz2iS4pJ360cQ7HIerGmbAvT/WH82PCF61DW1dqLsGIWMxTCPY+CyVNUnaRU4u ZEqdXwzDK3CPqU8yZczINK16l+GDjrChqfLq4Q2sYsq2UVyXcGSRBo+oJ9/Lh8mO4lQF k4cnHe2O6s1zcG5KexjLvC1F6tfYL+8aCL6/SSuIokoDqAis1bttanqtyc0nyGpAz+0t EfFwHXLRf4IwO6qk0b4jRPsjYsr3Q96kTaK6e819w3KsZuzb2jdtBD5UWg66+ZAUDmqs dTrw== MIME-Version: 1.0 X-Received: by 10.180.77.49 with SMTP id p17mr3235190wiw.36.1377881117652; Fri, 30 Aug 2013 09:45:17 -0700 (PDT) Received: by 10.216.75.140 with HTTP; Fri, 30 Aug 2013 09:45:17 -0700 (PDT) In-Reply-To: <470e0a56a142d6518bfd3bf4034bbb82.squirrel@arroway.org> References: <04dc16e8adc42b571915e7fc51ec9a57.squirrel@arroway.org> <8FFD8F5B-FCE4-4062-B6B7-7A46943E91AE@bsdimp.com> <59d6b005e19dfc803b06a607bd6dc984.squirrel@arroway.org> <470e0a56a142d6518bfd3bf4034bbb82.squirrel@arroway.org> Date: Fri, 30 Aug 2013 13:45:17 -0300 Message-ID: Subject: Re: TP-Link 1043ND - its tme :) From: Luiz Otavio O Souza To: Nenhum_de_Nos Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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 16:45:19 -0000 On 30 August 2013 10:35, Nenhum_de_Nos wrote: > > my unit is still using TP-Link software, as I never got to create an image > small enough. What is > the worst that could happen ? Can I void it forever ? > If you write the image using the web ui (if the image is correct enough to be written by web ui) the worst thing that can happen is that it may not boot. But as we don't touch the uboot it is always possible to netboot the router or copy (tftp) a new image to flash (using the console/serial access). > any schedule to it being ok to test ? (if it won't ruin it forever, I can > test) > Not sure, i'm going for a fast trip in the next days so this may take a while (a week or so). > can I apply this patch to any svn rev ? > Yes, it is just the revision i've created the diff from. Luiz From owner-freebsd-mips@FreeBSD.ORG Fri Aug 30 16:56:23 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 66652E82 for ; Fri, 30 Aug 2013 16:56:23 +0000 (UTC) (envelope-from matheus@eternamente.info) Received: from phoenix.eternamente.info (phoenix.eternamente.info [109.169.62.232]) by mx1.freebsd.org (Postfix) with ESMTP id 3B5032224 for ; Fri, 30 Aug 2013 16:56:23 +0000 (UTC) Received: by phoenix.eternamente.info (Postfix, from userid 80) id EA20D1CC59; Fri, 30 Aug 2013 13:56:18 -0300 (BRT) Received: from 200.164.157.132 (SquirrelMail authenticated user matheus) by arroway.org with HTTP; Fri, 30 Aug 2013 13:56:18 -0300 Message-ID: <29fffe4d56621c3b61e64a4e37dbae50.squirrel@arroway.org> In-Reply-To: References: <04dc16e8adc42b571915e7fc51ec9a57.squirrel@arroway.org> <8FFD8F5B-FCE4-4062-B6B7-7A46943E91AE@bsdimp.com> <59d6b005e19dfc803b06a607bd6dc984.squirrel@arroway.org> <470e0a56a142d6518bfd3bf4034bbb82.squirrel@arroway.org> Date: Fri, 30 Aug 2013 13:56:18 -0300 Subject: Re: TP-Link 1043ND - its tme :) From: "Nenhum_de_Nos" To: freebsd-mips@freebsd.org User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal 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 16:56:23 -0000 On Fri, August 30, 2013 13:45, Luiz Otavio O Souza wrote: > On 30 August 2013 10:35, Nenhum_de_Nos wrote: > >> >> my unit is still using TP-Link software, as I never got to create an image >> small enough. What is >> the worst that could happen ? Can I void it forever ? >> > > If you write the image using the web ui (if the image is correct enough to > be written by web ui) the worst thing that can happen is that it may not > boot. But as we don't touch the uboot it is always possible to netboot the > router or copy (tftp) a new image to flash (using the console/serial > access). That way I can test it. Just need to make time (a guest this weekend, so not much time to play with this :) and need a valid image of FreeBSD to upload if anything goes bad. Can anyone post link to a valid image ? (I just make big images :( ) att, matheus >> any schedule to it being ok to test ? (if it won't ruin it forever, I can >> test) >> > > Not sure, i'm going for a fast trip in the next days so this may take a > while (a week or so). > > >> can I apply this patch to any svn rev ? >> > > Yes, it is just the revision i've created the diff from. > > Luiz > -- We will call you Cygnus, The God of balance you shall be A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? http://en.wikipedia.org/wiki/Posting_style From owner-freebsd-mips@FreeBSD.ORG Sat Aug 31 18:46:37 2013 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 ESMTP id 03D9392D for ; Sat, 31 Aug 2013 18:46:37 +0000 (UTC) (envelope-from harm@vevida.nl) Received: from net3-nl-smtp-02.vevida.net (net3-nl-smtp-02.vevida.net [IPv6:2a00:f60::1:26]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BAA272F22 for ; Sat, 31 Aug 2013 18:46:36 +0000 (UTC) Received: from net3-nl-proxy-07.vevida.net (net3-nl-proxy-07.vevida.net [IPv6:2a00:f60::1:55]) by net3-nl-smtp-02.vevida.net (Postfix) with ESMTP id 581419C84F1 for ; Sat, 31 Aug 2013 20:46:34 +0200 (CEST) Received: from [IPv6:2001:470:d2a7:1492:e2f8:47ff:fe43:1764] (manbearpig.wifi.weites.net [IPv6:2001:470:d2a7:1492:e2f8:47ff:fe43:1764]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: harm@vevida.com) by net3-nl-proxy-07.vevida.net (Postfix) with ESMTPSA id 9027DD58027 for ; Sat, 31 Aug 2013 20:46:33 +0200 (CEST) Message-ID: <1377974793.2748.33.camel@manbearpig> Subject: Re: TP-Link 1043ND - its tme :) From: Harm Weites To: freebsd-mips@freebsd.org Date: Sat, 31 Aug 2013 20:46:33 +0200 In-Reply-To: <29fffe4d56621c3b61e64a4e37dbae50.squirrel@arroway.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.8.4 (3.8.4-2.fc19) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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: Sat, 31 Aug 2013 18:46:37 -0000 Hi, For what its worth, this is my setup. I'm running 2 of the TP Link units configured as Quagga routers, though the kernel is already running behind quite a bit: FreeBSD 10.0-CURRENT #5 r249821M Mem: 10M Active, 2368K Inact, 11M Wired, 916K Cache, 1504K Buf, 1340K Free (yes, I also installed top) Processes: - dropbear - dhcprelya - ospfd - zebra - ospf6d - hostapd - dhclient The other unit is running bgpd (which is a massive binary) instead of hostapd. I'm not using USB on either one them and I've removed several of the binaries from the rootfs created by Adrian's scripts. I also left out newfs stuff and the ability to do nfs mounts. Make sure you have MALLOC_PRODUCTION=YES in make.conf and configure bin/build_freebsd to use it: __MAKE_CONF=/etc/tplinkmake.conf SRCCONF=/dev/null Some changes to the TP-Link kernel config (sys/mips/conf/TP-WN1043ND): +options NBUF=128 +nooptions INVARIANTS +nooptions INVARIANT_SUPPORT +nooptions WITNESS +nooptions WITNESS_SKIPSPIN +nooptions IEEE80211_DEBUG +nooptions IEEE80211_SUPPORT_MESH +nooptions IEEE80211_SUPPORT_TDMA +nooptions IEEE80211_ALQ +nooptions ATH_DEBUG +nooptions ATH_DIAGAPI +nooption ATH_ENABLE_11N +nooption AH_DEBUG_ALQ +nooptions AH_DEBUG +nooption AH_DEBUG_ALQ Regards, Harm From owner-freebsd-mips@FreeBSD.ORG Sat Aug 31 21:23:01 2013 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 ESMTP id CD60F296 for ; Sat, 31 Aug 2013 21:23:01 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x235.google.com (mail-we0-x235.google.com [IPv6:2a00:1450:400c:c03::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6320F259C for ; Sat, 31 Aug 2013 21:23:01 +0000 (UTC) Received: by mail-we0-f181.google.com with SMTP id q57so2618931wes.40 for ; Sat, 31 Aug 2013 14:22:59 -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=wgx/B7++vdptrVMPqjObywPynGMSkeDh/yV98IA5skk=; b=inuFVXncTlkubToT7X6qW3IhWpp69+e4vsY21vhM24D09JIJTDL0PU20xKPu1glF+/ RrVCe+MmI1TnIjivT6PDsvtiNoqSI79dTFO3bTd1PEWWSvArXYVf8HjrW9idNI6qdXb9 D+YBGEMUh0HtfUZPajv7uAmXFJeuN6FDnyX0h+loRMBbrsqestQL6D8m9/CfI9nKdvvh FO2QRSdVc/DElJzU76Mmzbaf9LaxO0bvgyptX3evX1OQrvL7Ub9KhT2BFZZjKhoLqUaj l0vCeAP9BPPsaBFOZaHya/Ht9k5Zi7+rdEKBGAa1/+PrMdaRK639vBy96tb6CbgzdHjL SPLg== MIME-Version: 1.0 X-Received: by 10.180.72.198 with SMTP id f6mr7552604wiv.46.1377984178920; Sat, 31 Aug 2013 14:22:58 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.146.2 with HTTP; Sat, 31 Aug 2013 14:22:58 -0700 (PDT) In-Reply-To: <1377974793.2748.33.camel@manbearpig> References: <29fffe4d56621c3b61e64a4e37dbae50.squirrel@arroway.org> <1377974793.2748.33.camel@manbearpig> Date: Sat, 31 Aug 2013 14:22:58 -0700 X-Google-Sender-Auth: rd2ZIPTwN6u8gZuW8P14_mZC8VI Message-ID: Subject: Re: TP-Link 1043ND - its tme :) From: Adrian Chadd To: Harm Weites Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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: Sat, 31 Aug 2013 21:23:01 -0000 Cool! How'd you build the MIPS versions of dropbear, etc? On 31 August 2013 11:46, Harm Weites wrote: > Hi, > > For what its worth, this is my setup. I'm running 2 of the TP Link units > configured as Quagga routers, though the kernel is already running > behind quite a bit: > > FreeBSD 10.0-CURRENT #5 r249821M > > Mem: 10M Active, 2368K Inact, 11M Wired, 916K Cache, 1504K Buf, 1340K > Free (yes, I also installed top) > > Processes: > - dropbear > - dhcprelya > - ospfd > - zebra > - ospf6d > - hostapd > - dhclient > > The other unit is running bgpd (which is a massive binary) instead of > hostapd. I'm not using USB on either one them and I've removed several > of the binaries from the rootfs created by Adrian's scripts. I also left > out newfs stuff and the ability to do nfs mounts. > > Make sure you have MALLOC_PRODUCTION=YES in make.conf and configure > bin/build_freebsd to use it: > __MAKE_CONF=/etc/tplinkmake.conf SRCCONF=/dev/null > > Some changes to the TP-Link kernel config (sys/mips/conf/TP-WN1043ND): > > +options NBUF=128 > +nooptions INVARIANTS > +nooptions INVARIANT_SUPPORT > +nooptions WITNESS > +nooptions WITNESS_SKIPSPIN > +nooptions IEEE80211_DEBUG > +nooptions IEEE80211_SUPPORT_MESH > +nooptions IEEE80211_SUPPORT_TDMA > +nooptions IEEE80211_ALQ > +nooptions ATH_DEBUG > +nooptions ATH_DIAGAPI > +nooption ATH_ENABLE_11N > +nooption AH_DEBUG_ALQ > +nooptions AH_DEBUG > +nooption AH_DEBUG_ALQ > > Regards, > Harm > > _______________________________________________ > 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" > From owner-freebsd-mips@FreeBSD.ORG Sat Aug 31 22:15:42 2013 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 ESMTP id 2AC4961A; Sat, 31 Aug 2013 22:15:42 +0000 (UTC) (envelope-from harm@weites.com) Received: from server1.weites.net (mail.weites.com [89.188.29.41]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id AAB282723; Sat, 31 Aug 2013 22:15:40 +0000 (UTC) Received: from [10.14.92.96] (5ED685D2.cm-7-7c.dynamic.ziggo.nl [94.214.133.210]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: harm@weites.com) by server1.weites.net (Postfix) with ESMTPSA id 4237872255; Sun, 1 Sep 2013 00:09:51 +0200 (CEST) Message-ID: <1377986990.2748.49.camel@manbearpig> Subject: Re: TP-Link 1043ND - its tme :) From: Harm Weites To: Adrian Chadd Date: Sun, 01 Sep 2013 00:09:50 +0200 In-Reply-To: References: <29fffe4d56621c3b61e64a4e37dbae50.squirrel@arroway.org> <1377974793.2748.33.camel@manbearpig> Content-Type: multipart/mixed; boundary="=-F1ew/C855zdSAnOBCKIA" X-Mailer: Evolution 3.8.4 (3.8.4-2.fc19) Mime-Version: 1.0 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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: Sat, 31 Aug 2013 22:15:42 -0000 --=-F1ew/C855zdSAnOBCKIA Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Hi, I am using the attached script as a base to build several ports I needed. It gets the job done, though sometimes requiring some patching of makefiles. This depends, ofcourse, on your toolchain and a checkout of HEAD. Regards Adrian Chadd schreef op za 31-08-2013 om 14:22 [-0700]: > Cool! How'd you build the MIPS versions of dropbear, etc? > > > > > On 31 August 2013 11:46, Harm Weites wrote: > Hi, > > For what its worth, this is my setup. I'm running 2 of the TP > Link units > configured as Quagga routers, though the kernel is already > running > behind quite a bit: > > FreeBSD 10.0-CURRENT #5 r249821M > > Mem: 10M Active, 2368K Inact, 11M Wired, 916K Cache, 1504K > Buf, 1340K > Free (yes, I also installed top) > > Processes: > - dropbear > - dhcprelya > - ospfd > - zebra > - ospf6d > - hostapd > - dhclient > > The other unit is running bgpd (which is a massive binary) > instead of > hostapd. I'm not using USB on either one them and I've removed > several > of the binaries from the rootfs created by Adrian's scripts. I > also left > out newfs stuff and the ability to do nfs mounts. > > Make sure you have MALLOC_PRODUCTION=YES in make.conf and > configure > bin/build_freebsd to use it: > __MAKE_CONF=/etc/tplinkmake.conf SRCCONF=/dev/null > > Some changes to the TP-Link kernel config > (sys/mips/conf/TP-WN1043ND): > > +options NBUF=128 > +nooptions INVARIANTS > +nooptions INVARIANT_SUPPORT > +nooptions WITNESS > +nooptions WITNESS_SKIPSPIN > +nooptions IEEE80211_DEBUG > +nooptions IEEE80211_SUPPORT_MESH > +nooptions IEEE80211_SUPPORT_TDMA > +nooptions IEEE80211_ALQ > +nooptions ATH_DEBUG > +nooptions ATH_DIAGAPI > +nooption ATH_ENABLE_11N > +nooption AH_DEBUG_ALQ > +nooptions AH_DEBUG > +nooption AH_DEBUG_ALQ > > Regards, > Harm > > _______________________________________________ > 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" > > > --=-F1ew/C855zdSAnOBCKIA-- From owner-freebsd-mips@FreeBSD.ORG Sat Aug 31 22:25:09 2013 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 ESMTP id 3623E718 for ; Sat, 31 Aug 2013 22:25:09 +0000 (UTC) (envelope-from harm@weites.com) Received: from server1.weites.net (mail.weites.com [89.188.29.41]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EF2632787 for ; Sat, 31 Aug 2013 22:25:08 +0000 (UTC) Received: from [10.14.92.96] (5ED685D2.cm-7-7c.dynamic.ziggo.nl [94.214.133.210]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: harm@weites.com) by server1.weites.net (Postfix) with ESMTPSA id EE0F872255 for ; Sun, 1 Sep 2013 00:25:06 +0200 (CEST) Message-ID: <1377987906.2748.51.camel@manbearpig> Subject: Re: TP-Link 1043ND - its tme :) From: Harm Weites To: freebsd-mips@freebsd.org Date: Sun, 01 Sep 2013 00:25:06 +0200 In-Reply-To: <1377986990.2748.49.camel@manbearpig> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.8.4 (3.8.4-2.fc19) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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: Sat, 31 Aug 2013 22:25:09 -0000 Hm, since I don't see anything attached - here it is: #!/bin/bash BASEDIR=/home/harm/work/freebsd/head/obj/mipseb/mips.mips/usr/home/harm/work/freebsd/head/src PREFIX=/home/harm/work/freebsd/head/ports/prefix WORKDIR=/home/harm/work/freebsd/head/ports/work mkdir -p $WORKDIR mkdir -p $PREFIX export CC=$BASEDIR/tmp/usr/bin/gcc export CPP=$BASEDIR/tmp/usr/bin/cpp export CXX=$BASEDIR/tmp/usr/bin/g++ export AS=$BASEDIR/tmp/usr/bin/as export NM=$BASEDIR/tmp/usr/bin/nm export RANLIB=$BASEDIR/tmp/usr/bin/gnu-ranlib export LD=$BASEDIR/tmp/usr/bin/ld export OBJCOPY=$BASEDIR/tmp/usr/bin/objcopy export SIZE=$BASEDIR/tmp/usr/bin/size export AR=$BASEDIR/tmp/usr/bin/gnu-ar export STRIPBIN=$BASEDIR/tmp/usr/bin/strip export MACHINE=mips export MACHINE_ARCH=mips echo "Start cross-compiling to $MACHINE/$MACHINE_ARCH..." make \ PREFIX=$PREFIX \ WRKDIRPREFIX=$WORKDIR \ CONFIGURE_ARGS+="--host=$MACHINE --prefix=$PREFIX" \ LDFLAGS+="-rpath=$BASEDIR/tmp/lib:$BASEDIR/tmp/usr/lib:$PREFIX/lib: $BASEDIR/lib -L$BASEDIR/tmp/lib -L$BASEDIR/usr/lib -L$TARGETDIR/lib -L $BASEDIR/lib" \ NO_PKG_REGISTER=1 \ clean install