I've began to work on a Kernel modules for the A500.
Code:
CIFS
TUN
USB-SERIAL-OPTION(USB 3G DRIVER)
USB-SERIAL-WWAN(needed by the 3g driver)
nls_utf8
Tested CIFS and OPTION and working
if you guys need other modules just say so.
modules.rar is for kernel 2.6.36.3-00001-gf991e5d
modules - k2.6.36.3-00001-g9b3ce2b.zip for kernel 2.6.36.3-00001-g9b3ce2b
modules - k2.6.36.3-00001-g12f9a52.zip for kernel 2.6.36.3-00001-g12f9a52
modules - k2.6.36.3.zip for kernel 2.6.36.3
modules - k2.6.36.3-00005-g5dff38c - acer 3.1 kernel leak
original kernel modules can be found here: http://forum.xda-developers.com/showpost.php?p=13974214&postcount=62
can't insmod cifs.ko getting a exec format error
is there a dependency missed?
no mine works fine..... what does it say in dmesg?
edit: do you have the 3g model?
Thanks thor2002ro, cifs.ko work grate on my A500.
But have one problem on utf8. When i mount with "iocharset=utf8" show below error:
failed: Can not access a needed shared library
I think need another utf8 module?
Thanks again.
wood1978 said:
Thanks thor2002ro, cifs.ko work grate on my A500.
But have one problem on utf8. When i mount with "iocharset=utf8" show below error:
failed: Can not access a needed shared library
I think need another utf8 module?
Thanks again.
Click to expand...
Click to collapse
yes you need nls_utf8.ko i will build it later...
openvpn
Can you build tun.ko for openvpn please ?
bouaroudj said:
Can you build tun.ko for openvpn please ?
Click to expand...
Click to collapse
cant you read? :| its built.... :|
wood1978 said:
Thanks thor2002ro, cifs.ko work grate on my A500.
But have one problem on utf8. When i mount with "iocharset=utf8" show below error:
failed: Can not access a needed shared library
I think need another utf8 module?
Thanks again.
Click to expand...
Click to collapse
built it... its in the first post
thor2002ro said:
no mine works fine..... what does it say in dmesg?
edit: do you have the 3g model?
Click to expand...
Click to collapse
I'm having the same issue.
I copied cifs.ko to the tablet. Used root explorer to move it to the existing /system/lib/modules directory. Then:
adb shell
#su
#insmod /system/lib/modules/cifs.ko
insmod /system/lib/modules/cifs.ko
insmod: init_module '/system/lib/modules/cifs.ko' failed (Exec format error)
dmesg has...
<3>[ 2235.293898] cifs: version magic '2.6.36.3-00001-gf991e5d SMP preempt mod_unload ARMv7 ' should be '2.6.36.3-00001-g9b3ce2b SMP
preempt mod_unload ARMv7 '
<3>[ 2422.009026] cifs: version magic '2.6.36.3-00001-gf991e5d SMP preempt mod_unload ARMv7 ' should be '2.6.36.3-00001-g9b3ce2b SMP
preempt mod_unload ARMv7 '
And I have the US version... Product SKU 3G, Model ID A501.
tun.ko not working ?
Thanks for theses modules but I tried the tun.ko but I get an error :
$ su
su
# insmod /sdcard/openvpn/tun.ko
insmod /sdcard/openvpn/tun.ko
insmod: init_module '/sdcard/openvpn/tun.ko' failed (Exec format error)
#
saeba said:
dmesg has...
<3>[ 2235.293898] cifs: version magic '2.6.36.3-00001-gf991e5d SMP preempt mod_unload ARMv7 ' should be '2.6.36.3-00001-g9b3ce2b SMP
preempt mod_unload ARMv7 '
<3>[ 2422.009026] cifs: version magic '2.6.36.3-00001-gf991e5d SMP preempt mod_unload ARMv7 ' should be '2.6.36.3-00001-g9b3ce2b SMP
preempt mod_unload ARMv7 '
And I have the US version... Product SKU 3G, Model ID A501.
Click to expand...
Click to collapse
OK. Did a hex edit of the cifs.ko file replacing 'gf991e5d' with 'g9b3ce2b' and it seems to be working for my a501. If anyone else wants to try it, I've attached the edited file.
Thanks so much for this !!!! This is the one piece missing that I really wanted on my Acer !!! Thanks and will send a long a donation. Well worth it!
saeba said:
I'm having the same issue.
I copied cifs.ko to the tablet. Used root explorer to move it to the existing /system/lib/modules directory. Then:
adb shell
#su
#insmod /system/lib/modules/cifs.ko
insmod /system/lib/modules/cifs.ko
insmod: init_module '/system/lib/modules/cifs.ko' failed (Exec format error)
dmesg has...
<3>[ 2235.293898] cifs: version magic '2.6.36.3-00001-gf991e5d SMP preempt mod_unload ARMv7 ' should be '2.6.36.3-00001-g9b3ce2b SMP
preempt mod_unload ARMv7 '
<3>[ 2422.009026] cifs: version magic '2.6.36.3-00001-gf991e5d SMP preempt mod_unload ARMv7 ' should be '2.6.36.3-00001-g9b3ce2b SMP
preempt mod_unload ARMv7 '
And I have the US version... Product SKU 3G, Model ID A501.
Click to expand...
Click to collapse
you have a different kernel version :O
do:
Code:
adb pull /proc/config.gz config.gz
and post it here...and i will compile you guys different set of modules
edit: added 2.6.36.3-00001-g9b3ce2b modules in the first post
thor2002ro said:
you have a different kernel version :O
and post it here...and i will compile you guys different set of modules
Click to expand...
Click to collapse
Here is my config.gz (zip format)
For the tun.ko
Thanks a lot.
I just check : my kernel is
#cat /proc/version
Linux version 2.6.36.3-00001-g12f9a52 ([email protected]) (gcc version 4.4.3 (GCC) ) #1 SMP PREEMPT Tue Mar 29 10:00:40 CST 2011
rgouyet said:
Here is my config.gz (zip format)
For the tun.ko
Thanks a lot.
Click to expand...
Click to collapse
ya thanks... same kernel different version... these companies are getting bored making the same stuff twice....
edit: added your version too in the first post
Great job ! Thanks a lot.
The tun.ko is working with my A500 now.
(I have now some issue with my openvpn config file but it's an other story.)
What about USB NET module?
That could relieve missing USB mass storage.
Thx!
maddler said:
What about USB NET module?
That could relieve missing USB mass storage.
Thx!
Click to expand...
Click to collapse
what you mean by usb net module? you what to plug usb network card or what?
thor2002ro said:
what you mean by usb net module? you what to plug usb network card or what?
Click to expand...
Click to collapse
I mean usbnet.ko needed to have networking running over USB just like if it was an ethernet cable. Same used when you use USB tethering on other devices.
EDIT: By the way, being able to use an USB ethernet adapter could be nice too.
maddler said:
I mean usbnet.ko needed to have networking running over USB just like if it was an ethernet cable. Same used when you use USB tethering on other devices.
EDIT: By the way, being able to use an USB ethernet adapter could be nice too.
Click to expand...
Click to collapse
looks like usbnet is build into the kernel...
thor2002ro said:
you have a different kernel version :O
do:
Code:
adb pull /proc/config.gz config.gz
and post it here...and i will compile you guys different set of modules
edit: added 2.6.36.3-00001-g9b3ce2b modules in the first post
Click to expand...
Click to collapse
Here it says:
fs: version magic '2.6.36.3-00001-gf991e5d SMP preempt mod_unload ARMv7 ' should be '2.6.36.3 SMP
preempt mod_unload ARMv7 '
I've attached my config.gz.
Thanx a lot for doing all that!
I downloaded a tun.ko from a link in http://forum.xda-developers.com/showthread.php?t=889736 for the NC kernel 2.6.32.9. My NC is with that kernel and with CM7 nightly from 11142011 (Nov 14, 2011) build.
The tun.ko I DL'ed was 194388 bytes and when I get to the insmod part, I get the error:
# su
# insmod /system/lib/modules/tun.ko
insmod: init_module '/system/lib/modules/tun.ko' failed (Exec format error)
Any insights will be greatly appreciated. Thanks.
Maybe this is the problem? How do I overcome this? Thanks.
# dmesg | grep tun
<6>tun: Universal TUN/TAP device driver, 1.6
<6>tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
<3>tun: version magic '2.6.32.9 preempt mod_unload modversions ARMv7 ' should be '2.6.32.9 preempt mod_unload ARMv7 '
Hello, i downloaded the kernel for lg-e430 from lg official site and recompiled it to enable swap :
[email protected]:/ # uname -a
uname -a
Linux localhost 3.4.0 #2 PREEMPT Mon Jun 2 11:27:05 CEST 2014 armv7l GNU/Linux
[email protected]:/ # zcat /proc/config.gz |grep SWAP
zcat /proc/config.gz |grep SWAP
CONFIG_SWAP=y
CONFIG_MTD_SWAP=y
CONFIG_RING_BUFFER_ALLOW_SWAP=y
[email protected]:/ #
[email protected]:/ # free
free
total used free shared buffers
Mem: 426424 418776 7648 0 1284
-/+ buffers: 417492 8932
Swap: 204796 48364 156432
You can flash the new kernel with fastboot flash boot boot.img in bootloader mode, i recommend wipeing cache and dalvik before.
Making it available here hoping it helps some, since this site helped me a lot.
Greetings.
as a flashable zip
how to do dart.. can u give a flashable zip.. thats easy
Hi guys,
I am trying to compile an xt_HL.ko module which will allow me to use target TTL in iptables to fix the TTL when using the phone as a hotspot. I would like to do so for a stock kernel.
I am doing this under linux mint 19.
I have gotten as far as
1) Getting the sources for the Oneplus 6T kernel from git.
2) I got the android NDK installed (sudo apt install google-android-ndk-installer)
3) export ARCH=arm64
4) export CROSS_COMPILE=/usr/lib/android-ndk/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-
5) in the kernel source
6) make ARCH=arm64 CROSS_COMPILE=/usr/lib/android-ndk/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android- sdm845-perf_defconfig
7) make menuconfig >> here I add the TTL Target as a module, save the .config
8) make -j8
9) make modules
10) everything builds successfully with no errors in the modules area
11) I transfer the resulting xt_HL.ko into the phone onto /sdcard/xt_HL.ko
12) adb shell
13) su
14) insmod /sdcard/xt_HL.ko
and after all this I get an error:
Code:
OnePlus6T:/sdcard # insmod xt_HL.ko -f
insmod: failed to load xt_HL.ko: Required key not available
As i understand I am using the wrong toolchain? Or am I missing something else?
when I look at /proc/version I get:
Code:
OnePlus6T:/sdcard # cat /proc/version
Linux version 4.9.106-perf+ ([email protected]) (gcc version 4.9.x 20150123 (prerelease) (GCC) ) #1 SMP PREEMPT Tue Nov 27 03:37:42 CST 2018
Please help me with this. I don't really want to go as far as a completely custom kernel yet.
The kernel in the phone was built with EFI_SECURE_BOOT_SIG_ENFORCE=y. This prevents loading unsigned, 3rd-party modules. You would probably need a custom kernel.
Mind elaborating on EXACTLY how to do this? I see your steps but am finding them a little sparse. I created this thread: https://forum.xda-developers.com/t/...ive-guide-to-kernels-update-21-12-16.3121088/
I'm trying to do this on LineageOS18.1 so hoping the secure_boot isn't an issue, but don't know how to add this module! Thanks!!
ThundeRStormS-Kernel
sudo ./emulator -verbose -ramdisk $HOME/s7boot/boot.emmc.win-ramdisk.gz -show-kernel -netfast -avd Nexus_5X_API_24 -qemu -s -S -kernel $HOME/s7boot/G935-boot.img
Stock
sudo ./emulator -verbose -ramdisk $HOME/s7boot/boot.emmc.win-ramdisk.gz -show-kernel -netfast -avd Nexus_5X_API_24 -qemu -s -S -kernel $HOME/s7boot/boot.emmc.win-zImage
Error with both:
emulator: control console listening on port 5554, ADB on port 5555
qemu: linux kernel too old to load a ram disk
Linux:
Linux box 5.3.8-050308-generic #201910290940 SMP Tue Oct 29 09:43:05 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Any ideas how to fix it?
I want to run in Android Emulator my Samsung S7 Edge Kernel.
My Laptop Kernel is latest 5.3
Android Kernel should be 3.18.x (I think)
Actually, it starts to boot when I chose ARM images
These are Samsung S7 edge zImage and ramdisk.
./emulator -gpu off -verbose -avd Nexus_5X_API_24_4 -ramdisk /home/user/s7boot/boot.emmc.win-ramdisk.gz -kernel /home/user/s7boot/boot.emmc.win-zImage -show-kernel -no-snapshot-load -ranchu -wipe-data
But than is stays in Black Screen
Tried -ranchu and -qemu
With generic image from Emulator it boots:
generic_arm64:/ $ uname -a
Linux loca 3.10.0+ #258 SMP PREEMPT Fri May 19 12:03:16 PDT 2017 aarch64
Any idea how to boot that Samsung S7 Edge kernel?
Thanks,