Newbie Need Help About Driver Compile... :( - Galaxy Tab 10.1 Q&A, Help & Troubleshooting

Hi Everyone;
I have bought a new usb-rj45 adapter for my Samsung Galaxy Tab2 P5110 Only Wifi tablet... (its rooted and busybox pro installed on it)
After i bought, i put it in tablet via its original USB Otg Cable the i do "lsusb" in the terminal emulator but i cant see anything new in its output...
When i searched usb-rj45 adapte cd and i see linux driver there but the are three files named;
***.c
***.h
Makefile
When i search internet a little bit and i understand that i need to compile drivers with these files to make .ko file as driver...
I bought and installed c4droid and its GCC and SDL Plugin when i try compile it but i get an error that it screenshot is attached to this message... (On the other hand may be i can do this compile for tablet on my pc after i installed Android SDK but i dont know how can i do it unfortunately...)
So please help me how can i use this usb-rj45 adapter on my tablet...
Thanks so much who help me...
Best regards...

any_body said:
Hi Everyone;
I have bought a new usb-rj45 adapter for my Samsung Galaxy Tab2 P5110 Only Wifi tablet... (its rooted and busybox pro installed on it)
After i bought, i put it in tablet via its original USB Otg Cable the i do "lsusb" in the terminal emulator but i cant see anything new in its output...
When i searched usb-rj45 adapte cd and i see linux driver there but the are three files named;
***.c
***.h
Makefile
When i search internet a little bit and i understand that i need to compile drivers with these files to make .ko file as driver...
I bought and installed c4droid and its GCC and SDL Plugin when i try compile it but i get an error that it screenshot is attached to this message... (On the other hand may be i can do this compile for tablet on my pc after i installed Android SDK but i dont know how can i do it unfortunately...)
So please help me how can i use this usb-rj45 adapter on my tablet...
Thanks so much who help me...
Best regards...
Click to expand...
Click to collapse
And if you post in the right gtab 2 section, people could help you, and this has nothing to do with development, it belongs in the q&a section
Greatings DefQoN

Thank you DefQoN_BE, i have just post my answer to forum that you advice...

Related

Folio Linux "Drivers Thread"

There are some people in this forum that have got success instaling ubuntu on Folio. I've got too.
Now i have a great question !!
Are our folios fully driver installed ??
For example, in my folio with ubuntu, i can't use bluetooth or i can't heard any sound because it doesn't run, or also i can't adjust brightness...
I have searched lot of pages and i haven't got success....
This thread is created for people who knows how install this kind of drivers can help us to make us happy !!
If you discovered how to install any kind of driver... or things for optimize ubuntu and make it more quickly please, post it !!
Also would be insteresting if people got success installing programs on our ARM architecture device like Dropbox, Foxit reader, Wine compatibility layer... that are based on i386 and AMD architectures post a how to do it.
Thanks in advance for all people that make that possible.
Hi,
I am working on sound driver. Just trying to find specs as running android do not give enough informations.
I will also try to integrate accelerated drivers as in AC100 build (but system may be unstable...)
Akta
When I installed Linux on my netbook, I haven't got bluetooth, go to software manager(ubuntu market) and search for bluetooth(drivers). May this help you
I'm working on sound too...
I guess there is an GPIO Chip inside the Folio, which manages sound in-/outputs..
I dont know whether the bluetooth and screen brightness are also part of it...
The GPIO has many inputs and outputs, but these are not fix...
So you have to build/run a program which tells them to be an output or input and what they have to do...
I ported the mach-tegra tree and the sound/soc/tegra tree from android-kernel-source to the folio source..
After that I ran nvrm_daemon in a chroot..
For that you'll have to do the following steps:
1. Create a new folder whereever you want (for me /home/ubuntu/Desktop/chroot)
2. mount /dev/mmcbkl0p1 and copy the bin & lib folders into your directory
3. create a folder called system inside your folder and move the lib folder into it
4. create the folders dev and proc
5. open a shell and cd to your directory
6. $ mount -o bind /dev dev/
7. $ mount -t proc /proc proc/
8. chroot ./ /bin/sh
9. nvrm_daemon
You should better run chroot/nvrm_daemon from a ssh shell on your laptop because sometimes the screen gets black, because of segmentation fault..
Then you can take a look @ dmesg..
There are some outputs given by nvrm_daemon.. Also for GPIO but they failed to change some pins because they are already in use..
And I guess thats the problem!
I also tested whats happening when the nvrm_daemon is not starting when android boots.
I removed it from the ramdisk.
After that the folio wasn't starting anymore...
Only after I started nvrm_daemon manually via adb shell the boot screen appers and the window manager starts..
So everything depends on the nvrm_daemon!
I hope you'll more lucky than me and findout why the nvrm_daemon is not starting correctly!
Regards
Thanks for the info.
Will look at that to begin with
Akta
I there, I have contacted Atheros to know which bluetooth chip is in our folio and they replied me that is 3011 or 3012 depending on the version.
I hope this helps to get bluetooth working early. I will try using ndiswrapper to install windows driver after the biggest brick ever!!!
I found the drivers for the gpu
I've gotten through the forums trimslice computer graphics chip drivers Tegra2
To download them here:
Code:
trimslice.com/download/drivers/nvidia-drivers.18.0004.tar.bz2
These drivers are valid for Debian and Ubuntu Maverick.
However, you must edit xorg.conf to make them work properly with the folio 100.
If someone can correctly configure xorg.conf. I would appreciate it also put him in these forums. Thanks
To install the drivers simply must enter the terminal from ubuntu and type the following commands:
Code:
cd /
sudo tar -jxf nvidia-drivers.18.0004.tar.bz2
jarre2 said:
I've gotten through the forums trimslice computer graphics chip drivers Tegra2
To download them here:
Code:
trimslice.com/download/drivers/nvidia-drivers.18.0004.tar.bz2
These drivers are valid for Debian and Ubuntu Maverick.
However, you must edit xorg.conf to make them work properly with the folio 100.
If someone can correctly configure xorg.conf. I would appreciate it also put him in these forums. Thanks
To install the drivers simply must enter the terminal from ubuntu and type the following commands:
Code:
cd /
sudo tar -jxf nvidia-drivers.18.0004.tar.bz2
Click to expand...
Click to collapse
Hey, I have installed this drivers and now I can't boot ubuntu !! Can you help me ? I send you a mp with my e-mail, we can speak on google talk chat i'm spanish !
thx !!
I had said before, it is necessary to create an xorg.conf file that is compatible with
toshiba screen folio 100.
It is the only way to have graphics acceleration.
Funny how nobody was interested in compiling the kernel with support for
ALSA (and there have been some drivers called tegra) But if you do not work
we can always choose to have sound through USB since.
no news ? aneybody have graphics acceleration ?
up please!!!
please why nobody reply ?

Cannot get tethering to work (MiniCM7 Pro V7x on Xperia X10 mini Pro)

Hi everyone! Hope someone can help out on this...
I have installed MiniCM7 Pro V7x (Android v2.3.5, Kernel 2.6.29) on my SE Xperia X10 Mini Pro.
It is rooted and everything works just fine... EXCEPT Wifi tethering. It is impossible to get any tethering app to work.
Barnacle will only go as far as "Starting..." and then nothing happens.
Wireless Tether for root users says "No Netfilter! Sorry, but your kernel does not have all necessary features for running this application."
Opengarden Wifi Tethering says the same thing "No Netfilter! Sorry..."
So my question now is clearly: Is it not possible to use Wifi tethering on this phone with this rom?
And secondly, can I use my phone as a modem if I run it with a USB cable instead, as a backup if Wifi tethering wont work? If so, can you recommend a guide somewhere describing how to do it?
Thank you all in advance! Looking forward for your replies...
I finally got it to work.
I needed iptables. Found a useful guide on this URL:
http://forum.xda-developers.com/showthread.php?t=1184907
I then use Barnacle without any issues at all! Works flawless and I can connect multiple units (iPad2, Win7 x64 PC, Ubuntu 11.04 x86 PC and Debian ARM PC) at the same time...
Please help!
Hey Psyninja, or anyone else! I've been having the same problem and its driving me crazy!
I'm trying to follow the instructions on this thread you linked... but im a newbie and im having trouble with one stupid thing:
When it says I have to copy the files to the ADB folder.. where can I find it? the only adb folder I find it's on the superoneclick directory... is it this one?
Please, help!
Cheers!
hfogli said:
Hey Psyninja, or anyone else! I've been having the same problem and its driving me crazy!
I'm trying to follow the instructions on this thread you linked... but im a newbie and im having trouble with one stupid thing:
When it says I have to copy the files to the ADB folder.. where can I find it? the only adb folder I find it's on the superoneclick directory... is it this one?
Please, help!
Cheers!
Click to expand...
Click to collapse
Hi,
Yes, you can use the adb folder of SuperOneClick directory.
ADB is Android Debug Bridge, a command line tool that lets you communicate with your conected device or emulator, this folder is also found in the SDK, available on Android Developers site.

Odin Tutorial on VirtualBox: do you need it? :)

Hi all
I spent last 2 days working on Odin.. I wanted to emulate it on my Slackware Linux machine 'cause I don't like to boot Windows every time I need it! I have to say that the most of the time I spent on that was reserved to downloading the VirtualBox binaries tarball, which is about 80 MB (you know, here where actually I am I don't have a real internet connection 'cause it's not the place where I usually live, it's my parents home and I can't pay for 2 ADSL.. but this is another story.. ).
So, I installed VirtualBox and create a winXP emulated OS, I configured it just like the way I want and then I start to work on Odin..
What to say: it works like a charm! It's great!, really! Finally I will not reboot my laptop to start winZoZZ anymore!!
So I would like to ask if you are interested in such a thing: I can make a Tutorial explaining better all the step needed to make it work, if you like.. you know, writing a good How-to it's always a real work, so I'll do it only if someone cares about it..
OK, that's all, for now..
see ya!
I would love to know how you got Odin working under VirtualBox.
I can't get past the point where I attach the usb device and get
Failed to attach the USB device Sasmsung MSM7x30 [0100] to the virtual machine XP.
Failed to create a proxy device for the USB device. (Error: VERR_READ_ERROR).
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: Console
Interface: IConsole {1968b7d3-e3bf-4ceb-99e0-cb7c913317bb}
same here...
Hi,
I get the same error when i try to attach the usb device
Does anyone know how to fix this?
greets
---------- Post added at 12:16 PM ---------- Previous post was at 11:35 AM ----------
Hi,
i found a solution for the problem! I have tested this under Ubuntu 11.10.
The problem is, that the wrong kernel module handles the usb device.
So unplug the phone from your pc. Unload the module cdc_acm:
Code:
modprobe -r cdc_acm
And blacklist the module:
Add to the file /etc/modprobe.d/blacklist.conf the following:
Code:
blacklist cdc_acm
Now plug in your usb device again and voila, you fixed it =)
hope that helps somebody...
Thank you h44z, that solved my problem to. (SUSE)
Thank You!!!
I know we're just supposed to hit the Thank you button, but it just doesn't seem enough.
I've been frustrated by this since I first got my phone. Even thought about buying an old second-hand laptop just for Odin.
Your solution was also instrumental in helping me salvage a hard-bricked phone.
Thank you Thank you THANK YOU
Need to Reinsert Module for Printing
I don't have a working printer at home, so didn't realise this until I needed to print something out from VirtualBox this week at work.
It seems that VirtualBox does need the cdc_acm module for printing via USB.
Reversing the process was quite easy:
Shut down VirtualBox
Edit /etc/modprobe.d/blacklist.conf and either delete "blacklist cdc_acm" or comment it out by putting a "#" before it.
In a terminal, enter "modprobe cdc_acm" as root
Restart VirtualBox
Not sure if all that was necessary; perhaps just removing the blacklist entry would be sufficient. Anyway, I'm printing again and know how to get Odin working if I need it.
Phone not recognised
Hi,
I tried using Virtualbox under Ubuntu 12.04 LTS to emulate Windows Xp in order to use Odin (my device cannot be flashed with Heimdall). Thanks to h44z I can mount the device in Virtualbox, but I don't know which drivers I should install because Odin doesn't detect my phone. I tried Samsung USB drivers, then Windows detects Mobile USB Modem 1.0 and Samsung Mobile USB Modem. Then it says: "There was a problem installing this hardware (Samsung Mobile USB Modem)", and I Odin can't detect my phone. By the way, My phone is a Samsung Galaxy Y (GT-S5360).
So, my question is: Which drivers should I install in order to be able to use Odin via Virtualbox?
Coolneng said:
Hi,
I tried using Virtualbox under Ubuntu 12.04 LTS to emulate Windows Xp in order to use Odin (my device cannot be flashed with Heimdall). Thanks to h44z I can mount the device in Virtualbox, but I don't know which drivers I should install because Odin doesn't detect my phone. I tried Samsung USB drivers, then Windows detects Mobile USB Modem 1.0 and Samsung Mobile USB Modem. Then it says: "There was a problem installing this hardware (Samsung Mobile USB Modem)", and I Odin can't detect my phone. By the way, My phone is a Samsung Galaxy Y (GT-S5360).
So, my question is: Which drivers should I install in order to be able to use Odin via Virtualbox?
Click to expand...
Click to collapse
Hi again,
Well I found the solution ^^. I deleted the machine (in Virtualbox) with Windows XP and I installed a Window 7 Machine. Then, I used the dirvers from this thread: http://forum.xda-developers.com/showthread.php?t=2038555
First I tried method one (as in the Windows XP machine) but it didn't work, so I used method 2 and it worked.
Hope this helps somebody at some time.
h44z said:
i found a solution for the problem! I have tested this under Ubuntu 11.10.
The problem is, that the wrong kernel module handles the usb device.
So unplug the phone from your pc. Unload the module cdc_acm:
Code:
modprobe -r cdc_acm
And blacklist the module:
Add to the file /etc/modprobe.d/blacklist.conf the following:
Code:
blacklist cdc_acm
Now plug in your usb device again and voila, you fixed it =)
hope that helps somebody...
Click to expand...
Click to collapse
Many many thanks, fixed...
brainvision said:
Hi all
I spent last 2 days working on Odin.. I wanted to emulate it on my Slackware Linux machine 'cause I don't like to boot Windows every time I need it! I have to say that the most of the time I spent on that was reserved to downloading the VirtualBox binaries tarball, which is about 80 MB (you know, here where actually I am I don't have a real internet connection 'cause it's not the place where I usually live, it's my parents home and I can't pay for 2 ADSL.. but this is another story.. ).
So, I installed VirtualBox and create a winXP emulated OS, I configured it just like the way I want and then I start to work on Odin..
What to say: it works like a charm! It's great!, really! Finally I will not reboot my laptop to start winZoZZ anymore!!
So I would like to ask if you are interested in such a thing: I can make a Tutorial explaining better all the step needed to make it work, if you like.. you know, writing a good How-to it's always a real work, so I'll do it only if someone cares about it..
OK, that's all, for now..
see ya!
Click to expand...
Click to collapse
i thought it wasn't possible because of that sick error VB gave me.. not installing the drivers on its own... now that its working.. M soo HAPPY!!
just like you said..NO MORE WINDOWS REBOOTS! flash via ubuntu! :good:
ok
"The problem is, that the wrong kernel module handles the usb device."
Correct, but how you find out? Is there a log to observe or a debug option?
h44z said:
Hi,
I get the same error when i try to attach the usb device
Does anyone know how to fix this?
greets
---------- Post added at 12:16 PM ---------- Previous post was at 11:35 AM ----------
Hi,
i found a solution for the problem! I have tested this under Ubuntu 11.10.
The problem is, that the wrong kernel module handles the usb device.
So unplug the phone from your pc. Unload the module cdc_acm:
Code:
modprobe -r cdc_acm
And blacklist the module:
Add to the file /etc/modprobe.d/blacklist.conf the following:
Code:
blacklist cdc_acm
Now plug in your usb device again and voila, you fixed it =)
hope that helps somebody...
Click to expand...
Click to collapse
THANKS!!!!
you save my day!!!, excuse my english, I've been trying for six hours to pass the error on my virtual machine.
Do you have a step by step tutorial?? I'm using Arch and Vbox with Windows 7, but Odin doesn't recognize the cellphone...
brainvision said:
Hi all
So I would like to ask if you are interested in such a thing: I can make a Tutorial explaining better all the step needed to make it work, if you like.. you know, writing a good How-to it's always a real work, so I'll do it only if someone cares about it..
OK, that's all, for now..
see ya!
Click to expand...
Click to collapse
Just wanted to say thanks to brainvision for giving me the inspiration to try Virtual Box and Linux and to the other posters in this thread for their tips and advice on using Linux. Perhaps I finally will get my gt-i5500 to connect...
It will take time for me to learn and even though this thread is many years old I will post back here if I have any success.
Xperimenter said:
Just wanted to say thanks to brainvision for giving me the inspiration to try Virtual Box and Linux and to the other posters in this thread for their tips and advice on using Linux. Perhaps I finally will get my gt-i5500 to connect...
It will take time for me to learn and even though this thread is many years old I will post back here if I have any success.
Click to expand...
Click to collapse
yea the thread is old, and so it is this device! Well I still have it and I restored the official image before putting it into a drawer: Android 2.2 and 2.8'' screen size! WOOW I don't now how it's possible we used it for so long!

[Q] Perl and access to USB device

Hello, I would like to ask you for your help.
I have a digital multimeter VA18B with USB output. The output is actually optically separated USB to RS232 adapter. Link:
http://www.mastech.com.cn/html/en/products-va18b.htm
Since I have a phone with USB host support (Samsung Galaxy Nexus - latest AOKP), I had an idea that I could use it to record data from the multimeter. But I have no experience with Android software development.
The device itself seems to be supported on Android, because I can connect it and read some rubbish characters in intervals of measurement with this app:
https://play.google.com/store/apps/details?id=slickdevlabs.apps.usbtoserialterm
PC Drivers for this multimeter are very limited - only Windows up to XP. Because I primarily use Windows 7, I already use Linux and this script with my multimeter:
http://multimeter.schewe.com/
Source code is in the zip on that site, and also here: http://pastebin.com/iqKW3iFa
It is written in Perl, works on Linux and Android is "Linux". So my first thought was that it could probably be easy to use the same script on Android. I tried to find how to run Perl scripts on Android and found sl4a:
http://code.google.com/p/android-scripting/
After installing the Perl interpreter it can run my script but it doesn't work. The fact that I don't know Perl doesn't make it easier. The script fails to find the device. I thought it is caused by different naming on Android so I substituted the "/dev/ttyUSB0" thing by "/dev/bus/usb/001/033" which I have found in the already mentioned serial adapter app. But it still doesn't work. In both cases it ends complaining about "Can't open device ...".
Because of my level of knowledge I have no idea what to do next.
1) Can you please help me somehow?
2) Next step after making it work will be saving the data to file. That is another problem I would really appreciate your help with, because I did it just by output redirection in Linux and have no idea how to do it here.
I hope someone took the time to read this and perhaps will try to help me. Thank you very much.
Bump :angel:
Bump :angel:

[Q] Help connecting controller to phone.

I have searched everywhere including here on xda and couldn't find an answer to my issue, I have a Samsung galaxy s3 international model running cm 11 ROM with android 4.4, what I am trying to do is to connect my original Xbox 360 wireless controller to my Android device using the USB dongle with an otg cable. I read every possible thread and did everything but couldn't get any answer. I tried the method where you paste a vendor Id file into the system/usr/modules folder, and use the chmod command on terminal. I tried to use one where you'd paste a file called xpad.ko. into the root of the internal storage and it also didn't work, please help me you can , I would appreciate it very much.

Categories

Resources