From owner-freebsd-mips@FreeBSD.ORG Mon Nov 2 01:18:59 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 42894106568D; Mon, 2 Nov 2009 01:18:59 +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 02D078FC1D; Mon, 2 Nov 2009 01:18:58 +0000 (UTC) Received: by pwj8 with SMTP id 8so1698665pwj.3 for ; Sun, 01 Nov 2009 17:18:58 -0800 (PST) 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=Kr1Jdnrd1UNxenOoIN2Tuf4pNa4K46IZmwlTHWYM7fo=; b=BD0S9pvtOEF2Ip6/ZjVpSofxcx8+Q/2snqvTFmxRPF41LP937EApCS8YMIgwYGUVnx 0UIJu6+vB77NUjN21baFngNBYrrBSHOzD5v1uCVv86VRIKEPvbRiTHUBTtob8ocZJRgJ qS6FyW2FQNyjLttAXouUzf3BmE/p/xelWgBgw= 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=dFLB1qs5demrEAo0MiPuehLcJ2glrFOn7eEV2Mx8NdfK2WfVvWvKOc4bBpIJ0N+6MZ yxCaVa7BBgCCN2oqhlXJ5pi/eyCZHI0Yk9it1dQrGhPmGS0yfn7+WV9IDWikPOfJyfCS DPfbO26pnUtuybkAcsgKesXhKNZdHaUGaTUAk= Received: by 10.115.27.10 with SMTP id e10mr6700933waj.148.1257124737761; Sun, 01 Nov 2009 17:18:57 -0800 (PST) Received: from ?192.168.10.84? (59-125-13-44.HINET-IP.hinet.net [59.125.13.44]) by mx.google.com with ESMTPS id 20sm1107449pzk.1.2009.11.01.17.18.52 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 01 Nov 2009 17:18:56 -0800 (PST) Sender: Eric From: Eric To: Oleksandr Tymoshenko In-Reply-To: <4AE92D94.2070700@freebsd.org> References: <1256528272.31398.28.camel@localhost> <20091026051144.GA89831@citylink.fud.org.nz> <1256535242.31398.32.camel@localhost> <4AE92D94.2070700@freebsd.org> Content-Type: text/plain; charset="UTF-8" Date: Mon, 02 Nov 2009 09:18:45 +0800 Message-ID: <1257124725.3097.2.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-mips@freebsd.org, Andrew Thompson 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: Mon, 02 Nov 2009 01:18:59 -0000 On Wed, 2009-10-28 at 22:52 -0700, Oleksandr Tymoshenko wrote: > 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. > There are some excessive code in the patch. e.g. GEOM will take care for > use that data offset and size are sector-size aligned/multiple. So I reworked > your patch a little bit: > http://people.freebsd.org/~gonzo/mips/mx25.diff > > Could you, please, test it and let me know if it works for you. > > Thanks! It cannot format redboot partition by newfs: uhub1: 2 ports with 2 removable, self powered redboot/fbsd-root.uzip: 6144 x 8192 blocks Trying to mount root from ufs:/dev/redboot/fbsd-root.uzip warning: no time-of-day clock registered, system time will not be set accurately start_init: trying /etc/init eval: cannot create /flash/hostid: Read-only file system /etc/rc: WARNING: could not store hostuuid in /flash/hostid. mount: /dev/ufs/config : No such file or directory Mounting /etc/fstab filesystems failed, startup aborted ERROR: ABORTING BOOT (sending SIGTERM to parent)! Oct 27 01:58:39 init: /bin/sh on /etc/rc terminated abnormally, going to single user mode Enter full pathname of shell or RETURN for /bin/sh: # # # df Filesystem 512-blocks Used Avail Capacity Mounted on /dev/redboot/fbsd-root.uzip 98078 62252 27980 69% / devfs 2 2 0 100% /dev # ls /dev/redboot FIS directory RedBoot config fbsd-kern fbsd-root.uzip vmlinux.bin.l7 RedBoot fbsd-data fbsd-root rootfs # newfs -n -o space -L config -O 1 -b 4096 -f 512 /dev/redboot/fbsd-data /dev/redboot/fbsd-data: 0.6MB (1280 sectors) block size 4096, fragment size 512 using 4 cylinder groups of 0.16MB, 41 blks, 96 inodes. super-block backups (for fsck -b #) at: newfs: wtfs: 20480 bytes at sector 32: Invalid argument # reboot Waiting (max 60 seconds) for system process `vnlru' to stop...done Waiting (max 60 seconds) for system process `bufdaemon' to stop...done Waiting (max 60 seconds) for system process `syncer' to stop... Syncing disks, vnodes remaining...0 0 0 0 0 0 0 0 done All buffers synced. Uptime: 3m15s Rebooting... +phyReg16Val = 1b2b phyReg20Val = d6d Ethernet eth0: MAC address 00:03:7f:ff:ff:fe IP: 192.168.1.81/255.255.255.0, Gateway: 0.0.0.0 Default server: 192.168.1.254 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 RedBoot>