Since the European genuine HTC ROM
Code:
# uname -a
Linux localhost 2.6.35.10-g60b2609 #1 PREEMPT Sun Apr 17 01:15:33 CST 2011 armv6l GNU/Linux
has tun support disabled according to the /proc/config.gz I got with scp from my marvel,
Code:
# CONFIG_TUN is not set
I just build one
using the wildfire S kernel source code from htcdev
and
http://marakana.com/forums/android/examples/111.html
http://wiki.cyanogenmod.com/wiki/Building_Kernel_from_source
but with arm toolchain from http://www.emdebian.org/crosstools.html
Code:
$ gunzip config.gz
$ cp -vp config .config
$ make xconfig -> enable tun, set CONFIG_CROSS_COMPILE="arm-linux-gnueabi-"
or use the patch in zipfile.
Code:
$ make modules_prepare
$ make modules
$ make modules_install INSTALL_MOD_PATH='../install'
Module Binary is attached, please test. Copyright is GPL >= V. 2,
md5sum
10fd212186ee8506d72d14b00aa15bf5 tun.ko.zip
a8f6e2bd1f7bab19f02371955b9eda0d tun.ko
I got problems dependency checking without building the whole kernel:
Code:
$ /sbin/depmod -ae -b ../install/modules -E ./Module.symvers 2.6.35.10
WARNING: ../install/modules/lib/modules/2.6.35.10/kernel/drivers/net/tun.ko needs unknown symbol register_netdevice
... dozens more...
$ /sbin/depmod -n /usr/local/src/htc-kernel/install/modules/lib/modules/2.6.35.10/kernel/drivers/net/tun.ko
/usr/local/src/htc-kernel/install/modules/lib/modules/2.6.35.10/kernel/drivers/net/tun.ko:
# Aliases extracted from modules themselves.
alias devname:net/tun tun
alias char-major-10-200 tun
# Soft dependencies extracted from modules themselves.
# Copy, with a .conf extension, to /etc/modprobe.d to use it with modprobe.
# Aliases for symbols, used by symbol_request().
alias symbol:tun_get_socket tun
# Device nodes to trigger on-demand module loading.
tun net/tun c10:200
No questions or Support par PM or E-Mail. Report and ask here, pls.
Or tell me an IRC channel where android devs meet.
Thanks, but I suggest preference of stability and integrity before performance at experimental state kernels
Well, I start my Android world with smaller steps.
And as a conservative engineer I wouldn't overclock.
Ok, thanks.
BTW: Noone has been chasing me with an axe yet, so I assume the tun.ko module works?
Thank you for your work.
I try to load this tun.ko on Wildfire S, but module don't load.
Code:
insmod: init_module '/system/lib/modules/tun.ko' failed (Exec format error)
When I check magic number of module, here is only '2.6.35.10', but maybe right is '2.6.35.10-g60b2609'.
Please, is it possible to fix it?
(I need tun.ko because openvpn...)
Thx
Hmm, thx, I've expected the emdebian gcc is not compatible with armv6l.
You need to use the toolchain from the android sdk or the one from the CM guys site.
[ info ]
so since the kernel sources are now out (atleast for the Xperia NX) till we get kernel sorted out i think this should be useful for some users...
these are build using the vermagic based on this screenshot:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
i am providing the kernel modules for:
NLS_UTF8 - Native Language Support UTF8
NTFS support - support to mount NTFS formatted drives/devices
TUN/TAP support - VPN support (more info here)
CPU Governor: Interactive - from pyramid-bricked-kernel by showp1984
CPU Governor: SmartAssV2 - SMP MSM8x60 support by faux123 from pyramid-bricked-kernel by showp1984
CPU Governor: MinMax - from pyramid-kernel by LeeDroid-
CPU Governor: SmartAss - SMP MSM8x60 support by faux123 from pyramid-kernel by LeeDroid-
for info on what CPU Governors are read this
[ requirements ]
rooted device
busybox installed
adb access via PC/terminal emulator app
[ how to install ]
download the modules u want and save on sdcard
start adb shell on PC or use terminal emulator app
execute the following commands at shell
Code:
su
busybox insmod /sdcard/modulename.ko
where modulename is the name of the module u want activated
hopefully u shouldnt get any errors/outputs
now check if the module is properly working/live
Code:
su
busybox lsmod
it show now give output of module name followed by word "Live"
thats it!
enjoy the module of ur choice!
if u want these modules to be autoloaded at startup u can now create an init.d script for the same!
be sure to first flash the init.d support: http://forum.xda-developers.com/showthread.php?t=1547238
[ donations/device fund ]
i dont yet have this device but i plan to buy it.... if u guys want to donate to me to get this device OR if u feel that this work has helped u OR u think that the work i put into making this is worthy of donations, then click on the following link for buying me some coffee/beer/etc
i am currently channeling all my donations to get this phone asap and to avoid selling my ARC!!!
PAYPAL DONATION LINK
[ download link ]
NLS_UTF8
MD5HASH: 720e137e1698a95f2b86825c0311ff75
NTFS
MD5HASH: d1761a11634ba304a25e7a56c1635e77
TUN/TAP
MD5HASH: 03bda2927114fb892a82e09bccf6617c
CPU Governor: Interactive
MD5HASH: 29b3458ef19c60c7200fba02863d3fcb
CPU Governor: SmartAssV2
MD5HASH: 977720659947fda3e721075f9323a86d
CPU Governor: MinMax
MD5HASH: 29cfcba76e126b3ab155b8112a6cc6be
CPU Governor: SmartAss
MD5HASH: aa0c9d90284190b7659ca59bf389b95d
since i dont yet have device with me i cant test out if these work properly... please test out and report back!
if u guys need any other modules let me know
I will start adding modules for CPU governors soon!!!
Sent from my LT18i using XDA
UPDATE!
added new modules:
CPU Governors
Interactive - from pyramid-bricked-kernel by showp1984
SmartAssV2 - SMP MSM8x60 support by faux123 from pyramid-bricked-kernel by showp1984
MinMax - from pyramid-kernel by LeeDroid-
SmartAss - SMP MSM8x60 support by faux123 from pyramid-kernel by LeeDroid-
for info on what CPU Governors are read this
download links & how to install at first post
these are untested kindly test them out and let me know asap!
Thanks a lot DooMLoRD, worked well with init script !
howver i encountered a very weird problem:
# ls
ls
tun.ko
ntfs.ko
nls_utf8.ko
cpufreq_smartass22.ko
cpufreq_smartass.ko
cpufreq_minmax.ko
cpufreq_interactive.ko
# insmod cpufreq_smartass2.ko
insmod cpufreq_smartass2.ko
insmod: init_module 'cpufreq_smartass2.ko' failed (No such file or directory)
# insmod tun.ko
insmod tun.ko
# insmod ntfs.ko
insmod ntfs.ko
# insmod nls_utf8.ko
insmod nls_utf8.ko
# insmod cpufreq_minmax.ko
insmod cpufreq_minmax.ko
# insmod cpufreq_interative.ko
insmod cpufreq_interative.ko
insmod: can't open 'cpufreq_interative.ko'
as u can see from ls the files are there. wonder why it's not picking up the modules?
---------- Post added at 11:55 AM ---------- Previous post was at 11:53 AM ----------
I've tried using absolute path, it gives a different error:
su
busybox insmod /mnt/sdcard/xps_modules/cpufreq_interactive.ko
insmod: can't insert '/mnt/sdcard/xps_modules/cpufreq_interactive.ko': unknown symbol in module, or unknown parameter
---------- Post added at 11:57 AM ---------- Previous post was at 11:55 AM ----------
I've tried using absolute path, it gives a different error:
su
busybox insmod /mnt/sdcard/xps_modules/cpufreq_interactive.ko
insmod: can't insert '/mnt/sdcard/xps_modules/cpufreq_interactive.ko': unknown symbol in module, or unknown parameter
kazuni said:
Thanks a lot DooMLoRD, worked well with init script !
howver i encountered a very weird problem:
# ls
ls
tun.ko
ntfs.ko
nls_utf8.ko
cpufreq_smartass22.ko
cpufreq_smartass.ko
cpufreq_minmax.ko
cpufreq_interactive.ko
# insmod cpufreq_smartass2.ko
insmod cpufreq_smartass2.ko
insmod: init_module 'cpufreq_smartass2.ko' failed (No such file or directory)
# insmod tun.ko
insmod tun.ko
# insmod ntfs.ko
insmod ntfs.ko
# insmod nls_utf8.ko
insmod nls_utf8.ko
# insmod cpufreq_minmax.ko
insmod cpufreq_minmax.ko
# insmod cpufreq_interative.ko
insmod cpufreq_interative.ko
insmod: can't open 'cpufreq_interative.ko'
as u can see from ls the files are there. wonder why it's not picking up the modules?
---------- Post added at 11:55 AM ---------- Previous post was at 11:53 AM ----------
I've tried using absolute path, it gives a different error:
su
busybox insmod /mnt/sdcard/xps_modules/cpufreq_interactive.ko
insmod: can't insert '/mnt/sdcard/xps_modules/cpufreq_interactive.ko': unknown symbol in module, or unknown parameter
---------- Post added at 11:57 AM ---------- Previous post was at 11:55 AM ----------
I've tried using absolute path, it gives a different error:
su
busybox insmod /mnt/sdcard/xps_modules/cpufreq_interactive.ko
insmod: can't insert '/mnt/sdcard/xps_modules/cpufreq_interactive.ko': unknown symbol in module, or unknown parameter
Click to expand...
Click to collapse
so interactive module is the only one giving issues?
can u post dmesg?
DooMLoRD said:
so interactive module is the only one giving issues?
can u post dmesg?
Click to expand...
Click to collapse
Nope, all CPU governor modules besides minmax are failed.
<4>[26283.872145] cpufreq_interactive: Unknown symbol __put_task_struct (err 0)
<4>[26283.872754] cpufreq_interactive: Unknown symbol sched_setscheduler_nocheck
(err 0)
<4>[26283.873596] cpufreq_interactive: Unknown symbol nr_running (err 0)
<6>[26289.090458] cpufreq: cpu 1 is not active.
<4>[26289.556946] cpufreq_interactive: Unknown symbol __put_task_struct (err 0)
<4>[26289.557479] cpufreq_interactive: Unknown symbol sched_setscheduler_nocheck
(err 0)
<4>[26289.558689] cpufreq_interactive: Unknown symbol nr_running (err 0)
<4>[26317.921173] cpufreq_smartass2: Unknown symbol nr_running (err 0)
<6>[26331.490507] cpufreq: cpu 1 is not active.
<4>[26339.682453] cpufreq_smartass2: Unknown symbol nr_running (err 0)
<4>[26379.330527] cpufreq_smartass: Unknown symbol nr_running (err 0)
mankindtw said:
Nope, all CPU governor modules besides minmax are failed.
[26283.872145] cpufreq_interactive: Unknown symbol __put_task_struct (err 0)
[26283.872754] cpufreq_interactive: Unknown symbol sched_setscheduler_nocheck
(err 0)
[26283.873596] cpufreq_interactive: Unknown symbol nr_running (err 0)
[26289.090458] cpufreq: cpu 1 is not active.
[26289.556946] cpufreq_interactive: Unknown symbol __put_task_struct (err 0)
[26289.557479] cpufreq_interactive: Unknown symbol sched_setscheduler_nocheck
(err 0)
[26289.558689] cpufreq_interactive: Unknown symbol nr_running (err 0)
[26317.921173] cpufreq_smartass2: Unknown symbol nr_running (err 0)
[26331.490507] cpufreq: cpu 1 is not active.
[26339.682453] cpufreq_smartass2: Unknown symbol nr_running (err 0)
[26379.330527] cpufreq_smartass: Unknown symbol nr_running (err 0)
Click to expand...
Click to collapse
i am not really an expert in creating modules but this all will be fixed when we make custom kernel
Sent from my HTC Flyer P510e using XDA
I want to make a init script for the ntfs.ko
But i cant get it to work, help?
DooMLoRD said:
if u guys need any other modules let me know [/B][/I]
Click to expand...
Click to collapse
Can we have the "CIFS Modules"
Thank you
maxx228 said:
Can we have the "CIFS Modules"
Thank you
Click to expand...
Click to collapse
from what i saw in the defconfig CIFS is already enabled in stock kernel
lorddusk said:
I want to make a init script for the ntfs.ko
But i cant get it to work, help?
Click to expand...
Click to collapse
Yeah I have problems using the init.d script as well...
Sent from my LT26i using xda premium
Long Live DoomLord
Great to see you here
I used Japan FW from XDA thread
I want insert modules but i get "invalid module format"
How can i fix this problem?
or Jp FW can't use thosw modules?
sigma9988 said:
I used Japan FW from XDA thread
I want insert modules but i get "invalid module format"
How can i fix this problem?
or Jp FW can't use thosw modules?
Click to expand...
Click to collapse
two things:
1) check ur kernel version - these modules are built with specific vermagic string corresponding to kernel
2) the kernel on JAPAN FW might be different
well, i dont know if anyone has succeeded or its a usual problem but i also get this error:
su
busybox insmod /sdcard/xps_modules/cpufreq_interactive.ko
insmod: can't insert '/sdcard/xps_modules/cpufreq_interactive.ko': unknown symbol in module, or unknown parameter
but i think something is missing, when i type just "busybox insmod" i get this:
usage: insmod FILE [SYMBOL=VALUE]
so.. what is that symbol and balue? i'll google it xD
EDIT: Maybe pushing the modiles to /system/lib/modules/ ?
here they had the same problem: http://forum.xda-developers.com/showthread.php?t=1085441
TUN/TAP with ICS rom fails
TUN/TAP does not seem to work with the new ICS ROM. Got exec format error when doing insmod tun.ko. Any idea?
Sorry if I understand well, this modules doesn't work currently ?
Of course it won't work under ICS.
A kernel module is built for kernel with exactly same version.
Yakandu said:
well, i dont know if anyone has succeeded or its a usual problem but i also get this error:
su
busybox insmod /sdcard/xps_modules/cpufreq_interactive.ko
insmod: can't insert '/sdcard/xps_modules/cpufreq_interactive.ko': unknown symbol in module, or unknown parameter
but i think something is missing, when i type just "busybox insmod" i get this:
usage: insmod FILE [SYMBOL=VALUE]
so.. what is that symbol and balue? i'll google it xD
EDIT: Maybe pushing the modiles to /system/lib/modules/ ?
here they had the same problem: http://forum.xda-developers.com/sho....ko
'nls_utf8.ko': invalid module format
:(
Click to expand...
Click to collapse
Yes I'm on ICS and when I put modules in system/lib/modules and I use module loader I don't see it in SetCPU. So I'll just wait for somedy find a solution.
If i try to load the tun.ko module shiped with the ROM i get error:
tun: version magic '2.6.32.21 preempt mod_unload ARMv6 ' should be '2.6.32.39-nFinity preempt mod_unload ARMv6 '
i tried modbrobe -f but also no succes.
Where can i find the right modul?
thanks for help...
Hi!
Has anyone managed to compile a kernel module for the SM-T315? I am having some problems...
I have downloaded the Samsung kernel source (SM-T315-JB_Opensource) and the toolchain they recommend (arm-eabi-4.4.3). I have edited the Makefile and have set the correct EXTRAVERSION (-2453351). I run
make arch=arm tab3_lte8_01_defconfig
make menuconfig
make modules
The selected modules compile without error but I can't insmod them. I get the "no symbol version for module_layout" message in dmesg.
# strings drivers/usb/serial/ftdi_sio.ko | grep vermagic
vermagic=3.0.31-2453351 SMP preempt mod_unload modversions ARMv7 p2v8
# uname -a
Linux localhost 3.0.31-2453351 #1 SMP PREEMPT Mon Jan 20 17:14:51 KST 2014 armv7l GNU/Linux
Any ideas?
So, i got nethunter for my Nexus 5x Oreo 8.1 all good, i bought an TL-WN722N and I can't install the drivers RTL8188EU because when I type 'make' it's say:
/lib/modules/3.10.73-Re4son-3.5/build: No such file or directory
And I googled about it, and i found that i need to install linux-headers, but when i type 'apt install linux-headers-$(uname -r) it's say:
E:Unable to locate package
Anyone can help me?
My uname -a:
Linux kali 3.10.73-Re4son-3.5 #1 SMP PREEMPT Fri Apr 10 12:20:30 AEST 2020 aarch64 GNU/Linux
Up?