Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Aug 2006 03:04:45 +0200
From:      Bernd Walter <ticso@cicely12.cicely.de>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        freebsd-arm@freebsd.org, ticso@cicely.de
Subject:   Re: AT91RM9200 problem
Message-ID:  <20060825010444.GV49178@cicely12.cicely.de>
In-Reply-To: <20060824.101055.1723237336.imp@bsdimp.com>
References:  <20060823175736.GE47093@cicely12.cicely.de> <20060824155207.GM49178@cicely12.cicely.de> <20060824.101055.1723237336.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <AT91RM9200 device bus> on motherboard
at91_st0: <ST> mem 0xfffffd00:0x100 irq 1 on atmelarm0
at91_st0: watchdog registered, timeout intervall max. 64 sec
at91_pio0: <PIOA> mem 0xfffff400:0x200 irq 1 on atmelarm0
at91_pio0: ABSR: 0x60 OSR: 0 PSR:0x3f380010 ODSR: 0
at91_pio1: <PIOB> mem 0xfffff600:0x200 irq 1 on atmelarm0
at91_pio1: ABSR: 0xff300 OSR: 0 PSR:0x3fc00cff ODSR: 0
at91_pio2: <PIOC> mem 0xfffff800:0x200 irq 1 on atmelarm0
at91_pio2: ABSR: 0 OSR: 0x400 PSR:0xc47f ODSR: 0
at91_pio3: <PIOD> mem 0xfffffa00:0x200 irq 1 on atmelarm0
at91_pio3: ABSR: 0 OSR: 0 PSR:0xfffffff ODSR: 0
at91_pmc0: <PMC> mem 0xfffffc00:0x100 irq 1 on atmelarm0
at91_pmc0: Primary: 10000000 Hz PLLA: 112 MHz CPU: 112 MHz MCK: 37 MHz
at91_rtc0: <RTC> mem 0xfffffe00:0x100 irq 1 on atmelarm0
ate0: <EMAC> mem 0xfffbc000:0x4000 irq 24 on atmelarm0
miibus0: <MII bus> on ate0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ate0: Ethernet address: 00:0e:42:02:00:1f
uart0: <DBGU> mem 0xfffff200:0x200 irq 1 on atmelarm0
uart0: console (115200,n,8,1)
uart1: <USART0> mem 0xfffc0000:0x4000 irq 6 on atmelarm0
uart2: <USART1> mem 0xfffc4000:0x4000 irq 7 on atmelarm0
uart3: <USART2> mem 0xfffc8000:0x4000 irq 8 on atmelarm0
uart4: <USART3> mem 0xfffcc000:0x4000 irq 9 on atmelarm0
at91_spi0: <SPI> mem 0xfffe0000:0x4000 irq 13 on atmelarm0
spibus0: <spibus bus> 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<UP,LOOPBACK,RUNNING,MULTICAST> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060825010444.GV49178>