Cannot get ipv6 modules to load

Post new topic   Reply to topic    DD-WRT Forum Index -> X86 based Hardware
Author Message
brylyo
DD-WRT Novice


Joined: 26 Feb 2014
Posts: 1

PostPosted: Wed Feb 26, 2014 2:34    Post subject: Cannot get ipv6 modules to load Reply with quote
I known I'm missing something simple here, but I cannot figure it out.

Here's what I got. Windows8.1 with VMware workstation 10 and a guest running dd-wrt.

Router Name
DD-WRT
Router Model
Generic X86
Firmware Version
DD-WRT v24-sp2 (03/19/12) std - build 18777

This is the public version of the build
dd-wrt_public_vga.image

The goal here is to get ip6_tables working so I can test IPv6, decide if I like the dd-wrt and maybe one day flash my WNDR3700v3 router with it. I decided to use VMware to test as I'm to chicken to flash my router at this time.

I followed the guide in http://www.dd-wrt.com/wiki/index.php/IPv6. telling me to download modules, which I tried. When I tried to load them it gave me the message
insmod: cannot insert 'ip6_tables.ko' : invalid module format

I kind of figure that wouldn't work, so I went on to the next step to compile the modules.

So in another VM I have Ubuntu running the latest
:~$ uname -a
Linux Linux-DC 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:16:28 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
followed this article https://blog.jmwhite.co.uk/2013/08/10/compiling-ipv6-modules-from-source-for-dd-wrt/

First step get the development tools - appeared successful
sudo apt-get install gcc g++ binutils patch bzip2 flex bison make gettext unzip zlib1g-dev libc6 subversion ncurses-dev ccache

Next was to get the kernel source
Took a little time but I found running this command grab them, or what I think they are
svn co -r 18777 svn://svn.dd-wrt.com/DD-WRT/src/linux/universal

Next step get the toolchains to compile the kernel with
cd /opt
wget http://www.dd-wrt.com/dd-wrtv2/downloads/others/sourcecode/toolchains/current-toolchains.tar.bz2
tar jxvf current-toolchains.tar.bz2

Now set the Path
the article said to do this PATH=$PATH:/opt/toolchain-mipsel_gcc4.1.2/bin
Then I tried to cp .config_bcmmips to .config, but there was not file so I did
cp .config_generic .config
Made the following changesto the .config file
CONFIG_NF_CONNTRACK_IPV6=m
CONFIG_IP6_NF_IPTABLES=m
CONFIG_IP6_NF_MATCH_RT=m
CONFIG_IP6_NF_MATCH_OPTS=m
CONFIG_IP6_NF_MATCH_FRAG=m
CONFIG_IP6_NF_MATCH_HL=m
CONFIG_IP6_NF_MATCH_OWNER=m
CONFIG_IP6_NF_MATCH_IPV6HEADER=m
CONFIG_IP6_NF_MATCH_AH=m
CONFIG_IP6_NF_MATCH_MH=m
CONFIG_IP6_NF_MATCH_EUI64=m
CONFIG_IP6_NF_FILTER=m
CONFIG_IP6_NF_TARGET_LOG=m
CONFIG_IP6_NF_TARGET_REJECT=m
CONFIG_IP6_NF_MANGLE=m
CONFIG_IP6_NF_TARGET_HL=m
CONFIG_IP6_NF_RAW=m

ran
make modules ARCH=mips
That gave me the following error
ccache: FATAL: Could not find compiler "mips-linux-gcc" in PATH

So I went back and change my PATH
PATH=$PATH:/opt/toolchain-mips_r2_gcc-linaro_uClibc-0.9.32/bin

ran make modules ARCH=mips again
This time it appeared to successed

copied ip6 modules to my test router and ran
insmod ip6_tables.ko
same error as before> insmod: cannot insert 'ip6_tables.ko' : invalid module format

bryan@Linux-DC:~/ip6$ modinfo ip6_tables.ko
filename: /home/bryan/ip6/ip6_tables.ko
description: IPv6 packet filter
author: Netfilter Core Team <coreteam@netfilter.org>
license: GPL
depends:
intree: Y
vermagic: 3.2.12-rc1-svn18774 mod_unload MIPS32_R1 32BIT


I'm sure I missed a step here, go easy I'm a newbe Confused
Sponsor
Sash
DD-WRT Guru


Joined: 20 Sep 2006
Posts: 17619
Location: Hesse/Germany

PostPosted: Sat Mar 01, 2014 12:22    Post subject: Reply with quote
of cause mips modules wont run on an x86 cpu....
_________________
Forum Guidelines...How to get help
&
Forum Rules
&
RTFM/STFW
&
Throw some buzzwords into the WIKI search Exclamation
_________________
I'm NOT rude, just offer pure facts!
_________________
Atheros (TP-Link & Clones, etc ) debrick service in EU
_________________
Guide on HowTo be Safe, Secure and Protect Your Online Anonymity!
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> X86 based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum