[Q] How to enable tun.ko in kernel - Android Q&A, Help & Troubleshooting

Hi I have a lg optimus l1 II with rom stock:laugh: and sources kernel provided by LG:angel: and compile a kernel with swap enabled and now quisiara enable tun.ko module but nose as I can not find the option in the setup menu to run "make menuconfig ":silly:

Related

[Q] how to compile tun.ko?

can anybody tell me how to compile tun.ko for any rom? what would i need to download/install etc? any help would be appreciated. thanks!
get the kernel soruce and check config file for tun
in .config file search for "TUN" keyword, change Y to M, run make menuconfig, save, compile.
slow down guys absolute noob here. how/where do i run makeconfig? what software would i need? sorry if stupid questions :c
Sent from my GT540 using XDA App
daggerxXxsin said:
slow down guys absolute noob here. how/where do i run makeconfig? what software would i need? sorry if stupid questions :c
Sent from my GT540 using XDA App
Click to expand...
Click to collapse
First, you need the kernel source code for your device. The Linux GPL requires that OEMs provide the kernel source so you should be able to find it.
You'll need a linux machine with a development environment. You'll also need the Android NDK for the ARM toolchain.
Once you've got all that lined out, you'll need a kernel config. You can usually get this from your device's proc directory as /proc/config.gz.
Now gunzip the config.gz in your kernel source directory, rename it to ".config" and run "make oldconfig". If it is from an identical source tree, then it should run without prompting.
Now run make menuconfig and drill down to the tun options and enable it as a module. Now you can "make" your kernel and "make modules" for the modules.
okay so first thing is to setup a build environment. gotcha. will work on that.
Sent from my GT540 using XDA App
Gene Poole said:
First, you need the kernel source code for your device. The Linux GPL requires that OEMs provide the kernel source so you should be able to find it.
You'll need a linux machine with a development environment. You'll also need the Android NDK for the ARM toolchain.
Once you've got all that lined out, you'll need a kernel config. You can usually get this from your device's proc directory as /proc/config.gz.
Now gunzip the config.gz in your kernel source directory, rename it to ".config" and run "make oldconfig". If it is from an identical source tree, then it should run without prompting.
Now run make menuconfig and drill down to the tun options and enable it as a module. Now you can "make" your kernel and "make modules" for the modules.
Click to expand...
Click to collapse
Hi Gene, i want to ask, if we cannot find the config.gz file from the device, is it imposibble to get the tun.ko working?
Or if it possible, can you tell me how to gain some configuration, that used by the tun.ko, so we can set the config from menuconfig correctly?
I`ve tried to compile tun.ko for a device, the insmod working fine, but when the vpn try to use the tun, it is crash, it raise segmentation fault.

[Q][i545] Adding Driver Modules to Kernel

Ok now I dont concider myself a developer, however I dont mind getting my hands dirty. First of all Im sure that its not dependant on being a Verizon Varient S4, however that's the device I have and would like to do this for. I will be making a git to comply with the GPL and will hope to make a guide for XDA.
Now I've done alot of research regarding this topic, not just for Android specifically, but Linux in general. Before I go flashing Kernels on my device I want to make sure I fully understand the process which is where you guys can help me out. My goal is to add a Wireless driver module to my s4.
1. Set up build environment
- I will be using Ubuntu 12.04 LTS as my build environment
- Install all dependencies required to compile the kernel
- Download Android NDK and SDK (NDK for toolchain/SDK for adb and fastboot)
- Make working directory
2. The wireless drivers should be in the kernel, if not grab them from kernel.org (compat-wireless)
- Creat Makefile for ath9k (the drivers I plan on testing)
- config and make the ath9k.ko
3. Compile Kernel
- Compile the Kernel (cross-compile with toolchain of course)
- Create Flashable zip with the zImage and the ath9k module
4. Flash and insmod
- Flash kernel through recovery
- Either run insmod /path/to/module/ath9k.ko or create a bash script
- Use my USB device
- Either rmmod ath9k or create bash script
So now my question is would this be the correct procedure?
bump
well, this thread makes me curious as hell whether or not you can mod the kernel to do this.
Moving to I545 Q/A forum.

Cifs support

Is there a way to have cifs support?
Kernel built in?
Load module? Doesnt seem to have a cifs.ko in /system/lib
Thanks.

[Q] Launch kernel samsung with emulator-arm

Hi to all, i'm new in the forum . I want debug android kernel for samsung s3 plus , so i downloaded it from
opensource.samsung.com , i've compiled with this configurations lines :
CONFIG_KGDB (for KGDB)
CONFIG_HAVE_ARCH_KGDB (for KGDB)
CONFIG_CONSOLE_POLL (for Android USB support)
CONFIG_MAGIC_SYSRQ (use sysrq to invoke KGDB)
CONFIG_USB_ANDROID_ACM
KGDB_TESTS_ON_BOOT
CONFIG_DEBUG_KERNEL
CONFIG_DEBUG_INFO
So i try to run kernel compiled using emulator-arm but the emulator is offline.
Where i wrong?
How to launch original kernel in emulator?
Thank you all.

request for cifs.ko (Android 4.3 - Kernel 3.4.0+)

I am trying to create cifs mount on my Huawei G630-U10 but it seems my device doesn't enjoy of cifs built-in support. My device is running Android 4.3 with kernel version 3.4.0+. Can you help to find a right version of cifs.ko, md4.ko, nls_utf8.ko for my device ?
somebody posted it here : http://forum.xda-developers.com/xperia-z/development/kernel-31-7-2013-nfs-cifs-modules-t2260831 but the links are not anymore valid

Categories

Resources