From owner-freebsd-mips@FreeBSD.ORG Fri Mar 14 12:56:55 2014 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2CAA49E5 for ; Fri, 14 Mar 2014 12:56:55 +0000 (UTC) Received: from mail-we0-x232.google.com (mail-we0-x232.google.com [IPv6:2a00:1450:400c:c03::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BC3FF6D3 for ; Fri, 14 Mar 2014 12:56:54 +0000 (UTC) Received: by mail-we0-f178.google.com with SMTP id u56so2070055wes.37 for ; Fri, 14 Mar 2014 05:56:53 -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:content-transfer-encoding; bh=KfKjZjl+pPcd4R2D4YU0CFYTX2V+mw0UE0BCOMRnKtA=; b=jrHJ/UXq8LFKyIywcuMm44oTy7a3Ck4d3ZOZzxWedjTY2mG46vs3fTxL+Oo0o6W+T0 F/QlE6DlpGj8smJM8FC/+A0nBdKQOgBxa0TTjIPo7IlehkYshsVorGo41aad4LCX1GDv 3e5TmuaLYtooXMJ+Weq22Maga1320Byd1MS6yiXOH2vxVmABCI5UT+HenIECGc6G3h0M 1DT2+5JTvAgNjx/U1d4U8eqIqOL+jqFGHQcBpS3Ofpi00RhsTpRxaE9VvhrMMlnJQ6lT YYVDolR4pj2aDWqz0ZopLaldtVMZxvzD/8WoOA+nf1VgTV/9dBwUiJIteC2Jp46Vspq5 T/gA== MIME-Version: 1.0 X-Received: by 10.180.19.138 with SMTP id f10mr6105647wie.11.1394801813172; Fri, 14 Mar 2014 05:56:53 -0700 (PDT) Received: by 10.216.40.72 with HTTP; Fri, 14 Mar 2014 05:56:53 -0700 (PDT) In-Reply-To: <45AD3205-0198-4F00-9EA7-1D46423B7EA7@gmail.com> References: <45AD3205-0198-4F00-9EA7-1D46423B7EA7@gmail.com> Date: Fri, 14 Mar 2014 09:56:53 -0300 Message-ID: Subject: Re: RouterBoard 493G question and AR8327 hardware to donate.. From: Luiz Otavio O Souza To: Ben Perrault Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-mips@freebsd.org" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Mar 2014 12:56:55 -0000 On 12 March 2014 20:49, Ben Perrault wrote: > All, > > So I have a MikroTik RB493G, and I while I've got no problems networking = booting it or getting an NFS root, via a slightly modified AR71xx config an= d Adrian's excellent build scripts. > > But what I would like to do is get a bootable kernel / MFS image onto tha= t box so it's self contained. I've tried booting OpenWRT onto it and using = their wget2nand to flash various types of images onto it - with no avail. (= if only there was uboot for these things ) > > I've searched the archives and found mention, from Luiz, on creating a ya= ffs image and write it to the NAND. But I'm not entirely sure how to do thi= s ( i've looked at the docs, and am still a little lost ). It was for a RB4= 50, but it seems most things regarding the RB450/450G apply to the RB493G. > > So does anyone have an idea on how to do that? Is it even possible? Yes, it is possible, but as you see, we don't have all the tools to do that right now. On my RB450 days (~2009) i remember that you need a 4MB YAFFS2 image containing the kernel (just /kernel) right after the bootloader and the RB will boot from that image. The kernel file can be gziped, which helps a lot. I need to add and test some serialisation on SPI bus so NAND and the MMC/SPI (and gpio for CPLD) can coexist without problems. But, the thing is, to test the SPI serialisation i need GPIO interrupt support, which is the next on my list (and then the SPI stuff). Regards, Luiz > > > Additionally - in a few weeks - I'll have a spare MikroTik CRS-125-24g-1S= -2HnD-In ( which is similar to the RB2011, but with a 24 gigabit switch por= ts and a nifty programable LCD panel ) that I would like to donate to get s= upport for it. It's AR8327 based, which I know just got support in head. I'= m assuming adrian would be the person to talk to, but I could be wrong. Is = there interest? It would be a neat box for soft switching stuff, for sure. I have seen one of those, the LCD with touchscreen is... appealing =3D) The first thing i could thought was how i could get the FreeBSD logo on that screen =3D)