Hi list,
I can successfully build the driver modules; hdlc, dlci, syncppp, and lmc from the 2.6.18-128.1.14 kernel source rpm, and have managed to create a 'wan kmod' rpm. It all works fine for IPv4, but now I need IPv6 for ppp connections, which doesn't work for me.
I think I'll need to back port Krzysztof Halasa's 'ppp for generic hdlc' patches to the 2.6.18-128.1.14.el5 kernel sources.
Has anyone worked on this? I have tried simply overwriting the drivers/net/wan directory with corresponding directory from more recent (2.6.25.20, 2.6.30) vanilla kernel source, but I get errors:
CC [M] drivers/net/wan/hdlc.o drivers/net/wan/hdlc.c:39:31: error: net/net_namespace.h: No such file or directory drivers/net/wan/hdlc.c: In function ‘hdlc_rcv’: drivers/net/wan/hdlc.c:69: warning: initialization from incompatible pointer type drivers/net/wan/hdlc.c:71: error: ‘struct net_device’ has no member named ‘nd_net’ drivers/net/wan/hdlc.c:71: error: ‘init_net’ undeclared (first use in this function) drivers/net/wan/hdlc.c:71: error: (Each undeclared identifier is reported only once drivers/net/wan/hdlc.c:71: error: for each function it appears in.) drivers/net/wan/hdlc.c:76: error: dereferencing pointer to incomplete type drivers/net/wan/hdlc.c:77: error: dereferencing pointer to incomplete type drivers/net/wan/hdlc.c: In function ‘hdlc_proto_start’: drivers/net/wan/hdlc.c:85: error: invalid type argument of ‘->’ ... and so on.
Where is the best starting point for getting these changes back-ported. I guess I need post-'ppp for generic hdlc' but pre-'net-namespace'. Is this possible?
Thanks for any help/advice.
Hi,
On Tue, Jun 30, 2009 at 14:24, Bob Beersbob.beers@gmail.com wrote:
I think I'll need to back port Krzysztof Halasa's 'ppp for generic hdlc' patches to the 2.6.18-128.1.14.el5 kernel sources.
Has anyone worked on this? I have tried simply overwriting the drivers/net/wan directory with corresponding directory from more recent (2.6.25.20, 2.6.30) vanilla kernel source, but I get errors:
Instead of copying a whole subdirectory from a later kernel (which will likely not work), you can try to apply only the patch you need to the current version of the kernel.
There are instructions on how to build a custom kernel based on the CentOS kernel but with additional patches here: http://wiki.centos.org/HowTos/Custom_Kernel
I believe this is the patch you want to apply, right? http://kerneltrap.org/mailarchive/linux-netdev/2008/3/14/1165494
If so, the comments on the original post on that thread suggests it works on kernels up to 2.6.22, that might end up including 2.6.18 as well, so you might have luck with that...
HTH, Filipe
On Tue, Jun 30, 2009 at 2:56 PM, Filipe Brandenburger filbranden@gmail.comwrote:
Hi,
On Tue, Jun 30, 2009 at 14:24, Bob Beersbob.beers@gmail.com wrote:
I think I'll need to back port Krzysztof Halasa's 'ppp for generic hdlc' patches to the 2.6.18-128.1.14.el5 kernel sources.
Has anyone worked on this? I have tried simply overwriting the drivers/net/wan directory with corresponding directory from more recent (2.6.25.20, 2.6.30) vanilla kernel source, but I get errors:
Instead of copying a whole subdirectory from a later kernel (which will likely not work), you can try to apply only the patch you need to the current version of the kernel.
Yes, I knew this was unlikely to work.
There are instructions on how to build a custom kernel based on the CentOS kernel but with additional patches here: http://wiki.centos.org/HowTos/Custom_Kernel
I am familiar with this page and also the very helpful http://wiki.centos.org/HowTos/BuildingKernelModules :)
I believe this is the patch you want to apply, right? http://kerneltrap.org/mailarchive/linux-netdev/2008/3/14/1165494
Yes, I've been through this thread a couple of times. There are several patches actually applied in the course of this thread. I'll go through it again and try to apply the same patches in the same order. And there are a couple other patches that show up later in the year fixing other things related to hdlc/wan. Do you know of a clever way to scan through the change logs for the relevant entries?
If so, the comments on the original post on that thread suggests it works on kernels up to 2.6.22, that might end up including 2.6.18 as well, so you might have luck with that...
Yes, thank you for your reply. I'll take a whack at it.