对于LAN91C111,通过配置Bank select Register选择Bank3, 读取Revision Register即可到ID,但现在读取的值为0,不知何处出的问题,正在查找......作者: louismaxwit 时间: 2011-03-04 10:46
The progress of project:
1.Read OMAP353x technical reference manual and LAN91C111 spec.
2.Analyze the block diagram of LAN91C.
3.Analyze the connection of the sock and the ethernet device, but not finished.
4.Ready to read the id of LAN91C, not finished.作者: louismaxwit 时间: 2011-03-04 17:19 本帖最后由 louismaxwit 于 2011-03-05 14:49 编辑
Development Environment:
Ethernet chip: SMSC LAN91C111
SOC: OMAP3530
Environment: g-bios
The progress of project:
1.Finish reading ID of LAN91C.
According to the omap353x and LAN91C specs, we could found that followings:
a. The addressable of memory which GPMC controlled have been divided into eight banks.
b. try to chip-select bank1, so we should choose to set GPMC_CONFIG1_1 register and GPMC_CONFIG7_1 register.
c. set the chip-select base address and region size in GPMC_CONFIG7_1 register.
d. set the bank number which we choosed from MAC registers into the bank select register.
e. read the chip id from the corresponding register in LAN91C.作者: jchxpll 时间: 2011-03-05 09:46
读了n遍LAN91C111 Datasheet,仍没有发现如何读取PHY ID。。。。。。作者: louismaxwit 时间: 2011-03-05 19:45
Development Environment:
Ethernet chip: SMSC LAN91C111
SOC: OMAP3530
Environment: g-bios
The progress of project:
Continued reading LAN91C spec ......作者: StarYing-maxwit 时间: 2011-03-08 09:41
终于可以回帖了。现在已经实现了数据包的接收,PHY ID暂时先不读了作者: voidjackjiang 时间: 2011-03-08 09:45
Ethernet的receive和send packet功能基本实现,今天的主要任务是完善代码,向net core注册。作者: tszcgf 时间: 2011-03-08 10:00
The progress of project:
1,It can receive a packet, if server send a packet.
2,Transfer capabilities will be realize today.作者: janezhao123 时间: 2011-03-08 17:16
LAN91可以 正常的收发多个包,调试中遇到一些问题,分享一下:
(1)发包的时候要发alloc mem 命令。
(2)读取收到包的数据时,按16字节读取,此时将packet size / 2, 再发送该包时,size要与除2前保持一致
(3)配置寄存器时,选择bank和配置顺序影响代码调试。
(4)读写寄存器,收发程序都应封装成函数,实现模块化管理 。作者: sterling_zhou 时间: 2011-03-08 17:19
进展情况:
1、收包完成后再实现发包功能,要注意的问题是先分配相关的memory并把发送的命令写入register;
2、在low level层实现driver,并向子系统注册;作者: louismaxwit 时间: 2011-03-08 17:20
Development Environment:
Ethernet chip: SMSC LAN91C111
SOC: OMAP3530
Environment: g-bios
The progress of project:
LAN91C can recieve and send data successfully.
debug experience:
a. recieve data uninterrupted.
Fix bug: send data one time, but recieved data uninterruptly. I thought that fifo operation may be wrong.
so checked the fifo operation code. And found the register address is written wrong. Corrected it. Then
run the qemu monitor to load g-bios. Tested successfully.作者: spanthrive 时间: 2011-03-08 17:26
收包/发包对 MMU register 的操作不同