Ask Your Question
0

How to build integrate the latest ethernet PHY chip driver for oder 2.6.17.6 version of linux kernel?

asked 2017-06-29 06:07:41 -0600

I want to compile and integrate driver code for our new DP82848 PHY chip from Texas Instruments in our Linux kernel running on power pc target. The kernel version that we use on our target is 2.6.17.6. This is very old version of kernel and probably the reason I keep getting compilation errors while compiling the driver code. Can somebody suggest me the kernel version that I should use to build this driver successfully for our target PPC processor?

Thanks, Sachin

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2017-06-29 14:09:45 -0600

ssieb gravatar image

I'm wondering why you're posting this on the Fedora question forum, since it appears you're not running it. Or are you trying to cross-compile it?

Anyway, according to the TI site, the driver for that chip is in the mainline Linux kernel tree. I checked that and the driver has been there since 2015-10-22. Any kernel from around that time until now will automatically support that chip.

edit flag offensive delete link more
0

answered 2017-06-30 00:20:59 -0600

Samuel,

Thanks for your response. You guessed it right. I am trying to cross compile using Fedore Core 4 to build kernel for our target with PHY driver support. Since we cannot upgrade our target kernel to the one when the TI driver support was added to the mainline kernel I was wondering if there is a any other way to make this new driver work with our older kernel version.

edit flag offensive delete link more

Comments

I expect that it will be very difficult to do that as the kernel internals have changed a lot since the 2.6 time. You would pretty much have to rewrite the driver within the old kernel frameworks. Why can't you just bring your target system up to date?

ssieb gravatar imagessieb ( 2017-06-30 12:53:56 -0600 )edit

I actually tried building the new driver as per the older framework and it looks to be a daunting task to make it work since I keep getting errors which I am trying to fix bu updating to the latest phy drivers headers. Upgrading to the latest kernel will call for a lot of additional work to handle compatibility issues with our old board which we currently want to avoid. But I feel it would be relatively more easier task than changing the new driver code as per the older format.

sgosavi1 gravatar imagesgosavi1 ( 2017-07-05 00:30:37 -0600 )edit

Question Tools

Stats

Asked: 2017-06-29 06:07:41 -0600

Seen: 91 times

Last updated: Jun 29 '17