yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab 3 10.1 Android Development] Jacker31:
[MENTION=6109572]xTear[/MENTION] , some small advice for you, since we got x86 device, we will need to think out of the box a little, we cant stick 100% to the tutorials, guides, [HOW-TO] or Information articles and more. We will need to tweak a little to fit it in. Feel free to ask us...

* STILL struggling with cm12 development...*
[Galaxy Tab 3 10.1 Android Development] xTear:
Ah okay, than i got a simple question, i've seen in the src often pr_info or something else, this should be log-messages. Where on the device can i find them?
[Galaxy Tab 3 10.1 Android Development] :
x,

hi check your pm, i forgot to include in the script make clean && make mrproper so

#!/bin/bash

rm -fr build

make clean && make mrproper

mkdir build/out/modules

export ARCH=x86

export CROSS_COMPILE=/toolchains/i686-linux-android-4.7/bin/i686-linux-android-

export STRIP=/toolchains/i686-linux-android-4.7/bin/i686-linux-android-strip

make <name-of_defconfig>

make menuconfig

make && make modules

cp arch/x86/boot/*zImage build/out/zImage

find -type f -name *.ko -exec cp {} build/out/modules/ \;

cd build/out/modules && ls -al

$STRIP --strip-unneeded *.ko

ls -al && cd ../../../

echo Done!
[Galaxy Tab 3 10.1 Android Development] r2d23cpo:
So I guess this is your so call go script, that you mention earlier.

Can you explain what this commands do

export STRIP=/toolchains/i686-linux-android-4.7/bin/i686-linux-android-strip
***
$STRIP --strip-unneeded *.ko

I never seen been used?

[MENTION=6109572]xTear[/MENTION]

Did you try the test http://xdaforums.com/showpost.php?p=59562473&postcount=41

Listen the first guys to implemented impove un usb charging to our TAB 10.1 where in our kernel was trevd & DutchDanny

In DutchDanny kernel tread

[Discontinued][KERNEL][P5210][13-09] BinDroid Gtab3 Kernel P5210 V0.0.3 => http://xdaforums.com/showthread.php?t=2438344

you can read at the ver log

If you go to his site h__p://www.bindroid.com/download/viewcategory/5-kernel

And download his kernel (JB4.2.2 there are no KK at that time) I did version 1

The use AIK to open ramdisk. Use grep to look where "charg" is been used?

AIK/ramdisk$ grep -rn "charg" *

init.avc.rc:22: # driver is loaded from "on charger" trigger as well from init.common.rc
init.common.rc:3: # set permission for charger-mode
init.common.rc:4: chmod 0770 /charger
init.common.rc:115:on charger
init.common.rc:116: mount_all /fstab.charger.${ro.hardware}
init.common.rc:128: #default setting to enable charging in COS
init.common.rc:129: [COLOR="Red"]setprop sys.usb.config charging[/COLOR]
init.common.rc:156:service charger_app /charger
init.common.rc:157: class charger
init.debug.rc:47:on charger
init.platform.usb.rc:32:# this is charging only mode, no need to enable adbd
init.platform.usb.rc:33:[COLOR="Blue"]on property:sys.usb.config=charging
init.rc:416:on charger[/COLOR]
init.rc:417: class_start charger
init.redhookbay.rc:55: chown system system /sys/class/power_supply/bq24192_charger/device/charge_current_limit
init.redhookbay.rc:196:on charger
init.santos10wifi.rc:77: chown system system /sys/class/power_supply/bq24192_charger/device/charge_current_limit
init.santos10wifi.rc:351:on charger
init.santos10wifi.rc:442:on property:[COLOR="Purple"]ro.bootmode=charger[/COLOR]
init.santos10wifi.rc:445:on property:ro.bootmode=charger
init.santos10wifi.rc:446: class_start sec_charger
init.santos10wifi.rc:449: class sec_charger
init.santos10wifi.rc:453: class sec_charger

Without any test just a guess I see

I think he is setting charging flag here

setprop sys.usb.config charging

I think he start charging here

init.platform.usb.rc:33:on property:sys.usb.config=charging

init.rc:416:on charger

This seems another interesting flag ro.bootmode=charger

Now that I recall he never posted his kernel soucer, so I do not know what he may have change here. But why you do not ask him. Send a PM to trevd and DutchDanny
[Galaxy Tab 3 10.1 Android Development] xTear:
hm i never searched where u searched. the kernel is available on DutchDanny's BitBucket repo, i got the source on my vps, but i think you're right. in The Source is nothing changed if i search after 'FAST_CHARGE' in many variations, to the Kitkat kernel.

If i'm at home i want to give it a try, than i would give you my answer if it is working or not.
[Galaxy Tab 3 10.1 Android Development] Jacker31:
[MENTION=5688554]r2d23cpo[/MENTION] just like u said, tell you the progress of how i am going on even if its bad or good... Well idk i should call it bad or good but like u said, i am spending hours of googling and learning tones of stuff. Remember the device tree that Angel used to create his alpha version of cyanogenmod? Thats for 3g version and I will have to either create a brand new device tree for my LTE version or modify that device tree he used. But as far as I know there might be different in LTE drivers and so on and Idk what else is different from 3G model, so i choose to create a new device tree... just like old times....struggling with it lol
[Galaxy Tab 3 10.1 Android Development] :
r2,

hey hey, okay $STRIP is to remove debug symbols/unused data from modules/binaries , in this case modules

so in some case where toaster.ko will build out to say 4.8 mb, after $STRIP it will be brought down to say 2.3 mb

and with some modules, for example shiny_toaster.ko will build out to 8.4 mb and after $STRIP it will be brought down to say 506 kb

during testing/debugging you will not want to strip your modules, when your build is good, then you will.

another reason is for boot.img partitions with limited space. Say your full boot.img comes out to 23 mb with modules unstripped.

Now you would not be able to fit that image in a 20 mb boot.img partition. So stripping modules would bring that .img down to say 19.8 mb

and you are good to go.

CM11 moves modules to system/lib/modules - out of the boot.img, but for my setup i prefer to have modules in the image.

Stripping the kernel binary of debug symbols is managed in menuconfig

DTS/DTB do not strip.

m
[Galaxy Tab 3 10.1 Android Development] xTear:
I'm not Sure about the fast charging (cant find any widget or app who get the charging rate) but my tablet fills (its on and on the usb of my mac mini, in 80 Minutes 7 Percent) Any ideas if its activated? o_O
[Galaxy Tab 3 10.1 Android Development] Jacker31:
lol if lets say each percentage of the battery are 68mah, and total of 6800mah/100% and 80minutes for 476mah, I think it is a bit slower than i thought..

standard wall charger

minimum laptop usb output

maximum laptop usb output
[Galaxy Tab 3 10.1 Android Development] r2d23cpo:
xTear

"kernel is available on DutchDanny's BitBucket." Nice, I seen that but I forgot!

'FAST_CHARGE' I see that I am confused.. you are charging, it is just you want it faster?

Listen, in general do not play with fire you can get burn.

A USB PC is design for 0.5 A maximun on new PC. Old PC are much less. Trying to get more is almost inposible. And if you do you are risking burning up PC. If you still think you need it, The best you can do is to buy a y cable, they used to make them to power Hard Disk. In teory you get 2 x .5 = 1 A.

Jacker31

If I was you, I started to mod the boot files for Angel CM11, and see how it goes CM11.

moonbutt74

I see nice tool.

To the rest of the crew. moonbutt74 has remember me an important issue. Please it is important. The maximun size of boot.img is 20mg! Do not program an image larger than 20mg. In fact i used 19mg as a rule. If you do you will end up writing over another partition! Be carefull alwas look at the size before loading.

Jacker31

Looks nice, I will look at it later
[Galaxy Tab 3 10.1 Android Development] Jacker31:
[MENTION=6109572]xTear[/MENTION] [MENTION=5688554]r2d23cpo[/MENTION] I agree and in fact never play with the fire near the gas tank if you do not know what you are doing... I tried to play with some wiring stuff and I end up burning 2 usb port (yes they are dead now) on a usb hub (luckily it was a 4 port hub)... Keep in mind that pc usb or wall socket usb can only supply up to max of 2.0 A/ 12 v. But thats the theory only, in physical, they only give u 5v~0.5 A of pc power on USB 2.0, it will be much lesser than that on usb 1.0. You will be able to get 5v~0.7 A of power on usb 3.0. For wall socket you can get about 5v-12v ~ 0.5A-2.0A (12v is just a theory and it never works)

well I tried to do cm 10.2/11/12 and the thing is i need to get a proper device tree up for my LTE model.....
[Galaxy Tab 3 10.1 Android Development] jdean2k6:
USB ethernet adapter

Hey guys does anyone know how to get USB ethernet adapter working on a Samsung Galaxy Tab 3 10" P5200. I have been doing alot of research and these are the three options I have found so far but before I proceed I want some feedback because I need to select which ethernet adapter I'm supposed to buy and I also want help with adding the respective driver if necessary to the kernel. I'm willing to pay if necessary to get this help because I need to be able to use my tablet to work because I don't have a PC for working at my disposal at this time.

I want to use the ethernet because where I am at doesn't have WIFI and I need to use my tablet to work so I also need to have a mouse and a keyboard connected preferably through one adapter; so these are the options I have.

1. First option is utilizing an ethernet adapter that has an ASIX module. I planned to use this one which also has support for plugging in my mouse and keyboard.

adapter : http://tinyurl.com/q3qvn27

Samsung Galaxy Note 3 Ethernet App with ASIX adapter.

http://xdaforums.com/showthread.php?t=2706211

This option just utilizes using an app that enables the ethernet portal on the device. The admin uses an ASIX ethernet adapter with the device. Seems as if the Note 3 has built in support for ASIX.

Im not sure if the Tab 3 has built in support for the ASIX adapter but I know the ASIX android drivers are available on their website and it can be added to the kernel so it can be supported.

Here a developer compiling the ASIX driver for Galaxy S4 so I know it can be done :

http://xdaforums.com/showthread.php?t=2131825

Android driver : http://www.asix.com.tw/products.php?op=pItemdetail&PItemID=86;71;101&PLine=71

2. The second option is to use the original Samsung LAN USB adapter that has been designed for the Note Pro and Tab Pro.

adapter : http://tinyurl.com/qfqoj35

A developer on android stack exchange that got this working by porting the LANHUB drivers to his kernel http://android.stackexchange.com/que...kernel-options

3. There's a KY-RD9700 driver compiled for the P5210 in this forum by zorrigas.

http://xdaforums.com/showthread.php?t=2705323

adapter : http://www.amazon.com/Crest-SY-ADA2...UTF8&qid=1427302912&sr=8-1&keywords=KY-RD9700

What I don't like with these adapters though I would have to add a usb hub then connect the ethernet adapter to that hub and I don't necessarily want to do this because having a hub and the ethernet separately will probably drain the battery alot faster and im not sure if there will be power issues. But yeah if this driver can be easily ported to a P5200 kernel then I would just have to work with it. I have been messaging him but he's not really active since February.

So these are the three adapter that I believe will be able to work but I need to select one based on which one will be supported easier with the kernel.

Thanks alot in advance for any help :)
[Galaxy Tab 3 10.1 Android Development] r2d23cpo:
jdean2k6

If your need is just Ethernet I will suggest NOT to go for a Ethernet Adapter for your TAB.

Instead I will purchase a Portable Mini Router. They are pretty cheap. The you do not have to be tied to a wire.

150Mbps Router MPR-A5 in fleebay about $9 USD

I like Tp-link TL-WR703N 150mbps Wifi fleebay about $20 USD

I have six of this. They can be program with OpenWrt. Then I used them for Special adapters or I can just add My custom IPTABLES to the small Linux PC.
[Galaxy Tab 3 10.1 Android Development] Jacker31:
agree
[Galaxy Tab 3 10.1 Android Development] jdean2k6:
Thanks for this but I am not able to use WiFi. I am not able to use anything thats wireless due to a condition I have called electrical hypersensitivity where one becomes sensitive to electromagnetic fields, that's the reason why I need to use this adapter to connect these components otherwise I would have just used WiFi and bluetooth etc. I can't even use a normal computer so I have to be trying a tablet just to be able to get some work done. I was trying to raise money to get a special computer but it wasn't successful so I want to use my tablet to work on my laptop via remote desktop. Im a software engineer specializing in Android , IOS and Windows Phone app development in the Caribbean so I really need your help so I can work again. Thanks guys.

This is my story to confirm what im saying.

https://www.youtube.com/watch?v=9Zdy-PX-kN8

https://www.indiegogo.com/projects/low-radiation-computer-for-joel-dean

http://jamaica-gleaner.com/article/...blues-rare-allergy-drives-tech-guru-seclusion
[Galaxy Tab 3 10.1 Android Development] r2d23cpo:
In igeek.net.au they have the following note:

After initial driver installation (CD included), you can enjoy the function of Lan network.
Note: The Latest driver please visit UNITEK official site. 2.4Ghz wireless devices (keyboards, mice, etc.) may not work around USB 3.0 ports.

Listen, personaly I am unemployed with my personal economic problems. I am sorry I can not help you economicaly.

I can help you compiling the drivers. But for this normaly youwould have , purchase the equipment and using a linux desktop detect and find the actual linux drivers. Then with luck we find the sources and with a little luck more we could compile the drivers. But as you see all depends in luck!

There are many chances that something would go wrong. Look at the quoted mesage. To get high speed you want USB 3.0. But 3.0 is so new that many devices have no working drivers available! That by it self is a problem.
[Galaxy Tab 3 10.1 Android Development] Jacker31:
Remember this link http://xdaforums.com/showthread.php?t=2705323 ? if you can get this lan hub http://www.ebay.com.my/itm/Universa...392?pt=LH_DefaultDomain_0&hash=item4ae6702630 and we might be able to help you out by porting that mod/kernel into p5200 device. I am a poor student, so i cannot help you out economically. But we will do what we can to assist you out.
[Galaxy Tab 3 10.1 Android Development] jdean2k6:
Ok thanks Jacker31 I dont want help from you economically the help here is all i need.:o. Question so what about the second option is to use the original Samsung LAN USB adapter that has been designed for the Note Pro and Tab Pro.

adapter : http://tinyurl.com/qfqoj35

If I could use this i wouldnt have any problems with having to use several hubs. Is it harder to port this driver than the other one?

The developer on android stack exchange that got this working by porting the LANHUB drivers to his kernel he even recently updated his post with some instructions of things he did upon my request

http://android.stackexchange.com/qu...ptions/98313?noredirect=1#comment126885_98313

the driver is called LANHUB and its located here :

https://github.com/danielpanzella/P...c67ed29fbfe/drivers/misc/max77888-muic.c#L101

http://android.stackexchange.com/qu...ptions/98313?noredirect=1#comment126885_98313

So you could have a look at it if this one could work then that would be awesome.
[Galaxy Tab 3 10.1 Android Development] r2d23cpo:
jdean2k6

You have brought to my attention and interesting topic. xTear was looking inti "fast charging". And this is not his answer but you are pointing to files that relate to charging.

There are known issues (problems) on charging for many Samsung devices. Many are related at the way Samsung detect and assign possible charging capabilities to the detected device.

The file you are pointing seems to point to a description in the code that seems related to that situation. => h__ps://github.com/danielpanzella/P900-kernel-source/blob/be75c49eba1d4d1b6c9e3d3362fbfc67ed29fbfe/drivers/misc/max77888-muic.c#L101

I will like to know from where you got that link => => h__ps://github.com/danielpanzella/P900-kernel-source/blob/be75c49eba1d4d1b6c9e3d3362fbfc67ed29fbfe/drivers/misc/max77888-muic.c#L101

I hope to get more info from where you got this link.

Now that link relates to Maxim 77803 IC. That Kernel for a P900 device seems to use that IC. file <kernel>/drivers/misc/max77888-muic.c

But when I compare that with our Kernel I can not find that file. Instead I see max8997-muic.c. And config for that part are all disabled (n). So I do not know if in fact this IC is part of our device.

Be ware this seems only related to the fact that many claims that the "original Samsung LAN USB adapter" may NOT charge while hook to AC.

Now regards the driver,

I can confirm that our kernel shows

──────────────────────────────────────────────────────────────────────────────
┌───────────────────────── USB Network Adapters ──────────────────────────┐
│ Arrow keys navigate the menu. <Enter> selects submenus --->. │
│ Highlighted letters are hotkeys. Pressing <Y> includes, <N> excludes, │
│ <M> modularizes features. Press <Esc><Esc> to exit, <?> for Help, </> │
│ for Search. Legend: [*] built-in [ ] excluded <M> module < > │
│ ┌────^(-)─────────────────────────────────────────────────────────────┐ │
│ │ < > USB RTL8150 based ethernet device support (EXPERIMENTAL) │ │
│ │ [COLOR="Blue"] <*> Multi-purpose USB Networking Framework[/COLOR] │ │
│ │ <*> ASIX AX88xxx Based USB 2.0 Ethernet Adapters │ │
│ │ -*- CDC Ethernet support (smart devices such as cable modems) │ │
│ │ < > CDC EEM support │ │
│ │ <*> CDC NCM support │ │
│ │ < > Davicom DM9601 based USB 1.1 10/100 ethernet devices │ │
│ │ < > SMSC LAN75XX based USB 2.0 gigabit ethernet devices │ │
│ │ [COLOR="Blue"]< > SMSC LAN95XX based USB 2.0 10/100 ethernet devices[/COLOR] │ │
│ │ < > GeneSys GL620USB-A based cables

---------- Post added at 05:19 PM ---------- Previous post was at 05:12 PM ----------

@Jacker31

I forgot to mention why was interesting.

This missing "Maxim 77803 IC." support may be the reason why our TAB2 10.1 do not respond to the JIB device witch uses I bilibe

ADC_JIG_USB_ON = 0x19, /* 0x11001 301K ohm */

line 105 0f h__ps://github.com/danielpanzella/P900-kernel-source/blob/be75c49eba1d4d1b6c9e3d3362fbfc67ed29fbfe/drivers/misc/max77888-muic.c#L101
[Galaxy Tab 3 10.1 Android Development] jdean2k6:
Ok r2d23cpo I will buy the ASIX adapter

The kernel shows to have support for ASIX AX88xxx Based USB 2.0 Ethernet Adapters.

This adapter I want to buy has ASIX chipset.

adapter : http://tinyurl.com/q3qvn27

Is this ASIX AX88xxx Based USB 2.0 Ethernet Adapters enabled by default in the kernel or does modification have to be done to support it?

I want to make the order for the adapter on ebay today so i want to make sure i buy a chipset that can be supported.
[Galaxy Tab 3 10.1 Android Development] r2d23cpo:
Yes the kernel seems to have <*> ASIX AX88xxx Based USB 2.0 Ethernet Adapters enabled. But That is not my concerned. I think that the USB connector is a Full USB 3.0 not a micro usb as the TAB has!! I will be checking?

---------- Post added at 07:51 PM ---------- Previous post was at 07:35 PM ----------

Click on the images to enlarge and look at the conector!!

You see how this one is Full USB 3.0. That is no good for the TAB3

This one is the correct micro usb size

---------- Post added at 08:17 PM ---------- Previous post was at 07:51 PM ----------

I can not garanty anything but maybe a "USB to USB micro adapter" may help!

[IMG="usb2micro"]http://thumbs3.ebaystatic.com/d/l225/m/mPs5gD3ZJWY1sg0m4mpNgGQ.jpg[/IMG]

Another option I see in ebay

h__p://www.ebay.com/itm/10070TW-Acasis-H027-Mobile-Tablet-PC-Charging-Cable-OTG-Micro-USB-HUB-3Ports-/111585857830?pt=LH_DefaultDomain_0&hash=item19fb091126

arround $12 USD from china.

Compatibility, support for Android, win8, win7, Vista, XP, window 2000, ME, Linux and other operating systems.

It also said

Instructions for use:
Position 1: closed
Position 2: OTG + Charging
Position 3: OTG alone

I Personal need one of this adapters. oPPPPSSSS! this do not have Ethernet Adapter Sorry.
[Galaxy Tab 3 10.1 Android Development] jdean2k6:
Okay I will buy the one with the ethernet adapter (that supports ASIX) and the USB OTG cable that supports the port on the Tab 3. I will be getting this in a week or two so I will report back here if it works or not. Thanks for your help.
[Galaxy Tab 3 10.1 Android Development] r2d23cpo:
[MENTION=2440775]jdean2k6[/MENTION]

You said <*> ASIX AX88xxx Based USB 2.0 Ethernet Adapters is your driver and it seems enabled. But Please remember all your readings! External Ethernet Port most likely will be ignored by most Application! They did not post why, but it been explained that you need to download an install a market apk that will enable Ethernet used.

There is 98% that your new External Adapter will not charge your Tab3 will it power Ethernet+keyboard+mouse! It is a design flaw of Samsung. If it happens we will have to look at the files you point out to see if we can modify that condition in the kernel

I know I poster that micro USB to USB adapter. I did it because it was under $1 USD dollar. But there are better choices. Search for "Samsung micro to OTG" I guess the best ones are the ones that has a 90 degree micro adapter. This will prove useful when you place your Tab in a Stand up holder!

[IMG="Samsung OTG"]http://thumbs4.ebaystatic.com/d/l225/m/m0ND9kIAnqj_mbykTCo8yvA.jpg[/IMG]

Micro USB Host Cable Male to USB Female OTG Adapter For Samsung LG HTC Nexus 7 => h__p://www.ebay.com/itm/Micro-USB-Host-Cable-Male-to-USB-Female-OTG-Adapter-For-Samsung-LG-HTC-Nexus-7-/291416213707?pt=LH_DefaultDomain_0&hash=item43d9c288cb
[Galaxy Tab 3 10.1 Android Development] r2d23cpo:
I am sorry and here is another good option for $22 USD

[IMG="UBB hub"]http://thumbs3.ebaystatic.com/d/l225/m/mYp2ZiLQnG6dAs7WwTrjroQ.jpg[/IMG]

h__p://www.ebay.com/itm/Micro-USB-OTG-LAN-USB-HUB-USB-Adapter-Et-Up900Ubegww-For-Samsung-Tab-Pro-NN-/161535593718?pt=LH_DefaultDomain_0&hash=item259c458cf6
[Galaxy Tab 3 10.1 Android Development] r2d23cpo:
[MENTION=5864662]moonbutt74[/MENTION]

I am starting to use your script as default

#!/bin/bash
/<$NDK-TOP>/build/tools/./make-standalone-toolchain.sh --ndk-dir=/<$NDK-TOP> --system=linux-x86 --toolchain=x86-4.6 --platform=android-17 --install-dir=/opt//toolchains/NDK-x86-4.6-JB

But I am having some issues. Some time when compile the make does seems not to find the include folder. For example:

fatal error: linux/smp_lock.h: No such file or directory

When I check I do have

/opt/toolchains/NDK-x86-4.6-JB/sysroot/usr/include/linux/smp_lock.h

So it seems that the Path to "/opt/toolchains/NDK-x86-4.6-JB/sysroot/usr/include" is not set.

Can you help me? I did set

SYSROOT=/opt/toolchains/NDK-x86-4.6-JB/sysroot

just in case but it did not work. Thanks ahead.