From owner-freebsd-mips@FreeBSD.ORG Sun Nov 1 21:25:33 2009 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C4D7C106568F; Sun, 1 Nov 2009 21:25:33 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.freebsd.org (Postfix) with ESMTP id 9D7188FC15; Sun, 1 Nov 2009 21:25:33 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.3/8.14.3) with ESMTP id nA1MNGPc024279; Sun, 1 Nov 2009 17:23:16 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.3/8.14.3/Submit) id nA1MNGVX024269; Sun, 1 Nov 2009 22:23:16 GMT (envelope-from tinderbox@freebsd.org) Date: Sun, 1 Nov 2009 22:23:16 GMT Message-Id: <200911012223.nA1MNGVX024269@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Cc: Subject: [releng_8 tinderbox] failure on mips/mips X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Nov 2009 21:25:34 -0000 TB --- 2009-11-01 22:13:08 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2009-11-01 22:13:08 - starting RELENG_8 tinderbox run for mips/mips TB --- 2009-11-01 22:13:08 - cleaning the object tree TB --- 2009-11-01 22:13:18 - cvsupping the source tree TB --- 2009-11-01 22:13:18 - /usr/bin/csup -z -r 3 -g -L 1 -h cvsup.sentex.ca /tinderbox/RELENG_8/mips/mips/supfile TB --- 2009-11-01 22:13:48 - building world TB --- 2009-11-01 22:13:48 - MAKEOBJDIRPREFIX=/obj TB --- 2009-11-01 22:13:48 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2009-11-01 22:13:48 - TARGET=mips TB --- 2009-11-01 22:13:48 - TARGET_ARCH=mips TB --- 2009-11-01 22:13:48 - TZ=UTC TB --- 2009-11-01 22:13:48 - __MAKE_CONF=/dev/null TB --- 2009-11-01 22:13:48 - cd /src TB --- 2009-11-01 22:13:48 - /usr/bin/make -B buildworld >>> World build started on Sun Nov 1 22:13:49 UTC 2009 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries [...] cc -O -pipe -EL -msoft-float -G0 -mno-dsp -mabicalls -I/src/lib/libc/include -I/src/lib/libc/../../include -I/src/lib/libc/mips -DNLS -DSOFTFLOAT -D__DBINTERFACE_PRIVATE -I/src/lib/libc/../../contrib/gdtoa -DINET6 -I/obj/mips/src/lib/libc -I/src/lib/libc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE -I/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/src/lib/libc/rpc -DYP -DNS_CACHING -DSYMBOL_VERSIONING -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c /src/lib/libc/string/wmemmove.c cc -O -pipe -EL -msoft-float -G0 -mno-dsp -mabicalls -I/src/lib/libc/include -I/src/lib/libc/../../include -I/src/lib/libc/mips -DNLS -DSOFTFLOAT -D__DBINTERFACE_PRIVATE -I/src/lib/libc/../../contrib/gdtoa -DINET6 -I/obj/mips/src/lib/libc -I/src/lib/libc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE -I/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/src/lib/libc/rpc -DYP -DNS_CACHING -DSYMBOL_VERSIONING -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c /src/lib/libc/string/wmemset.c building static c library ranlib libc.a cat /src/lib/libc/mips/Symbol.map /src/lib/libc/db/Symbol.map /src/lib/libc/compat-43/Symbol.map /src/lib/libc/gdtoa/Symbol.map /src/lib/libc/gen/Symbol.map /src/lib/libc/gmon/Symbol.map /src/lib/libc/inet/Symbol.map /src/lib/libc/locale/Symbol.map /src/lib/libc/nameser/Symbol.map /src/lib/libc/net/Symbol.map /src/lib/libc/nls/Symbol.map /src/lib/libc/posix1e/Symbol.map /src/lib/libc/quad/Symbol.map /src/lib/libc/regex/Symbol.map /src/lib/libc/resolv/Symbol.map /src/lib/libc/stdio/Symbol.map /src/lib/libc/stdlib/Symbol.map /src/lib/libc/stdtime/Symbol.map /src/lib/libc/string/Symbol.map /src/lib/libc/sys/Symbol.map /src/lib/libc/rpc/Symbol.map /src/lib/libc/uuid/Symbol.map /src/lib/libc/xdr/Symbol.map /src/lib/libc/yp/Symbol.map | cpp - - | awk -v vfile=/src/lib/libc/Versions.def -f /src/share/mk/version_gen.awk > Version.map File , line 507: Undefined library version `FBSD_1.2'. File , line 508: Symbol `getpagesizes' outside version scope. 2 error(s) total. *** Error code 1 Stop in /src/lib/libc. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2009-11-01 22:23:16 - WARNING: /usr/bin/make returned exit code 1 TB --- 2009-11-01 22:23:16 - ERROR: failed to build world TB --- 2009-11-01 22:23:16 - 437.46 user 84.12 system 608.02 real http://tinderbox.freebsd.org/tinderbox-releng_8-RELENG_8-mips-mips.full 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> From owner-freebsd-mips@FreeBSD.ORG Mon Nov 2 01:43:41 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 64A1A106566C; Mon, 2 Nov 2009 01:43:41 +0000 (UTC) (envelope-from andy@fud.org.nz) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id 288508FC08; Mon, 2 Nov 2009 01:43:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id 0313EFFC2; Mon, 2 Nov 2009 14:23:53 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w8be-FDpkzqN; Mon, 2 Nov 2009 14:23:47 +1300 (NZDT) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP; Mon, 2 Nov 2009 14:23:46 +1300 (NZDT) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id 0CE1A11475; Mon, 2 Nov 2009 14:23:46 +1300 (NZDT) Date: Mon, 2 Nov 2009 14:23:45 +1300 From: Andrew Thompson To: Eric Message-ID: <20091102012345.GA49898@citylink.fud.org.nz> References: <1256528272.31398.28.camel@localhost> <20091026051144.GA89831@citylink.fud.org.nz> <1256535242.31398.32.camel@localhost> <4AE92D94.2070700@freebsd.org> <1257124725.3097.2.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1257124725.3097.2.camel@localhost> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: Oleksandr Tymoshenko , 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: Mon, 02 Nov 2009 01:43:41 -0000 On Mon, Nov 02, 2009 at 09:18:45AM +0800, Eric wrote: > On Wed, 2009-10-28 at 22:52 -0700, Oleksandr Tymoshenko wrote: > > 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 The problem here is the flash sector size is 64k. Pretending the flash has a 512b sector isnt the right way, you would be better off having a geom class to do the transformation+caching. Andrew From owner-freebsd-mips@FreeBSD.ORG Mon Nov 2 01:45: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 679DB1065672; Mon, 2 Nov 2009 01:45:59 +0000 (UTC) (envelope-from awmdpt@gmail.com) Received: from mail-px0-f190.google.com (mail-px0-f190.google.com [209.85.216.190]) by mx1.freebsd.org (Postfix) with ESMTP id 2F0F48FC08; Mon, 2 Nov 2009 01:45:58 +0000 (UTC) Received: by pxi28 with SMTP id 28so2891224pxi.7 for ; Sun, 01 Nov 2009 17:45: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=SZA+isMQ9OvZSjXs0YHxPbrB53IlVH+/CbYYYSeCS0U=; b=WU/QBYLdCLzPNHbW2W5zO3UYTfqLm5SSbWqU7tk74yvCsgfLMzoar1M1jRm2nuksCh AB6ZusANs98dPwR5KCXoyUMTmgapvVLX256apf9Az7GtNcA4AkrsSDuE6+kikSMcW4GC bHyZOkJrwK/8nyCPAiqVuq+C+5CvqRC7pNJzs= 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=aTeV3DDdIbnKMsd5rWJU35h2GC4YIhVN+f6DvMLDdtnyNaMQ6NscC9fydg/eWFoVhk mg9OLZBa+0bGxPU2yvPDKJayapDeC0J31mO500I0koF4BxydymXpT+2lkWvD+uzPSRtT 65q8DpoO8KsPKfOJ4lwgNwSabwJofJWfaffmw= Received: by 10.115.25.9 with SMTP id c9mr6597608waj.229.1257126358648; Sun, 01 Nov 2009 17:45:58 -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 22sm986073pzk.2.2009.11.01.17.45.47 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 01 Nov 2009 17:45:57 -0800 (PST) Sender: Eric From: Eric To: Andrew Thompson In-Reply-To: <20091102012345.GA49898@citylink.fud.org.nz> References: <1256528272.31398.28.camel@localhost> <20091026051144.GA89831@citylink.fud.org.nz> <1256535242.31398.32.camel@localhost> <4AE92D94.2070700@freebsd.org> <1257124725.3097.2.camel@localhost> <20091102012345.GA49898@citylink.fud.org.nz> Content-Type: text/plain; charset="UTF-8" Date: Mon, 02 Nov 2009 09:45:38 +0800 Message-ID: <1257126338.3097.7.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: Oleksandr Tymoshenko , 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: Mon, 02 Nov 2009 01:45:59 -0000 On Mon, 2009-11-02 at 14:23 +1300, Andrew Thompson wrote: > On Mon, Nov 02, 2009 at 09:18:45AM +0800, Eric wrote: > > On Wed, 2009-10-28 at 22:52 -0700, Oleksandr Tymoshenko wrote: > > > 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 > > The problem here is the flash sector size is 64k. Pretending the flash > has a 512b sector isnt the right way, you would be better off having a > geom class to do the transformation+caching. > > > Andrew So, the better way is that add a new geom class to support different erase and program size? I referred XOR flash sys/dev/cfi/cfi_disk.c at first. It set disk sector size to 512 even erase size is 128k. -- Best Regards, Eric L. Chen From owner-freebsd-mips@FreeBSD.ORG Mon Nov 2 04:17:04 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 64D30106568F; Mon, 2 Nov 2009 04:17:04 +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 049A48FC16; Mon, 2 Nov 2009 04:17:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id nA248Q2E062002; Sun, 1 Nov 2009 21:08:31 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sun, 01 Nov 2009 21:08:43 -0700 (MST) Message-Id: <20091101.210843.-726381605.imp@bsdimp.com> To: lihong@ieee.org From: "M. Warner Losh" In-Reply-To: <1257126338.3097.7.camel@localhost> References: <1257124725.3097.2.camel@localhost> <20091102012345.GA49898@citylink.fud.org.nz> <1257126338.3097.7.camel@localhost> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: gonzo@freebsd.org, freebsd-mips@freebsd.org, andy@fud.org.nz 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 04:17:04 -0000 In message: <1257126338.3097.7.camel@localhost> Eric writes: : On Mon, 2009-11-02 at 14:23 +1300, Andrew Thompson wrote: : > On Mon, Nov 02, 2009 at 09:18:45AM +0800, Eric wrote: : > > On Wed, 2009-10-28 at 22:52 -0700, Oleksandr Tymoshenko wrote: : > > > 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 : > : > The problem here is the flash sector size is 64k. Pretending the flash : > has a 512b sector isnt the right way, you would be better off having a : > geom class to do the transformation+caching. : > : > : > Andrew : : So, the better way is that add a new geom class to support different : erase and program size? : I referred XOR flash sys/dev/cfi/cfi_disk.c at first. It set disk sector : size to 512 even erase size is 128k. Yea. That's not quite right... when I did the spi flash, I exported the actual write sector size. on SPI flash, however, you don't have to erase it: the controller will do that for you (it is less efficient, however). We do need to have a good geom layer that does this. We also need a good flash file system as well... Warner