Skip to contentSkip to conversation

help for FCC1 ethernet with mpc8248 from embedded planet?

U-Boot-Users Bill Richardson 1 participant 1 message Sep 8, 2004

lore
Share & tools
lore
#0 lore raw

I've been trying to port U-Boot to an 8248-based board from Embedded Planet
(http://www.embeddedplanet.com/products/ep8248.asp). I started with the MPC8260ADS configuration and made a new board, as suggested in the README. So far, the SMC1 serial port works, the DRAM controller works, flash works, I can get to the U-Boot prompt and issue commands, etc.

However, when I try to use the FCC1 ethernet, problems occur. For example:

=> ping 192.168.2.2
Trying FCC1 ETHERNET
Using FCC1 ETHERNET device
sending ARP for c0a80202
ARP broadcast 1
ARP broadcast 2
ping failed; host 192.168.2.2 is not alive
=>

192.168.2.2 is a valid IP, and is alive. Sniffing with tcpdump shows the following:

10:46:58.101158 Broadcast > Broadcast, ethertype Unknown (0xffff), length 60:

         0x0000:  ffff ffff ffff ffff ffff ffff ffff ffff  ................
         0x0010:  ffff ffff ffff ffff ffff ffff ffff ffff  ................
         0x0020:  ffff ffff ffff ffff ffff ffff ffff       ..............
10:47:03.069813 Broadcast > Broadcast, ethertype Unknown (0xffff), length 60:
         0x0000:  ffff ffff ffff ffff ffff ffff ffff ffff  ................
         0x0010:  ffff ffff ffff ffff ffff ffff ffff ffff  ................
         0x0020:  ffff ffff ffff ffff ffff ffff ffff       ..............

The PHY is a Level One (Intel) LXT971A. I can query it with U-Boot's mii commands, and it looks correct - it autonegotiates, recognizes the link, etc. The fact that I see the correct packet length and it isn't dropped suggests that the phy is at least sort-of working.

The ARP packet that's passed to fec_send() (in cpu/mpc8260/ether_fcc.c) is correct:

(gdb) print packet
$9 = (void *) 0xffd2e0
(gdb) x/42xb packet
0xffd2e0: 0xff 0xff 0xff 0xff 0xff 0xff 0x02 0x00
0xffd2e8: 0x00 0x00 0x00 0x02 0x08 0x06 0x00 0x01
0xffd2f0: 0x08 0x00 0x06 0x04 0x00 0x01 0x02 0x00
0xffd2f8: 0x00 0x00 0x00 0x02 0xc0 0xa8 0x02 0x05
0xffd300: 0x00 0x00 0x00 0x00 0x00 0x00 0xc0 0xa8
0xffd308: 0x02 0x02
(gdb)

I'm very new to the whole powerpc/embedded world. Is it a correct assumption that the FCC driver in mpc8260/ether_fcc.c will work for the 8248?

Any hints or suggestions will be much appreciated.

Thanks.

Bill

Signature · 2 lines
Art for Art's Sake
Engineering for Money