[ECOS] Adding a 82544 driver Package to redboot

G.Muruganandam gmuruga@gdatech.com
Sat Jan 3 19:54:00 GMT 2004


Hello,

Issue:

I am unable to ping using the GIGE ethernet interface under readboot.
The ethernet interface is based on Intel's ethernet MAC 82540.

Please find below the steps that I followed.


I have added the 82544 driver package to redboot and
I am able to build it.

Actually I am using 82540 in the target board. Its features are derived from
82544. It is like 82546 except for the fact that it(82540) has
single ethernet port where as 82546 has dual ethernet port.

(In the driver code, I have included the device ID for 82540
which is 0x100E.)

The ethernet driver is coming up and I am able to read the PHY resisters 
correctly.


Redboot Output:
============

PHY 1 regs:
1140 7949 0141 0C23 0DE1 0000 0004 2001
0000 0300 0000 0000 0000 0000 0000 3000
0368 8100 0000 0040 0C60 0000 0000 0000
4100 0000 000A 808F 0000 0000 0000 0000

Also I am able to read the EEPROM values correctly.


Redboot Output:
============

Valid EEPROM checksum
eth_set_mac_address
setting: lo FF48DEAC hi 80000006
Set MAC Address = AC DE 48 FF 06 00 (ok 1)
i82544_init: MAC Address = AC DE 48 FF 06 00
i82544_start
CTRL 03FC0261
STATUS 0000CB80
Ethernet eth0: MAC address ac:de:48:ff:06:00
IP: 192.168.200.198, Default server: 192.168.200.165


I have also captured below the "fconfig" command output under redboot
to show that ethernet port is assigned with proper IP address.

Redboot Output:
============

Master-RedBoot_2800> fconfig -l
Run script at boot: false
Use BOOTP for network configuration: false
Master's Local Ethernet address: 0xAC:0xDE:0x48:0xFF:0x06:0x00
Master's Local IP address: 192.168.200.198
Default server IP address: 192.168.200.165
Slave's Local IP address: 0.0.0.0
GDB connection port: 9000
Network debug at boot time: true
Master-RedBoot_2800>


ISSUE:
======

Even though the ethernet driver is coming up with out any  the error 
message, I am
unable to ping using the ethernet interface. Redboot throws up the 
following error
message when I am trying to ping.

(I have connected the target board and my host system using a 10/100 
ethernet switch.
And I am trying to ping the host ( 192.168.200.165) from the target( 
192.168.200.198))

Master-RedBoot_2800> ping -h 192.168.200.165
Ethernet send:
0x00043974: FFFF FFFF FFFF ACDE  48FF 0600 0806        |........H.....  |
0x00145FDC: 0001 0800 0604 0001  ACDE 48FF 0600 C0A8   |..........H.....|
0x00145FEC: C8C6 0000 0000 0000  C0A8 C8A5             |............    |
PING: Can't find address of server '192.168.200.165'
Master-RedBoot_2800>

Could some one help me to fix this ethernet issue and do let me know
if you need more information.


Thanks in advance.
G.Muruganandam


At 11:23 AM 8/28/2003 +0100, Nick Garnett wrote:
>"Muruga Ganapathy" <gmuruga@gdatech.com> writes:
>
> > Hello,
> >
> > We are trying to include the 82544 driver package from ecos 2.0
> > to 1.24 Version of redboot.
> >
> > The redboot Ver 1.24 is the release from Intel for IXP2400.
> > It has the driver package for 82559. We would like to remove
> > this package and add the 82544 support.
> >
> > Could some one list of steps that we need to go through to
> > include driver package for 82544 in the redboot.
> >
>
>You will need to add a new target to the ecos.db file.
>Take a look at the pc and pc_giga targets for an example where the
>same transition has been made. You will need to create a
>board-specific package to map the generic driver on to the board
>itself. Take a look at the CYGPKG_DEVS_ETH_I386_PC_I82544 and
>CYGPKG_DEVS_ETH_ARM_IQ80321 packages for examples.
>
>
>--
>Nick Garnett                    eCos Kernel Architect
>http://www.ecoscentric.com      The eCos and RedBoot experts
>
>
>--
>Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
>and search the list archive: http://sources.redhat.com/ml/ecos-discuss


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list