mzweilin / napt66

Automatically exported from code.google.com/p/napt66
38 stars 12 forks source link

提供一个Padavan下的napt66.ko(内核版本3.4) #53

Open hanwckf opened 7 years ago

hanwckf commented 7 years ago

经测试,在没有SMB和USB支持的padavan固件里使用这个模块会崩溃,在我自己编译的带SMB和USB支持的固件运行正常。 napt66.zip 如要自己编译,请先编译好padavan工具链且成功完整地编译过一次固件才能成功。 附Makefile:

# Makefile under 2.6.25
ifneq ($(KERNELRELEASE),)
#kbuild syntax. dependency relationshsip of files and target modules are listed here.
obj-m := napt66.o
napt66-objs := napt66_main.o napt66_conntrack.o napt66_nat.o napt66_hash_table.o napt66_ftp_alg.o
else
PWD  := $(shell pwd)
KVER ?= $(shell uname -r)
KDIR := /opt/rt-n56u/trunk/linux-3.4.x
all:
    $(MAKE) -C $(KDIR) M=$(PWD) modules ARCH=mips CROSS_COMPILE=/opt/rt-n56u/toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-
clean:
    rm -rf .*.cmd *.o *.mod.c *.ko .tmp_versions *.symvers *.order
endif
BROBIRD commented 6 years ago

您好,您提供的ko文件在newifi mini/newifi y1s上均不能加载,我自己编译了一份依然不能加载,输入完insmod /opt/napt66.ko wan_if=eth2.2之后,路由器就重启了,没有任何效果