ibm emac driver update

4 messages, 2 authors, 2005-12-13 · open the first message on its own page

ibm emac driver update

From: Simon Haynes <hidden>
Date: 2005-12-12 18:04:35

I am running a Ebony board with linux-2.6.12-rc1 and I amd having intermittent 
network problems. Having searched the archives it would seem that the driver
for the IBM EMAC is buggy ? 

I have tried to patch my kernel with 

http://kernel.ebsname.net/emac/4xx_napi_emac.diff

I believe this is almost a total driver re-write. Is this correct ?

After having a couple of problems applying the patch, Kconfig and 
ibm_emac_core.c. I fixed up the original code and applied the patch.

On compilation the build fails with missing references to kzalloc,
which I guess I could easily fix with kmalloc and memset. 

However there is also an undefined field,  dcr_base, in the ocp_func_mal_data
structure.  This structure appears to be defined in include/asm/ibm_ocp.h and 
this file does not appear to be changed by the patch. I guess this patch is 
for a later kernel.

Can anyone point me in the direction of a suitable patch for this kernel ?

Many Thanks

Simon.

Re: ibm emac driver update

From: Eugene Surovegin <hidden>
Date: 2005-12-12 18:15:01

On Mon, Dec 12, 2005 at 05:26:34PM +0000, Simon Haynes wrote:
I am running a Ebony board with linux-2.6.12-rc1 and I amd having intermittent 
network problems. Having searched the archives it would seem that the driver
for the IBM EMAC is buggy ? 

I have tried to patch my kernel with 

http://kernel.ebsname.net/emac/4xx_napi_emac.diff

I believe this is almost a total driver re-write. Is this correct ?

After having a couple of problems applying the patch, Kconfig and 
ibm_emac_core.c. I fixed up the original code and applied the patch.

On compilation the build fails with missing references to kzalloc,
which I guess I could easily fix with kmalloc and memset. 

However there is also an undefined field,  dcr_base, in the ocp_func_mal_data
structure.  This structure appears to be defined in include/asm/ibm_ocp.h and 
this file does not appear to be changed by the patch. I guess this patch is 
for a later kernel.

Can anyone point me in the direction of a suitable patch for this kernel ?
I'm not sure about 2.6.12-rc1, but you can try GIT tree/patches at 
http://kernel.ebshome.net. 

Hint: you can assume that in addition to emac_3-2.6-28.diff, there are 
also emac_3-2.6-NN.diff (NN < 28) on my website which were made for 
earlier kernel versions :).

Alternatively, you can backport all relevant stuff from current 2.6 or 
you can pay someone to do this for you.

-- 
Eugene

Re: ibm emac driver update

From: Simon Haynes <hidden>
Date: 2005-12-13 13:45:03

Eugine,

Thanks for the reply. I am not familiar with git and I do not
have it installed on my system. I have looked for rpms and
tried to build git. It seems that I will need to make a lot of changes
to my system to get this going.

In a response from Wolfgang he lists a url which can be used to access 
his git tree via a browser. I can not find these patch files on his git tree
but I was wondering if you made the files available in a similar way.

Alternatively can you mail the file to me ?

Or can you tell me if the files are somewhere on

http://www.denx.de/cgi-bin/gitweb.cgi?p=linux-2.6-denx.git

If not I guess I will just have to get all the bits together to run
git and learn how to drive it.

Many Thanks

Simon.


On Monday 12 December 2005 18:14, Eugene Surovegin wrote:
On Mon, Dec 12, 2005 at 05:26:34PM +0000, Simon Haynes wrote:
quoted
I am running a Ebony board with linux-2.6.12-rc1 and I amd having
intermittent network problems. Having searched the archives it would seem
that the driver for the IBM EMAC is buggy ?

I have tried to patch my kernel with

http://kernel.ebsname.net/emac/4xx_napi_emac.diff

I believe this is almost a total driver re-write. Is this correct ?

After having a couple of problems applying the patch, Kconfig and
ibm_emac_core.c. I fixed up the original code and applied the patch.

On compilation the build fails with missing references to kzalloc,
which I guess I could easily fix with kmalloc and memset.

However there is also an undefined field,  dcr_base, in the
ocp_func_mal_data structure.  This structure appears to be defined in
include/asm/ibm_ocp.h and this file does not appear to be changed by the
patch. I guess this patch is for a later kernel.

Can anyone point me in the direction of a suitable patch for this kernel
?
I'm not sure about 2.6.12-rc1, but you can try GIT tree/patches at
http://kernel.ebshome.net.

Hint: you can assume that in addition to emac_3-2.6-28.diff, there are
also emac_3-2.6-NN.diff (NN < 28) on my website which were made for
earlier kernel versions :).

Alternatively, you can backport all relevant stuff from current 2.6 or
you can pay someone to do this for you.

Re: ibm emac driver update

From: Simon Haynes <hidden>
Date: 2005-12-13 17:55:02

On Monday 12 December 2005 18:14, Eugene Surovegin wrote:
On Mon, Dec 12, 2005 at 05:26:34PM +0000, Simon Haynes wrote:
quoted
I am running a Ebony board with linux-2.6.12-rc1 and I amd having
intermittent network problems. Having searched the archives it would seem
that the driver for the IBM EMAC is buggy ?

I have tried to patch my kernel with

http://kernel.ebsname.net/emac/4xx_napi_emac.diff

I believe this is almost a total driver re-write. Is this correct ?

After having a couple of problems applying the patch, Kconfig and
ibm_emac_core.c. I fixed up the original code and applied the patch.

On compilation the build fails with missing references to kzalloc,
which I guess I could easily fix with kmalloc and memset.

However there is also an undefined field,  dcr_base, in the
ocp_func_mal_data structure.  This structure appears to be defined in
include/asm/ibm_ocp.h and this file does not appear to be changed by the
patch. I guess this patch is for a later kernel.

Can anyone point me in the direction of a suitable patch for this kernel
?
I'm not sure about 2.6.12-rc1, but you can try GIT tree/patches at
http://kernel.ebshome.net.

Hint: you can assume that in addition to emac_3-2.6-28.diff, there are
also emac_3-2.6-NN.diff (NN < 28) on my website which were made for
earlier kernel versions :).

Alternatively, you can backport all relevant stuff from current 2.6 or
you can pay someone to do this for you.

I have eventually got git going. I am not familiar with it but following a 
tutorial I did

git clone rsync://kernel.ebshome.net/linux-2.6-emac.git
cd linux-2.6-emac
git checkout

I then ran find looking for a patches dir and could not find one.

Could you please tell me how to locate the emac_3-2.6-NN.diff files.

Cheers

Simon
 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help