From owner-freebsd-arm@FreeBSD.ORG Mon Jul 5 07:17:46 2010 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 44493106566C for ; Mon, 5 Jul 2010 07:17:46 +0000 (UTC) (envelope-from hvanthan@gmail.com) Received: from mail-px0-f182.google.com (mail-px0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 119B98FC16 for ; Mon, 5 Jul 2010 07:17:45 +0000 (UTC) Received: by pxi4 with SMTP id 4so373923pxi.13 for ; Mon, 05 Jul 2010 00:17:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=IV1/65Wu6zAGArzkM0XZ/oVVr0PqeYw1g1DNQZDF7VA=; b=sND1gpHpUSqla0Y+G990fCu/ncA/zgGhmjqMV4I3OrG71eK0Cp+JGqybA3BQCfDWRe jYKcnBnNfPFn6ZdX7Sd/IaQXF9CvNOh40ndxJJ+b9TRMiFsYW3UxdcybBWg1CIGV5xZ0 yXzDtooW/rhv12byLSmIZ8cumwqVVXO+CaFaI= 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=ps48ae/oV9Y9IF5J39Njucvz4vYkB6iS21S8wQIWFOXHAwAdwrSNuk/zaxAUxhASMn X+qfg9hYWFDoBhuNJ/63SWvTk1/TJvQJxOkVOGsfmtBHqwIYDLTysUXR9UolkVnugrE/ ltlnTK3FvuENbkH5Lmr1A+1CKHCngpZxaEkOQ= MIME-Version: 1.0 Received: by 10.114.103.1 with SMTP id a1mr2705177wac.29.1278314256090; Mon, 05 Jul 2010 00:17:36 -0700 (PDT) Received: by 10.114.209.15 with HTTP; Mon, 5 Jul 2010 00:17:35 -0700 (PDT) In-Reply-To: <20100630150100.5a62ac48@bender> References: <20100629.140202.177810546962018279.imp@bsdimp.com> <20100630115257.597789bb@bender> <20100630150100.5a62ac48@bender> Date: Mon, 5 Jul 2010 14:17:35 +0700 Message-ID: From: Ho Van Than To: Andrew Turner Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-arm@freebsd.org Subject: Re: Porting FreeBSD-S3c2410 - Root file system X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jul 2010 07:17:46 -0000 Hi Andrew, I did it, thanks for your help. But I ping command in freebsd is very slow than linux OS, did you met that problem? With freeBSD, ping result /sbin/ping 192.168.9.1 64 bytes from 192.168.9.1: icmp_seq=14 ttl=255 time=19.896 ms 64 bytes from 192.168.9.1: icmp_seq=15 ttl=255 time=19.645 ms 64 bytes from 192.168.9.1: icmp_seq=16 ttl=255 time=9.819 ms 64 bytes from 192.168.9.1: icmp_seq=17 ttl=255 time=10.279 ms 64 bytes from 192.168.9.1: icmp_seq=18 ttl=255 time=10.250 ms 64 bytes from 192.168.9.1: icmp_seq=19 ttl=255 time=9.780 ms --- 192.168.9.1 ping statistics --- 347 packets transmitted, 338 packets received, 2.6% packet loss round-trip min/avg/max/stddev = 8.947/19.267/1049.740/56.342 ms With Linux Ping result [root@utu-Linux]\$ ping 192.168.9.1 PING 192.168.9.1 (192.168.9.1): 56 data bytes PING 192.168.9.1 (192.168.9.1): 56 data bytes 64 bytes from 192.168.9.1: seq=0 ttl=255 time=2.231 ms 64 bytes from 192.168.9.1: seq=1 ttl=255 time=1.497 ms 64 bytes from 192.168.9.1: seq=2 ttl=255 time=1.325 ms 64 bytes from 192.168.9.1: seq=3 ttl=255 time=1.566 ms --- 192.168.9.1 ping statistics --- 16 packets transmitted, 16 packets received, 0% packet loss round-trip min/avg/max = 1.325/1.533/2.231 ms On Wed, Jun 30, 2010 at 10:01 AM, Andrew Turner wrote: > On Wed, 30 Jun 2010 07:40:58 +0700 > Ho Van Than wrote: > > > Hi, > > > > I patched dm9000 to source code and compiled ok but still not yet > > success. I have a question at booting time "dm9000" auto run with > > kernel or we have to manual run it. (sorry I am newbie in FreeBSD). > > The patch only provides the driver. It doesn't contain the changes > required to attach the driver to the rest of the system as it depends > on how the chip is attached to the micro. Assuming it is connected to > the memory bus you should only need to (within sys/arm/s3c2xx0): > > * Edit s3c24x0_machdep.c to add an entry to s3c24x0_devmap. You should > be able to copy one of the other entries and change the first three > fields (virtual address, physical address and size). Set the virtual > address to something free in the kernel space (above 0xc0000000). > 0xe8000000 should work. The physical address is the address the > DM9000 is attached to, this will depend on which chip select it is > attached to. The size is the size of the register space on the > DM9000, 0x100. > * Edit s3c24x0.c and add to s3c24x0_attach a call bus_space_map. You > will need to give it the physical address and size from above. You > can create the handle for the last argument for this look in > s3c2xx0var.h at the _ioh entries in struct s3c2xx0_softc. > * In the same function add the following just before the call to > bus_space_probe: > > child = s3c24x0_add_child(dev, 0, "dme", 0); > bus_set_resource(child, SYS_RES_MEMORY, 0, , 0x100); > > Change the virtual address to what you set it to in the first step. > > I've been working on simplifying this process but haven't finished it > yet. > > Andrew > > -- > Andrew Turner > WhiteQueue Consulting http://whitequeue.com/ > Custom FreeBSD and Linux development > > From owner-freebsd-arm@FreeBSD.ORG Mon Jul 5 09:04:31 2010 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6FFF01065679 for ; Mon, 5 Jul 2010 09:04:31 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by mx1.freebsd.org (Postfix) with ESMTP id 3A40E8FC24 for ; Mon, 5 Jul 2010 09:04:30 +0000 (UTC) Received: from compute2.internal (compute2.internal [10.202.2.42]) by gateway1.messagingengine.com (Postfix) with ESMTP id 95BFD113D03; Mon, 5 Jul 2010 05:04:28 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute2.internal (MEProxy); Mon, 05 Jul 2010 05:04:28 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=date:from:to:cc:subject:message-id:in-reply-to:references:mime-version:content-type:content-transfer-encoding; s=smtpout; bh=Z/Gv3owrtg46jG4a5hh8IxoEkoo=; b=VoSRMyG1FaiEn4rG3Zqa/+8jOA+bSc/7UToM7MU2YaeloZjwgFfzUmHQOP6QblMzpd84q51XlSDESp1HWn4EdS8GhM3O8Cs6W+xNZCjAqSjUMCyoeD2qjFuptugaqfcW9/L+TUVOfwc7KSc90sY2ueHlCf0J1GZfa2yNdhudEiY= X-Sasl-enc: bZAYe5TBG2g+tQ/FEiOiK6fiaWahuHcB9f1v7lsTLKng 1278320660 Received: from bender (201.244.69.111.dynamic.snap.net.nz [111.69.244.201]) by mail.messagingengine.com (Postfix) with ESMTPA id 3E7AD4F414A; Mon, 5 Jul 2010 05:04:19 -0400 (EDT) Date: Mon, 5 Jul 2010 21:04:43 +1200 From: Andrew Turner To: Ho Van Than Message-ID: <20100705210443.01bc0efd@bender> In-Reply-To: References: <20100629.140202.177810546962018279.imp@bsdimp.com> <20100630115257.597789bb@bender> <20100630150100.5a62ac48@bender> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.18.7; i386-portbld-freebsd8.0) X-Pirate: Arrrr Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: Porting FreeBSD-S3c2410 - Root file system X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jul 2010 09:04:31 -0000 On Mon, 5 Jul 2010 14:17:35 +0700 Ho Van Than wrote: > Hi Andrew, > > I did it, thanks for your help. But I ping command in freebsd is very > slow than linux OS, did you met that problem? That is because the code polls for any data off the chip. I only got the driver to the point it would work for me, it still needs work. Andrew -- Andrew Turner WhiteQueue Consulting http://whitequeue.com/ Custom FreeBSD and Linux development From owner-freebsd-arm@FreeBSD.ORG Mon Jul 5 11:06:50 2010 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E1DD2106564A for ; Mon, 5 Jul 2010 11:06:50 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B74468FC19 for ; Mon, 5 Jul 2010 11:06:50 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o65B6opr079139 for ; Mon, 5 Jul 2010 11:06:50 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o65B6ouv079137 for freebsd-arm@FreeBSD.org; Mon, 5 Jul 2010 11:06:50 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 5 Jul 2010 11:06:50 GMT Message-Id: <201007051106.o65B6ouv079137@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-arm@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-arm@FreeBSD.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jul 2010 11:06:51 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o arm/134368 arm [patch] nslu2_led driver for the LEDs on the NSLU2 o arm/134338 arm [patch] Lock GPIO accesses on ixp425 2 problems total. From owner-freebsd-arm@FreeBSD.ORG Tue Jul 6 16:12:43 2010 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2258E106564A for ; Tue, 6 Jul 2010 16:12:43 +0000 (UTC) (envelope-from yohanes@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id E25838FC15 for ; Tue, 6 Jul 2010 16:12:42 +0000 (UTC) Received: by iwn35 with SMTP id 35so5378456iwn.13 for ; Tue, 06 Jul 2010 09:12:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=ppXs5eRNjg+EuPBAcqtzo9h3Ut0l9kX5MQhTM9GMz/E=; b=ByEMD/FVj/Idi3S4wXn3ZL8PlD+rofgLgGDGw+HxIMblxBmyWrmMZ6qiWhjJJmKl81 m7KOXO2vBqZRNdRMXRjLxmRU54r4+xQ1cx9KQbYkoRt78t1uArk3uawnyj/QOWElLRFm pIYE0cJSZC/7dXM2ksbBbR/1YjXaJcYadibaw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=nvc/+rmQU5iSROYmr3/7r3ze43Vl5yL4zCZlva1G/iPix6dw/NWFtN+T7fitW4x1BZ I2mMiSc+YDhDxhkB4OVUeE4KUaVHemWwsEcJRusWwwKiGTr8/mErnB6kMS0W7ZFdMhJY ftZoKjLBwDWQOYDBC2dBf/rL0IHM6iGyc+Z7A= Received: by 10.42.5.74 with SMTP id 10mr1538426icv.23.1278432761869; Tue, 06 Jul 2010 09:12:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.208.9 with HTTP; Tue, 6 Jul 2010 09:12:21 -0700 (PDT) From: Yohanes Nugroho Date: Tue, 6 Jul 2010 23:12:21 +0700 Message-ID: To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=UTF-8 Subject: Cavium Econa CNS21XX X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jul 2010 16:12:43 -0000 About six months ago, Stefan Bethke donated me some money to buy a device from dealextreme so I can port FreeBSD to that device (http://dealextreme.com/details.dx/sku.20383). The device uses Cavium Econa CNS21XX, a bit different from my previous port (CNS11XX). And I finally have the time to finish the last part of the port (SPI flash). So the last status is I can write FreeBSD kernel to the SPI flash, and it can be loaded by the boot loader (so I don't need serial port anymore to load the kernel), then I can boot to multiuser mode with networking (using USB disk as the root device). Networking speed is just a little bit slower compared to Linux (about 3.5 mb/s compared to around 4mb/s in Linux), For information: the device has 250 Mhz ARM FA526 CPU with 32 Mb RAM. I haven't clean up the code yet to be included in SVN, but anyone who want to try can get the source from http://gitorious.org/freebsd-arm I made a post on how to write the kernel to the SPI flash at my blog: http://tinyhack.com/2010/07/06/cns21xx-port-completed/ I will send the patch for review to this list after I clean up the code. -- Regards Yohanes http://yohan.es/ From owner-freebsd-arm@FreeBSD.ORG Tue Jul 6 16:58:52 2010 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D537C106566C for ; Tue, 6 Jul 2010 16:58:52 +0000 (UTC) (envelope-from rpaulo@freebsd.org) Received: from karen.lavabit.com (karen.lavabit.com [72.249.41.33]) by mx1.freebsd.org (Postfix) with ESMTP id 7B2288FC0A for ; Tue, 6 Jul 2010 16:58:52 +0000 (UTC) Received: from e.earth.lavabit.com (e.earth.lavabit.com [192.168.111.14]) by karen.lavabit.com (Postfix) with ESMTP id A6B4111BA0E; Tue, 6 Jul 2010 11:58:50 -0500 (CDT) Received: from 10.0.10.3 (54.81.54.77.rev.vodafone.pt [77.54.81.54]) by lavabit.com with ESMTP id AWU0CCFKVRMP; Tue, 06 Jul 2010 11:58:48 -0500 Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii From: Rui Paulo In-Reply-To: Date: Tue, 6 Jul 2010 17:58:45 +0100 Content-Transfer-Encoding: 7bit Message-Id: <8F683914-2174-4E09-B31C-F92C5D583903@FreeBSD.org> References: To: Yohanes Nugroho X-Mailer: Apple Mail (2.1081) Cc: freebsd-arm@freebsd.org Subject: Re: Cavium Econa CNS21XX X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jul 2010 16:58:52 -0000 On 6 Jul 2010, at 17:12, Yohanes Nugroho wrote: > About six months ago, Stefan Bethke donated me some money to buy a > device from dealextreme so I can port FreeBSD to that device > (http://dealextreme.com/details.dx/sku.20383). The device uses Cavium > Econa CNS21XX, a bit different from my previous port (CNS11XX). And I > finally have the time to finish the last part of the port (SPI flash). > > So the last status is I can write FreeBSD kernel to the SPI flash, and > it can be loaded by the boot loader (so I don't need serial port > anymore to load the kernel), then I can boot to multiuser mode with > networking (using USB disk as the root device). Networking speed is > just a little bit slower compared to Linux (about 3.5 mb/s compared to > around 4mb/s in Linux), For information: the device has 250 Mhz ARM > FA526 CPU with 32 Mb RAM. > > I haven't clean up the code yet to be included in SVN, but anyone who > want to try can get the source from http://gitorious.org/freebsd-arm > > I made a post on how to write the kernel to the SPI flash at my blog: > http://tinyhack.com/2010/07/06/cns21xx-port-completed/ > > I will send the patch for review to this list after I clean up the code. Great work! Regards, -- Rui Paulo From owner-freebsd-arm@FreeBSD.ORG Tue Jul 6 17:50:01 2010 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9909B106566B for ; Tue, 6 Jul 2010 17:50:01 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe12.swipnet.se [212.247.155.97]) by mx1.freebsd.org (Postfix) with ESMTP id 2A4878FC13 for ; Tue, 6 Jul 2010 17:47:13 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=zNANCjgXmV0A:10 a=IkcTkHD0fZMA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=G1D4sebDAAAA:8 a=lRxpQPx1AAAA:8 a=F7C21vkwAAAA:8 a=BZdXBlzJIp-sq_3ODCcA:9 a=1ynP3ARCM4m_5DBMaOftaOAdXsYA:4 a=QEXdDO2ut3YA:10 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe12.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 1206071579; Tue, 06 Jul 2010 19:47:11 +0200 From: Hans Petter Selasky To: freebsd-arm@freebsd.org Date: Tue, 6 Jul 2010 19:44:18 +0200 User-Agent: KMail/1.12.4 (FreeBSD/8.1-PRERELEASE; KDE/4.3.4; amd64; ; ) References: In-Reply-To: X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201007061944.18197.hselasky@c2i.net> Cc: Subject: Re: Cavium Econa CNS21XX X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jul 2010 17:50:01 -0000 On Tuesday 06 July 2010 18:12:21 Yohanes Nugroho wrote: > About six months ago, Stefan Bethke donated me some money to buy a > device from dealextreme so I can port FreeBSD to that device > (http://dealextreme.com/details.dx/sku.20383). The device uses Cavium > Econa CNS21XX, a bit different from my previous port (CNS11XX). And I > finally have the time to finish the last part of the port (SPI flash). > > So the last status is I can write FreeBSD kernel to the SPI flash, and > it can be loaded by the boot loader (so I don't need serial port > anymore to load the kernel), then I can boot to multiuser mode with > networking (using USB disk as the root device). Networking speed is > just a little bit slower compared to Linux (about 3.5 mb/s compared to > around 4mb/s in Linux), For information: the device has 250 Mhz ARM > FA526 CPU with 32 Mb RAM. > > I haven't clean up the code yet to be included in SVN, but anyone who > want to try can get the source from http://gitorious.org/freebsd-arm > > I made a post on how to write the kernel to the SPI flash at my blog: > http://tinyhack.com/2010/07/06/cns21xx-port-completed/ > > I will send the patch for review to this list after I clean up the code. The OHCI USB interface file looks OK. --HPS From owner-freebsd-arm@FreeBSD.ORG Fri Jul 9 05:09:29 2010 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87D89106564A; Fri, 9 Jul 2010 05:09:29 +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 53A958FC18; Fri, 9 Jul 2010 05:09:28 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.4/8.14.3) with ESMTP id o6959SSO068991; Fri, 9 Jul 2010 01:09:28 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.4/8.14.3/Submit) id o6959SQd068970; Fri, 9 Jul 2010 05:09:28 GMT (envelope-from tinderbox@freebsd.org) Date: Fri, 9 Jul 2010 05:09:28 GMT Message-Id: <201007090509.o6959SQd068970@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: [head tinderbox] failure on arm/arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jul 2010 05:09:29 -0000 TB --- 2010-07-09 04:25:00 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2010-07-09 04:25:00 - starting HEAD tinderbox run for arm/arm TB --- 2010-07-09 04:25:00 - cleaning the object tree TB --- 2010-07-09 04:25:12 - cvsupping the source tree TB --- 2010-07-09 04:25:12 - /usr/bin/csup -z -r 3 -g -L 1 -h cvsup.sentex.ca /tinderbox/HEAD/arm/arm/supfile TB --- 2010-07-09 04:26:29 - building world TB --- 2010-07-09 04:26:29 - MAKEOBJDIRPREFIX=/obj TB --- 2010-07-09 04:26:29 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2010-07-09 04:26:29 - TARGET=arm TB --- 2010-07-09 04:26:29 - TARGET_ARCH=arm TB --- 2010-07-09 04:26:29 - TZ=UTC TB --- 2010-07-09 04:26:29 - __MAKE_CONF=/dev/null TB --- 2010-07-09 04:26:29 - cd /src TB --- 2010-07-09 04:26:29 - /usr/bin/make -B buildworld >>> World build started on Fri Jul 9 04:26:29 UTC 2010 >>> 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 >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] cc -O -pipe -DLOADER_DISK_SUPPORT -DLOADER_UFS_SUPPORT -DLOADER_NET_SUPPORT -DLOADER_NFS_SUPPORT -DBOOT_FORTH -I/src/sys/boot/arm/uboot/../../ficl -I/src/sys/boot/arm/uboot/../../ficl/arm -I/src/sys/boot/arm/uboot/../../common -I. -ffreestanding -I/src/sys/boot/arm/uboot/../../uboot/common -I/src/sys/boot/arm/uboot/../../uboot/lib -I/obj/arm.arm/src/sys/boot/arm/uboot/../../uboot/lib -I/src/sys/boot/arm/uboot/../../../../lib/libstand/ -std=gnu99 -Wsystem-headers -Werror -Wno-pointer-sign -c /src/sys/boot/arm/uboot/../../common/reloc_elf32.c cc -O -pipe -DLOADER_DISK_SUPPORT -DLOADER_UFS_SUPPORT -DLOADER_NET_SUPPORT -DLOADER_NFS_SUPPORT -DBOOT_FORTH -I/src/sys/boot/arm/uboot/../../ficl -I/src/sys/boot/arm/uboot/../../ficl/arm -I/src/sys/boot/arm/uboot/../../common -I. -ffreestanding -I/src/sys/boot/arm/uboot/../../uboot/common -I/src/sys/boot/arm/uboot/../../uboot/lib -I/obj/arm.arm/src/sys/boot/arm/uboot/../../uboot/lib -I/src/sys/boot/arm/uboot/../../../../lib/libstand/ -std=gnu99 -Wsystem-headers -Werror -Wno-pointer-sign -c /src/sys/boot/arm/uboot/../../common/dev_net.c cc -O -pipe -DLOADER_DISK_SUPPORT -DLOADER_UFS_SUPPORT -DLOADER_NET_SUPPORT -DLOADER_NFS_SUPPORT -DBOOT_FORTH -I/src/sys/boot/arm/uboot/../../ficl -I/src/sys/boot/arm/uboot/../../ficl/arm -I/src/sys/boot/arm/uboot/../../common -I. -ffreestanding -I/src/sys/boot/arm/uboot/../../uboot/common -I/src/sys/boot/arm/uboot/../../uboot/lib -I/obj/arm.arm/src/sys/boot/arm/uboot/../../uboot/lib -I/src/sys/boot/arm/uboot/../../../../lib/libstand/ -std=gnu99 -Wsystem-headers -Werror -Wno-pointer-sign -c /src/sys/boot/arm/uboot/../../common/interp_forth.c cc -O -pipe -DLOADER_DISK_SUPPORT -DLOADER_UFS_SUPPORT -DLOADER_NET_SUPPORT -DLOADER_NFS_SUPPORT -DBOOT_FORTH -I/src/sys/boot/arm/uboot/../../ficl -I/src/sys/boot/arm/uboot/../../ficl/arm -I/src/sys/boot/arm/uboot/../../common -I. -ffreestanding -I/src/sys/boot/arm/uboot/../../uboot/common -I/src/sys/boot/arm/uboot/../../uboot/lib -I/obj/arm.arm/src/sys/boot/arm/uboot/../../uboot/lib -I/src/sys/boot/arm/uboot/../../../../lib/libstand/ -std=gnu99 -Wsystem-headers -Werror -Wno-pointer-sign -c /src/sys/boot/arm/uboot/../../uboot/common/main.c cc -O -pipe -DLOADER_DISK_SUPPORT -DLOADER_UFS_SUPPORT -DLOADER_NET_SUPPORT -DLOADER_NFS_SUPPORT -DBOOT_FORTH -I/src/sys/boot/arm/uboot/../../ficl -I/src/sys/boot/arm/uboot/../../ficl/arm -I/src/sys/boot/arm/uboot/../../common -I. -ffreestanding -I/src/sys/boot/arm/uboot/../../uboot/common -I/src/sys/boot/arm/uboot/../../uboot/lib -I/obj/arm.arm/src/sys/boot/arm/uboot/../../uboot/lib -I/src/sys/boot/arm/uboot/../../../../lib/libstand/ -std=gnu99 -Wsystem-headers -Werror -Wno-pointer-sign -c /src/sys/boot/arm/uboot/../../uboot/common/metadata.c cc -O -pipe -DLOADER_DISK_SUPPORT -DLOADER_UFS_SUPPORT -DLOADER_NET_SUPPORT -DLOADER_NFS_SUPPORT -DBOOT_FORTH -I/src/sys/boot/arm/uboot/../../ficl -I/src/sys/boot/arm/uboot/../../ficl/arm -I/src/sys/boot/arm/uboot/../../common -I. -ffreestanding -I/src/sys/boot/arm/uboot/../../uboot/common -I/src/sys/boot/arm/uboot/../../uboot/lib -I/obj/arm.arm/src/sys/boot/arm/uboot/../../uboot/lib -I/src/sys/boot/arm/uboot/../../../../lib/libstand/ -std=gnu99 -Wsystem-headers -Werror -Wno-pointer-sign -nostdlib -static -T /src/sys/boot/arm/uboot/ldscript.arm -o ubldr start.o conf.o vers.o boot.o commands.o console.o devopen.o interp.o interp_backslash.o interp_parse.o ls.o misc.o module.o panic.o load_elf32.o reloc_elf32.o dev_net.o interp_forth.o main.o metadata.o /obj/arm.arm/src/sys/boot/arm/uboot/../../ficl/libficl.a /obj/arm.arm/src/sys/boot/arm/uboot/../../uboot/lib/libuboot.a -lstand /obj/arm.arm/src/tmp/usr/lib/libstand.a(printf.o)(.text+0xd60): In function `$a': : undefined reference to `MAX' *** Error code 1 Stop in /src/sys/boot/arm/uboot. *** Error code 1 Stop in /src/sys/boot/arm. *** Error code 1 Stop in /src/sys/boot. *** Error code 1 Stop in /src/sys. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2010-07-09 05:09:28 - WARNING: /usr/bin/make returned exit code 1 TB --- 2010-07-09 05:09:28 - ERROR: failed to build world TB --- 2010-07-09 05:09:28 - 2051.30 user 546.30 system 2667.28 real http://tinderbox.freebsd.org/tinderbox-head-HEAD-arm-arm.full From owner-freebsd-arm@FreeBSD.ORG Fri Jul 9 17:00:18 2010 Return-Path: Delivered-To: freebsd-arm@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AEFAB1065690 for ; Fri, 9 Jul 2010 17:00:18 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C68CE8FC1A for ; Fri, 9 Jul 2010 17:00:14 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o69H0EvZ082976 for ; Fri, 9 Jul 2010 17:00:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o69H0E0d082975; Fri, 9 Jul 2010 17:00:14 GMT (envelope-from gnats) Resent-Date: Fri, 9 Jul 2010 17:00:14 GMT Resent-Message-Id: <201007091700.o69H0E0d082975@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-arm@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Greg Ansley Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6ED08106566B for ; Fri, 9 Jul 2010 16:54:16 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 5E8A68FC0A for ; Fri, 9 Jul 2010 16:54:16 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o69GsFm4032018 for ; Fri, 9 Jul 2010 16:54:15 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o69GsF1n032013; Fri, 9 Jul 2010 16:54:15 GMT (envelope-from nobody) Message-Id: <201007091654.o69GsF1n032013@www.freebsd.org> Date: Fri, 9 Jul 2010 16:54:15 GMT From: Greg Ansley To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: arm/148474: MMC timeout too short durring enumeration of cards. X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jul 2010 17:00:18 -0000 >Number: 148474 >Category: arm >Synopsis: MMC timeout too short durring enumeration of cards. >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-arm >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 09 17:00:14 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Greg Ansley >Release: 8-stabe & 9-current >Organization: Ansley & Associates, Inc. >Environment: >Description: Large SD cards take much longer to come out of the power-up state than earlier smaller cards. Current command loop terminates after 100 attempts waiting for a card to become ready. A 1G card currently takes 241 iterations to become ready on a 400Mhz AT91SAM9G20. A 8G card was took 721. SD card spec does not specify a maximum wait time. The patch bumps the loop count to for 100 to 5000. Note that this does not affect the no-card or error condition timings. >How-To-Repeat: Boot system with SD card present. Large cards will not be found. Small cards work fine. >Fix: Patch attached with submission follows: Index: mmc.c =================================================================== RCS file: /usr/home/ncvs/src/sys/dev/mmc/mmc.c,v retrieving revision 1.38 diff -r1.38 mmc.c 451c451 < for (i = 0; i < 100; i++) { --- > for (i = 0; i < 5000; i++) { 478c478 < for (i = 0; i < 100; i++) { --- > for (i = 0; i < 5000; i++) { >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-arm@FreeBSD.ORG Fri Jul 9 20:30:10 2010 Return-Path: Delivered-To: freebsd-arm@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81248106564A for ; Fri, 9 Jul 2010 20:30:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 567F18FC1D for ; Fri, 9 Jul 2010 20:30:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o69KU98v061783 for ; Fri, 9 Jul 2010 20:30:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o69KU9Eq061778; Fri, 9 Jul 2010 20:30:09 GMT (envelope-from gnats) Date: Fri, 9 Jul 2010 20:30:09 GMT Message-Id: <201007092030.o69KU9Eq061778@freefall.freebsd.org> To: freebsd-arm@FreeBSD.org From: "M. Warner Losh" Cc: Subject: Re: arm/148474: MMC timeout too short durring enumeration of cards. X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "M. Warner Losh" List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jul 2010 20:30:10 -0000 The following reply was made to PR arm/148474; it has been noted by GNATS. From: "M. Warner Losh" To: gja@ansley.com Cc: freebsd-gnats-submit@freebsd.org Subject: Re: arm/148474: MMC timeout too short durring enumeration of cards. Date: Fri, 09 Jul 2010 14:19:24 -0600 (MDT) In message: <201007091654.o69GsF1n032013@www.freebsd.org> Greg Ansley writes: : Large SD cards take much longer to come out of the power-up state than earlier smaller cards. This happens to be exactly opposite what I've observed... Cards up to 4GB in my AT91RM9200 are ready right away. Older, 16MB and 32MB cards have taken up to 10 iterations to become ready. : Current command loop terminates after 100 attempts waiting for a : card to become ready. A 1G card currently takes 241 iterations to : become ready on a 400Mhz AT91SAM9G20. A 8G card was took 721. It really took 2.4s for the 1G card and 7.21s for the 8G card to become ready? Are you sure? Are you sure there's not some other timing bug going on that causes mms_delay_ms(10) to return much more quickly than 10ms? Also, which tree are you booting that has AT91SAM9G20 support, that's not in main yet :) I'll let that slide. Your patch causes us to wait for up to 50s for this to happen. That seems excessively long to me, and doesn't match my experience with these devices, even the ultra-uber-crappy consumer cards. Warner : SD card spec does not specify a maximum wait time. : : The patch bumps the loop count to for 100 to 5000. Note that this does not affect the no-card or error condition timings. : >How-To-Repeat: : Boot system with SD card present. Large cards will not be found. Small cards work fine. : >Fix: : : : Patch attached with submission follows: : : Index: mmc.c : =================================================================== : RCS file: /usr/home/ncvs/src/sys/dev/mmc/mmc.c,v : retrieving revision 1.38 : diff -r1.38 mmc.c : 451c451 : < for (i = 0; i < 100; i++) { : --- : > for (i = 0; i < 5000; i++) { : 478c478 : < for (i = 0; i < 100; i++) { : --- : > for (i = 0; i < 5000; i++) { : : : >Release-Note: : >Audit-Trail: : >Unformatted: : _______________________________________________ : freebsd-arm@freebsd.org mailing list : http://lists.freebsd.org/mailman/listinfo/freebsd-arm : To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" : : From owner-freebsd-arm@FreeBSD.ORG Sat Jul 10 12:20:05 2010 Return-Path: Delivered-To: freebsd-arm@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A3B8106564A for ; Sat, 10 Jul 2010 12:20:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 50FBF8FC16 for ; Sat, 10 Jul 2010 12:20:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o6ACK5Aj011946 for ; Sat, 10 Jul 2010 12:20:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o6ACK5mr011945; Sat, 10 Jul 2010 12:20:05 GMT (envelope-from gnats) Date: Sat, 10 Jul 2010 12:20:05 GMT Message-Id: <201007101220.o6ACK5mr011945@freefall.freebsd.org> To: freebsd-arm@FreeBSD.org From: Greg Ansley Cc: Subject: Re: arm/148474: MMC timeout too short durring enumeration of cards. X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Greg Ansley List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jul 2010 12:20:05 -0000 The following reply was made to PR arm/148474; it has been noted by GNATS. From: Greg Ansley To: bug-followup@FreeBSD.org, gja@ansley.com Cc: Subject: Re: arm/148474: MMC timeout too short durring enumeration of cards. Date: Sat, 10 Jul 2010 07:46:12 -0400 PR is bogus and can be closed. Problem went away with refresh of source tree. Sorry. Greg Ansley