Assuming you are using the AXP 1.5.2 LKM, this sdk will create many kernel modules for you by default. I have provided the steps to create these modules below. If your desired kernel module is not created, then modify the appropriate settings in the image/kernel<version>/linux/.config file. I've provided the links showing the M setting requirements for iptable_raw.ko and iptable_nat.ko here:
http://cateee.net/lkddb/web-lkddb/IP_NF_RAW.html ,
http://cateee.net/lkddb/web-lkddb/NF_NAT.html . You should also check the dependency requirements of your kernel module via 'modinfo <kernel module>' to make sure the module can be inserted- additional modules may be required. Finally you can check which modules have been inserted via 'lsmod'.
Using the LKM.
1. type 'make cleantools'
2. type 'make tools'
3. cd image/kernel <version>/linux.
4. modify the .config file for kernel module creation.
5. access <lkm dir>/gplcore/kernel <version>
6. type 'make modules'
7. access <lkm dir>/image/kernel <version>/linux
8. Search for modules via 'find . -name "*.ko" '
Thanks,
Brett