From owner-freebsd-mips@FreeBSD.ORG Mon Jan 17 05:43:03 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68F06106566C; Mon, 17 Jan 2011 05:43:03 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id C479A8FC14; Mon, 17 Jan 2011 05:43:02 +0000 (UTC) Received: by wwf26 with SMTP id 26so4956900wwf.31 for ; Sun, 16 Jan 2011 21:43:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=yGnfnu1BsEhPy5UBBbCnDJYFdKFcMKHCA5jt3Yq0xPY=; b=s1eYzZp1y0Jf4xt6HZHDeJGqFjSvJWM9UoMDM66hRjgvGg954YkrdZjwhqA7Mp1K1e oGEWuJghOpyHJpdXfU8PjaME3R0eykZ9mBMPU46ytqksZCF8IZHZq13b2zxS0gIPWI4u QDQw3A1bNOsDzPD7CR6YkZ1DpNnzI6u5bWhLU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=lNVVYnYoRNpZWvqT726Mv69eoBl3gMAQl6QsDm6FmODPuEc+tVia9AP0Hygo52TK5w J03UkSHr5oBrhB1v6DIG3Q7lmgjrW8we27TECIFWXpKpYPwW6yoy7xKphNSbqZdnYUka BKEkxueZbh9XldXCDcpzBiUhC8YH3omJ0ngG0= MIME-Version: 1.0 Received: by 10.216.254.89 with SMTP id g67mr1932093wes.7.1295242981464; Sun, 16 Jan 2011 21:43:01 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.159.201 with HTTP; Sun, 16 Jan 2011 21:43:01 -0800 (PST) In-Reply-To: References: Date: Mon, 17 Jan 2011 13:43:01 +0800 X-Google-Sender-Auth: KxZMBdjBPWyEzlZB60DiaDdM_VQ Message-ID: From: Adrian Chadd To: Monthadar Al Jaberi Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org, freebsd-mips@freebsd.org Subject: Re: capturing packet from wlan0 with netgraph? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jan 2011 05:43:03 -0000 Hi, Please file a PR about this and the output of "show registers". I bet that the ip pointer isn't aligned at that point in the code. Whatever is passing the packet to the IP layer should be re-aligning things beforehand. (eg, look at what the ethernet ipfw hook code does - if the ether type is ipv4/ipv6, it actually realigns the packets before passing it back up the stack.) Adrian On 13 January 2011 16:25, Monthadar Al Jaberi wrote: > sorry but I have not worked with this for a while now, After some > thoughts I dont think using netgraph will do me any good, because > traffic can still flow through the antennas of the cards. > > If you think it would still be useful to see more ddb prompt for other > scenarios I am happy to try and supply that, but I won't have some > free time until late tomorrow :) > > thnx again! > > On Thu, Jan 13, 2011 at 7:53 AM, Adrian Chadd wrote: >> I've encountered this before. >> >> The mbuf's there aren't always aligned at this point. >> >> >> >> Adrian >> >> On 13 January 2011 14:17, Jayachandran C. wro= te: >>> On Thu, Jan 13, 2011 at 11:08 AM, Adrian Chadd wro= te: >>>> Find out what the address is that's causing the problem. There's >>>> plenty of places where unaligned mbuf's exist in the IP code and >>>> aren't correctly realigned before being touched. >>>> >>>> MIPS people - is "address error" an alignment problem? >>> >>> Address error can be an alignment problem (or some other cases like >>> accessing kernel address from userspace). >>> >>> But looking at the crash, it certainly seems like in ip_input, the line >>> =A0 =A0 435 =A0 =A0 =A0 =A0 if (ip->ip_v !=3D IPVERSION) { >>> >>> got a bad address for the ip pointer. >>> >>> The output of 'show registers' at the ddb prompt would be useful to >>> debug further. >>> >>> >>>> On 30 December 2010 21:47, Monthadar Al Jaberi w= rote: >>>>> Hi, >>>>> >>>>> I have an idea in my head and would like to know if it is possible. >>>>> >>>>> I want to simulate and test the net80211 mesh code in FreeBSD Current= . >>>>> I have an RSPRO board with 3 atheros cards. >>>>> >>>>> My =A0basic idea is to run three jails each having its own network >>>>> stack, and redirect all data packets coming out/in of the wlan driver >>>>> to a Server running a home brew application that simulates the medium= . >>>>> That would be great, right? Realtime unchanged code to test, running >>>>> different application in their own jails. >>>>> >>>>> So first I started to test netgraph with a simple test case, I want t= o >>>>> receive all packets from one wireless card and see the data in >>>>> wireshark or tcpdump... >>>>> >>>>> This is my netgraph code: >>>>> mkpeer wlan0: hub lower hook0 >>>>> name wlan0:lower hub >>>>> connect hub: wlan0: hook1 upper >>>>> connect hub: arge0: hook2 lower >>>>> >>>>> >>>>> So if I understood man ng_ether correct, this should capture >>>>> everything from wlan and redirect to ethernet cable. >>>>> >>>>> But I get a panic after a couple of seconds: >>>>> Trap cause =3D 4 (address error (load or I-fetch) - kernel mode) >>>>> [ thread pid 11 tid 100037 ] >>>>> Stopped at =A0 =A0 =A0ip_input+0xd8: =A0lw =A0 =A0 =A0v0,0(s0) >>>>> >>>>> I suspect that data flows to all hooks of the hub, and that is a bad >>>>> thing right? Need to create a special hub node to filter data? Or >>>>> maybe use two ethernet cables for out resp. in? >>>>> >>>>> Is it even possible to do what I want? Or am I thinking wrong? And is >>>>> there a simpler way? >>>>> >>>>> What I want is to test mesh code in a bunch of FreeBSD systems withou= t >>>>> moving the hardware, one could just stack RSPROs and connected them a >>>>> big switch and a PC. >>>>> Hope was I clear in my thoughts. >>>>> >>>>> Best regards, >>>>> -- >>>>> //Monthadar Al Jaberi >>> >>> JC. >>> >> > > > > -- > //Monthadar Al Jaberi > From owner-freebsd-mips@FreeBSD.ORG Mon Jan 17 18:03:29 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3DF9E106564A; Mon, 17 Jan 2011 18:03:29 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 675048FC08; Mon, 17 Jan 2011 18:03:28 +0000 (UTC) Received: by fxm16 with SMTP id 16so6403192fxm.13 for ; Mon, 17 Jan 2011 10:03:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=bHxJpu//BkemyQu0RMvYPzRx25S6NAXkSlgwwadwZ2E=; b=hpHLPpZ+mSDpiBLtBFQl92djTiEiV7BBCM3PHvkmD85PwQhTCotSBmD1pmFfItY0sm UiO84JHz/gCSkwLlYP9x1MJdZi2JD8JVhy1EUa9ED3TpHmTtN7hmbWthwguCVI51pg3N vIdz8jJsSpDrJ/jyxPgAonumUXZZeOTGy3+/Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=b/pd4A1/fi6GICX3BGjnuwzkgWb6f2FjzrQiCliidI///j5g0I3Tdh020RmKuRcflO So12/FHYgFfyszQZ3R1SmdcCFU0RhB+QERInpOp6VfKoxRLotEg4dHkD3iKKk7tGSn/e yb0iaAxaSYueqs55nnciRHXEthmiFYj2srzwA= MIME-Version: 1.0 Received: by 10.223.85.204 with SMTP id p12mr5025179fal.146.1295287407133; Mon, 17 Jan 2011 10:03:27 -0800 (PST) Received: by 10.223.85.198 with HTTP; Mon, 17 Jan 2011 10:03:27 -0800 (PST) In-Reply-To: References: Date: Mon, 17 Jan 2011 19:03:27 +0100 Message-ID: From: Monthadar Al Jaberi To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org, freebsd-mips@freebsd.org Subject: Re: capturing packet from wlan0 with netgraph? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jan 2011 18:03:29 -0000 filed a PR http://www.freebsd.org/cgi/query-pr.cgi?pr=3D154091 On Mon, Jan 17, 2011 at 6:43 AM, Adrian Chadd wrote: > Hi, > > Please file a PR about this and the output of "show registers". > > I bet that the ip pointer isn't aligned at that point in the code. > Whatever is passing the packet to the IP layer should be re-aligning > things beforehand. > (eg, look at what the ethernet ipfw hook code does - if the ether type > is ipv4/ipv6, it actually realigns the packets before passing it back > up the stack.) > > > > Adrian > > On 13 January 2011 16:25, Monthadar Al Jaberi wrote= : >> sorry but I have not worked with this for a while now, After some >> thoughts I dont think using netgraph will do me any good, because >> traffic can still flow through the antennas of the cards. >> >> If you think it would still be useful to see more ddb prompt for other >> scenarios I am happy to try and supply that, but I won't have some >> free time until late tomorrow :) >> >> thnx again! >> >> On Thu, Jan 13, 2011 at 7:53 AM, Adrian Chadd wrote= : >>> I've encountered this before. >>> >>> The mbuf's there aren't always aligned at this point. >>> >>> >>> >>> Adrian >>> >>> On 13 January 2011 14:17, Jayachandran C. wr= ote: >>>> On Thu, Jan 13, 2011 at 11:08 AM, Adrian Chadd wr= ote: >>>>> Find out what the address is that's causing the problem. There's >>>>> plenty of places where unaligned mbuf's exist in the IP code and >>>>> aren't correctly realigned before being touched. >>>>> >>>>> MIPS people - is "address error" an alignment problem? >>>> >>>> Address error can be an alignment problem (or some other cases like >>>> accessing kernel address from userspace). >>>> >>>> But looking at the crash, it certainly seems like in ip_input, the lin= e >>>> =A0 =A0 435 =A0 =A0 =A0 =A0 if (ip->ip_v !=3D IPVERSION) { >>>> >>>> got a bad address for the ip pointer. >>>> >>>> The output of 'show registers' at the ddb prompt would be useful to >>>> debug further. >>>> >>>> >>>>> On 30 December 2010 21:47, Monthadar Al Jaberi = wrote: >>>>>> Hi, >>>>>> >>>>>> I have an idea in my head and would like to know if it is possible. >>>>>> >>>>>> I want to simulate and test the net80211 mesh code in FreeBSD Curren= t. >>>>>> I have an RSPRO board with 3 atheros cards. >>>>>> >>>>>> My =A0basic idea is to run three jails each having its own network >>>>>> stack, and redirect all data packets coming out/in of the wlan drive= r >>>>>> to a Server running a home brew application that simulates the mediu= m. >>>>>> That would be great, right? Realtime unchanged code to test, running >>>>>> different application in their own jails. >>>>>> >>>>>> So first I started to test netgraph with a simple test case, I want = to >>>>>> receive all packets from one wireless card and see the data in >>>>>> wireshark or tcpdump... >>>>>> >>>>>> This is my netgraph code: >>>>>> mkpeer wlan0: hub lower hook0 >>>>>> name wlan0:lower hub >>>>>> connect hub: wlan0: hook1 upper >>>>>> connect hub: arge0: hook2 lower >>>>>> >>>>>> >>>>>> So if I understood man ng_ether correct, this should capture >>>>>> everything from wlan and redirect to ethernet cable. >>>>>> >>>>>> But I get a panic after a couple of seconds: >>>>>> Trap cause =3D 4 (address error (load or I-fetch) - kernel mode) >>>>>> [ thread pid 11 tid 100037 ] >>>>>> Stopped at =A0 =A0 =A0ip_input+0xd8: =A0lw =A0 =A0 =A0v0,0(s0) >>>>>> >>>>>> I suspect that data flows to all hooks of the hub, and that is a bad >>>>>> thing right? Need to create a special hub node to filter data? Or >>>>>> maybe use two ethernet cables for out resp. in? >>>>>> >>>>>> Is it even possible to do what I want? Or am I thinking wrong? And i= s >>>>>> there a simpler way? >>>>>> >>>>>> What I want is to test mesh code in a bunch of FreeBSD systems witho= ut >>>>>> moving the hardware, one could just stack RSPROs and connected them = a >>>>>> big switch and a PC. >>>>>> Hope was I clear in my thoughts. >>>>>> >>>>>> Best regards, >>>>>> -- >>>>>> //Monthadar Al Jaberi >>>> >>>> JC. >>>> >>> >> >> >> >> -- >> //Monthadar Al Jaberi >> > --=20 //Monthadar Al Jaberi From owner-freebsd-mips@FreeBSD.ORG Tue Jan 18 01:55:02 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A6AD61065670; Tue, 18 Jan 2011 01:55:02 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 40BDC8FC1A; Tue, 18 Jan 2011 01:55:01 +0000 (UTC) Received: by qyk8 with SMTP id 8so2100650qyk.13 for ; Mon, 17 Jan 2011 17:55:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=nXbVFOzpvpuLKsM9I2rFpNMpU6BjWW5MC/UWU/AqcIA=; b=ipZYba5ftJbpp9ElsA8t8C1BloQx4vbrDiNh4bhdb0hs81UjXaCQUAa4bHjhq95i9q o/b49hkFokVEncJ8OeVmAghhjz8KUl1joVbikauMpsT0nDGULcUC2GlygKNJbnIhIIwr rJEwvC5qPGjtUwrxQPLl/cI9IIUDMSldbhXIc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=uo7LPtQ9bFyTftnabJHgTiBre+0n8NhI1VGmWIcTwadySyZUK26lMCYh0VYjO3kY44 Htgs/DlC6KCBkgOBspwLB4G+Ix1aDxPi6nNOQSSl9C0iSclvaUlw9QzubyeiPS5T/mNh 0tLS6S0UpGffH6K5UUWXCl7sRttFKmwvNu9DA= MIME-Version: 1.0 Received: by 10.224.37.4 with SMTP id v4mr4654179qad.70.1295315701325; Mon, 17 Jan 2011 17:55:01 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.220.198.203 with HTTP; Mon, 17 Jan 2011 17:55:01 -0800 (PST) In-Reply-To: References: Date: Tue, 18 Jan 2011 09:55:01 +0800 X-Google-Sender-Auth: 2shL9OmGrRrLPP8ZnWcbUh0xHqk Message-ID: From: Adrian Chadd To: Monthadar Al Jaberi Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-net@freebsd.org, freebsd-mips@freebsd.org Subject: Re: capturing packet from wlan0 with netgraph? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jan 2011 01:55:02 -0000 On 18 January 2011 02:03, Monthadar Al Jaberi wrote: > filed a PR http://www.freebsd.org/cgi/query-pr.cgi?pr=154091 Thanks. Network-stack and MIPS guys - what's the best way to handle this kind of stuff? This isn't the first time I've come across weird alignment stuff in the network stack that just doesn't seem to get much attention. Is it perhaps worth adding some debugging macros that account/log unaligned-ness? So people playing at home on i386/amd64 can play along? Adrian From owner-freebsd-mips@FreeBSD.ORG Tue Jan 18 02:47:17 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 210CA106566C; Tue, 18 Jan 2011 02:47:17 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id D5DCC8FC0C; Tue, 18 Jan 2011 02:47:16 +0000 (UTC) Received: by pzk32 with SMTP id 32so998483pzk.13 for ; Mon, 17 Jan 2011 18:47:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:date:to:cc:subject:message-id:reply-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=C6bIFY/cS3IWvzVejgrIESwhg4ZqrANNnB2E2Bmn6dw=; b=xTa5Sa/niG0RZCXAuR9tgDopZGnSmWsLNqMmDJH5hFdKMcU8T66eE2xn8ZwbWkB2wr zEMZifiygVo9LkPKD6yaL75Yb2PiAu8c8uTHJjTL71XMBgnbOOd4YWx0cV9xglXuv0rD kD9ai7BaysI/rsmjOdKeAnJrRaLuczb2YxkHY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=LkTyYfOu/bIRj7bT1jTGeymU9Df3D2cGCvjEwQrCDFRjjoP6IUg/WmMtCxvy7XLNxg tx8/O4vELoWvi9DYJkmfpdpbPnQAClYAETEToqssjBF4jdrRZovbePQpv8pUDxogA/eK SY+mHREEN+CJvied/E6CTRw11WWmEA7rdmK4Q= Received: by 10.142.170.11 with SMTP id s11mr4502479wfe.448.1295317419564; Mon, 17 Jan 2011 18:23:39 -0800 (PST) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id e14sm7373273wfg.8.2011.01.17.18.23.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 17 Jan 2011 18:23:38 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Mon, 17 Jan 2011 18:22:46 -0800 From: Pyun YongHyeon Date: Mon, 17 Jan 2011 18:22:46 -0800 To: Adrian Chadd Message-ID: <20110118022246.GE1210@michelle.cdnetworks.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-net@freebsd.org, freebsd-mips@freebsd.org Subject: Re: capturing packet from wlan0 with netgraph? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jan 2011 02:47:17 -0000 On Tue, Jan 18, 2011 at 09:55:01AM +0800, Adrian Chadd wrote: > On 18 January 2011 02:03, Monthadar Al Jaberi wrote: > > filed a PR http://www.freebsd.org/cgi/query-pr.cgi?pr=154091 > > Thanks. > > Network-stack and MIPS guys - what's the best way to handle this kind > of stuff? This isn't the first time I've come across weird alignment > stuff in the network stack that just doesn't seem to get much > attention. Is it perhaps worth adding some debugging macros that > account/log unaligned-ness? So people playing at home on i386/amd64 > can play along? > I guess one of device driver/part of network stack is not aligning IP header on strict-alignment architecture. But I'm pretty sure all wired drivers always align IP header on 32bit boundary no matter how it costs on strict alignment architectures. But it does not align it on non-strict alignment architectures since that costs too much without reasonable benefit. I think you can add m_copyup() at the beginning ip_input to proceed processing and print back traces to track down which one generated unaligned IP header. > > > Adrian From owner-freebsd-mips@FreeBSD.ORG Tue Jan 18 05:24:50 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF2B1106564A for ; Tue, 18 Jan 2011 05:24:50 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 32EBC8FC08 for ; Tue, 18 Jan 2011 05:24:50 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id p0I5NbFh096531 for ; Mon, 17 Jan 2011 22:23:38 -0700 (MST) (envelope-from imp@bsdimp.com) Message-ID: <4D3523D9.5000901@bsdimp.com> Date: Mon, 17 Jan 2011 22:23:37 -0700 From: Warner Losh User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.13) Gecko/20101211 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-mips@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: capturing packet from wlan0 with netgraph? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jan 2011 05:24:50 -0000 On 01/17/2011 18:55, Adrian Chadd wrote: > On 18 January 2011 02:03, Monthadar Al Jaberi wrote: >> filed a PR http://www.freebsd.org/cgi/query-pr.cgi?pr=154091 > Thanks. > > Network-stack and MIPS guys - what's the best way to handle this kind > of stuff? This isn't the first time I've come across weird alignment > stuff in the network stack that just doesn't seem to get much > attention. Is it perhaps worth adding some debugging macros that > account/log unaligned-ness? So people playing at home on i386/amd64 > can play along? That can be hard, since the interface is to get a pointer and dereference it... Warner From owner-freebsd-mips@FreeBSD.ORG Tue Jan 18 06:34:15 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F59A1065674 for ; Tue, 18 Jan 2011 06:34:15 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 431AB8FC16 for ; Tue, 18 Jan 2011 06:34:14 +0000 (UTC) Received: by qwj9 with SMTP id 9so5304560qwj.13 for ; Mon, 17 Jan 2011 22:34:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=n/fxo2CNLI6KrjuJTo0VzexYBkIid0uFdJOBrtIxOlQ=; b=vDJNfEetlHmxB44FdCTNo8EWmeFqJSaFDIOFJM3QAzhU3TqFYn5d5P2kRIqKeJH9lY OmYAcewVfnaZn7ll162lPyUL2SCMCJvhybeYVUTCSLXQtEiuxT0BgOVVMIK8TSGkIPmd YIDVkX/8nMTb9e4jVHA5hxFjwoJ4eygO8LHZs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=NQMcpujXHkq32noAipGDmwyNlwGq/uznMsdvBYceq4vi4REmdTjKILLh0MK0S/V+Hb lDYrhg9VoYSdJ8WLgsTPvb+bXtQBPxHKwa5Bw1gBPjKJo0JFSjPBkabAMbWWhxKF/VNo HNYlzlCVzx/K9Lwgs3fi/IDEbjp7Za6yRXIAo= MIME-Version: 1.0 Received: by 10.229.95.193 with SMTP id e1mr4496766qcn.171.1295332454303; Mon, 17 Jan 2011 22:34:14 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.220.198.203 with HTTP; Mon, 17 Jan 2011 22:34:14 -0800 (PST) In-Reply-To: <4D3523D9.5000901@bsdimp.com> References: <4D3523D9.5000901@bsdimp.com> Date: Tue, 18 Jan 2011 14:34:14 +0800 X-Google-Sender-Auth: fwZZ3B1v9_G1Z7coYGaQP5kpprk Message-ID: From: Adrian Chadd To: Warner Losh Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-mips@freebsd.org Subject: Re: capturing packet from wlan0 with netgraph? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jan 2011 06:34:15 -0000 On 18 January 2011 13:23, Warner Losh wrote: > That can be hard, since the interface is to get a pointer and dereference > it... for example, bits of the ath driver code have unaligned access macros for touching unaligned bytes/words/ints/quads in packets. Adrian From owner-freebsd-mips@FreeBSD.ORG Tue Jan 18 13:50:40 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 026A410656A3 for ; Tue, 18 Jan 2011 13:50:40 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id B47E58FC08 for ; Tue, 18 Jan 2011 13:50:39 +0000 (UTC) Received: by qyk36 with SMTP id 36so5970147qyk.13 for ; Tue, 18 Jan 2011 05:50:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=lKNiSXr+8Q0lcwXmgeK7JwnQQBhw11hNkw7gJCUBwxI=; b=pCfO18UMmBZIjzzP30NuoMyH4PkOkm9UMH6rKwzvSfgXajixNb12MKbAAbBkabPu6m pwcnRtYKwIG25ePgH9RwIPxPt5yWV1MSfGR6toknhQAQUpMrpmfmOC0RY0M6lPY2D9BG MKfzaymMaYfYl5HnTzvDNkNdiix4yzd1ldQB8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=EpAEYkaMIqaGC5aQrpiDYoIYRNqSo9gufCjdzB7MthPgY7R/lVcA8tTNi04nKyl+YL pkGUD3aVFRSPfeN7VJXMjFhWEo4xPgLcKCSJ6I7B+KBoi+6M9aY9uTR3KaRotKTIS5Bh 4C8Q5uAK6D7VhCpMMVX3ejlOURzwGDL05GnAM= MIME-Version: 1.0 Received: by 10.224.37.4 with SMTP id v4mr5318256qad.70.1295358638925; Tue, 18 Jan 2011 05:50:38 -0800 (PST) Received: by 10.220.198.203 with HTTP; Tue, 18 Jan 2011 05:50:38 -0800 (PST) Date: Tue, 18 Jan 2011 21:50:38 +0800 Message-ID: From: Adrian Chadd To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: FreeBSD/mips on the Ubiquiti LS-SR71A X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jan 2011 13:50:40 -0000 Hi all, Here's another mostly-functioning MIPS board that I've gotten my mittens on. The default RSPRO_STANDALONE kernel that I've been using simply netbooted without change. But arge0 doesn't (yet) work - this device doesn't actually have a switch phy on either interface. Yes, it just has a bog standard, normal phy attached somewhere :-) +Looking for PHY for MAC unit 0 Eth KSZ8721B found. Looking for PHY for MAC unit 1 Eth KSZ8721B found. Ethernet eth0: MAC address 00:15:6d:c1:35:af IP: 192.168.1.20/255.255.255.0, Gateway: 0.0.0.0 Default server: 0.0.0.0 RedBoot(tm) bootstrap and debug environment [ROMRAM] Ubiquiti Networks certified release, version 0.9.6.1 - built 15:39:29, Nov 4 2008 Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc. Board: Ubiquiti AR71xx-based board RAM: 0x80000000-0x81000000, [0x8003ab60-0x80fe1000] available FLASH: 0xbf000000 - 0xbf800000, 128 blocks of 0x00010000 bytes each. == Executing boot script in 1.000 seconds - enter ^C to abort ^C RedBoot> ip -h 10.61.8.18 -l 10.61.8.5 IP: 10.61.8.5/255.255.255.0, Gateway: 0.0.0.0 Default server: 10.61.8.18 RedBoot> load kernel.RSPRO_STANDALONE Using default protocol (TFTP) Entry point: 0x80050100, address range: 0x80050000-0x804e6788 RedBoot> exec Now booting linux kernel: Base address 0x80050000 Entry 0x80050100 Cmdline : console=ttyS0,115200 init=/init CPU platform: Atheros AR7161 rev 2 CPU Frequency=680 MHz CPU DDR Frequency=170 MHz CPU AHB Frequency=85 MHz platform frequency: 680000000 arguments: a0 = 00000002 a1 = 80050020 a2 = 80050000 a3 = 0000001b Cmd line: console=ttyS0,115200 init=/init Environment: memsize = 0x01000000 modetty0 = 0,n,8,1,hw ethaddr = 00.15.6d.c1.35.af Cache info: picache_stride = 4096 picache_loopcount = 16 pdcache_stride = 4096 pdcache_loopcount = 8 cpu0: MIPS Technologies processor v116.147 MMU: Standard TLB, 16 entries L1 i-cache: 4 ways of 512 sets, 32 bytes per line L1 d-cache: 4 ways of 256 sets, 32 bytes per line Config1=0x9ee3519e Config3=0x20 KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2010 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 9.0-CURRENT #139 r213668+eb4d690-dirty: Tue Jan 18 19:33:52 WST 2011 adrian@pcbsd-3114:/data/freebsd/git/obj/rspro/mips.mips/data/freebsd/git/adrianchadd-freebsd/sys/RSPRO_STANDALONE mips real memory = 16777216 (16384K bytes) avail memory = 10309632 (9MB) nexus0: clock0: on nexus0 Timecounter "MIPS32" frequency 340000000 Hz quality 800 Event timer "MIPS32" frequency 340000000 Hz quality 800 apb0 at irq 4 on nexus0 uart0: <16550 or compatible> on apb0 uart0: console (115200,n,8,1) ehci0: at mem 0x1b000000-0x1bffffff irq 1 on nexus0 usbus0: set host controller mode usbus0: EHCI version 1.0 usbus0: set host controller mode usbus0: on ehci0 pcib0 at irq 0 on nexus0 pci0: on pcib0 pci0: at device 0.0 (no driver attached) ath0: irq 0 at device 17.0 on pci0 need_swap: 1 ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath_hal_computetxtime: rateix 0x8: this function shouldn't see MCS rates (hw ratecode 0x80)! ath0: enabling HT modes ath0: HT rxstreams: 2; txstreams: 2 ath0: AR9280 mac 128.2 RF5133 phy 13.0 arge0: at mem 0x19000000-0x19000fff irq 2 on nexus0 arge0: MII without any phy! device_attach: arge0 attach returned 6 arge1: at mem 0x1a000000-0x1a000fff irq 3 on nexus0 arge1: Ethernet address: 00:15:6d:c1:35:b0 spi0: at mem 0x1f000000-0x1f00000f on nexus0 spibus0: on spi0 mx25l0: at cs 0 on spibus0 Unknown SPI flash device. Vendor: 20, device id: 2017 device_attach: mx25l0 attach returned 6 rtc0: at cs 1 on spibus0 ar71xx_wdog0: on nexus0 Timecounters tick every 1.000 msec usbus0: 480Mbps High Speed USB v2.0 Root mount waiting for: usbus0 ugen0.1: at usbus0 uhub0: on usbus0 Root mount waiting for: usbus0 uhub0: 2 ports with 2 removable, self powered sleeping for 5 seconds to let USB device busses be enumerated.. Trying to mount root from ufs:da0s1a ROOT MOUNT ERROR: If you have invalid mount options, reboot, and first try the following from the loader prompt: set vfs.root.mountfrom.options=rw and then remove invalid mount options from /etc/fstab. Loader variables: vfs.root.mountfrom= vfs.root.mountfrom.options= Manual root filesystem specification: : Mount using filesystem eg. zfs:tank eg. ufs:/dev/da0s1a eg. cd9660:/dev/acd0 This is equivalent to: mount -t cd9660 /dev/acd0 / ? List valid disk boot devices Abort manual input mountroot> From owner-freebsd-mips@FreeBSD.ORG Wed Jan 19 13:46:20 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D56971065693 for ; Wed, 19 Jan 2011 13:46:20 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6B6B48FC0A for ; Wed, 19 Jan 2011 13:46:19 +0000 (UTC) Received: by ewy24 with SMTP id 24so385123ewy.13 for ; Wed, 19 Jan 2011 05:46:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=cJ5V48hsMCjC5Uwt3DJGS1US/ZRyKlWfDTK3qp8hUt8=; b=BwU0nJzynuO8GRm3BcBHhmph8r+gGLImBHW1zZXUK5UBmb34ei88JyDATliV2t/sAA 9RPC5Lxfi+Cy/B6Y64e+LGLIlM1TgS5dk/o0qP30gDFd2rl1FCxsp1WNR43Hu+Xu6YK/ sTFbdhoHjFyO+2M3UsnI6wsWZ26PxSiqifggc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=GXjKgSJDtrRHuJ6JHgpalgxec0OEGnJxUcF02tPdxIrRmlviQGYSZCNY3eI/VXwIKc KQNzcTP1FFUNZ1cLLU9mMSQPA5euPwS9OHrZP17fWlsl0A0yrHFI8+h6UU8qXRLyGmz0 spYdHPRVLmEoljcCDFH123LEBUpZmINHqLtw4= MIME-Version: 1.0 Received: by 10.14.16.75 with SMTP id g51mr775281eeg.45.1295443440182; Wed, 19 Jan 2011 05:24:00 -0800 (PST) Received: by 10.14.48.75 with HTTP; Wed, 19 Jan 2011 05:24:00 -0800 (PST) Date: Wed, 19 Jan 2011 08:24:00 -0500 Message-ID: From: Outback Dingo To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: RS / RSPRO FreeBSD X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2011 13:46:20 -0000 Ok Ive read alot of the emails about Free on the RS/RSPRO.. I have some questions. Simplest way to generate a flashable image for the RS.. ive seen the nanobsd rspro work Ive seen adrians site, ive read the threads... heres what eludes us... theres no base Howto / FAQ on image generation, booting from flash, reading/writing flash, what patches are required. So simply stated, does someone have a RS image with wireless support? and if so whats the list of pointers to required patches, utilities, build process, image generation Id just like a base image with wireless, pf, no external usb... and we will happily setup a wiki page on our site, with any and all information provided and contribute the documentation for this to the FreeBSD site. What we'd like to do is create a fuller repository / guide for users to get to where its running on their boards From owner-freebsd-mips@FreeBSD.ORG Thu Jan 20 05:08:11 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2BF0A106566C for ; Thu, 20 Jan 2011 05:08:11 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id D36578FC12 for ; Thu, 20 Jan 2011 05:08:10 +0000 (UTC) Received: by qwj9 with SMTP id 9so206243qwj.13 for ; Wed, 19 Jan 2011 21:08:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=TkHlLvdlJ3az8ue/PHq6pFNDkVmonUkmZmMWn9jtm40=; b=fNFX4JMcw736zbF33kS6uD0jvcmQsH9mrhAtoJrtdDhbalap1ADiWSqUEM1D0J2gGn o+H79OErgA8miBJou64+pifZe79vBG6N1Lu4Ofsd1CvmWIc/1Ev1Wbs4Nua0Os5MyRmq DVA8t0J0MXpjVV1xS3lAYCBi/Fur/9W9wuixA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=uei/B2TtA+AV9rmifrxBBkaaVOZM+Rss9mdqry0HA/DfWkS94JisJAZRgaVqe8K7F8 aEimntSaKLa5rmG+90pDwObmwEHIWXTR1F0KJANIkXITf6mmEw1/AGRvtzOn4Zjjv+Jz Qj34iZ5TXQjhFM3sxDQjH7j5jZZc0d84ufhlY= MIME-Version: 1.0 Received: by 10.224.37.4 with SMTP id v4mr1520622qad.70.1295500090105; Wed, 19 Jan 2011 21:08:10 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.220.198.203 with HTTP; Wed, 19 Jan 2011 21:08:10 -0800 (PST) In-Reply-To: References: Date: Thu, 20 Jan 2011 13:08:10 +0800 X-Google-Sender-Auth: Y5JR9uJkIfNyg4gK8hLZsMWtGgw Message-ID: From: Adrian Chadd To: Outback Dingo Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mips@freebsd.org Subject: Re: RS / RSPRO FreeBSD X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2011 05:08:11 -0000 There's a couple of ways you can do this. The first way is to build a small MFS kernel that has a compressed filesystem image in the MFS (geom_gzip / geom_ulzma) which is then booted from flash or network and runs entirely from RAM. I built a busybox style system using the rescue+crunchgen stuff to do exactly this kind of thing. The second way is to build a complete tree, write it out to a USB or SD card and then boot the kernel from the internal flash. You'll need to patch things slightly so the system gets a chance to finish probing the USB devices before you can use them as root devices. The third way is to build a small geom_gzip/geom_ulzma image that isn't included in the MFS, and then generate an image which uses that. I've done the first two and I'm currently using them both at home - the former for test hostaps, the latter for testing freebsd/mips. You can feed kernel and rootfs images to mkfwimage. They have to be zero-padded out to multiples of 64k or things just will silently not work. Then you can do an initial flash of your unit with that image using the flash helper (eg holding down the reset button when powering the unit on.) IT'll partition the flash for you as needed which is helpful. Once FreeBSD is booted you can dd a kernel into the flash, again it needs to be sized a multiple of 64k AND written out using a 64k blocksize (eg dd if=3Dkernel of=3D/dev/redboot/kernel bs=3D64k; assuming kernel is already padded out to the nearest 64k.) I think you need to write zero's out for the rest of the kernel flash or it will get highly confused. I don't have time to sit down and write up a comprehensive howto on this stuff. I'm on holiday in February so maybe I'll be able to do it then. :-) Adrian On 19 January 2011 21:24, Outback Dingo wrote: > Ok Ive read alot of the emails about Free on the RS/RSPRO.. I have some > questions. > Simplest way to generate a flashable image for the RS.. ive seen the nano= bsd > rspro work > Ive seen adrians site, ive read the threads... heres what eludes us... > theres no base > Howto / FAQ on image generation, booting from flash, reading/writing flas= h, > what patches > are required. So simply stated, does someone have a RS image with wireles= s > support? > > and if so whats the list of pointers to required patches, utilities, buil= d > process, image generation > > Id just like a =A0base image with wireless, pf, no external usb... > > and we will happily setup a wiki page on our site, with any and all > information provided > and contribute the documentation for this to the FreeBSD site. What we'd > like to do is > create a fuller repository / guide for users to get to where its running = on > their boards > _______________________________________________ > 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 Jan 20 05:24:50 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EAC97106564A; Thu, 20 Jan 2011 05:24:49 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 531ED8FC0A; Thu, 20 Jan 2011 05:24:48 +0000 (UTC) Received: by ewy24 with SMTP id 24so71268ewy.13 for ; Wed, 19 Jan 2011 21:24:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=UIIqPt3+0q9WHKbhH0YnsMM6Rokl/9aNjTvYzJadjvg=; b=ghg5q3YjLUIxGrlItKTgCOSuyYZp5MZKGHkd6RA/9CdC6RAYPconNaOHdK1b90rlm1 2KS66zhkxKov6BDjU7s8EH/ERNfvioOxlqs46r54Qhw8K05/xJK074ZTg5fHmlU7DLMj JkZ+OEIKEZ0yc7Abhdlfy4cckQnqRGnFDxCig= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=WQcGTD8tqQSerD1uXVZZQcE6fSd9qN8x0fH9zEXB912F2FqP5cG/XgO3kpTQNGQhMY svUf7x5KP6QiAyn+uo1zjmXuAzv+4UlSiG+d0P/a7hJLzddQvQP0aQRkQGOPombXKsBq 3lspWselthtmiMepAUHEiJg7J6uY6qwTENnVk= MIME-Version: 1.0 Received: by 10.14.16.75 with SMTP id g51mr1920086eeg.45.1295501088187; Wed, 19 Jan 2011 21:24:48 -0800 (PST) Received: by 10.14.48.75 with HTTP; Wed, 19 Jan 2011 21:24:48 -0800 (PST) In-Reply-To: References: Date: Thu, 20 Jan 2011 00:24:48 -0500 Message-ID: From: Outback Dingo To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-mips@freebsd.org Subject: Re: RS / RSPRO FreeBSD X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2011 05:24:50 -0000 On Thu, Jan 20, 2011 at 12:08 AM, Adrian Chadd wrote: > There's a couple of ways you can do this. > > The first way is to build a small MFS kernel that has a compressed > filesystem image in the MFS (geom_gzip / geom_ulzma) which is then > booted from flash or network and runs entirely from RAM. I built a > busybox style system using the rescue+crunchgen stuff to do exactly > this kind of thing. > > Feasibly using this method and your recent bsdbox MFS kernel sounds most logical size/space wise as Im looking to do this without a usb stick/flash. simply small wireless ap/pf is all. I also looked at the nanobsd stuff ... I considered an MFS kernel / bsdbox / integrated and nanobsdized, also i looked at the bsd router project which is a nano based stripped image + including 2 packages. So it appears this is probably the way ill go. During the process Ill document and post scripts once i get a viable running system. Sounds like it would also be secure as once its rebooted being mfs all mods/changes go away and the configuration once set is static so mfs would be ok. From owner-freebsd-mips@FreeBSD.ORG Thu Jan 20 06:12:04 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2CA05106566C for ; Thu, 20 Jan 2011 06:12:04 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id D39248FC0C for ; Thu, 20 Jan 2011 06:12:03 +0000 (UTC) Received: by qwj9 with SMTP id 9so246321qwj.13 for ; Wed, 19 Jan 2011 22:12:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=WW9IB6W3eyWUF1He5awOdKHsvy9nBNO4dW9lfFipQlg=; b=dGDfOvUppj0NP/bXsHUL8bVFdCzINsXWUWCPxpKeIERXkqAusQaJwBn3rcyH0D1lAM ZIMA0XtzAwGmph6BTcvp3zRcoEMb0F28CiDjxbq1sLaX9umNTpVbVObCsLrSgjPlL/WI S1Ne7dQ6J8eifd9OoGiBdkjVkARHMxEY1Hvf0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=FpFn4WwFZApPfjLTWb5I80ddAMdo9ZJ/8vG4DFw/mJqKLYD2RfkDg6ATy4MUq+Pn90 iSZ+n9eCl8jZplWC2fDFU92/LtVXY4jKrOEhMcs6eAyYVX0TbSH3/J6s9cpBdWGZDZ8w SG62BkhQ2xXiD1MDbJmQBPxAhqHcHh6o5TNZo= MIME-Version: 1.0 Received: by 10.224.67.18 with SMTP id p18mr1584302qai.20.1295503922984; Wed, 19 Jan 2011 22:12:02 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.220.198.203 with HTTP; Wed, 19 Jan 2011 22:12:02 -0800 (PST) In-Reply-To: References: Date: Thu, 20 Jan 2011 14:12:02 +0800 X-Google-Sender-Auth: mSyfnD4iRq6Wc7l5ALPWu-JqljI Message-ID: From: Adrian Chadd To: Outback Dingo Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mips@freebsd.org Subject: Re: RS / RSPRO FreeBSD X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2011 06:12:04 -0000 On 20 January 2011 13:24, Outback Dingo wrote: > Feasibly using this method and your recent bsdbox MFS kernel sounds most > logical size/space wise > as Im looking to do this without a usb stick/flash. simply small wireless > ap/pf =A0is all. I also looked at the > nanobsd stuff ... I considered an MFS kernel / bsdbox / integrated and > nanobsdized, also i looked at > the bsd router project which is a nano based stripped image + including 2 > packages. So it appears this > is probably the way ill=A0go. During the process Ill document and post sc= ripts > once i get a viable running > system. Sounds like=A0it would also be secure as once its rebooted being = mfs > all mods/changes go away > and the configuration once set is static so mfs would be ok. Gah, here, just use this. http://people.freebsd.org/~adrian/rspro/mfs-build.tar.gz There's two scripts to build an MFS root for my tplink AP. One builds a normal one, one builds one using bsdbox (and creates symlinks.) The important magic is: * the fudging to find the start/end offsets in the kernel for the MFS root; * using makefs with the -right- options (which took me a while!) to create an FFS which a MIPS big-endian kernel will understand; * shuffling all the right bits into the right place. Good luck! Adrian From owner-freebsd-mips@FreeBSD.ORG Thu Jan 20 08:38:34 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F1BA7106564A for ; Thu, 20 Jan 2011 08:38:34 +0000 (UTC) (envelope-from freebsd-mips@dino.sk) Received: from loki.netlab.sk (loki.netlab.sk [84.245.65.11]) by mx1.freebsd.org (Postfix) with ESMTP id 6D1858FC08 for ; Thu, 20 Jan 2011 08:38:34 +0000 (UTC) Received: from door.dino.sk (fw1.dino.sk [84.245.95.252]) (AUTH: PLAIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by loki.netlab.sk with esmtp; Thu, 20 Jan 2011 09:28:04 +0100 id 00033C0C.4D37F214.0000E528 From: Milan Obuch To: freebsd-mips@freebsd.org Date: Thu, 20 Jan 2011 09:28:43 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.5.5; i386; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201101200928.45264.freebsd-mips@dino.sk> Subject: Re: RS / RSPRO FreeBSD X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2011 08:38:35 -0000 On Thursday 20 January 2011 07:12:02 Adrian Chadd wrote: [ snip ] > Gah, here, just use this. > > http://people.freebsd.org/~adrian/rspro/mfs-build.tar.gz > > There's two scripts to build an MFS root for my tplink AP. One builds > a normal one, one builds one using bsdbox (and creates symlinks.) > Which TP-Link model, please? I am going to examine some next week and it will be great to know if you succeeded to put FreeBSD on it already... Regards, Milan From owner-freebsd-mips@FreeBSD.ORG Thu Jan 20 09:17:31 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 606601065679 for ; Thu, 20 Jan 2011 09:17:31 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 106C78FC13 for ; Thu, 20 Jan 2011 09:17:30 +0000 (UTC) Received: by qyk8 with SMTP id 8so1524674qyk.13 for ; Thu, 20 Jan 2011 01:17:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=Ebz6T6hRzDBPo56Yh0/WH6V5ExR4wmy6wAiCqvw2ixU=; b=UONDIPiLhaP3fVX+mL9nYNy+JuRxkYeL7i+h4CUwuTbTs/jLQU8ONv/7GRwnlsRfbK fU209wnJs9z19E9kadP5KnJzj3kxSwwDOThOlYL0FjhPzkynqGdsL8LAr4dtxAGk4W0a VlGVHJDpxhHwCrLiPzKPIyKZxgRWM2KGvFkAA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=aLRElb6+KYUrS10J8hct2efLnAylJXIIjBwQFI/COqO7OdR2QczOYbh/1Z6o1i/KR1 vP4prOZxl0zZZ3zGNYCJMENlwz8quFZZoKgk8wLJCEmTwYBIZhvqD1LRHW0q8aI7CzLX oNBtgJsE6aMWsvTDOy4Kf7WmfLHIW3/hf9ljA= MIME-Version: 1.0 Received: by 10.224.37.4 with SMTP id v4mr1742954qad.70.1295515049123; Thu, 20 Jan 2011 01:17:29 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.220.198.203 with HTTP; Thu, 20 Jan 2011 01:17:29 -0800 (PST) In-Reply-To: <201101200928.45264.freebsd-mips@dino.sk> References: <201101200928.45264.freebsd-mips@dino.sk> Date: Thu, 20 Jan 2011 17:17:29 +0800 X-Google-Sender-Auth: qDAOGuabpVj9AEpnc0pVcmK7OZs Message-ID: From: Adrian Chadd To: Milan Obuch Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-mips@freebsd.org Subject: Re: RS / RSPRO FreeBSD X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2011 09:17:31 -0000 On 20 January 2011 16:28, Milan Obuch wrote: >> There's two scripts to build an MFS root for my tplink AP. One builds >> a normal one, one builds one using bsdbox (and creates symlinks.) >> > > Which TP-Link model, please? I am going to examine some next week and it will > be great to know if you succeeded to put FreeBSD on it already... WR-1043ND. You'll need a few patches and an alternate kernel config file to make it somewhat work. USB is broken. The switch PHY isn't yet fully supported so it's a dumb switch. Other than that, it seems to work alright. I've moved back to doing my 11n/mips stuff on the rspro and I've left the 1043ND running openwrt+ath9k. Adrian From owner-freebsd-mips@FreeBSD.ORG Thu Jan 20 12:55:57 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 26EAA10656C1; Thu, 20 Jan 2011 12:55:57 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 876B58FC12; Thu, 20 Jan 2011 12:55:56 +0000 (UTC) Received: by wyf19 with SMTP id 19so586580wyf.13 for ; Thu, 20 Jan 2011 04:55:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=TzApWxS1PneNZfPjExjRDj5NPPJJmbtSdrkNvUFiSsI=; b=WpA/Scmyk76w7kqFULeyKm9m0f9tanqQSwpGOM0fx/qUFaT+9nFEsa2kNJMr81gqhJ tTbaQs+BGTiZR3T/Li5EccjHTyR+MUib42/I6AarcnyuVn5K+97Lpp1VBAu/CfZs87tR UAva4XUeDzFjf7aMzWZichzMjesxJ33HNAsec= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=AvWPWD9PwjX5XhLUJhl1vBKJQQz+Ia/1727byUcz1vf9FDcB3P4tSuzoXNgu5An5KH HElO/rOs2FIl69U/GL6rBlsYUolLRu+18lP6bClxT5QZpAanKtR2Y7444nkkaOZGLkrK osxIEjSov+3kpWaa8BvZwUiOPwNH3M6p7Okcc= MIME-Version: 1.0 Received: by 10.227.151.145 with SMTP id c17mr2293012wbw.139.1295528155117; Thu, 20 Jan 2011 04:55:55 -0800 (PST) Received: by 10.227.157.145 with HTTP; Thu, 20 Jan 2011 04:55:54 -0800 (PST) In-Reply-To: References: <201101200928.45264.freebsd-mips@dino.sk> Date: Thu, 20 Jan 2011 13:55:54 +0100 Message-ID: From: Monthadar Al Jaberi To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-mips@freebsd.org Subject: Re: RS / RSPRO FreeBSD X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2011 12:55:57 -0000 Just a note, I used tinybsd to generate a wireless configuration. Its easy to add extra files and ports to it. My image was around 47 MB with kernel (filesystem 40 MB), then I compressed it to around 10MB and run everything from RAM like Adrian noted. On Thu, Jan 20, 2011 at 10:17 AM, Adrian Chadd wrote: > On 20 January 2011 16:28, Milan Obuch wrote: > >>> There's two scripts to build an MFS root for my tplink AP. One builds >>> a normal one, one builds one using bsdbox (and creates symlinks.) >>> >> >> Which TP-Link model, please? I am going to examine some next week and it will >> be great to know if you succeeded to put FreeBSD on it already... > > WR-1043ND. > > You'll need a few patches and an alternate kernel config file to make > it somewhat work. > USB is broken. The switch PHY isn't yet fully supported so it's a dumb > switch. Other than that, it seems to work alright. > > I've moved back to doing my 11n/mips stuff on the rspro and I've left > the 1043ND running openwrt+ath9k. > > > Adrian > _______________________________________________ > 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" > -- //Monthadar Al Jaberi From owner-freebsd-mips@FreeBSD.ORG Fri Jan 21 20:47:53 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AEC97106566C for ; Fri, 21 Jan 2011 20:47:53 +0000 (UTC) (envelope-from vrtuff@yahoo.com) Received: from web33203.mail.mud.yahoo.com (web33203.mail.mud.yahoo.com [209.191.69.151]) by mx1.freebsd.org (Postfix) with SMTP id 721F68FC0C for ; Fri, 21 Jan 2011 20:47:53 +0000 (UTC) Received: (qmail 59702 invoked by uid 60001); 21 Jan 2011 20:21:13 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1295641273; bh=M2CYuf8+ayhebpEXoM6UJvOohyWQ7R7cQoJgiALprxo=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=cdyOCyw2ZBBM87AQHyLLbgkrfwm1T1581XJxblO+JUDbhAVrZyHo+keuY6HCBo4VUdHrpflZIAuxNiKjAJ34ZRDohgWatE0A5x1VNGzt66YtMfY6jYJ0d+gbZ9BH3IWFhRKPFH2MzTJtXKmE+xOtmnTYcVHNf4/dHUhQvPN8B40= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=PFGq7+f3ZxMSCiXE5O5qXa9NQ0E14RoC60WHffTX1pkG7d2arJohfY7IqWl9nWryki8aBhjv91w1z0rGtEMGj8b6dNqzTieVzxGJI7X3DBiOwBqsnX7+d6n9CBYE/P5jO3YgySxFgFulvrj2MFawYHlGUFqsginxtazfsdGCSbM=; Message-ID: <527911.58663.qm@web33203.mail.mud.yahoo.com> X-YMail-OSG: sUpbH_YVM1kRcgxas12GOXebnlfLR2XVgRGu4taOPW8Cq75 kQyA3u.q.uVNReGOCFjit.MgS8yA5y3OZ1bqS3W8Uvdp4XVoxG4XDWmo0tMl zpiPiAeFqL3qz_w9o3KahHoMU73hulwt.7_wZRC7oBpUC0tyU5RQZMEfC8gm WzTlU.pJEa_eM0Iduq1p8SIldLdR9OzWyN3gaeVq.t.Vdp0Svd5TcHfq3pKW uPrSlmRGlBIhNTkAqE2h0XGIe2sUF15DV5cny2QLMMEaHb8X1m1s3F0d9rk_ FxmvIDlmfnfG_dAfcstQ6IfrTCpF2hPbStZjEm5qWVK.HSTAgA67NoenyWZR muwPi5g-- Received: from [207.198.161.7] by web33203.mail.mud.yahoo.com via HTTP; Fri, 21 Jan 2011 12:21:13 PST X-Mailer: YahooMailRC/555 YahooMailWebService/0.8.108.291010 References: <201101200928.45264.freebsd-mips@dino.sk> Date: Fri, 21 Jan 2011 12:21:13 -0800 (PST) From: Youri Adonis To: Monthadar Al Jaberi , Adrian Chadd In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-mips@freebsd.org Subject: Re: RS / RSPRO FreeBSD X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jan 2011 20:47:53 -0000 Monthadar, can you share your kernel config? ----- Original Message ---- From: Monthadar Al Jaberi To: Adrian Chadd Cc: freebsd-mips@freebsd.org Sent: Thu, January 20, 2011 7:55:54 AM Subject: Re: RS / RSPRO FreeBSD Just a note, I used tinybsd to generate a wireless configuration. Its easy to add extra files and ports to it. My image was around 47 MB with kernel (filesystem 40 MB), then I compressed it to around 10MB and run everything from RAM like Adrian noted. On Thu, Jan 20, 2011 at 10:17 AM, Adrian Chadd wrote: > On 20 January 2011 16:28, Milan Obuch wrote: > >>> There's two scripts to build an MFS root for my tplink AP. One builds >>> a normal one, one builds one using bsdbox (and creates symlinks.) >>> >> >> Which TP-Link model, please? I am going to examine some next week and it will >> be great to know if you succeeded to put FreeBSD on it already... > > WR-1043ND. > > You'll need a few patches and an alternate kernel config file to make > it somewhat work. > USB is broken. The switch PHY isn't yet fully supported so it's a dumb > switch. Other than that, it seems to work alright. > > I've moved back to doing my 11n/mips stuff on the rspro and I've left > the 1043ND running openwrt+ath9k. > > > Adrian > _______________________________________________ > 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" > -- //Monthadar Al Jaberi _______________________________________________ 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 Jan 22 16:30:27 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D94E1065672 for ; Sat, 22 Jan 2011 16:30:27 +0000 (UTC) (envelope-from akmoterra@pbox.ttn.ru) Received: from pbox.ttn.ru (relay.ttn.ru [93.178.97.10]) by mx1.freebsd.org (Postfix) with ESMTP id A9B488FC14 for ; Sat, 22 Jan 2011 16:30:26 +0000 (UTC) Received: from [46.146.110.209] (helo=LigitaAhrems(tel.2953..)) by ttn.ru with esmtpa id 1Pgg3e-000OxF-53 for freebsd-mips@freebsd.org; Sat, 22 Jan 2011 19:11:23 +0300 From: "Ligita Ahrems(tel.2953..)" To: freebsd-mips@freebsd.org Content-Type: text/plain; charset="UTF-8" Date: Sat, 22 Jan 2011 18:11:33 +0200 X-Sender: akmoterra@pbox.ttn.ru by ttn.ru X-Actual-Recipient: freebsd-mips@freebsd.org by ttn.ru Message-Id: <20110122163027.3D94E1065672@hub.freebsd.org> Subject: Piedalies Vis Latvijas miiklu mineshanas maratonaa! Jums ir ielozeeta miikla Nr. 54978 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Ligita Ahrems\(tel.2953..\)" List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Jan 2011 16:30:27 -0000 Tiksi gala ar tadu miiklu: Taatad - Kas ir tas: seksigs augums, skaistas kruutis, apeteligs dibens.. Ir latviete, ir lunkana kaa melnaa pantera.. Nav izsledzams, ka ir tava darba biedrene.. Atbildi skaties te: paligs.est-a-la-maison. com (izdzes tuksumu un nokope) Uzmanies, miklas atminejums tevi var shokeet!