Hi,
Has anyone succeeded in getting USB tethering to work with Ubuntu? I have :
Ubuntu 11.10
Samsung Galaxy S 2.3.5, kernel speedmod k16-11
USB tethering works a treat under windows, once I install the samsung drivers, but I can't get usb0 to appear when I type "ifconfig". "lsusb" does however list the samsung phone.
Any ideas, other than using easy tether ?
Thanks
Hi mmlbbntr,
I have got Ubuntu 11.10 on MacBookPro. I had problems to connect to School WLAN, so I do USB Tethering and it was successful.
But I use Teamhacksung ICS on my SGS ;-)
// Don't forget to Thanks
Have You tried
ifconfig -a
?
It should list Your usb0 ethernet.
If it is right there You should try
ifconfig usb0 up
and
dhcpcd usb0
If there is no usb0, maybe
ifconfig usb0 plumb
will help.
There is a bug with gingerbread where USB tethering is broken on linux. It worked well on Froyo and it also works well on CM9
there is a workarround however, but it is much less clean
http://technomagus.wordpress.com/mobile/tethering/samsung-galaxy-s-i9000-as-3g-modem/
Yeah ifconfig doesn't list any usb connection. I'll try "ifconfig -a" though, not sure what the difference is. If that fails I'll try "ifconfig usb0 plumb", no idea what that does either, but worth a shot.
Thanks for the tips, I'll keep you posted tonight.
robert-km said:
Have You tried
ifconfig -a
?
It should list Your usb0 ethernet.
If it is right there You should try
ifconfig usb0 up
and
dhcpcd usb0
If there is no usb0, maybe
ifconfig usb0 plumb
will help.
Click to expand...
Click to collapse
Oh wow, I hadn't seen your post. Thanks for the info. Guess all I can do is wait for a stable release of CM9 and upgrade...
zorxd said:
There is a bug with gingerbread where USB tethering is broken on linux. It worked well on Froyo and it also works well on CM9
there is a workarround however, but it is much less clean
http://technomagus.wordpress.com/mobile/tethering/samsung-galaxy-s-i9000-as-3g-modem/
Click to expand...
Click to collapse
I'm using Arch with ICS on galaxy S, so I didn't know about this bug.
ifconfig -a lists every lan devices, not only UP state.
plumb as far as i remember works only on solaris, so You sould not need this command, sorry for making mess.
zorxd said:
There is a bug with gingerbread where USB tethering is broken on linux. It worked well on Froyo and it also works well on CM9
there is a workarround however, but it is much less clean
http://technomagus.wordpress.com/mobile/tethering/samsung-galaxy-s-i9000-as-3g-modem/
Click to expand...
Click to collapse
No mention anywhere of 2.3.6. I wonder if USB tethering bug is fixed. Has anyone tried?
I'd rather not install ICS until a stable release is out TBH...
Related
I just loaded my AT&T version with cyanogen 5.0.5.3, and the wireless tether app does not work.
No matter the security settings I use, it always shows unsecure network on my laptop (OSX, Ubuntu and Vista).. If I set it to unsecure in the app, it still does not connect.
I have never used it before, but I am assuming the cyanogenmod kernel has the required bits for the app to work properly.
Am I missing something stupid?
Thanks
-G
ghost_o said:
I just loaded my AT&T version with cyanogen 5.0.5.3, and the wireless tether app does not work.
No matter the security settings I use, it always shows unsecure network on my laptop (OSX, Ubuntu and Vista).. If I set it to unsecure in the app, it still does not connect.
I have never used it before, but I am assuming the cyanogenmod kernel has the required bits for the app to work properly.
Am I missing something stupid?
Thanks
-G
Click to expand...
Click to collapse
Did you turn off USB tethering?
hotweiss said:
Did you turn off USB tethering?
Click to expand...
Click to collapse
Never turned it on, and verified it is off...
how did you load the apk?
lpasq said:
how did you load the apk?
Click to expand...
Click to collapse
Downloaded to SD, and installed from browser download screen...
ghost_o said:
Downloaded to SD, and installed from browser download screen...
Click to expand...
Click to collapse
you may want to adb push method or adb install -r method instead. reboot after install. or try my rom linked in signature.
if you don't know how to use sdk's adb, do a search here on xda for one of the many basic tutorials or ask for details.
lpasq said:
you may want to adb push method or adb install -r method instead. reboot after install. or try my rom linked in signature.
if you don't know how to use sdk's adb, do a search here on xda for one of the many basic tutorials or ask for details.
Click to expand...
Click to collapse
Will do adb.. I have the linux sdk..
Thanks, will post back with results..
OK, installing with adb has the same effect.
There are posts from the google code pages where this has happened in the past (last year though), so I doubt related..
Out of ideas...!
eth0 IEEE 802.11-DS ESSID:"AndroidTether" Nickname:""
Mode:Ad-Hoc Frequency:2.437 GHz Cell: 3A:4E:3D:88:EC:41
Bit Rate=72 Mb/s Tx-Power:32 dBm
Retry min limit:7 RTS thrff Fragment thrff
Encryption keyff
Power Managementmode:All packets received
Link Quality=5/5 Signal level=-57 dBm Noise level=-57 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
This is with WEP set.. It must have something to do with wpa_supplicant somewhere.. I'll keep digging...
maybe it might have something to do with atnt not able to do it throught there network. like us tmobile users can use data while on the phone? dont know alot but that could be a possibility
Nah, wpa_supplicant is not negotiating wep for some reason. I just replace the wpa_supplicant.conf file with a very generic open key WEP config and it still does not work..
I need to dig through my broadcom nda's and find this chip, and see if I can use the firmware.. I'll just load it up in AP mode and run hostapd and be done with it....
Ad-Hoc just plain sucks, almost as much as wep...
Cant find find wireless apk anywhere can someone please give me link
ttieder said:
Cant find find wireless apk anywhere can someone please give me link
Click to expand...
Click to collapse
http://lmgtfy.com/?q=android-wifi-tether&l=1
deprecate said:
http://lmgtfy.com/?q=android-wifi-tether&l=1
Click to expand...
Click to collapse
lmgtfy.com - that was awesome - my family members are gonna feel like idiots asking me questions now!
I had not heard of that site before.
Regarding wep-encryption & CM 5.0.5.x:
http://code.google.com/p/android-wifi-tether/issues/detail?id=292
So, wep-encryption is broken (no idea why) on the latest cyanogenmod-build. Please use CM 5.0.4.1 - it works flawlessly there.
I will take a closer look the next days ... but it's hard to tell what is causing this - I don't know which changes were made on CM.
By the way ... why was this topic moved to Q&A
This is definitely an issue which needs to be solved and should stay in development!
Thanks - I googled for quite a while, and never came across that info. Tethering is not that critical (unless I am travelling), so I will just wait for a fix sometime.
I would have figured other in this forum would have hit it though?!?!?
-G
I've installed 5.0.5.3 and downgraded the kernel which came with 5.0.4.1 - and it start working again! So, I would say that this issue is related to the latest kernel (2.6.33.1)!
I've created an issue on cyanogemod:
http://code.google.com/p/cyanogenmod/issues/detail?id=1217
i have wifi tether pre 8 on latest CM mod and its working great, wep works, and no errors in log.
I am having the same problem. I have both a nexus one and motor milestone. Tethering on milestone doesn't have problems but my nexus can't seem to connect as well no Sep security. I can see the my SSID, anyone can help?
There are obviously factors that differ between devices somehow. I too can change kernels and the issue goes away. Something is "missing" somewhere. A git pulled vanilla 2.6.33 kernel works just fine when booting the zimage from fastboot..
I have not looked at the cyanogen .config or wireless module source yet to see any modifications that would effect it...
I'm more interested in the module working in AP mode now that the driver supports it, and have been working on that...
-G
What about subj on FROYO-based FW's?
I tried to enable it on JM5 firmware (Eclair), but no success
We need to compile bnep.ko module for kernel version 2.6.32 and a bluetooth pan daemon - pand.
So, in case of Eclair, i tried to use bnep.ko, compiled for kernel 2.6.29 and pand version 4.47 (see attachments for both).
And what i've done (step-by-step):
1) Inserting our bnep.ko:
Code:
insmod /lib/modules/bnep.ko
2) Copying pand to /system/bin/
3) Trying to start listening for a incoming bluetooth PAN connection by typing:
Code:
pand -n --listen --role NAP
4) .. and seems we have a problem
Code:
pand[7013]: Bluetooth PAN daemon version 4.47
pand[7013]: Failed to connect to the local SDP server. Connection refused(111)
pand[7013]: Bind failed. Address already in use(98)
... and i have no idea whats going wrong.
So, it will be great if someone could compile bnep.ko for FROYO-based firmwares, may be it will be more lucky
Could someone please compile and post the bnep.ko module and pand for the Galaxy Tab wifi P1010. It seems they left it out of a device that desparately needs it, considering it has no 3g.
I actually have no way of tethering this tab with my phone. It does not pick up adhoc wifi (wpa supplicant hack from p1000 does not work on this device), and itbdoes not support bluetooth pan, which is ultimately my preferred tethering solution because of better battery performance.
I tried the above files but they dont work on the p1010. I even tried copying pand from other devices, but so far none of them execute on this device.
Would really appreciate it if someone could compile the above for the p1010. The kernel version is 2.6.32.9 [email protected] #1. Thanks.
A bit late but someone may need it http://www.patthoyts.tk/blog/android-bluetooth-tethering.html
@sinancetinkaya: Thanks, d00d, came in *very* handy!
I have USB Ethernet on MCS7830
asix.com.tw
FrootAttach/driver/MCS783x_FreeBSD_driver_v1.0.0.1.zip
Can somebody build module?
post in android development and hacking thread.
Ta-da!
I made it. But i have no root.
I have this USB network card and drivers for it (in the end of page). Please help me to add it to my Note.
It's impossible without root.
If you root your phone just load module with insmod.
FedX IV said:
It's impossible without root.
If you root your phone just load module with insmod.
Click to expand...
Click to collapse
I have root. Can you please explain it in detail?
People should learn to click thanks than just keeping to ask questions
Sent from my GT-N7000 using Tapatalk
Hi guys
This is just great news. I was thinking about buying Galaxy Note, but could not decide because it was not clear if there will ever be usb 2 lan drivers.
And now you're writing about it in this thread!!!
Please, Guys, if anyhow possible make it work! Please!
If we get a working version, I will donate for sure. And I'm also sure I'm not the only one interested!!!
Many thanks for your efforts and togetherness!
Sindu
Download and unzip module, then in terminal type
insmod PATH/mcs7830.ko
If it load successful, type something like
ifconfig eth0 inet 192.168.10.15 netmask 255.255.255.0
ifconfig eth0 up
I'm interested in whether this actually works in practice?
Can anyone rebuild this USB ethernet driver pack for Note?
http://forum.xda-developers.com/showthread.php?t=1274656
cuz now i've get:
# ismod: init_module '/system/lib/modules/usb_ethernet/pegasus.ko' failed (Exec format error)
when try to load those built for Tegra drivers
I have a startech.com usb2106s (MOSCHIP usb-ethernet driver 1-3.1.1:1.0: eth0: register 'MOSCHIP usb-ethernet driver' at usb-0000:00:0b.1-3.1.1, MOSCHIP 7830/7832/7730 usb-NET adapter)
And I get the same error trying to load the driver in CM9 ICS.
what exactly it does?
Could someone compile the following file for me? I'd do it myself, but, unfortunately, I don't have access to a computer, nor will I for a while (I'm touchpad only for now).
https://github.com/CyanogenMod/hp-kernel-tenderloin/blob/gingerbread/drivers/net/usb/mcs7830.c
The driver is for a USB-Ethernet adapter that I'm trying to get working on the Touchpad through ICS (cm9).
Thanks.
Is this for USB 3g dongles??
No, not for a 3G adapter, but for one that goes from USB to Ethernet cable.
jcsullins compiled it for me, by the way, so I no longer need the driver (many thanks to him).
However, I can confirm that ICS on CM9 recognized it without problems as eth0 and once I ran dhcpd and assigned a DNS server, I had no problems connecting to the internet. So feel free to add a driver for your own adapter if you have one.
So to review:
-copy driver (to /system/lib/modules)
-insert module ("insmod /system/lib/modules/*yourdriver*.ko")
-get an IP address (manually, or "/system/bin/dhcpd eth0")
-add DNS (setprop net.dns1 *yourDNSserver*)
A couple caveats, I've noticed.
1) It doesn't play nice with wifi. I sort of expected this, but bringing up wlan0 and eth0 at the same time crashes the tablet.
2) Not all apps recognize the internet connection. This is a bit frustrating since most do (including the Browser), but not all.
potissimus said:
No, not for a 3G adapter, but for one that goes from USB to Ethernet cable.
jcsullins compiled it for me, by the way, so I no longer need the driver (many thanks to him).
However, I can confirm that ICS on CM9 recognized it without problems as eth0 and once I ran dhcpd and assigned a DNS server, I had no problems connecting to the internet. So feel free to add a driver for your own adapter if you have one.
So to review:
-copy driver (to /system/lib/modules)
-insert module ("insmod /system/lib/modules/*yourdriver*.ko")
-get an IP address (manually, or "/system/bin/dhcpd eth0")
-add DNS (setprop net.dns1 *yourDNSserver*)
A couple caveats, I've noticed.
1) It doesn't play nice with wifi. I sort of expected this, but bringing up wlan0 and eth0 at the same time crashes the tablet.
2) Not all apps recognize the internet connection. This is a bit frustrating since most do (including the Browser), but not all.
Click to expand...
Click to collapse
Thanks for the extra info--but a link the the driver jcsullins provided you would be a lot more helpful! Any chance you can post it somewhere for us?
all4adriver said:
Thanks for the extra info--but a link the the driver jcsullins provided you would be a lot more helpful! Any chance you can post it somewhere for us?
Click to expand...
Click to collapse
*bump*
is there a USB ethernet adapter that will work on our touchpads without a driver?
all4adriver said:
*bump*
is there a USB ethernet adapter that will work on our touchpads without a driver?
Click to expand...
Click to collapse
I figured out how to compile drivers manually myself shortly after my posts in this thread. I havent used my build environment in a while though, should still be able to check out what (if any) drivers are built into the kernel by default. Do you already have an adapter?
ba114 said:
I figured out how to compile drivers manually myself shortly after my posts in this thread. I havent used my build environment in a while though, should still be able to check out what (if any) drivers are built into the kernel by default. Do you already have an adapter?
Click to expand...
Click to collapse
OMG thank you for responding! No, I don't have an adapter yet--was waiting to find out which one works and I'll buy that. I'm open to suggestions. Thank you!
You are my shining beacon of hope ba114! Have you had a chance to see what drivers might exist in the kernel?
I read elsewhere that the cyanogenmod for the asus transformer contains a driver compatible with Asix AX88772. That chipset is what this cheapo adapter (OMG, no links for noobs!) uses. I have half a mind to buy one just to see, but it would help immensely if someone could confirm that jcsullins cm9 or cm10 for the touchpad also has support for this chipset baked in...
Hopefully giving you something to work with will make this less of a "needle in the haystack"...
Thanks!
really wish I could post links, as jscullins has posted the driver!
hxxp://goo.im/devs/jcsullins/cmtouchpad/misc/mcs7830.ko
all4adriver said:
really wish I could post links, as jscullins has posted the driver!
hxxp://goo.im/devs/jcsullins/cmtouchpad/misc/mcs7830.ko
Click to expand...
Click to collapse
http://goo.im/devs/jcsullins/cmtouchpad/misc/mcs7830.ko
could use some help
OK, finally got my OTG cable and USB ethernet. Let's do this!
Tried to follow these instructions:
So to review:
-copy driver (to /system/lib/modules)
-insert module ("insmod /system/lib/modules/*yourdriver*.ko")
-get an IP address (manually, or "/system/bin/dhcpd eth0")
-add DNS (setprop net.dns1 *yourDNSserver*)
Had to troubleshoot why my Touchpad wasn't being seen as a USB mass storage device. DONE. I'm feeling like a boss.
Windows Explorer didn't see the main system--just the "SD Card". What ever--not big deal. I copied the driver over to the SD Card. Downloaded Astro File Manager to copy the file to /system/lib/modules. Nope. Denied.
No problem! Dropped to terminal and enabled super user. Astro is still a no go. No worries!! I'm a big boy--I'll do this in terminal! Taught myself enough command line jargon to navigate to the file, and copy it to the intended directory. NOPE. Directory is read only.
OK, so I navigate there and try to chmod the directory with u+w. "Bad mode". Research that to learn I have to use the numbers. So I try that (775) and now it tells me it is a read-only file system.
sigh
It might not seem like it, but I'm trying. I really am.
Can someone tell me how to get past step one of this process? Please? What on earth am I doing wrong?
I recently had to do some wizardry on my phone to get openvpn to co-operate, and I suspect that would work here but I don't understand the commands, and fear I'd end up screwing something up.
This was the command:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
I'm guessing I need to unmount the system so I can work on it and copy the file into that directory? Is that the case? Would the command line be the same, or different?
Anyone else get this to work now that the driver has been posted publicly?
Thanks!!!!
To help those who come after me:
Grab ES File Explorer. It includes a Root Explorer that lets you mount the file system as writable. The "copy to" command claimed to work but did not copy the file. Copy the driver, then manually navigate to /system/lib/modules and paste. Voila.
-insert module ("insmod /system/lib/modules/*yourdriver*.ko")
Click to expand...
Click to collapse
this appeared to work
-get an IP address (manually, or "/system/bin/dhcpd eth0")
Click to expand...
Click to collapse
this took me a long time to figure out. as far as I can tell, the only "directions" noobs like me have to follow contain typos. the command should read dhcpcd eth0
HOWEVER, what I get instead is eth0: interface not found or invalid
a little help here? Does the mcs7830.ko driver work with the Asix AX88772 chipset?
Stupid question--should I be expecting the touchpad to power the USB ethernet adapter via the OTG cable, or do I require a "Y" cable to supply power? Is that why I'm getting:
eth0: interface not found or invalid
Click to expand...
Click to collapse
all4adriver said:
Stupid question--should I be expecting the touchpad to power the USB ethernet adapter via the OTG cable, or do I require a "Y" cable to supply power? Is that why I'm getting:
Click to expand...
Click to collapse
I would assume so. Every HP Touchpad tutorial that I've see that mentions an OTG cable also mentions it needing to be powered.
Hi, i have a c5j6 tablet and i bought an OTG cable with a LAN port.
When running windows the ETH port is recognized and working but on Android it is not.
I tried it on both stock rom and mirek190 5.0 V7.
Does anyone know how to get it to work on Android?
yaron112 said:
Hi, i have a c5j6 tablet and i bought an OTG cable with a LAN port.
When running windows the ETH port is recognized and working but on Android it is not.
I tried it on both stock rom and mirek190 5.0 V7.
Does anyone know how to get it to work on Android?
Click to expand...
Click to collapse
A few updates:
Connecting the OTG cable, i can see eth0 interface added as down.
After running netcfg eth0 dhcp, the interface is up and has ip address.
However, no Internet access.
I tried to configure the dns using: setprop net.eth0.dns1 8.8.8.8
That didn't work.
What else can i do?
Also how can i get this configuration to run automatically when connecting the OTG cable?