[Q] help with compiling kernel modules for the SM-T315 - Galaxy Tab 3 Q&A, Help & Troubleshooting

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?

Related

[DEV] tun.ko for openvpn using on HTC genuine ROM

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.

[Q] RemPuzzle_2.83, Kernel 2.6.32.39-nFinity tun.ko

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...

[Q] Help compiling kernel 2.6.38.8-tiamat-ics+ for HTC Desire

Hello,
I am trying to apply some patches to the currently running kernel:
Code:
[email protected]:/ # uname -a
Linux localhost 2.6.38.8-tiamat-ics+ #1 PREEMPT Fri May 25 21:49:58 CDT 2012 armv7l GNU/Linux
Is this the correct process?
1) Download the kernel source (I'm downloading this branch now, do you think this is correct : http : // git.tiamat-dev.com/htc-kernel-msm8x50/log/?h=android-msm-2.6.38-ics-tiamat ? )
Code:
cd ~/kernel/
git clone git://git.tiamat-dev.com/htc-kernel-msm8x50 -b android-msm-2.6.38-ics-tiamat
2) Grab the current config from the android device /proc/config.gz over to my laptop
Code:
adb pull /proc/config.gz /tmp/config.gz && gzip -d /tmp/config.gz && cp /tmp/config ~/kernel/htc-kernel-msm8x50/.config
3) Follow android kernel compiling instructions (from showthread.php?t=1774035 )
Code:
cd ~/kernel/
git clone https://android.googlesource.com/platform/prebuilt -b ics-plus-aosp
export PATH=~/kernel/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin:$PATH
export ARCH=arm
export SUBARCH=arm
### export CROSS_COMPILE=arm-eabi- (WRONG! this gave me a "sorry, unimplemented: -mfloat-abi=hard and VFP" error, use the below line instead)
export CROSS_COMPILE=arm-linux-androideabi-
make ARCH=arm oldconfig
make
edit: currently compiling here.. see how it goes
4) Copy the compiled kernel into a zip archive (in similar format to current installable kernel zip file) and install custom kernel via recovery
Am I missing anything here?
Thanks!
Dave (android kernel compiling newb)

Need Help compiling kernel

I am a total noob trying to compile kernel for 4.1.2 stock with sources downloaded from http://developer.sonymobile.com/dow...ves/open-source-archive-for-build-15-1-c-2-9/
Compiling seems to stop at this line:
Code:
CC drivers/input/mouse/trackpoint.o
LD drivers/input/mouse/psmouse.o
LD drivers/input/mouse/built-in.o
LD drivers/input/sensors/built-in.o
LD drivers/input/touchscreen/synaptics-rmi/FIH-touch-tool/built-in.o
LD drivers/input/touchscreen/synaptics-rmi/built-in.o
LD drivers/input/touchscreen/built-in.o
LD drivers/input/built-in.o
Makefile:949: recipe for target 'drivers' failed
make: *** [drivers] Error 2
what I did:
Code:
make clean && make mrproper
make proj_S3A_user_defconfig
make -j8 ARCH=arm CROSS_COMPILER=arm-none-eabi-
this is my cross compiler version:
Code:
arm-none-eabi-gcc --version
arm-none-eabi-gcc (Arch Repository) 5.1.0
Running 64-bit Arch with multilibs.
Code:
uname -a
Linux killer-arch 3.14.43-2-lts #1 SMP Fri May 22 03:36:10 UTC 2015 x86_64 GNU/Linux
Any helps appreciated.
This problem was fixed using 4.9 Linaro and exporting both CROSS_COMPILE & ARCH variables first.

Problem with TP-LINK TL-WN722N v3 in Nexus 5x

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?

Categories

Resources