From owner-freebsd-arm@FreeBSD.ORG Fri Dec 8 10:42:44 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9BDD216A403 for ; Fri, 8 Dec 2006 10:42:44 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC1D243CA6 for ; Fri, 8 Dec 2006 10:41:46 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id kB8Agd5G042548; Fri, 8 Dec 2006 11:42:39 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id kB8AgUlM083779 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 8 Dec 2006 11:42:30 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id kB8AgTMU057195; Fri, 8 Dec 2006 11:42:29 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id kB8AgSqP057193; Fri, 8 Dec 2006 11:42:28 +0100 (CET) (envelope-from ticso) Date: Fri, 8 Dec 2006 11:42:28 +0100 From: Bernd Walter To: "M. Warner Losh" Message-ID: <20061208104227.GH54209@cicely12.cicely.de> References: <20061208015032.GF54209@cicely12.cicely.de> <20061207.205008.-432839162.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061207.205008.-432839162.imp@bsdimp.com> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: ticso@cicely12.cicely.de, freebsd-arm@freebsd.org, ticso@cicely.de Subject: Re: questions about current RM9200 state X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Dec 2006 10:42:44 -0000 On Thu, Dec 07, 2006 at 08:50:08PM -0700, M. Warner Losh wrote: > In message: <20061208015032.GF54209@cicely12.cicely.de> > Bernd Walter writes: > : This is with P4 Source and an SD card inserted: > : >e 0x20000000 > > which bootloader? The bootloader is responsible for setting up some > things, and maybe the version you are using doesn't set them all up. > It is a longshot since I think that the board init code does setup the > sd/mmc bus by default. Ok - it's clearly a pre mci bootloader. It will take some time until I have merged my changes into the current layout. I hoped to do the kernel work first. > : at91_mci0: Setting controller bus width to 1 > : at91_mci0: Setting controller bus width to 1 > : at91_mci0: Setting controller bus width to 1 > : at91_mci0: Setting controller bus width to 1 > : mmc0: setting transfer rate to 30.000MHz > : at91_mci0: Setting controller bus width to 1 > : Sending DHCP Discover packet from interface ate0 (00:0e:42:02:00:21) > : [...] > : > : No SD card found it seems. > > Is it an SD card and not an MMC card? We'll need to add some debug to > see why this is the case. It should find it. It may not detect the > new SDHC cards, but since those are expensive, that's a long shot. Yes - it is an SD card during this boot. And yes mmcsd is in the kernel. But as stated above it is an old loader. SDMC? > : About TWI - hinted devices are listed, but I havn't tested if they > : really work yet. > > They should. I'm reading/writing the iic eeproms now. Thought so :) Well - I've found out with AT91SAM7X256 work that the DS1672 is picky without battery power and it has none without configuring charging. > : But I can't probe the bus from userland: > : [56]arm9# ./iic_probe /dev/iic0 > : - and nothing listed. > > twi doesn't support START/STOP ioctls that you use. Hmmm, that's in > p4 that I've removed them because I never got that working. I also > think the version in -head isn't the latest, working one. I think you > do the same thing with a 0 byte transfer. Except we don't detect > NOACK quite right yet, I'm afraid. I'd expect an error each time you > tried. Ah - Ok, will switch to 0 Byte transfers and retest. Did you update iicsmb as well? > : error = ioctl(bus, I2CSTART, &cmd); > : if (!error) { > : printf("device %i exists\n", i); > : ioctl(bus, I2CSTOP, NULL); > : } > : May I want to get rid of at91_rtc0, since we have DS1672 driver support? > > at91_rtc0 is about useless, since it resets every single time the core > resets. Sigh - silly thing... And you still need to solder that 32kHz xtal for booting :( > : How can I find out which clock is active? > > I'm unsure. So to be shure I don't want at91_rtc in the kernel? > : Shouldn't it keep the time with at91_rtc0 over a simple reboot as well? > > No. The hardware resets to 1998 every time the core resets. > > : At least the time did not survive a reboot. > > Yea. I thought it would too, but careful study says 'no'. > > Warner -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de