Posted: Wed Feb 26, 2014 2:34 Post subject: Cannot get ipv6 modules to load
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.
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
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