Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12589 Discussions

Linux with MMU on Neek: incorrect UDP/TCP cheksum

Altera_Forum
Honored Contributor II
1,359 Views

Hello everyone! 

 

Recently I started working on a project of bringing Linux with MMU on Neek board. 

I have working system using nios2-linux-20100621.tar uClinux distribution, 

and neek_ocm_spi_mmu.zip design. 

 

I select "OpenCores 10/100 Mbps Ethernet MAC support" (ETHOC) and 

succeed in passing ping. But anything except ping fails. It turned out that all packets 

transmitted by Neek have bad Layer4 (UDP/TCP) checksum. Looking through ethoc.c source 

I cannot find anything like "TCP checksum offload" which might cause such problem. 

OpenCores Ethernet MAC spec also does not state anything related to such offload. 

 

Does anyone has an idea what may cause such incorrect Layer 4 checksumming? 

 

 

Thanks, 

Vladik
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
295 Views

Hi Vladik, 

 

is this you first project with the Opencores MAC on the board or have you had success with other than linux, i.e. the webserver example from interniche inside the nios ide? 

 

Have you tried the other driver "Opencores (igor MAC)"? 

 

Urmel
0 Kudos
Altera_Forum
Honored Contributor II
295 Views

I had a checksum problem some times ago. The kernel I was using was bugged.... 

 

This is from the mail list: 

 

 

--- Quote Start ---  

There was an error in the NIOS II optimized checksum implementation that was 

fixed after 2.6.34. Other people ran into the problem here: 

http://www.alteraforum.com/forum/showthread.php?t=24075 

--- Quote End ---  

 

 

May be it can help you.
0 Kudos
Altera_Forum
Honored Contributor II
295 Views

 

--- Quote Start ---  

Hi Vladik, 

 

is this you first project with the Opencores MAC on the board or have you had success with other than linux, i.e. the webserver example from interniche inside the nios ide? 

 

Have you tried the other driver "Opencores (igor MAC)"? 

 

Urmel 

--- Quote End ---  

 

 

Hi Urmel, 

 

this is my 1st project with Opencores MAC. I didn't test Opencores (igor) MAC with this design. 

 

Vladik
0 Kudos
Altera_Forum
Honored Contributor II
295 Views

 

--- Quote Start ---  

I had a checksum problem some times ago. The kernel I was using was bugged.... 

 

This is from the mail list: 

 

 

 

May be it can help you. 

--- Quote End ---  

 

 

You are absolutely correct: updating the kernel to 2.6.35 fixed all problems. Thank you!
0 Kudos
Reply