Hi,

Some time back I used tplink mr3220 to design an application that suits the 
hardware well. It is an userland application and running perfectly. We have 
installed them on quite a few places and everyone is happy.

I downloaded binary from the download page (did not build) 
openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin 

The same client has a new requirement that needed us to build a kernel module, 
tested ok on i386 platform.

Now I cannot seem to put the kernel module in the old installations of MR3220.

The closest I came to compiling the module was to use buildroot with the same 
kernel version as the board (2.6.39.4). I used the kernel directory as linux 
source in my development directory. in menuconfig, I used mips 32r2 as the 
target architecture varient. Used following make command to compile my module.

make ARCH:=mips 
CROSS_COMPILE:=/home/moser/mr3220/buildroot-2012.11.1/output/host/usr/bin/mips-buildroot-linux-uclibc-
 -C /
home/moser/mr3220/buildroot-2012.11.1/output/build/linux-2.6.39.4 
SUBDIRS=/home/moser/mr3220/cute/kernel modules

And I got a cute.ko file that got compiled with right kernel version and right 
ARCH. 

I still cannot insmod the module.

When I check the modinfo on cute.ko, I get vermagic "2.6.39.4 mod_unload 
MIPS32_R1 32BIT"
When I ran the modinfo on existing modules in old mr3220 board I get vermagic 
"2.6.39.4 mod_unload MIPS32_R2 32BIT"

I tried lots of other things but with no avail. (Tried openwrt trunk with 
modified kernel version, tried kamikaze with various options nothing seem to 
work)

Could someone point me in right direction?

Apologies, If I am on wrong list.

Thanks in advance.

Moser Rusedski.
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-users

Reply via email to