[Q] Help Understanding/Loading/Developing Kernel Modules - Android Q&A, Help & Troubleshooting

The Story started when i wanted to install Drivers for USB OTG on my Droid, And now im ended up by a black hole, im completely lost
What i've Researched/Understand:
1.Kernel is a Bridge between Software and Hardware
2.Drivers must be included in Kernel
3.To Load Drivers, We Need to Extends The Functionality of the Kernel using Some *KO Files Through some Command-Line Commands
What i Have:
1.Source Code for my Phone Kernel
2.Driver for the Device that will be connected Over USB OTG
3.A Rooted Phone
4."Tenda W541U" Is the Device will be connected Through USB OTG and it's chipset is "RT2070L"
What I'm not understanding/Asking for:
1.How can i make these *KO Files?
2.Do i need to make them from Scratch?
3.How to Load them?
4.Will this modify My Kernel Permanently?
5.Do i need Unlocked bootloader?

Related

[Q] OTG different after flash

Hi,
After updating (flashing through odin) my GB Stock to 2.3.6, i dont get the msg "USB Host Cable Connected" which I was getting before. And apparently even if I connect a device i dont get any notification that either a keyboard or mouse has been attached. Is this normal ?
Edit: Was searching online and found out that i have USB Host Driver missing, any1 know of a way to install the drivers without recompiling a kernel ?:/
I tried USB host diagnostics and it states that Android API does not claim support but at the end it states Overall, OS support = yes, what does that mean?

[Q] [XU] USB detection is dead. Need to unroot and install stock ROM.

Some weeks ago, my Xperia U stopped detecting my USB cable as a USB cable.
It all happened one day, when the battery became weak (<15%) and I plugged the USB cable. The XU started to blink the charging light non stop, with the warning popup having the same behaviour in the OS (appearing, disappearing, appearing, disappearing...). So I unplugged it, thinking that it should be a problem with my computer USB port and plugged it to electricity. Only some days later, when I plugged it again to the computer, I came to realize that the problem was in the XU because it wasn't detecting that a USB cable was connected but it was charging normally like it should and it still does until this day (it still changes plugged to electricity too, no problem there).
Things I've tried so far:
- Enable/disable debug mode does nothing;
- Tested with friends' USB cables without any success;
- When I tried to boot into flashmode, Windows tried to install some driver and stopped with no warning;
- On a Linux machine, I checked the connected by USB devices and there was an error concerning the device but I couldn't figure it out what was it.
So, it seems like the USB cable detection is dead and I want to send it to warranty to have them checking the problem, but I have my XU rooted and it's with a stock ROM but not the one it should be (it's with that French one when ICS firstly came out).
That said, my question here is if there's anyway I can unroot and install my provider stock ROM (the ROM file is not a problem) without using the USB cable, so I don't have any problem with the warranty. I've used WiFi ADB app with success since I can connect to my device and perform adb commands, but I don't know what I can do with it to help me solve my problem...
Thanks in advance for your answers.
you can via Wi-FI channel's built to give ROM memory? If so, tell and through Wi-Fi ADB flash tis ROM, unless of course will
Yes, I can send the stock ROM file with ADB WiFi to my XU, but I don't know if flashing with 'just' ADB works, because I've always used Flashtool for flashing... Could you explain with more details, please?
I've been occupied and in need of my XU, and so I still haven't send it to the warranty, but I wanted to do it this week... So, is there anyone that can help me?
I'd be really greatful if you could tell me how you got flash tool to detect the XU. After installing a custom rom my device won't stay in flashmode. I have ALL the drivers.
TomHempt said:
I'd be really greatful if you could tell me how you got flash tool to detect the XU. After installing a custom rom my device won't stay in flashmode. I have ALL the drivers.
Click to expand...
Click to collapse
Man, that doesn't even make sense on this thread. Please, start a new thread or reply on one that fits your problem.

[Q] USB to Serial Devices

I have recently downloaded a program called Divemate USB which is supposed to allow me to sync data from my Suunto Cobra dive computer via the USB data cable with an OTG adapter. I have been unable to transfer data and the app says that no dive computer is connected. I contacted the developer who believes that the DNA may have certain USB devices may be limited by the stock Kernel. I am rooted and S-Off but I have never experimented with Kernel modifications. Does anyone know if any of the the DNA Kernels available here would solve my issue? The developer suggested that disabling the USB_OTG_WHITELIST may solve the problem but I do not know how to do that.
to access the otg feature plug in otg cable and your lil pc and reboot phone into recovery then go to advanced and select otg
now make sure your on the latest twrp or cwm recovery crpalmer kernel will do otg cables beastmode kernel will do otg cable
btw i dont know if otg will work in android i could be wrong and you can maybe try another app
also what rom are you on stock sense or what it has nothing to do with it but if your still stock kernel then try a custom kernel they all have otg support

Phone not detected by windows 7 help!

Hi guys,
I'm new to this forum. I've got a Samsung i777 on android 2.3.6 kernel 2.6.35.7 build number gingerbread.uckk6
I've recently bought this phone off ebay
My phone does not get detected by windows 7 or Macbook. I've tried changing the USB flex cable with I9100 v2.3 but still no luck.
When I connect USB port it beeps and shows mtp-initialization/mtp-connected on the phone but it is not shown on windows. It says USB cannot recognise the device. I've got a s3 and ideos x3 both of them are detected.
I've installed kies 3 on my laptop.
I had to swtich off the wifi on the phone because it consumes a lot of battery, I think it is because of the android version I'm using!
I want to root the phone and unlock it!!
Any help is appreciated!
Sent from my SAMSUNG-SGH-I777 using xda app-developers app
I'm guessing the problem is the Samsung drivers you have installed for the s3. Try uninstalling those and installing the correct drivers for s2.
Sent from my GT-p511x
you can check this thread for driver
http://forum.xda-developers.com/showthread.php?t=961956
You most likely need a new cable. Happened to me once! Could be the drivers but I HIGHLY recommend just trying a new USB cable.
Thank you guys for all your help really appreciate it!
I have tried all the steps mentioned above tried to uninstall all the previous drivers I had and installed the new driver as mentioned in the above link but no luck
I tried it on a friends computer with a different cable still it shows the USB device is not recognised!!
kshah1606 said:
Thank you guys for all your help really appreciate it!
I have tried all the steps mentioned above tried to uninstall all the previous drivers I had and installed the new driver as mentioned in the above link but no luck
I tried it on a friends computer with a different cable still it shows the USB device is not recognised!!
Click to expand...
Click to collapse
Did you install another ROM? It might help to Wipe system, Data, ETC! it appears to be a software problem. Or at least my guess is the ROM your using.
The Galaxy phones all use the same USB drivers whether it's an S2, S3, S4, etc., so if the installed drivers were working for your S3, it's unlikely to be a driver issue.
Can you boot it into download mode? If you happen to have a USB jig, that's the easiest. Otherwise, power off the phone, unplug the USB cable, hold Vol +/Vol-, then plug in the USB cable. It should go into ODIN download mode. See if Windows detects the phone that way. If so, it very well could be something weird with the OS installed (although it appears to be stock).
If you can get into download mode, you can flash a stock kernel to make sure you are starting fresh. A good file repository is found here. I recommend the stock UCKH7 image I777_UCKH7_OCD_No_BL.7z (you'll also get root).
And yes, the UCKK6 release had a serious bug related to the wifi that could drain your battery. Best to go with UCKH7.
You could also download an app that allows you to enter download mode.
SighIsAnonymous said:
Did you install another ROM? It might help to Wipe system, Data, ETC! it appears to be a software problem. Or at least my guess is the ROM your using.
Click to expand...
Click to collapse
How would I be able to change the ROM if the phone is not detected
jpasher said:
The Galaxy phones all use the same USB drivers whether it's an S2, S3, S4, etc., so if the installed drivers were working for your S3, it's unlikely to be a driver issue.
Can you boot it into download mode? If you happen to have a USB jig, that's the easiest. Otherwise, power off the phone, unplug the USB cable, hold Vol +/Vol-, then plug in the USB cable. It should go into ODIN download mode. See if Windows detects the phone that way. If so, it very well could be something weird with the OS installed (although it appears to be stock).
If you can get into download mode, you can flash a stock kernel to make sure you are starting fresh. A good file repository is found here. I recommend the stock UCKH7 image I777_UCKH7_OCD_No_BL.7z (you'll also get root).
And yes, the UCKK6 release had a serious bug related to the wifi that could drain your battery. Best to go with UCKH7.
Click to expand...
Click to collapse
I was able to boot to download mode by holding the vol +/- key and then plugging in the USB cable but there is no movement from the computer it doesn't make a sound nor does it detect. I tried restarting the phone then I get a notification on windows that USB device not recognised!
Yes I guess this rom is useless, if the wifi is switched on then battery would not even last 6 hrs!
kshah1606 said:
I was able to boot to download mode by holding the vol +/- key and then plugging in the USB cable but there is no movement from the computer it doesn't make a sound nor does it detect. I tried restarting the phone then I get a notification on windows that USB device not recognised!
Click to expand...
Click to collapse
Are you saying to get a balloon notification in the tray that says the USB device is not recognized? A possible reason for that is a faulty USB cable or USB port (funny enough, I actually got that message last night when I was playing around with my Captivate, and switching USB ports made it work). I know you said you've tried other computers an another USB cable, but that's about my only idea. Maybe there's some debris inside the connector that's messing up the connection.
When you say you changed the "USB flex cable", are you talking about the internal connector and board inside the phone? If so, perhaps the I777 connector board is actually a little different than the I9100 board and causing a compatibility issue.
The bug in UCKK6 related to wifi didn't affect everybody, but it definitely affected a lot of people (based upon reports here).
kshah1606 said:
How would I be able to change the ROM if the phone is not detected
Click to expand...
Click to collapse
If you have an SD card, you can download another ROM on that SD card from your computer and then you can install custom recovery (CWM) and then install the ROM from SD card.
kshah1606 said:
How would I be able to change the ROM if the phone is not detected
Click to expand...
Click to collapse
First ill run you through the problem I had. Just for reference did you use Mr. Cooks script before flashing Cyanogenmod 11? One of his scripts for cleaning before flashing, actually deletes a certain file, not to keen on which one. What it results in though is not being able to flash OF ROMS and some certain custom ROMS! So id recommend alliance's ROM! As for the "Getting the ROM on your device, you could put the ROM on your SD though recovery "Mount and storage/Mount mass storage/" or just use a micro sd card adapter and move it on there that way.
Thanks for your reply. Would you mind sending me the link on how to do that step by step as mentioned I'm new to Samsung phones and also this forum.
Your help is appreciated
Sent from my SAMSUNG-SGH-I777 using xda app-developers app
kshah1606 said:
Thanks for your reply. Would you mind sending me the link on how to do that step by step as mentioned I'm new to Samsung phones and also this forum.
Click to expand...
Click to collapse
What state is your phone currently in? Is it still not detected by the computer? You are still on 2.3.6, correct?
If it's still not being detected by your computer, I'm not sure if you can flash anything needed using the stock recovery. I know that when I flashed stock JB, I was able to boot into stock recovery and directly apply the standard CWM update file here. It will give boot into a temporary CWM that should allow you to flash other ZIP files (like a ROM), although I had trouble doing that (so I ended up flashing the AJK_v4.9_NoSwap.zip kernel using the MobileOdin android app, which gave a permanent CWM recovery).
I'm not sure if this same process works with the 2.3.6 recovery. However, in order to get the stock recovery to see the internal SD card, I had to run adb shell commands to mount the partition (meaning I had to have a working connection from the computer).
Solved!!!
HI Guys,
Many many thanks for all your responses!
I have changed the USB flex cable again to an older version v2.2 and my phone is currently being detected by kies! So relieved thanks a lot for all your help..now the rooting begins!!:laugh:

[Q] OTG USB not working on a supported Oppo phone

First let me say that I am not permitted to post this question on the thread that relates to custom roms for the Oppo Muse Find R821, since I am not a developer .
The named phone has hardware capability to act as USB host but USB Diagnostics report that the kernel (I am using the original ROM) does not support it.
Is there any way to modify the rom to get it to recognize USB devices, as a host?
Or any patch/addition to the ROM that will enable this function?
Perhaps something I can install as a zip in recovery mode.
Or maybe there is a custom rom for this phone that activates the OTG capability?
I know that the phone will automatically recognize a USB stick if the hardware can do it, if the kernel allows it and if the correct OTG cable is used.
The only thing lacking now is the software.

Categories

Resources