From owner-freebsd-arm@FreeBSD.ORG Fri Aug 25 01:05:07 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC00916A4DA for ; Fri, 25 Aug 2006 01:05:07 +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 F1DA243D46 for ; Fri, 25 Aug 2006 01:05:06 +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 k7P14ukj005328; Fri, 25 Aug 2006 03:04:56 +0200 (CEST) (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 k7P14jlG048266 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 25 Aug 2006 03:04:45 +0200 (CEST) (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 k7P14jV1053640; Fri, 25 Aug 2006 03:04:45 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id k7P14jit053639; Fri, 25 Aug 2006 03:04:45 +0200 (CEST) (envelope-from ticso) Date: Fri, 25 Aug 2006 03:04:45 +0200 From: Bernd Walter To: "M. Warner Losh" Message-ID: <20060825010444.GV49178@cicely12.cicely.de> References: <20060823175736.GE47093@cicely12.cicely.de> <20060824155207.GM49178@cicely12.cicely.de> <20060824.101055.1723237336.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060824.101055.1723237336.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 autolearn=ham version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on cicely12.cicely.de Cc: freebsd-arm@freebsd.org, ticso@cicely.de Subject: Re: AT91RM9200 problem 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, 25 Aug 2006 01:05:07 -0000 On Thu, Aug 24, 2006 at 10:10:55AM -0600, M. Warner Losh wrote: > [ no packets ] > > I had some problems with my phy (*LOTS* of phy problems), but this > sounds similar to one in particular. We weren't getting packets. I > added code to read the PHY specific registers to see when there was a > link indicated, then set registers in the EMAC part based on that. > See GetLinkSpeed for the details in boot/arm/at91/libat91/emac.c. I forgot to ground RXERR line, which is not supplied by the switch. It's always the simple things that consume most of the time... -current panics - will check that later - maybe something I modified. But P4 source is booting now :-) Boot SPI-Flash ID: 0x271f Status: 0xb4 0x0 : m 0 0e 42 02 0 1f[E] 0x1 : k 0x20000000[E] 0x2 : e 0x20000000[E] Autoboot... >m 0 0e 42 02 0 1f >k 0x20000000 >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 7.0-CURRENT #0: Wed Aug 23 20:07:29 CEST 2006 ticso@cicely7.cicely.de:/arm-p4/src/sys/arm/compile/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 = 62603264 (59 MB) CONFIG: invalid hint 'hint.ohci.at=apb' CONFIG: invalid hint 'hint.ohci.maddr=0x00300000' atmelarm0: on motherboard at91_st0: mem 0xfffffd00:0x100 irq 1 on atmelarm0 at91_st0: watchdog registered, timeout intervall max. 64 sec at91_pio0: mem 0xfffff400:0x200 irq 1 on atmelarm0 at91_pio0: ABSR: 0x60 OSR: 0 PSR:0x3f380010 ODSR: 0 at91_pio1: mem 0xfffff600:0x200 irq 1 on atmelarm0 at91_pio1: ABSR: 0xff300 OSR: 0 PSR:0x3fc00cff ODSR: 0 at91_pio2: mem 0xfffff800:0x200 irq 1 on atmelarm0 at91_pio2: ABSR: 0 OSR: 0x400 PSR:0xc47f ODSR: 0 at91_pio3: mem 0xfffffa00:0x200 irq 1 on atmelarm0 at91_pio3: ABSR: 0 OSR: 0 PSR:0xfffffff ODSR: 0 at91_pmc0: mem 0xfffffc00:0x100 irq 1 on atmelarm0 at91_pmc0: Primary: 10000000 Hz PLLA: 112 MHz CPU: 112 MHz MCK: 37 MHz at91_rtc0: mem 0xfffffe00:0x100 irq 1 on atmelarm0 ate0: mem 0xfffbc000: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:1f uart0: mem 0xfffff200:0x200 irq 1 on atmelarm0 uart0: console (115200,n,8,1) uart1: mem 0xfffc0000:0x4000 irq 6 on atmelarm0 uart2: mem 0xfffc4000:0x4000 irq 7 on atmelarm0 uart3: mem 0xfffc8000:0x4000 irq 8 on atmelarm0 uart4: mem 0xfffcc000:0x4000 irq 9 on atmelarm0 at91_spi0: mem 0xfffe0000: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 Sending DHCP Discover packet from interface ate0 (00:0e:42:02:00:1f) ate0: link state changed to DOWN ate0: link state changed to UP Received DHCP Offer packet on ate0 from 10.1.1.7 (accepted) (no root path) Sending DHCP Request packet from interface ate0 (00:0e:42:02:00:1f) Received DHCP Ack packet on ate0 from 10.1.1.7 (accepted) (got root path) ate0 at 10.1.1.4 server 10.1.1.7 server name cicely11.cicely.de boot file pxeboot subnet mask 255.255.255.0 router 10.1.1.8 rootfs 10.1.1.8:/var/d6/arm-boot/ Adjusted interface ate0 Trying to mount root from nfs: NFS ROOT: 10.1.1.8:/var/d6/arm-boot/ Interface ate0 IP-Address 10.1.1.4 Broadcast 10.1.1.255 Loading configuration files. No suitable dump device was found. Entropy harvesting: interrupts ethernet point_to_point kickstart. Starting file system checks: mount_nfs: can't update /var/db/mounttab for c6:/var/d6/arm-boot Mounting local file systems:. Setting hostname: arm9.cicely.de. lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 Starting devd. devd: cannot open pid file: Operation not supported Additional routing options:. Mounting NFS file systems:. Creating and/or trimming log files:. Starting syslogd. /etc/rc: WARNING: Dump device does not exist. Savecore not run. ELF ldconfig path: /lib /usr/lib /usr/lib/compat Initial arm initialization:. Additional ABI support:. Setting date via ntp. 25 Aug 02:56:01 ntpdate[390]: step time server 10.1.1.7 offset 272854484.123604 sec Starting local daemons:. Updating motd. Mounting late file systems:. Starting sshd. Starting cron. Local package initialization:. Additional TCP options:. Starting background file system checks in 60 seconds. Fri Aug 25 02:56:30 CEST 2006 Aug 25 02:56:31 arm9 getty[577]: open /dev/ttyv2: No such file or directory Aug 25 02:56:32 arm9 getty[579]: open /dev/ttyv4: No such file or directory Aug 25 02:56:32 arm9 getty[582]: open /dev/ttyv7: No such file or directory Aug 25 02:56:32 arm9 getty[578]: open /dev/ttyv3: No such file or directory FreeBSD/arm (arm9.cicely.de) (ttyu0) login: Aug 25 02:56:32 arm9 getty[575]: open /dev/ttyv0: No such file or directory Aug 25 02:56:32 arm9 getty[581]: open /dev/ttyv6: No such file or directory Aug 25 02:56:32 arm9 getty[576]: open /dev/ttyv1: No such file or directory Aug 25 02:56:32 arm9 getty[580]: open /dev/ttyv5: No such file or directory -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de