[Q] Any GB kernel with iptables support? - Nexus S Q&A, Help & Troubleshooting

Hi, i need any gingerbread kernel with iptables support. Downloading DroidWall doesn't seem to work, it gives me error.
I've installed iptables by apk, i wonder if with a proper kernel it can work.
I've tried looking for google, but I only get Semaphore kernel, whic is for sI900.
What can I do?
(I'm not American/English, sorry if i made some language mistake!)

Related

[Info/brainstorming] Compiling modules for the 2.6.32 beta kernel OBSOLETE

This thread is now obsolete.
Kernel sources for build 5.26.0 have been released:
https://opensource.motorola.com/sf/go/projects.milestone/frs.milestone_source_froyo
I've pushed some new pre-compiled modules to github, though beware, I haven't had time to test all of them on device yet:
https://github.com/nadlabak/android...mmit/b300803348705d3fc5ce76d8c88d57186748a370
As the kernel sources are not yet available from the Motorola's open source project, here is an outline how I compiled the overclock and cpufreq governor modules. (Btw., the overclock module needed a substantial adaptation, see the source here: http://android.doshaska.net/2.6.32oc )
I'm using the sources from this AOSP repo:
Code:
git clone git://android.git.kernel.org/kernel/omap.git
git checkout --track -b android-omap-2.6.32 origin/android-omap-2.6.32
Use the sholes config:
Code:
make sholes_defconfig
flags that need to be disabled:
CONFIG_LOCALVERSION_AUTO
CONFIG_MODVERSIONS
CONFIG_DEBUG_MUTEXES
CONFIG_SCHEDSTATS
CONFIG_SCHED_DEBUG
[updated on 17.01.2011, thanks go to Skrilax_CZ]
At least the ext2 will work without panics when compiled using this config.
For tun, cifs and nfs there is still some additional config mismatch that prevents the modules to work without null pointer dereference oops.
Also, even when no custom kernel module is used, you can get the kernel panic very easily, try to enable wifi and do:
Code:
cat /proc/kallsyms
If you're interested in a more detailed android kernel compilation guide, you can e.g. roughly follow this Droid kernel guide: http://www.droidforums.net/forum/rescue-squad-guides/31452-how-compile-your-own-kernel.html
Thanks for starting this thread kabaldan! It is a great starting point in tackling the issue of adding tun support to the new kernel (tun.ko module). I am not as good as many others in this, but trying won't hurt. Meanwhile if someone else is working on tun support - share experience here!
If kernel seems to be ok, sometimes mounting with new version of busybox won't work.
I used to get kernel panic when use newer version of busybox (not Android kernel but my own embedded linux)
Hey Nadlabak can you add DLNA function of CM6?
same problem using droidx kernel sources. insmod ok, mount reboots the phone
yantz
I tried droid2 kernel module - doesn't work either
I noticed OpenVPN included in CM6 also relies on this kernel module. Hence doesn't work. I guess we won't (ever) see kernel sources for that leaked kernel we are now using. I assume Motorola will release the sources sooner or later, but not before official Froyo layout. The waiting is killing me! kabaldan, can't you try to do some magic as you did with the overclock module? The beer is from me!!!
Can you test this attached tun.ko?
Insmod is OK, but I currently don't have time for any further tests...
EDIT: don't bother, kernel panic as usual
Module loads fine, but when attempt to use it, phone reboots, just like with the module compiled from DroidX sources..
leobg said:
Module loads fine, but when attempt to use it, phone reboots, just like with the module compiled from DroidX sources..
Click to expand...
Click to collapse
So, I got it loaded - insmod works just great, just like it did on the 2.1 kernel.
I'm trying to use the CM6 built-in OVPN settings, but I can't find any documentation on the setup. How did you get it set up?
I have
/sdcard/openvpn/
cert.crt
ca.crt
config.conf
config.ovpn
pem.key
I realize that config.conf and config.ovpn are the same file- but I use this VPN on windows and on Mac, and I wasn't sure the requirements on Linux.
If I can't find some documentation I'll try downloading the OpenVPN settings app from the market and playing with that.
Also, I don't know if it's true or not, but I heard the Milestone2 source compiled driver could work.
Are you trying the module kabaldan provided? It doesn't seem to work, at least for me. Loads fine, but phone crashes when setting up tun interface. I couldn't get OpenVPN in CM6 0.3 to work so far. I am testing the tun.ko with the cisco vpn package (which worked great on the old kernel with CM6 0.2) vpnc. When I initiate the connection, phone reboots if the attached here tun.ko is used. I also tried with tun.ko compiled from DroidX sources - same thing - phone reboots. I am not sure where did kabaldan take/compile this module from.
Sent from my Milestone using Tapatalk
I was using the same one, I was thinking maybe he could use the info from more than one phone. I'll try get-a-robot or OpenVPN Installer, but I won't hold my breathe. I was just hoping to use the built-in functionality of the ROM.
*edit* Just saw he removed it because it doesn't work yet, oh well.
the kernel doesnt seem to like any other fs not built into it. i've tried several, ext2, ext3, ext4, cifs, jffs, reiserfs etc. all modules would load without a problem but system will reboot during mount. heck i even tried creating logical volume on the partition. volume created fine, but when time to mount, it reboot
i ended up using a 2nd vfat partition for apps2vfat, on top of native froyo move to sd. moved my debian arm there and manually, yes manually, replace many symlinks in libs to copied files
hopefully next froyo release for other regions would provide a different kernel
yantz
hey kabaldan wondering if you've had another chance to look at an updated tun.ko
Finally some breakthrough. The great Skrilax_CZ has made some hard debugging and one very good guess:
CONFIG_DEBUG_MUTEXES must be disabled in the kernel config.
At least the ext2 module compiled this way is working without panics now.
Congrats to Skrilax!
EDIT: Tun nor nfs not tested yet..., cifs unfortunately still not working.
kabaldan said:
Finally some breakthrough. The great Skrilax_CZ has made some hard debugging and one very good guess:
CONFIG_DEBUG_MUTEXES must be disabled in the kernel config.
At least the ext2 module compiled this way is working without panics now.
Congrats to Skrilax!
EDIT: Tun nor nfs not tested yet..., cifs unfortunately still not working.
Click to expand...
Click to collapse
This means that now the app2ext work?
Where are the modules for we test?!
Thanks for the news!
Modules for testing:
ext2 - http://code.google.com/p/cyanogenmod4milestone/issues/detail?id=197#c19
tun - http://code.google.com/p/cyanogenmod4milestone/issues/detail?id=222#c4
Hi sort of a newbie here... So does this mean that data2ext will work?
Sent from my Milestone using XDA App
Hi Nadlabak...maybe you already know.
For the cifs module, how about slow-work is made available as a module.
as is done at this link
http://forum.xda-developers.com/showpost.php?p=9271775&postcount=4
after further testing:
ext2 mounting now works, reading from ext2 partition too, but writing still causes panic
tun causes panic too
Let's hope for a soon kernel source release, as it looks like we won't get much further without it.
edowar: thanks for the link
@kabaldan
Could it be possible to create a swap module for milestone ?
It seems that running kernels does not have this feature yet and i'm not sure motorola to implement it for next 2.2 release so .... well just wondering !

[Q] tun.ko for Xoom 3.2?

Hi!
I would like to establish a Cisco IPSEC-connection with my Xoom, using get-a-robot-vpnc. The problem is that I'm missing a tun-kernel-module and can't find one for the xoom on the web
Does anyone have one for the Xoom WiFi only running 3.2 (Build HTJ85B) with stock kernel?
Thanks!
McDV
Pulled this out of the EU32Update file, not sure if its what youre looking for??
Questions and requests belong in Q&A. Thread moved.
tonyb15re said:
Pulled this out of the EU32Update file, not sure if its what youre looking for??
Click to expand...
Click to collapse
Thanks, I tried this but it looks like it's only for that ROM.
Maybe someone else has a tun-kernel-module for the stock 3.2?!
Greetings
McDV
yup, I'd like to see this too..
Just instal tiamat kernel 2.1 it contains tun.ko and several other modules.
http://forum.xda-developers.com/showthread.php?t=1200063
also you need to use this modified vpn connections
http://forum.xda-developers.com/showpost.php?p=12124163&postcount=23
Here is tun.ko for 3.2 stock.
wonderful! many, many thanks.
hi,
Will this work on 3.2.1? I copied it /system/lib/modules but when I try to openvpn I get cannot allocate tun/tap dev dynamically.
Is this just a bad file for 3.2.1 or am I missing something else?
I did install busybox and openvpn.
Thanks,
Your tun.ko kernel module needs to be compiled specifically against your kernel source. I don't work with stock anymore, however the developer kernel now floating on xda have this module specifically rolled into their kernels. You would have to root however to install these kernels.
Thanks Kevdog..
I searched and i couldn't find any for 3.2.1. I am the rooted stock 3.2.1 already downloaded from xda. Just need to tun.ko for 3.2.1.
If u know where to find, please send me the link.
Thanks.
Ok 3.2.1 -- Stock or Rooted? What kernel are you running?
I got my rom from this thread
http://forum.xda-developers.com/showthread.php?t=1278214
Thanks,
Ok -- I know this is a lot of work, however I tried it myself and I'm not sure if the rom you linked to is corrupted or my download process failed. (***Rant -- why all the developers who put out files don't match the file to an md5 sum so us users can verify the integrity of the dowload -- I'll never know!!), but I can't seem to extract your system.img. You'll need a tool such as unyaffs to unpack the system.img and then search around in the modules folder until you find the tun.ko. Or you could just flash a Tiamat 3.2.1 kernel which has these modules built in!!
I checked checksum and it was correct before I installed it. Not sure what u mean, I thought this rom doesn't have it period.
I also tried to use tiamat 2.2 which says its for 3.2 but it got stuck at boot for 30 minutes at the honeycomb screen. I thought maybe tiamat ker
Net doesn't support 3.2.1 yet.
http://forum.xda-developers.com/showthread.php?t=1200063
As far as i know this is latest. Doesn't mention 3.2.1. Didn't work for me.
I don't want to go to tiamat rom to avoid a full rebuild.

[Q] TUN module support w/ Bali 3.3 kernel.

I have been recently trying to get OpenVPN to work with my Samsung Galaxy S 4G t959v.
One of the problems I ran into was the lack of a tun module (tun.ko?). So I proceeded to install the Bali v3.3 Kernel by Dr. Honk.
http://forum.xda-developers.com/showthread.php?t=1080871
After I flashed my android with this kernel. I double checked to make sure it worked and sure enough the kernel version was the new Bali Kernel. However, I still didn't have the proper TUN Capability that it specifically lists as a feature in the kernel.
I was wondering, did I actually install the Bali Kernel unsuccessfully but it just said it was actually in the system. I checked in lib/modules and tun.ko was not to be found.
(I came to the conclusion I needed this module through the error that I was receiving from OpenVPN and quite a few google searches of it: "FATAL:Cannot allocate TUN/TAP dev dynamically")
Anyway, I did all sorts of stupid crap to try and make it work, but I still can't find a way to do this. I'm under the understanding I can't really take a tun.ko file from another kernel (At least that is what I have read, but I may just be flat out wrong). Does anyone have any ideas?
Apologies for the long post, however I at least used some proper english!

[Q] Q: Cifs.ko module for tf101 ICS kernel?

I just installed ICS and it works fine. I never expected it to work as well as it does, but now I can get down to griping about little things that I use that don't yet work
Normally I use CIFS (Common Internet File System, like Samba was before) to access shares on the net. This worked fine on HoneyComb because I built my own kernel modules.
For ICS, I think the source is not yet released for the kernel. I did see that there was a tun.ko and cifs.ko for ICS over in the transformer prime section of XDA, so I tried those out but it appears the tegra 3 kernel is too different for these to work. (although I think the version is the same).
If anyone has seen or has a working cifs.ko module I'd appreciate getting ahold of it (or especially the ICS kernel source code).
Thanks -
I don't know about cifs.ko as I don't use it, but I do use OpenVPN and found out that tun is part of ICS now, you no longer need a separate module.
hachamacha said:
I just installed ICS and it works fine. I never expected it to work as well as it does, but now I can get down to griping about little things that I use that don't yet work
Normally I use CIFS (Common Internet File System, like Samba was before) to access shares on the net. This worked fine on HoneyComb because I built my own kernel modules.
For ICS, I think the source is not yet released for the kernel. I did see that there was a tun.ko and cifs.ko for ICS over in the transformer prime section of XDA, so I tried those out but it appears the tegra 3 kernel is too different for these to work. (although I think the version is the same).
If anyone has seen or has a working cifs.ko module I'd appreciate getting ahold of it (or especially the ICS kernel source code).
Thanks -
Click to expand...
Click to collapse
I didn't have much success with tun and cifs for my purpose which was to wirelessly access the sd card of the phone/tablet vice versa until I used the Samba app fom the market. In combination with Ghost commander and after upgrading to ICS everything was intact. Not sure if this is helpful to you or not. Just throwin it out there.
Thanks both of you -
I realized that tun was there but thanks. As for cifs, I suppose the module isn't really needed except to use certain utils that rely on it, like root explorer.
I found a number of samba/cifs compatible file managers that're fine for me like ES explorer etc.
Those will be fine and I'll look forward to getting kernel source for ICS anyway.
hachamacha said:
Thanks both of you -
I realized that tun was there but thanks. As for cifs, I suppose the module isn't really needed except to use certain utils that rely on it, like root explorer.
Click to expand...
Click to collapse
I've just rooted my TF101 (ICS) so that I could get Junos pulse working with its ssl vpn. Doing a bit of reading I found I needed tun.ko (at least with 3.2). That automatic tun.ko installer from the market reports that tun.ko is installed (compiled into the kernel?)
I can see the tun0 created, with an IP address. But it doesn't work, not a single bit travels the tunnel interface.
I'm officially confused...
Still too few posts under this account name to be able to post links, but have you seen this thread in Dev?
xpad / cifs modules for stock kernel ICS v9.2.1.11
Thanks for that... that confirms tun.ko is built in, which doesn't help me find/fix my problem.
Will keep at it!

[Q] Cifs Support

Hello I am trying to add Cifs module for my Galaxy Note 10.1 N8010 so i can mout a shared folder but cannot find the cifs.ko file and the ones on here for N8000 don't work. Which things have to match for correct cifs.ko file? Android Version, Kernel Version and Build Number?.
Does anyone have the necessary file/s or can link me to a guide for compiling this module? I am willing to do work myself but would like a hand in the right direction if possible.
If noone can help me with this does anyone know of a N8010 ROM which has built in cifs support but mainly stock apart from that?
Thanks in advance
Going by the latest nightly it's at
Code:
/system/lib/modules/cifs.ko
I'm currently trying to get it to work as well but this doesn't want to work.
Code:
insmod /system/lib/modules/cifs.ko
insmod: can't insert '/system/lib/modules/cifs.ko': unknown symbol in module or invalid parameter
Edit:
Ah, looks like CM10.1 just doesn't support CIFS yet. Bugger, DicePlayer doesn't seem to like what I'm throwing at it on CM10.1 (works fine on stock).
Im about to build a custom rom and therefore i compiled the 4.1.1 kernel with cifs.ko and md4.ko
It is build with the Darkman Stock Android 4.1.1 Jelly Bean XXBLK9 as a base http://forum.xda-developers.com/show....php?t=1925720
I also changed the battery logo to a circle percentage one.
Its not ready yet, but cifs manager works fine. If you want to use it, you have to insert at path to cifs.ko "/lib/modules/md4.ko:/lib/modules/cifs.ko" and then it should work.
My new version 4.1.2 is out.http://www.multiupload.nl/XE0PVJM34U

Categories

Resources