From owner-freebsd-mips@FreeBSD.ORG Tue Oct 27 02:13:46 2009 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 C1ED11065676; Tue, 27 Oct 2009 02:13:46 +0000 (UTC) (envelope-from awmdpt@gmail.com) Received: from mail-pw0-f44.google.com (mail-pw0-f44.google.com [209.85.160.44]) by mx1.freebsd.org (Postfix) with ESMTP id 841938FC26; Tue, 27 Oct 2009 02:13:46 +0000 (UTC) Received: by pwj8 with SMTP id 8so1781755pwj.3 for ; Mon, 26 Oct 2009 19:13:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=PFj7nwOU9A0Ehno1jhyOj9i7ElkOVw6U/TthoJ7Fy+E=; b=tCfMo+Mw9AZfnQuQB1p9FnXQKVn4cCoDQcT5+O9SNoe3Rewf2hhQ78DFofCj8g8xSe iRiVXVZXTC0v1X1SjdbfQK4KHFmxgrVfr7IjPu1mXyGN1SeuiLW6L6QCVyFOWNWOGz+/ t5JCerZe3+9e1abOrAUg7+xpSPNUJdF+J8pvQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=xqa2sVkq8vFI/VOtxs9sBy2BgE8iqiksWI1qLMXun0AIfBrmRwXf3g9T2NTle5a+is mQId/sl1Yf3Ihfxq24dzydGuhrhlemqVQpLmTX+fyTc73O4QppKXkLa6arAGHjbRtn+r d2SoD44Pflz9IWLojzjHI4Zjdlh70yt9ir2Is= Received: by 10.114.7.13 with SMTP id 13mr5247946wag.82.1256609626269; Mon, 26 Oct 2009 19:13:46 -0700 (PDT) Received: from ?192.168.10.117? (114-33-76-31.HINET-IP.hinet.net [114.33.76.31]) by mx.google.com with ESMTPS id 22sm400606pxi.6.2009.10.26.19.13.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 26 Oct 2009 19:13:44 -0700 (PDT) Sender: Eric From: Eric To: Andrew Thompson In-Reply-To: <1256535242.31398.32.camel@localhost> References: <1256528272.31398.28.camel@localhost> <20091026051144.GA89831@citylink.fud.org.nz> <1256535242.31398.32.camel@localhost> Content-Type: text/plain; charset="UTF-8" Date: Tue, 27 Oct 2009 10:13:40 +0800 Message-ID: <1256609620.31398.40.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: gonzo@FreeBSD.org, freebsd-mips@FreeBSD.org Subject: Re: Add Wistron RPAA-82 board support 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, 27 Oct 2009 02:13:46 -0000 On Mon, 2009-10-26 at 13:34 +0800, Eric wrote: > On Mon, 2009-10-26 at 18:11 +1300, Andrew Thompson wrote: > > On Mon, Oct 26, 2009 at 11:37:52AM +0800, Eric wrote: > > > Hi > > > I added my ar7161 board support last weekend. > > > It's flash is come from Spansion. > > > > This is great. Oleksandr has also just added write support which will > > conflict/duplicate some of your changes so have a look and merge any > > outstanding changes you have made (s25fl128 support). > > > > http://svn.freebsd.org/viewvc/base?view=revision&revision=198465 > > > > cheers, > > Andrew > > At first, I have my own write support, then I saw hit commit today. > So this patch already merged his commit. > It seems work well on my board. I can put both OpenWrt and FreeBSD on the same board. The only problem for FreeBSD is that FreeBSD kernel has no dedicated entry address. OpenWrt put 'j kernel_entry' at load address, so it no need to change redboot config after firmware upgrade. ===================== RedBoot ========================== RedBoot(tm) bootstrap and debug environment [ROMRAM] Non-certified release, version v1.0 - built 12:26:39, May 18 2009 Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc. Board: RPAA-82 RAM: 0x80000000-0x84000000, [0x80051290-0x80fe1000] available FLASH: 0xbf000000 - 0xbfff0000, 256 blocks of 0x00010000 bytes each. == Executing boot script in 3.000 seconds - enter ^C to abort ^C RedBoot> fis list Name FLASH addr Mem addr Length Entry point RedBoot 0xBF000000 0xBF000000 0x00040000 0x00000000 vmlinux.bin.l7 0xBF040000 0x80060000 0x00100000 0x80060000 rootfs 0xBF140000 0xBF140000 0x00400000 0x00000000 fbsd-kern 0xBF540000 0x80060000 0x00200000 0x800976C0 fbsd-root 0xBF740000 0xBF740000 0x00800000 0x00000000 fbsd-data 0xBFF40000 0xBFF40000 0x000A0000 0x00000000 FIS directory 0xBFFE0000 0xBFFE0000 0x0000F000 0x00000000 RedBoot config 0xBFFEF000 0xBFFEF000 0x00001000 0x00000000 ===================== FreeBSD ========================== Tue Oct 27 01:58:42 UTC 2009 FreeBSD/mips (ar71xx) (ttyu0) login: root Oct 27 01:59:09 ar71xx login: ROOT LOGIN (root) ON ttyu0 Copyright (c) 1992-2009 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. # df -h Filesystem Size Used Avail Capacity Mounted on /dev/redboot/fbsd-root.uzip 48M 30M 14M 69% / devfs 1.0K 1.0K 0B 100% /dev /dev/redboot/fbsd-data 528K 7.5K 478K 2% /flash /dev/md0 3.6M 144K 3.2M 4% /var # mount /dev/redboot/fbsd-root.uzip on / (ufs, local, noatime, read-only) devfs on /dev (devfs, local) /dev/redboot/fbsd-data on /flash (ufs, local, noatime) /dev/md0 on /var (ufs, local)