[an error occurred while processing this directive]
|
Cоратники!
Спасите убогого.
Решил я значит прикрутить OPencores EMAC к ниосу.
Вроде сделал обертку.
Сгенерил систему.
Скомпилил ядро и дрова для емака.
В результате - PHY регистры видим. Линк кладем/опускаем. Но в это-же время постоянно генерим прерывания и посылаем в эзер нолики. Все время.
обертку и проект желающим вышлю - если возникнут таковые. Подскажите что я нахомутал....
Дрова все видят! Вроде даже память аллокируем под буфера - а в результате:
загрузились
# uname -a
uClinux Nios2 2.6.9-uc0 #1 Thu Apr 28 22:43:06 FLEDT 2005 nios2nommu
#
эзер откинут
==============================================
# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:60:80:23:01:DE
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
# ifconfig eth0 10.10.10.2 up
oeth_phymac_synch:eth0 MR1: 0x00007809
Link Down
================================================
подтыкаем эзернет шнурок
#
oeth_PhyInterrupt:eth0 MR17: 0x0000FF08
Lpack
oeth_phymac_synch:eth0 MR1: 0x00007809
Link Down
oeth_PhyInterrupt:eth0 MR17: 0x0000FF20
Pagerec
oeth_phymac_synch:eth0 MR1: 0x00007809
Link Down
oeth_PhyInterrupt:eth0 MR17: 0x0000FF00
oeth_phymac_synch:eth0 MR1: 0x00007809
Link Down
oeth_PhyInterrupt:eth0 MR17: 0x0000FF05
Lschg
Anegcomp
oeth_phymac_synch:eth0 MR1: 0x0000782D
Autoneg'd
Link OK: MODER: 0x0000A043
FullD: MR18: 0x00000E00
100BASE-TX
#
# cat /proc/ioports
80800000-8080004f : eth0
# cat /proc/interrupts
0: 15854 L timer
1: 230 jtag_uart
6: 1403063 eth
7: 5 eth
#
1403063 прерываний за 30 секунд!
при этом
# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:60:80:23:01:DE
inet addr:10.10.10.2 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:845 errors:0 dropped:0 overruns:0 frame:1
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
E-mail: info@telesys.ru