[Q] Help add xpad.ko - Galaxy S III Q&A, Help & Troubleshooting

Hey everyone. After trying to connect my x360 controller to my S3 i9300 with cyanogen 10.2 without sucess, i started to look what is wrong. I found that the cyanogenmod doesnt have the file xpad.ko, that is the driver for x360 controller and need to instaled with terminal like that:
Code:
# insmod /mnt/sdcard/tmp/xpad.ko
but it returns an error... exec format error.
theres a forum that say to execute ff-memeless.ko before the xpad.ko
but it also returns an error... 'can't open /mnt/sdcard/tmp/ff-memeless.ko'
some say that must be an issue with kernel and ask for use the command uname -a in terminal to know what kernel is, my kernel is:
Code:
Linux localhost 3.0.64-CM-gd6f2f4a #1 SMP PREEMPT Mon Dec 2 21 : 12:34 PST 2013 armv71 GNU/Linux
anyone know how to proceed ?
the files i tryied to use are in attachment.
Thanks and sorry for my english... i know its very bad =X

Related

Compiling Kernel modules for z902

Okay so heres my problem.. Im currently trying to compile modules to add to my z902. i have the 3.0.8 kernel source used for the mele which uses the same allwinner a10 proccessor. I have done some looking around and found that in order for android to load the module it needs to be compiled with the correct vermagic as well.. i managed to get info from both a module already on the device and from the module i compiled.
My module retrieves the following info when using modinfo()...
filename: hid-sony.ko
license: GPL
alias: hid:b0003v0000054Cp0000024B
alias: hid:b0005v0000054Cp00000268
alias: hid:b0003v0000054Cp0000042F
alias: hid:b0003v0000054Cp00000268
depends:
vermagic: 3.0.8+ preempt mod_unload modversions ARMv7
the original im comparing to looks as follows...
filename: sun4i-keypad.ko
alias: platform:sw-keypad
license: GPL
author: Aaron.maoye<[email protected]>
description: SW keypad driver
depends:
vermagic: 3.0.8+ preempt mod_unload modversions ARMv7
this is what it took me a while to acheive. the problem is when trying to insert the module into linux using the insmod command i get this error..
insmod: init_module 'hid-sony.ko' failed (Exec format error)
afterwords i ran dmesg and noticed a line that looks as follows:
hid-sony: dissagrees about version of symbol module_layout
after doing this i read about a way to overlook the vermagic by using modprobe..
here i ran into another problem.. when executing modprobe as follows i recive this error..
#busybox modprobe hid-sony.ko
modprobe: chdir(/lib/modules): No such file or directory
after recieving this error i tried making the directory and typed in the same command..
it returned that modules.dep was not found..i looked into this file and it seems to be where linux stores all the initiated drivers.
I searched high and low and could not find this file anywhere on the system.
my question is.. What the hell am i doing wrong..? lol
I compiled the entire kernel first.. then i compiled the modules afterwords to a set location.
does the baseband version info have anything to do with this because i couldnt find any info on it..
the z902 has 1.2.3 as a baseband..? is it possible i may not have the correct kernel source..?
anyone who helps me solve this i will personally buy them a unit and set it up for them.. lol
BUMP
Bump.. please someone help... how can i make modules.dep without depmod in my busybox applets.. anyone know if i can update busybox within android or through linux. id really like to add support for some controllers and bluetooth dongles. im pretty sure the module is setup and compiled right. but its trying to install it in the wrong place. unless it matters that android is compiled within the kernel as well.. because the tutorial i read through didnt say it was neccisary. i belive it was aimed towards the mele a2000. but its an allwinner a10 with the same kernel. 3.0.8+.. the only thing in not sure of is the build number. the z902 shows a 1.2.3 build. and i have no clue what build number the mele a2000 uses.
prob a waste of time as nobody seems interested...
I managed to update busy box and add depmod to the list of applets. After doing so I tried mod probe and the module still won't load. Don't have the info on the error in front of me but it was something to the effect that it was not compatible with the kernel. Back to square one. Going to try compiling it with android over the weekend and give it another attempt. Need to find some kind of a work around for actual controllers for this thing. USB/bt joystick center would be a phenomenal upgrade for this device.

[Q] Need Help! With Ubuntu 13.04 on android

So i saw this video of a guy having ubuntu 12.04(pc version) on his phone,he was running the linux server on his phone and at the same time accessing it, using androidVNC . BTW i have a samsung galaxy S 4 (sprint Version ,without knox) Running cyanogenmod 11.0 , android version 4.4.2, the kernel version is [email protected] #1 Thu Jan 9 21:12:16 PST 2014 .
I checked if my phone is loop compatible using, the following in terminal emulator : zcat /proc/config.gz | grep CONFIG_BLK_DEV_LOOP , i found it on a webpage , and i got y, that means it is a loop device, but when i ran CompleteLinuxInstaller i got into the following problem
Checking loop device ... FOUND
mount: mounting /dev/block/loop255 on /data/local/mnt failed : Invalid Argument
ERROR: Unable to mount the loop device
but when i did modprobe loop
it didn't find anything
so if you can help, me i am not a genius, just tell me the simplest way to fix this.
btw i want to install unbuntu 13.10 i have everything downloaded(Terminal emulator, Complete linux installer, AndroidVNC, and the 3.72gb image file)
Thank's in advance,
GGgamer16
Answer
GGgamer16 said:
So i saw this video of a guy having ubuntu 12.04(pc version) on his phone,he was running the linux server on his phone and at the same time accessing it, using androidVNC . BTW i have a samsung galaxy S 4 (sprint Version ,without knox) Running cyanogenmod 11.0 , android version 4.4.2, the kernel version is [email protected] #1 Thu Jan 9 21:12:16 PST 2014 .
I checked if my phone is loop compatible using, the following in terminal emulator : zcat /proc/config.gz | grep CONFIG_BLK_DEV_LOOP , i found it on a webpage , and i got y, that means it is a loop device, but when i ran CompleteLinuxInstaller i got into the following problem
Checking loop device ... FOUND
mount: mounting /dev/block/loop255 on /data/local/mnt failed : Invalid Argument
ERROR: Unable to mount the loop device
but when i did modprobe loop
it didn't find anything
so if you can help, me i am not a genius, just tell me the simplest way to fix this.
btw i want to install unbuntu 13.10 i have everything downloaded(Terminal emulator, Complete linux installer, AndroidVNC, and the 3.72gb image file)
Thank's in advance,
GGgamer16
Click to expand...
Click to collapse
I don't own that phone. And so I cannot say much about it.
But my personal advice is to take backup of everything before you proceed with any changes to your phone.
I found the following links give you an idea:
http://android.stackexchange.com/questions/25396/how-to-find-out-if-my-devices-kernel-has-loop-device-support
http://ubuntuforums.org/showthread.php?t=2189642
http://ubuntuforums.org/showthread.php?t=2193699
Keep searching Google.

[HELP NEEDED] boot kitkat 4.4.2 mediatek device on offline charge mode

Hi guys, im doing a project which requires the tablet to auto start when power is available through USB.
im using a datawind tablet d705 model with a mediatek cpu and kitkat version 4.4.2.
Here is a info dump from MTKtools:
Hardware : MT8312D
Model : D705
Build number : ALPS.KK1.MP7.V1.25
Build date UTC : 20150727-023443
Android v : 4.4.2
Baseband v: MOLY.WR8.W1315.MD.WG.MP.V64, 2014/08/02 09:47
Kernel v : 3.4.67 ([email protected]) (gcc version 4.7 (GCC) ) #1 SMP Mon Jul 27 10:31:34 CST 2015
Uboot build v : -----
LCD Driver IC : 1-rgb_mt6571_wvga
i have attached files that will help with figuring out the file that is loaded to show charging animation.
i have also tried most of the available methods on various forums to try to boot the tablet but failed.
fastboot oem off-mode charge 0 does not work
1. search in /system/bin/ for playlpm, ipod, lpm, kpoc_charger or any other file that have inside some reference to battery animation.
2. edit that file, delete all content inside and add
#!/system/bin/sh
/system/bin/reboot
i have a ipod file but it is not used for animation, deleteting the file from boot.img makes no difference at all.
1. Unpack boot.img and edit init.rc.
2. Add following to the end of file:
#Check if chargermode and start autoreboot service.
on property:ro.bootmode=charger
start autoreboot
#autoreboott service which command reboot
service autoreboot /su/bin/su /system/bin/reboot -c reboot now
user root
oneshot
none of the above worked. i also tried various methods to edit init.rc and init.charger.rc but nothing worked.
could some one please help me with this. im ready to donate for your kind help

Help build kernel module for MiBox 1S

So long story short, I wanted to build the ftdi_sio.ko module for the linux kernel of android based MiBox 1S. I was able to build the module but once I run "insmod" via adb, the system crashes and reboots (I couldn't see any error message because of this). Please could anyone suggest how to find where the problem is or whether what I wanted to do is even possible?
The device is running system version 1.3.88 rooted by the Chinese 360 root app. Kernel version follows:
Code:
adb shell cat /proc/version
Linux version 3.10.33 ([email protected]) (gcc version 4.7.3 20130205 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.02-01-20130221 - Linaro GCC 2013.02) ) #1 SMP PREEMPT Tue Jun 16 00:38:26 CST 2015
As Xiaomi doesn't have kernel source release for MiBox (afaik), I went to look for the Amlogic kernel source for AML8726-MX (M6).
The closet kernel source I could find was from Stane1983's github repo amlogic-m6_m8. I'm using the earliest commit for 3.10.33 kernel version.
For the building of the kernel module, I pretty much followed a github document named 'Android-Build-Kernel-Modules-HOWTO.txt' by marco-pratesi. I downloaded the toolchain from the archive of linaro releases 13.02 which shows the same version of the android kernel above. I copied the .config from arch/arm/configs/meson6_deconfig and use 'make menuconfig' to add OTG_support and USB FTDI Single Port Serial Driver. Make the module by "make M=drivers/usb/serial/". And then adb push the generated ftdi_sio.ko file to /mnt/sdcard.
For loading the module, I run
Code:
adb shell
su
insmod /mnt/sdcard/ftdi_sio.ko
Then the box freezes for 10 seconds and reboots...
So my questions are:
1. Is there a way to find some logs of insmod to know what's gone wrong? As the system freezes and reboots, I can't use the dmesg method normally suggested, can I?
2. As the kernel source is from Amlogic, could it be that Xiaomi created their own kernel that is very different from this one to cause this problem?
3. Even if Xiaomi used exactly the same source code, as i'm using the meason6_defconfig file from the repo, it is likely to be different from the one Xiaomi was using. Would it matter for just building a module?
4. Is it possible to recover the config file from the prebuild kernel? I counld't find /proc/config.gz. And modprobe has error "can't open 'modules.dep': No such file or directory. "
5. What else I can try?
Sorry for the long post. I'm very new to this type of work and this forum as well. So any comments would be appreciated.

Help with install driver wifi

Hi finally i can install Chrome Os in my laptop...
Now i try install my wifi driver but the only problem is the kernel... this not have headers for compiling..
when i try to compile the code:
[email protected]:~/rtl8821ce$ sudo ./dkms-install.sh
Show me this error
Error! DKMS tree already contains: rtl8821ce-v5.5.2_34066.20200325 (The driver is install previously but not are activable)
You cannot add the same module/version combo more than once.
Error! Your kernel headers for kernel 4.19.87-07826-g55ab70aff690 cannot be found.
Please install the linux-headers-4.19.87-07826-g55ab70aff690 package,
or use the --kernelsourcedir option to tell DKMS where it's located
Error! Your kernel headers for kernel 4.19.87-07826-g55ab70aff690 cannot be found.
Please install the linux-headers-4.19.87-07826-g55ab70aff690 package,
or use the --kernelsourcedir option to tell DKMS where it's located
Finished running dkms install steps.
i try install the headers but this kernel version not have headerrrss!!! jajaja...
Well i try upgrade the linux and i can... my distr is Debian 10.3 now... and them i proced to upgrade the kernel... ok all fine upgrade the kernel but when i check the information of kernel with the code
uname -a
Linux penguin 4.19.87-07826-g55ab70aff690 #1 SMP PREEMPT Tue Feb 4 17:29:42 PST 2020 x86_64 GNU/Linux(show me the old kernel but is the install actually)
show me the new kernel in the older kernerls with the command
dpkg --list | grep linux-image
ii linux-image-5.5.0-0.bpo.2-cloud-amd64-dbg 5.5.17-1~bpo10+1 amd64 Debug symbols for linux-image-5.5.0-0.bpo.2-cloud-amd64
Any can help me? to update the kernel and the headers?
My specs:
HP-15-db0081wm
Cpu: AMD Dual-Core E2-9000e
Gpu: AMD Radeon™ R2 Graphics
Ram: 4GB
Q. How i install chrome os?
A. with this video ( https://www.youtube.com/watch?v=4gZYV0RWJQ8 )
SRY FOR MY BAD ENGLISH
If i

Categories

Resources