Legacy SPARC Leon2 with Ethernet

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Legacy SPARC Leon2 with Ethernet

Les G. Miklosy-2

My difficulties are configuring a working Ethernet module in eCos for
this processor on the Pender Electronics GR-XC3S-1500 development board.
This board uses a LXT971 Phy with MAC emulation in the FPGA.

I use pre-built FPGA IP cores versions leon2-1.0.28-xst and
leon2-1.0.32-xst, but no Ethernet support is reported in the FPGA image.
I'm assured by Pender Electronics the cores built into the image are
there just not reported. The documentation points to Opencores but does
not specifically document the load in the FPGA.

1) Has anyone confirmed the IP cores in those Leon2 versions contain an
Ethernet core to support a running eCos application?
2) Which eCos modules (Opencores, Greth, LAN91cxx, Phy support) complete
the driver-train necessary to support Ethernet for this board and processor?
3) If I port an interface from another processor, which one is a good
baseline to start with? Two versions of PowerPC (fcc and ppc405) use the
Phy support interface functions.

Thanks for your shared experience to solve this.
Les

Here is the image data from version 1.0.28-xst:

Component Vendor
LEON2 Memory Controller European Space Agency
LEON2 AHB Status & Failing Addr European Space Agency
LEON2 SPARC V8 processor European Space Agency
LEON2 Write Protection European Space Agency
LEON2 Configuration register European Space Agency
LEON2 Timer Unit European Space Agency
LEON2 UART European Space Agency
LEON2 UART European Space Agency
LEON2 Interrupt Ctrl European Space Agency
LEON2 I/O port European Space Agency
AHB Debug UART Gaisler Research
LEON2 Debug Support Unit Gaisler Research

Use command 'info sys' to print a detailed report of attached cores

grlib> info sys
00.04:00f European Space Agency LEON2 Memory Controller (ver 0x0)
ahb: 00000000 - 20000000
ahb: 20000000 - 40000000
ahb: 40000000 - 80000000
apb: 80000000 - 80000010
8-bit prom @ 0x00000000
32-bit sdram: 1 * 64 Mbyte @ 0x40000000, col 9, cas 2, ref 7.8 us
01.04:017 European Space Agency LEON2 AHB Status & Failing Addr (ver 0x0)
apb: 8000000c - 80000014
02.04:002 European Space Agency LEON2 SPARC V8 processor (ver 0x0)
apb: 80000014 - 80000018
03.04:018 European Space Agency LEON2 Write Protection (ver 0x0)
apb: 8000001c - 80000020
04.04:008 European Space Agency LEON2 Configuration register (ver 0x0)
apb: 80000024 - 80000028
val: 6877bf00
05.04:006 European Space Agency LEON2 Timer Unit (ver 0x0)
apb: 80000040 - 80000070
06.04:007 European Space Agency LEON2 UART (ver 0x0)
apb: 80000070 - 80000080
baud rate 38400
07.04:007 European Space Agency LEON2 UART (ver 0x0)
apb: 80000080 - 80000090
baud rate 38400
08.04:005 European Space Agency LEON2 Interrupt Ctrl (ver 0x0)
apb: 80000090 - 800000a0
09.04:009 European Space Agency LEON2 I/O port (ver 0x0)
apb: 800000a0 - 800000ac
0a.01:007 Gaisler Research AHB Debug UART (ver 0x0)
apb: 800000c0 - 800000d0
baud rate 115200, ahb frequency 40.00
0b.01:002 Gaisler Research LEON2 Debug Support Unit (ver 0x0)
ahb: 90000000 - a0000000
trace buffer 512 lines, stack pointer 0x43fffff0
CPU#0 win 8, hwbp 2, V8 mul/div, lddel 1
icache 1 * 8 kbyte, 32 byte/line
dcache 1 * 8 kbyte, 32 byte/line