Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

Igor Mac and DP83848 dont read data

Hello all,

I have board with Cyclone III (EP3C25Q240) with DP83848C and design in sopc builderu(igor_mac - clk_0=60MHz, irq=7,...) + quartusu. After this i build my uClinux - Ethernet 10/100Mbit -

- Generic Media Interface ... support

- Opencores (Igor) Emac support

and

- Networ device support - driver for National semic. PHY

after starting it looks ok,

------------------------------------------------------

/> dmesg

Linux version 2.6.30-rc6 (uclinux@localhost.localdomain) (gcc version 3.4.6)# 33

89 PREEMPT Fri Apr 6 13:15:41 CEST 2012

uClinux/Nios II

On node 0 totalpages: 4096

free_area_init_node: node 0, pgdat 011d4fb8, node_mem_map 01338000

DMA zone: 32 pages used for memmap

DMA zone: 0 pages reserved

DMA zone: 4064 pages, LIFO batch:0

Built 1 zonelists in Zone order, mobility grouping off. Total pages: 4064

Kernel command line:

NR_IRQS:32

PID hash table entries: 64 (order: 6, 256 bytes)

Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)

Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)

Memory available: 12948k/3149k RAM, 0k/0k ROM (1664k kernel code, 1484k data)

Calibrating delay loop... 29.49 BogoMIPS (lpj=147456)

Mount-cache hash table entries: 512

net_namespace: 264 bytes

NET: Registered protocol family 16

init_BSP(): registering device resources

bio: create slab <bio-0> at 0

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 512 (order: 0, 4096 bytes)

TCP bind hash table entries: 512 (order: -1, 2048 bytes)

TCP: Hash tables configured (established 512 bind 512)

TCP reno registered

NET: Registered protocol family 1

io scheduler noop registered

io scheduler deadline registered (default)

ttyJ0 at MMIO 0x20070a0 (irq = 1) is a Altera JTAG UART

console [ttyJ0] enabled

ttyS0 at MMIO 0x2007040 (irq = 5) is a Altera UART

ttyS1 at MMIO 0x2007060 (irq = 6) is a Altera UART

eth0: Open Ethernet Core Version 1.0

oeth_probe: 60000 Khz Nios: 16 RX, 16 TX buffs

NO Custom HW ALIGN.

CONFIG_NIOS2_HW_MULX NOT defined.

CONFIG_NIOS2_HW_MUL_OFF NOT defined.

BMCR = 7fdfh.

TCP cubic registered

NET: Registered protocol family 17

RPC: Registered udp transport module.

RPC: Registered tcp transport module.

Freeing unused kernel memory: 1260k freed (0x11d8000 - 0x1312000)

oeth_phymac_synch:eth0 MR1: 0x00007FDF

Jabber

Remote Fault

Link OK: MODER: 0x0000A040

FullD

100BASE-TX

&#12288;

oeth_phymac_synch:eth0 MR1: 0x00007FDF

Jabber

Remote Fault

Link OK: MODER: 0x0000A440

FullD

100BASE-TX

but when i use ping to pc, the data i can see in wireshark, but the data dont read back:

/> ping 192.168.2.200 -c 5

PING 192.168.2.200 (192.168.2.200): 56 data bytes

--- 192.168.2.200 ping statistics ---

5 packets transmitted, 0 packets received, 100% packet loss

/>

and statistics after stopping my net sending program looks:

/> ifconfig

eth0 Link encap:Ethernet HWaddr 00:07:ED:0A:03:29

inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:131484 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 (0.0 B) TX bytes:64822812 (61.8 MiB)

Base address:0x4000

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

UP LOOPBACK RUNNING MTU:16436 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:0

RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

Why the ip or nios dont read the data from ethernet line ?

Some idea ?

Thank you very much

Jan Naceradsky, Czech Republic
No RepliesBe the first to reply