| trying to get a Goodix Touchscreen to work with Android x86 | marcus | 01/04/12 12:31 | I've wasted the entire weekend trying to figure this out. I was given a brandless windows tablet with an Atom N2600. lsusb says that the touchscreen is Goodix_GT81X_USB" which doesn't seem to exist if you ask google. In Ubuntu 11.10 everything works but the touchscreen, in any of the Android 4.0 RC1 installs Touch and the networking don't work. I'm hoping that the Goodix GT80X drivers will work as the Archos 9 uses that screen. I was able to find this: http://gitorious.org/archos/archos-gpl-gen8-kernel Any help will be appreciated. |
| Re: trying to get a Goodix Touchscreen to work with Android x86 | Chih-Wei Huang | 01/04/12 19:53 | 2012/4/2 marcus <marcus...@gmail.com>: If you can figure out which driver it uses exactly, -- |
| Re: trying to get a Goodix Touchscreen to work with Android x86 | Ooop Yooo | 01/04/12 21:42 | http://gitorious.org/archos/archos-gpl-gen8-kernel/blobs/c84640ae5c818b5f9615d9974e3a571a44ddfd72/drivers/input/touchscreen/goodix-gt80x.c 2012/4/2 Chih-Wei Huang <cwh...@android-x86.org>
|
| Re: trying to get a Goodix Touchscreen to work with Android x86 | marcus | 02/04/12 21:26 | Thanks Chih-Wei! Unfortunately the website is in Chinese and with some vague translating it seems they don't offer drivers to download.How can i figure out what driver to use? I'd be glad to test all the drivers but I'm not sure what to with these .c and .h files like myself and ooop yooo linked, do those need to be compiled or something? Please point me in the right direction and i'll get it done. On Sunday, April 1, 2012 7:53:39 PM UTC-7, Chih-Wei Huang wrote: 2012/4/2 marcus |
| Re: trying to get a Goodix Touchscreen to work with Android x86 | Ooop Yooo | 02/04/12 23:55 | Do you have any experience with compiling drivers/kernel and creating Android builds ? You have to locate the required drivers and include files from the link I gave, strip the drivers and copy them in the same place in the Android kernel /kernel/drivers/input/touchscreen, then modify the Kconfig and Makefile files in accordance, then pray there is no missing files or incompatibilities with Android-x86 kernel struture, then they can compile. That's the short version !
But you have to install linux on a big partition of your HDD, set up your building environment, download the Android-x86 repo tree, create your own target using one existing target and modify it for your specific hardware and more importantly the touchscreen : That's the long version !!! If you can't do this by yourself, don't expect anyone will do it for you, even though they say so... ^^ I don't have myself enought spare time to work on it as I have many other projects to work on : at least you have the plan.
If you don't have any answers from antone for the next days/weeks, then you'll have to be prepare to find out out a tuto, at least to setup your building environment, but you must be able to install Linux by yourself and have some understandings about linux.
I could supply you a tuto for the bulding environment and some tips on creating a target, but I can't do much more... ^^ But most of the informations are already on the documentation section of the Android-x86 website.
2012/4/3 marcus <marcus...@gmail.com>
|
| Re: trying to get a Goodix Touchscreen to work with Android x86 | marcus | 03/04/12 00:04 | Thanks ooop, I definitely don't have any experience but I've already got the system set up to dual boot android and ubuntu 11.10. How big of a partition? I think its on 25gb right now. What's the going rate to put you on this project? i kid, sort of! I'll give this a go. Would i be following these steps in linux? http://www.android-x86.org/documents/customizekernel
Do you have any experience with compiling drivers/kernel and creating Android builds ? |
| Re: trying to get a Goodix Touchscreen to work with Android x86 | Ooop Yooo | 03/04/12 23:08 | Hi marcus Drop you quickly some words on how to begin, as I'm lacking time right now. 25gb might be too small imo : better count something like 40gb at least : more if you can...
Also use a swap partition to something like 8gb, depending on your RAM. Read carefully everything before you start anything !!!! About the build environement, there are many tutos depending on your linux and versions, just as a starter, here are some :
I think I found out the good source codes for your Goodix touchscreen. I'll send them to you later on (by some days)... :-))) Both above links are a bit oldish, but this gives you the plan on how to do it.
Main problem is that since they have been written and published, Canonical/Ubuntu don't provide java anymore from their servers for different reasons I won't explain, so you'll have to get it from Oracle official website...
Here is the google official tuto : Same problem with java as explain above. ^^ Do not go below this chapter : Configuring USB AccessNow downloading the source code : Downloading the Source TreeInstalling RepoRepo is a tool that makes it easier to work with Git in the context of Android. For more information about Repo, see Version Control. To install, initialize, and configure Repo, follow these steps:
2012/4/3 marcus <marcus...@gmail.com> To view this discussion on the web visit https://groups.google.com/d/msg/android-x86/-/C5wT5QxIVLQJ. |
| Re: trying to get a Goodix Touchscreen to work with Android x86 | marcus | 03/04/12 23:47 | Thanks for this, i've set up my environment and i'm now downloading the source outline heres: http://www.android-x86.org/getsourcecode I'm going on 7 hours downloading source. Is there a way to build the driver without downloading the whole Android x86 source? |
| Re: trying to get a Goodix Touchscreen to work with Android x86 | marcus | 04/04/12 19:43 | So i think i'm close. I have a few questions. The file i'm downloading from gitorious is goodix-gt80x.c should I duplicate this as a file called goodix-gt81x.c since that's the model my tablet supposedly has. Also, should I leave the hyphen as I'm not really sure how to reference the Makefile with this file name. With the kconfig, what do i put that it depends on? I2C? |
| Re: trying to get a Goodix Touchscreen to work with Android x86 | GAGGERY | 04/04/12 23:58 | I think the file goodix-gt80x.c in http://gitorious.org/archos/archos-gpl-gen8-kernel is not the correct driver of your touch device. You use "lsusb" to find the device but goodix-gt80x.c is a device driver using I2C bus and I didn't see any virtual HID device to communicate with this goodix-gt80x.c. 2012/4/5 marcus <marcus...@gmail.com>:> https://groups.google.com/d/msg/android-x86/-/lUmkMJHAvMMJ.
-- |
| Re: trying to get a Goodix Touchscreen to work with Android x86 | marcus | 05/04/12 00:07 | lsusb says i have the Goodix GT81X which driver should i use then? |
| Re: trying to get a Goodix Touchscreen to work with Android x86 | Ooop Yooo | 05/04/12 21:17 | 2012/4/3 marcus <marcus...@gmail.com> Thanks ooop, I definitely don't have any experience but I've already got the system set up to dual boot android and ubuntu 11.10. How big of a partition? I think its on 25gb right now. Much much more than the price of your device. lol :-)))) To view this discussion on the web visit https://groups.google.com/d/msg/android-x86/-/C5wT5QxIVLQJ. |
| Re: trying to get a Goodix Touchscreen to work with Android x86 | Ooop Yooo | 05/04/12 21:37 | In the Makefile, you have to add : obj-$(CONFIG_TOUCHSCREEN_GT801) += goodix_touch.o In the Kconfig, depends on the touchscreen driver you're using, but watch at the Makefile and find the related goodix source file, just as below :
So here is an example : config TOUCHSCREEN_GT801 tristate "dpt microelctronics gt801 touchscreen driver" depends on I2C
help GT801 touchscreen driver I had no time to create a tar ball, but here are the 2 files I found out : Hopefully attached files can be done on this forum.
Otherwise, here is the link I found out from XDA dev team : Even though they are working on ARM devices, may be you can try to get in touch with them and try get some helps ?!?!?!?! $ git clone https://github.com/allwinner/linux-2.6.36 lichee
If you find out an already working Android-x86 build for your tab, ask him to add these drivers in his target, but he will need additional information about the Vendor ID and other hardwares.
Try different builds and see which one works best on your tab, so you know which target you have to use and modify...
Good luck 2012/4/5 marcus <marcus...@gmail.com> To view this discussion on the web visit https://groups.google.com/d/msg/android-x86/-/lUmkMJHAvMMJ. |
| Re: trying to get a Goodix Touchscreen to work with Android x86 | Ooop Yooo | 05/04/12 21:47 | Do all touchscreens need to communicate through HID ? Just wondered as I don't have the answer... @ marcus, just forgot, you could try to ask Benjamin Tissoires and Stephane Chatty as there are specialized in writting touchscreen drivers. Their email adress are in the bottom page of this link :
|
| Re: trying to get a Goodix Touchscreen to work with Android x86 | GAGGERY | 06/04/12 02:56 | Not all touch screen drivers has to access with HID. Because the goodix-gt80x.c driver is for I2C Interface, but marcus tried to use "lsusb" command to find the touch screen and found it is a device using USB Interface (he found the t/s reported as USB device). So, if goodix-gt80x.c is the correct one, then I guess it should send the touch points to USB HID (should be created by Goodix, but can't find in the specified kernel source) because we can use "lsusb" to find the device node. Actually, from the goodix-gt80x.c, it directly call kernel API to report points to input subsystem. So in my opinion, I guess it should not be the correct one that marcus required. 2012/4/6 Ooop Yooo <ooop...@gmail.com>: -- |
| Re: trying to get a Goodix Touchscreen to work with Android x86 | marcus | 07/04/12 23:32 | Is this really the only way to go about this? i'm now a week into this because every time do the make iso_img it runs for 7 hours and then gives me an error, and I google it, and i have to install something else, and then something else, then i have the wrong version of python, and the wrong version of java. Is there something about linux/android that requires you rebuild the entire source rather than just build the driver? |
| Re: trying to get a Goodix Touchscreen to work with Android x86 | Ooop Yooo | 08/04/12 01:42 | Sounds like you didn't setup your building environement correctly. Check it up again, and as I told you read everything before you start trying to build. First, you have to know if you have a amd64 environment (better use this one if you hardwre can support it). Amd64 doesn't mean a AMD processor, just a x64 proc system : Intel ou AMD.
Since Honeycomb, you have to use a amd64, even though this can be done with x86 but you'll have to do some patches, and it's beyond the scope of this "mini" tutorial... In the Samiux's Blog there is a little bug, due a misspell name of a package : vaigring instead of valgrind So just copy past : sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl sun-java6-jdk zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev valgrind
in your terminal.
You will probably need to download and install Java-jdk from Oracle website.
I'm using Ubuntu 10.04 from the beginning and haven't upgraded as it is working quite well for me, and haven't encountered any issues nor incompatibilies. Just since a few days the update system asks me to update to gcc-4.4 and all the related other tools and libraries, I don't do it as I haven't got time to backup my system partition yet, and am unsure if it'll break something. ;-)
This is mostly a dev machine, and I don't care and don't like about Unity. lol
If you want to be sure your building environement is fine : download the Froyo or Gingerbread repo tree in a different folder, it's some more codes to download, but much less that Honeycomb and ICS, and it compiles quite faster !!!
Compile any target : generic-x86, eeepc, asus, no matter just to insure it compiles without errors.
At the same time, it might be easier to use older version as the goodix drivers is also older, and fairly easier to inegrate on newer version, specially with ICS. If every thing's goes well step forth to Honeycomb-x86 as ICS has too specific rules you won't be able to master easily without big support from the others devs or high level contributors.
Compiling Goodix drivers only, or just the kernel, it won't help you much, as again ICS needs specific rules, and if you don't know how to insert them in a working builds, this won't help you much (whichever Android-x86 versions)... ^^
If you want to take your chance, you'll have to do some researches on this forum ou from external link sources...
Then, the Android-x86 repo tree seems to have have some issues during the past days,so maybe also related partly your problem. So use the SourceForge.net source mirror.
Finally : in order to determine your hardware, find out the Ubuntu 10.04 iso as newer versions don't have Hal anymore. Install it with Wubie on a Windows system partition if you have one (with 8/9 GB dedicated to Ubuntu), or run it as a Live CD. When everything is setup (language, localisations, updates), install hal from terminal : sudo apt-get install hal.
Get as much as logs you can :
lshal > yourlaptop-hal.info, lsmod > yourlaptop-lsmod.info,
dmesg > yourlaptop-dmesg.info,
lspci > yourlaptop-lspci.info (see manpage for extended options),
lsusb > yourlaptop-lsusb.info (same as lspci),
do some searches on how to retreave the audio hardware and codecs (this can be done later), ...
Copy all these files to an SD Card, USB Stick, or Windows data partitions (just to keep a copy).
Open a web browser, open your gmail account, or any others, send a mail to this forum, and/or to me with all these files as attachement, and we'll try to help to identify the hardwares and needed drivers...
If you used Wubie and if you're sure you didn't forget anything, just reboot to Windows, and uninstall it just as a simple application and you'll recover the disk space allocated to Ubuntu. With Ubuntu Live CD, nothing to do, just reboot and remove the Ubuntu Pendrive. But with the latter, if you forget something, you'll have to redo the described whole process everytime... ^^
2012/4/8 marcus <marcus...@gmail.com> To view this discussion on the web visit https://groups.google.com/d/msg/android-x86/-/p6p8mPBWFZIJ. |
| Re: trying to get a Goodix Touchscreen to work with Android x86 | marcus | 08/04/12 01:57 | I thought i'd followed it exactly, never saw anything like that. I
followed this: http://source.android.com/source/initializing.html I'm
using 11.10 so it says: On Ubuntu 11.10:
|
| Re: trying to get a Goodix Touchscreen to work with Android x86 | marcus | 08/04/12 01:59 | I guess I'll install 10.04 and get back to you.
|
| Re: trying to get a Goodix Touchscreen to work with Android x86 | marcus | 08/04/12 10:23 | marcus@ubuntu10:~$ sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl sun-java6-jdk zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev valgrind gnupg is already the newest version. zip is already the newest version. sun-java6-jdk is already the newest version. gcc-multilib is already the newest version. gcc-multilib set to manually installed. E: Couldn't find package libc6-dev-i386 marcus@ubuntu10:~$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo The program 'curl' is currently not installed. You can install it by typing: sudo apt-get install curl marcus@ubuntu10:~$
|
| Re: trying to get a Goodix Touchscreen to work with Android x86 | Ooop Yooo | 08/04/12 18:38 | I have told you to read everything in my first mini tuto before you begin. But maybe this was too much at the same time... lol This is indeed a mistake with your building environment setup, so you can't go past this before you can compile anything.
I have given you a specific link for Ubuntu 11.10, which was this one : Here is a Youtube tuto : But, as I'm not using Ubuntu 11.10, I don't know how reliable are the tutos... ^^
2012/4/8 marcus <marcus...@gmail.com> To view this discussion on the web visit https://groups.google.com/d/msg/android-x86/-/1qL0k9_RQeEJ. |
| Re: trying to get a Goodix Touchscreen to work with Android x86 | marcus | 08/04/12 19:30 | So slightly good news. I was able to get a froyo generic ISO built and installed. Touch still doesn't work, however the ethernet port does which is an improvement over ICS. Is there a way to verify that i handled the Goodix files properly? Ooop i'm emailing you those files now. Still not sure what to about the touch.
|
| Re: trying to get a Goodix Touchscreen to work with Android x86 | Ooop Yooo | 08/04/12 22:41 | OKay !!! Some progresses... :-) Have you type this : sudo apt-get install curl Then, not a must but type this : sudo apt-get install mc
This will help in some occasions. I havent seen email from you, but when I receive them with the logs I may find out, hopefully... Be prepare to warm up your credit card. ;-))))) 2012/4/9 marcus <marcus...@gmail.com> To view this discussion on the web visit https://groups.google.com/d/msg/android-x86/-/_Z_FNZktjO8J. |
| Re: trying to get a Goodix Touchscreen to work with Android x86 | marcus | 08/04/12 22:49 | Resent logs, curl was already installed, that's part of building the environment. If i recall its how you get repo. mc is now installed. I'm about to install my eeepc froyo build. |