Iptables module on UdooBuntu2 beta 2

Discussion in 'Linux Ubuntu' started by Luca, Jan 7, 2016.

  1. Luca

    Luca New Member

    Joined:
    Nov 4, 2015
    Messages:
    5
    Likes Received:
    0
    Hi,
    I need to use udoo with a desktop enabled, so i decide tro try udoobuntu 2 beta 2.
    It work very well, i can program Arduino Due without any problem, but unfortunately it has not the iptables module installed.
    So, i've try to compile just the iptables module like this:

    I've install the linux header for the kernel in udoobuntu2
    apt-get install linux-headers-3.14.28-udooqdl

    I've download linux kernel 3.14.28 and move it to /usr/src, and then try to compile the entire network folder:
    make -C /lib/modules/3.14.28-udooqdl-04126-g356e4b8/build M=/usr/src/net/ modules

    Unfortunately i've received this error:
    root@udoo:~# make -C /lib/modules/3.14.28-udooqdl-04126-g356e4b8/build M=/usr/src/net/ modules

    make: Entering directory `/usr/src/linux-headers-3.14.28-udooqdl'

    CC [M] /usr/src/net/802/p8022.o

    scripts/genksyms/genksyms: 1: scripts/genksyms/genksyms: Syntax error: "(" unexpected

    make[2]: *** [/usr/src/net/802/p8022.o] Error 2

    make[1]: *** [/usr/src/net/802] Error 2

    make: *** [_module_/usr/src/net] Error 2

    make: Leaving directory `/usr/src/linux-headers-3.14.28-udooqdl'




    So i've try to edit the Makefile in /usr/src/net leaving just netilter and iptables:

    Code:
    obj-y  := nonet.o
    
    obj-$(CONFIG_NET)  := socket.o core/
    
    tmp-$(CONFIG_COMPAT)  := compat.o
    obj-$(CONFIG_NET)  += $(tmp-y)
    
    # LLC has to be linked before the files in net/802/
    obj-$(CONFIG_LLC)  += llc/
    obj-$(CONFIG_NETFILTER)  += netfilter/
    obj-$(CONFIG_INET)  += ipv4/
    But problem still remain...

    root@udoo:/usr/src/net# make -C /lib/modules/3.14.28-udooqdl-04126-g356e4b8/build M=/usr/src/net/ modules

    make: Entering directory `/usr/src/linux-headers-3.14.28-udooqdl'

    CC [M] /usr/src/net/ipv4/ip_tunnel.o

    scripts/genksyms/genksyms: 1: scripts/genksyms/genksyms: Syntax error: "(" unexpected

    make[2]: *** [/usr/src/net/ipv4/ip_tunnel.o] Error 2

    make[1]: *** [/usr/src/net/ipv4] Error 2

    make: *** [_module_/usr/src/net] Error 2

    make: Leaving directory `/usr/src/linux-headers-3.14.28-udooqdl'



    How can i resolve this problem?
    Can someone help me to compile just iptables module?

    Thanks
     

Share This Page