JasonDC
Posts: 2
Joined: Thu Jan 24, 2013 4:23 am

Kernel 3.6.11 and Netfilter Issues while compiling

Thu Feb 21, 2013 12:13 am

Hello all, I just wanted to reach out and ask if anybody is experiencing the same issues I am.

I've installed Rasbian (2013-02-09-wheezy-raspbian.img) and that went fine.
I've cloned the the source from https://github.com/raspberrypi/linux.git, and that worked out as well.

I ran the following commands (on the Raspberry Pi) to initiate a build of a kernel in the source directory as root

# make mrproper
# zcat /proc/config.gz > .config
# make ARCH=arm oldconfig
# make ARCH=arm menuconfig
# make ARCH=arm

Everything works great until it starts trying to compile the netfilter.
I get this error:

net/ipv4/netfilter/ipt_ECN.c:20:42: fatal error: linux/netfilter_ipv4/ipt_ECN.h: No such file or directory
compilation terminated.
make[3]: *** [net/ipv4/netfilter/ipt_ECN.o] Error 1
make[2]: *** [net/ipv4/netfilter] Error 2
make[1]: *** [net/ipv4] Error 2
make: *** [net] Error 2

Obviously there is no such file in the listed directory.

I know the kernel headers are not packaged with Rasbian.
So, whats my next step? Any suggestions on how to over come and complete this compile?

I've had other issues with netfilter before. A broader questions would be, whats the deal with Rasbian and netfilter?

Any links, suggestions or ideas would be appreciated.
Thanks.

liudeen
Posts: 1
Joined: Tue Mar 26, 2013 5:55 pm

Re: Kernel 3.6.11 and Netfilter Issues while compiling

Tue Mar 26, 2013 5:56 pm

Got the same problem here.
Any solutions or help?

Thanks.

koyabr
Posts: 3
Joined: Sat Mar 30, 2013 3:30 pm

Re: Kernel 3.6.11 and Netfilter Issues while compiling

Fri Apr 26, 2013 10:13 pm

Same problem too.

What's weird is that I see no image file like zImage or Image in my arch/arm/boot after I finish this instruction:

Code: Select all

make ARCH=arm CROSS_COMPILE=${CCPREFIX}
All I have are:

Code: Select all

loon@ubuntu:~/Downloads/linux-rpi-3.6.y/arch/arm/boot$ ls
bootp  compressed  dts  install.sh  Makefile
Then I type

Code: Select all

make ARCH=arm CROSS_COMPILE=${CCPREFIX} modules
and get stuck for nights.

remsnet
Posts: 151
Joined: Wed Dec 19, 2012 7:32 pm
Location: Planet Gaia
Contact: Website Yahoo Messenger

Re: Kernel 3.6.11 and Netfilter Issues while compiling

Fri Apr 26, 2013 11:42 pm

liudeen wrote:Got the same problem here.
Any solutions or help?

Thanks.
shure ... myself use 3.8.y source.
but either 3.6.y shuold work .

mysself compile kernels direct on the PI . No crosscompile..
Take longer ~22h but who cares :-) , Pi Compiled can run in background

see at :
- elinux.org/RPi_Kernel_Compilation

- http://www.raspberrypi.org/phpBB3/viewt ... 87&t=40664

please be shure use the Right GIT TAG

remsnet
Posts: 151
Joined: Wed Dec 19, 2012 7:32 pm
Location: Planet Gaia
Contact: Website Yahoo Messenger

Re: Kernel 3.6.11 and Netfilter Issues while compiling

Fri Apr 26, 2013 11:45 pm

koyabr wrote:Same problem too.

[/code]

Then I type

Code: Select all

make ARCH=arm CROSS_COMPILE=${CCPREFIX} modules
and get stuck for nights.
I do on my PI ( NO Crosscompile) :

cd /usr/src/linux
make oldconfig

nohup make \
CPPFLAGS="-Ofast -mfpu=vfp -march=armv6zk -mtune=arm1176jzf-s" \
CFLAGS="-Ofast -mfpu=vfp -march=armv6zk -mtune=arm1176jzf-s" \
dep zImage modules &

koyabr
Posts: 3
Joined: Sat Mar 30, 2013 3:30 pm

Re: Kernel 3.6.11 and Netfilter Issues while compiling

Sat Apr 27, 2013 3:35 am

@remsnet:

Thank you for the help. I finally figured out what''s going wrong: should not have downloaded the one big ZIP archive from Github, use

Code: Select all

git clone
instead. Now I can see the Image and zImage files in my arch/arm/boot. :D

Return to “Raspberry Pi OS”