[Q] Building the kernel with ethernet OTG support - Nexus 5 Q&A, Help & Troubleshooting

All,
The N5 looks excellent, and after fondling one in the local CPW in the UK today, I have decided to swap my Note2.
One question - looking on AOSP, I cant see which kernel the N5 is running. Others have said 3.4 (thanks), but which build files do I need from:
http://source.android.com/source/building-kernels.html#figuring-out-which-kernel-to-build
??
I suspect I will need to build ethernet USB OTG kernel modules as I did for my Note2 (unless, or course, they are pre built and included like in the N7).

Related

[Q] USB Host OTG Hack?

Would it be possible to hack the infuse to support USB OTG? The SGS II is already factory supported and I was wondering if there was any way to implement that feature into the infuse for the use of external memory, USB keyboards/mice/headsets, etc. I also know that someone already hacked the Nexus One to support this. Also, would the HDMI out tell us if its supported (Since the phone is sending an image to a TV screen?)
Nothing at all?
Just wanted to give this a nudge up towards the top. Is this something that could be added via rom/kernel or does it have to be supported in hardware? Really interested in if this is possible given the recent release of DSLR Controller.
Do have any other first-gen SGS phones been modded to support it?
If so, it might be possible to get these mods implemented in our kernels - point me to a kernel for a first-gen SGS phone (NOT an SGSII) with this capability and I'll look at it.
Our hardware is fairly similar to the original SGS series, so a lot of things that work on those phones will work on ours. The SGSII is VERY different so backporting features like this is unlikely due to lack of hardware support.
Entropy512 said:
Do have any other first-gen SGS phones been modded to support it?
If so, it might be possible to get these mods implemented in our kernels - point me to a kernel for a first-gen SGS phone (NOT an SGSII) with this capability and I'll look at it.
Our hardware is fairly similar to the original SGS series, so a lot of things that work on those phones will work on ours. The SGSII is VERY different so backporting features like this is unlikely due to lack of hardware support.
Click to expand...
Click to collapse
Thanks for the reply. I'll keep an eye out and see if support gets added to any of the SGS phones, sadly for right now all I know of is support on the SGS2 and possibly on the Nexus S.
dotpkmdot said:
Thanks for the reply. I'll keep an eye out and see if support gets added to any of the SGS phones, sadly for right now all I know of is support on the SGS2 and possibly on the Nexus S.
Click to expand...
Click to collapse
Nexus S hacks MIGHT be bringable to our phones - but far less likely than GS phones.
USB OTG mode is initiated by shorting USB pins 4 and 5. The phone can do it hardware wise. It's a matter of having the drivers for the accessory connected.
You don't just "have" OTG capabilities... It's a matter of what devices you support.
This would not be something which would occur at the device level. The hardware is connected to the phone, the phone runs Linux. Linux handles connections of the devices. Grab kernel modules from Linux for OTG devices.
If thats the case it would seem odd that so many developers work towards adding the support to phones.
The SGS2 doesn't have drivers built in to support connecting to canon DSLR's yet its the only phone at this point to officially support it... because it supports USB Host OTG mode.
AdamOutler said:
USB OTG mode is initiated by shorting USB pins 4 and 5. The phone can do it hardware wise. It's a matter of having the drivers for the accessory connected.
You don't just "have" OTG capabilities... It's a matter of what devices you support.
This would not be something which would occur at the device level. The hardware is connected to the phone, the phone runs Linux. Linux handles connections of the devices. Grab kernel modules from Linux for OTG devices.
Click to expand...
Click to collapse
dotpkmdot said:
If thats the case it would seem odd that so many developers work towards adding the support to phones.
The SGS2 doesn't have drivers built in to support connecting to canon DSLR's yet its the only phone at this point to officially support it... because it supports USB Host OTG mode.
Click to expand...
Click to collapse
Check out the GalaxyS hack pack for the USB chip. I can verify that the kernel knows when something OTG is connected. It brings up UART messages and you can see it in dmesg.
here you go... here's the relevant dmesg output from my device right now.
Code:
<4>[11037.766990] fsa9480_interrupt
<4>[11037.767292] [FSA9480] FSA9480_ReadIntRegister
<6>[11037.815966] ldo38_control : turn ON LDO3 and LDO8 (cur_stat=0, req=1)
<4>[11037.816113] [otg_clock_enable] clk_enable(otg_clock) OK.
<4>[11037.829314] FSA9480_ProcessDevice function!!!!
<4>[11037.829428] [FSA9480]FSA INTR = dev1 : 0x80, dev2 : 0x0 , Attach : 0x1
<4>[11037.829528] USB OTG
The last dmesg log was with no device attached. Here's with a USB Flash drive attached.
Here's one with a flash drive plugged into my little test setup.
Code:
<4>[12679.047442] maxim_vac_connect: disconnect status skip
<4>[12679.210991] fsa9480_interrupt
<4>[12679.211262] [FSA9480] FSA9480_ReadIntRegister
<6>[12679.266909] ldo38_control : turn ON LDO3 and LDO8 (cur_stat=0, req=1)
<4>[12679.267071] [otg_clock_enable] clk_enable(otg_clock) OK.
<4>[12679.280247] FSA9480_ProcessDevice function!!!!
<4>[12679.280375] [FSA9480]FSA INTR = dev1 : 0x80, dev2 : 0x0 , Attach : 0x1
<4>[12679.280476] USB OTG
<4>[12682.348957] [email protected] Total=32768bytes PrdSz=2048 #Prds=4, dmaEnd 0x4f168000
<7>[12682.442657] touch_led_control: 1
<4>[12682.929923] xrun: occurred buffer xrun[0]
<7>[12685.436920] touch_led_control: 2
<4>[12690.544885] [TSP] TA NON-Detect!!!
<6>[12690.559635] [BAT]:Vol=3893, Temp=330, SOC=63, Lv=63, ST=0, TT=0, CS=0, CE=0, RC=0, FC=0, Hlth=1, DS=0x800, VF=590
it does not create any new devices.
Right now USB host is not compiled in the kernel at all, so I'd expect this.
That's why I was asking if someone had found an example of a first-gen SGS with USB Host/OTG support compiled in. With an example kernel's defconfig and source I can analyze, it shouldn't be TOO hard to port that functionality to our device.
The current state is: FSA9480 tells the kernel that an OTG device is connected, kernel says "I dunno what that is. I'll give up and do nothing."
Usb otg through micro dongle
I think you people should try for this. I think it will work for ur device.
www.tombom.co.uk/blog/?p=124
vishal24387 said:
I think you people should try for this. I think it will work for ur device.
www.tombom.co.uk/blog/?p=124
Click to expand...
Click to collapse
No, it won't. See the posts above - there are software components missing.
Again - if someone can point me to an example of a kernel where host mode is working on a first-gen GalaxyS device, I'll try to port it over. I'm not going to try and backport anything from a GSII.
Convincing the FSA9480 to signal host mode is only a tiny piece of the puzzle - see HDMI on Rogers Gingerbread as an example.
would these help entropy?
http://forum.xda-developers.com/showthread.php?t=1450298
http://forum.xda-developers.com/showthread.php?t=1468531
this is an old thread. but things have changed since then. its been successfully integrated into the galaxy s and nexus s. hopefully it will result in a port since its atleast plausible now.
been awhile since this has been looked at, was wondering if anyone had any luck with this, would be greatly appreciated if i got any kind of response

[Q] MHL Sense 4 vs Non-Sense/3.6

I noticed that Prime 5 has HDMI out working while Ordroid 8.1.0 does not. A black screen appears on Ordroid.
1. Would there be an easy way to look at the differences in libraries between the two and figure out which files are needed for MHL to work properly if anyone is familiar with which binaries provide HDMI out?
2. I saw elsewhere that if it isn't just a HTC specific library, then the correct kernel should provide the MHL interface and swapping the kernel could make a Sense 4 ROM do HDMI out. Any further thoughts?
Prime 5: http://forum.xda-developers.com/showthread.php?t=1466917
Ordroid: http://forum.xda-developers.com/showthread.php?t=1551714

[Q] Any custom ROMs with drivers for wired ethernet?

I am looking to replace my work laptop with a tablet and I love the Note 10.1 but lack of wired ethernet drivers is killing it for me. I have to be able to troubleshoot wired networks for customers. Anyone know if a developer has included the ethernet drivers in a custom ROM maybe? From my understanding its just a matter of it being included in the build somehow and it just wasnt included in stock.
I can look into it for my kernel- the "Pegasus" brand of USB Ethernet drivers is fairly common.
Problem is, I think you'll also need Framework support but we don't have the TW source.
ethernet on Note 10.1
biznetplus said:
I am looking to replace my work laptop with a tablet and I love the Note 10.1 but lack of wired ethernet drivers is killing it for me. I have to be able to troubleshoot wired networks for customers. Anyone know if a developer has included the ethernet drivers in a custom ROM maybe? From my understanding its just a matter of it being included in the build somehow and it just wasnt included in stock.
Click to expand...
Click to collapse
same needs....i would need it to perform some Pentests against internal web applications that are only accessable via LAN....
any update to this thread??
Any updates?
I have had success with Mokee on xiaomi mipad 4 — ethernet worked without any extra fiddling. But it bootlooped when trying to install to another device.
The xiaomi.eu ROM also has working ethernet drivers working ootb with two different usb adapters that i tried.
Lets hope the posters are still here after eight years and mokee do have a rom for Note 10.1

Compiling WiFi Modules

Hey guys (i don't want to be a ***** here) I just bought a new Galaxy Note 8.0 and am really keen on getting my wireless adapter working (in monitor mode). I am a part time pentester so this would be really handy! Could anybody point the way for cross compiling wifi modules with my kernel? This would be great, cheers

Hannspad SN1AT74 - Ethernet and Cloning

Hi all,
I have a two Hannspad SN1AT74, one a little older one, the other is new.
When I attach a ethernet adapter using a USB OTG cable it will work on the "old" one (Build Number 2014...).
I can see ethernet settings in the Settings screen.
But... this functionality is not supported in the new one (Build 2015*), here is no ethernet supported!
The support department of the manufacturer told me, that the first version is a special version for a project which was not released officially
Android version is 4.4.2 on both tablets.
Is there any possiblity to create an image from the old tablet and put it 1:1 onto the new tablet?
I'm an absolutely newbie in Android, so have to begin from scratch
Thanks
Wrzlbrnft
wrzlbrnft said:
Hi all,
I have a two Hannspad SN1AT74, one a little older one, the other is new.
When I attach a ethernet adapter using a USB OTG cable it will work on the "old" one (Build Number 2014...).
I can see ethernet settings in the Settings screen.
But... this functionality is not supported in the new one (Build 2015*), here is no ethernet supported!
The support department of the manufacturer told me, that the first version is a special version for a project which was not released officially
Android version is 4.4.2 on both tablets.
Is there any possiblity to create an image from the old tablet and put it 1:1 onto the new tablet?
I'm an absolutely newbie in Android, so have to begin from scratch
Thanks
Wrzlbrnft
Click to expand...
Click to collapse
Cloning should be possible. But is the hardware the same...

Categories

Resources