From owner-freebsd-arm@FreeBSD.ORG Fri Dec 8 01:50:54 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 1934516A417; Fri, 8 Dec 2006 01:50:54 +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 4D38A43CA3; Fri, 8 Dec 2006 01:49:50 +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 kB81oh7T035036; Fri, 8 Dec 2006 02:50:43 +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 kB81oXTo078920 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 8 Dec 2006 02:50:33 +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 kB81oW6e055584; Fri, 8 Dec 2006 02:50:32 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id kB81oW1R055583; Fri, 8 Dec 2006 02:50:32 +0100 (CET) (envelope-from ticso) Date: Fri, 8 Dec 2006 02:50:32 +0100 From: Bernd Walter To: freebsd-arm@freebsd.org Message-ID: <20061208015032.GF54209@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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: Bernd Walter , imp@freebsd.org Subject: 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 01:50:54 -0000 This is with P4 Source and an SD card inserted: >e 0x20000000 KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2006 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. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.0-CURRENT #0: Thu Dec 7 23:49:05 CET 2006 ticso@cicely7.cicely.de:/usr/obj/arm/arm-p4/src/sys/BWCT CPU: ARM920T rev 0 (ARM9TDMI core) DC enabled IC enabled WB enabled LABT 16KB/32B 64-way Instruction cache 16KB/32B 64-way write-back-locking-A Data cache real memory = 67108864 (64 MB) avail memory = 62459904 (59 MB) CONFIG: invalid hint 'hint.ohci.at=apb' CONFIG: invalid hint 'hint.ohci.maddr=0x00300000' atmelarm0: on motherboard at91_st0: mem 0xdffffd00:0x100 irq 1 on atmelarm0 at91_st0: watchdog registered, timeout intervall max. 64 sec at91_pio0: mem 0xdffff400:0x200 irq 1 on atmelarm0 at91_pio0: ABSR: 0x60 OSR: 0 PSR:0x3f380010 ODSR: 0 at91_pio1: mem 0xdffff600:0x200 irq 1 on atmelarm0 at91_pio1: ABSR: 0xff300 OSR: 0 PSR:0x3fc00cff ODSR: 0 at91_pio2: mem 0xdffff800:0x200 irq 1 on atmelarm0 at91_pio2: ABSR: 0 OSR: 0x400 PSR:0xc47f ODSR: 0 at91_pio3: mem 0xdffffa00:0x200 irq 1 on atmelarm0 at91_pio3: ABSR: 0 OSR: 0 PSR:0xfffffff ODSR: 0 at91_pmc0: mem 0xdffffc00:0x100 irq 1 on atmelarm0 at91_pmc0: Primary: 10000000 Hz PLLA: 112 MHz CPU: 112 MHz MCK: 37 MHz at91_rtc0: mem 0xdffffe00:0x100 irq 1 on atmelarm0 at91_mci0: mem 0xdffb4000:0x4000 irq 10 on atmelarm0 mmc0: on at91_mci0 at91_twi0: mem 0xdffb8000:0x4000 irq 12 on atmelarm0 iicbus0: on at91_twi0 iicbus0: at addr 0 iic0: on iicbus0 ds16720: at addr 0xd0 on iicbus0 ate0: mem 0xdffbc000:0x4000 irq 24 on atmelarm0 miibus0: on ate0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ate0: Ethernet address: 00:0e:42:02:00:21 uart0: mem 0xdffff200:0x200 irq 1 on atmelarm0 uart0: console (115200,n,8,1) uart1: mem 0xdffc0000:0x4000 irq 6 on atmelarm0 uart2: mem 0xdffc4000:0x4000 irq 7 on atmelarm0 uart3: mem 0xdffc8000:0x4000 irq 8 on atmelarm0 uart4: mem 0xdffcc000:0x4000 irq 9 on atmelarm0 at91_ssc0: mem 0xdffd0000:0x4000 irq 14 on atmelarm0 at91_ssc1: mem 0xdffd4000:0x4000 irq 15 on atmelarm0 at91_ssc2: mem 0xdffd8000:0x4000 irq 16 on atmelarm0 at91_spi0: mem 0xdffe0000:0x4000 irq 13 on atmelarm0 spibus0: on at91_spi0 Cannot get 100 Hz clock; using 128Hz Timecounter "AT91RM9200 timer" frequency 32768 Hz quality 1000 Timecounters tick every 7.812 msec 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. An MMC card with my old kernel and qdmmc driver stil probes: at91_qdmmc0: mem 0xdffb4000-0xdffb7fff irq 10 on atmelarm0 at91_qdmmc0: [MPSAFE] at91_qdmmc_attach: operating conditions: 0xff8000 Found MMC 0 - CID = 0x2c0000414620484d5010a5701244915 MMC 0: Vendor-ID = 0x2c MMC 0: OEM-ID = 0x0 MMC 0: Productname = AF HMP MMC 0: Revision = 0x10 MMC 0: Serial = 0xa5700124 MMC 0: Manufacturing Date = 2006/4 Set MMC 0 address to 0xcafe MMC 0: CSD = 0x905e002a1f5983deedb707ff96400017 MMC 0: Blocksize = 512 Bytes MMC 0: c_size = 3963 MMC 0: c_size_mult = 256 MMC 0: Size = 519569408 Bytes The slot should be correctly 4 bit wired, but according to the boot messages it is used 1bit anyway. Can't speak about boot code probing, since I still have old netboot loader installed. About TWI - hinted devices are listed, but I havn't tested if they really work yet. But I can't probe the bus from userland: [56]arm9# ./iic_probe /dev/iic0 - and nothing listed. Well - this might be a hardware issue, since I did not use iic on that board yet. The Source did at least worked on x86 boards bevor. #include #include #include #include #include #include #include int main(int argc, char *argv[]); void usage(void); int main(int argc, char *argv[]) { int i, error; struct iiccmd cmd; if (argc != 2) usage(); int bus = open(argv[1], O_RDWR | O_EXCL); if (bus < 0) { printf("opening I2C bus device %s failed\n", argv[1]); exit(1); } for (i = 1 ; i <= 127; i++) { cmd.slave = (i << 1); cmd.count = 0; cmd.last = 0; cmd.buf = NULL; error = ioctl(bus, I2CSTART, &cmd); if (!error) { printf("device %i exists\n", i); ioctl(bus, I2CSTOP, NULL); } } close(bus); return (0); } void usage(void) { printf("usage: iic_probe dev\n"); exit(1); } May I want to get rid of at91_rtc0, since we have DS1672 driver support? How can I find out which clock is active? Shouldn't it keep the time with at91_rtc0 over a simple reboot as well? At least the time did not survive a reboot. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de