jipin jose
|
Re: RE: Driver support for LAN 9311i
|
jipin jose
06/16/2010 7:50 AM
post56938
|
Re: RE: Driver support for LAN 9311i
Dear All,
When we tested the 9311 switch with the LAN9218 (SMC9118) driver, we got the below print messages and the ‘io-pkt-v4’
is terminated.
Log message:
Jan 01 00:12:19 5 14 0 tcpip starting
Jan 01 00:12:19 3 14 0 Unable to attach to pci server: No such file or directory
Jan 01 00:12:19 3 14 0 Using pseudo random generator. See "random" option
Jan 01 00:12:19 2 10 0 devn-smc9118: MAC address not specified on cmdline.
Jan 01 00:12:19 2 10 0 devn-smc9118: smc9118_config
Process 19 (io-pkt-v4) terminated SIGKILL code=0 by process 19 value=0.
Then we have programmed the MAC address to the Ethernet EEPROM. We have also noticed that the address of E2P_CMD and
E2P_DATA are changed form 0x1B4 and 0x1B8 respectively. (In LAN9218 the address of E2P_CMD and E2P_DATA are 0xB0 and
0xB4).
So following changes are done in src/hardware/devn/smsc9118/smc.h
#define SMC9118_E2P_CMD 0x1B4 //0xB0 for LAN9218
#define EPC_BUSY (1 << 31)
#define EPC_READ 0x0
#define EPC_WRITE 0x3
#define EPC_RELOAD 0x7
#define EPC_TIMEOUT (1 << 17) //9 for LAN9218
#define MAC_ADDR_LOADED (1 << 16) //8 for LAN9218
#define SMC9118_E2P_DATA 0x1B8 //0xB4 for LAN9218
When we have tested the driver with above modifications we got the below print messages, but the MAC address is read
incorrectly. Also “ping” is not working.
Jan 01 00:00:04 5 14 0 tcpip starting
Jan 01 00:00:04 3 14 0 Unable to attach to pci server: No such file or
directory
Jan 01 00:00:04 3 14 0 Using pseudo random generator. See "random" op
tion
Jan 01 00:00:04 5 10 0 devn-smc9118: 16 bit bus detected
Jan 01 00:00:04 5 10 0 devn-smc9118: Allocate 4096 bytes for TX FIFO
Jan 01 00:00:04 5 10 0 SMC9218I
Jan 01 00:00:04 5 10 0 Vendor .............. 0x10b8
Jan 01 00:00:04 5 10 0 Device .............. 0x118a
Jan 01 00:00:04 5 10 0 Revision ............ 0x0
Jan 01 00:00:04 5 10 0 I/O port base ....... 0x2000000
Jan 01 00:00:04 5 10 0 Interrupt ........... 0xa
Jan 01 00:00:04 5 10 0 MAC address ......... 001ba3 010000
Jan 01 00:00:04 5 14 0 io-pkt shim
Jan 01 00:00:04 5 14 0 Vendor .............. 0x0
Jan 01 00:00:04 5 14 0 Device .............. 0x0
Jan 01 00:00:04 5 14 0 Revision ............ 0x0
Jan 01 00:00:04 5 14 0 I/O port base ....... 0x2000000
Jan 01 00:00:04 5 14 0 Interrupt ........... 0xa
Jan 01 00:00:04 5 14 0 MAC address ......... 001ba3 010000
Jan 01 00:00:07 5 10 0 Link up (100BTFD)
Thanks
Jipin Jose
|
|
|