Add l2tp_eth & l2tp_netlink to kernel

Hi All,

I've been able to get debian 3.0.3-x2 installed using the Robert
Nelson netinstall scripts. I now need to load two kernel modules
l2tp_eth & l2tp_netlink. As they appear to not be compiled with the
kernel, I'm assuming that I need to recompile with the relevant
modules added.

I'm a little lost with how to recompile 3.0.3-x2 for beagleboard.
I've recompiled a few times on intel hardware which was all pretty
standard. From what I have read, there is a whole list of patches
that have to be applied for the omap / beagle hardware.

I've found the following tutorial for recompiling a 2.6.29
http://www.lirtex.com/embedded/building-a-custom-debian-kernel-for-the-beagleboard/
, which would be find for me except that the L2TP support didn't get
added to the kernel until 2.6.35. The instructions are not able to be
translated to a 3.0.3 kernel, so I'm a bit lost.

If anyone could point me in the right direction for how to build a
kernel >= 2.35 with modules l2tp_eth & l2tp_netlink it would be very
much appreciated.

Thanks,

-poke

The script is use for building said debian 3.0.3-x2 is available here:

https://github.com/RobertCNelson/stable-kernel

Let me know which modules you need enabled..

Regards,

Will this work for you:

./3.0.3-x2.1/kernel/net/l2tp
./3.0.3-x2.1/kernel/net/l2tp/l2tp_ip.ko
./3.0.3-x2.1/kernel/net/l2tp/l2tp_debugfs.ko
./3.0.3-x2.1/kernel/net/l2tp/l2tp_eth.ko
./3.0.3-x2.1/kernel/net/l2tp/l2tp_core.ko
./3.0.3-x2.1/kernel/net/l2tp/l2tp_netlink.ko

diff: https://github.com/RobertCNelson/stable-kernel/commit/3203b1b63097141206b1a47ca2eb638f1134ed8f

Regards,

Looks perfect.

Will test and respond in the next day or so.

Cheers for the amazingly fast response!

-poke

Worked like a charm. Thanks Robert!

The only bit of information I would add for people doing a compile for
beagleboard is to get cross compiler from EmDebian.

I created the file /etc/apt/sources.list.d/emdebian.list with
following content:

deb http://www.emdebian.org/debian/ squeeze main

Then installed, binutils-arm-linux-gnueabi and gcc-4.4-arm-linux-
gnueabi