[Q] Ubuntu on Eee Pad, missing eth0 - Eee Pad Transformer Q&A, Help & Troubleshooting

Hello,
I have followed the guides for [DEV] Native Ubuntu and [HowTo] Native Ubuntu as well as searching google and these forums to get ubuntu running on the Asus Eee Pad Transformer. It works brilliantly except for one issue. All of the suggestions I have seen about getting wireless working don't seem to work for me. I feel I'm missing something simple and just need to be pointed in the correct direction. I have a UK version of the Eee Pad.
1. I have made the /etc/wpa_supplicant/wpa_supplicant.conf file as suggested by the forums.
2. sudo ifconfig eth0 down gives "eth0: ERROR while getting interface flags: No such device"
3. /etc/init.d/start-networking doesn't seem to exist on my system.
4. ifconfig only lists lo and usb0. usb0 has an ip address oddly enough.
The list of possible network devices ubuntu says I have are as follows:lo, dummy0, usb0, tunl0, sit0, and ip6tnl0. I have followed various suggestions about bringing down the usb0 interface before working with eth0, but it didn't seem to help.
It makes me think that the wireless drivers are missing in my rootfs.ext2 file, but I'd rather not try to download it again to see due to bandwidth limits. I would appreciate any thoughts or places to go that would help get this working. Thank you for your help.

I've been trying to work through the wireless problem, and I've found a little more info:
Code:
dmesg |grep bcm
device: 'bcm4329_wlan.1': device_add
device: 'bcm4329_rfkill': device_add
bcm4329_rfkill_probe : can't find reset gpio
I think this indicates a problem loading the driver, but I am purely speculating here. I've checked and the chipset's firmware is loaded in /lib/firmware/brcm so the driver is present.
I'll keep playing around to see if I can get it working. Any suggestions that could help point me in the right direction would be appreciated.

Related

system call -> SOFTAP on -> infrastructure mode

Hello,
Has anyone taken a look at the bcm4329's kernel module? I've been looking around and trying to figure out how the Sprint Hotspot application works and I've found it calls the SIOCSIWPRIV system call on the interface to bring up this mode.
Does anyone have any experience on this matter? I'm looking to get infrastructure mode working.
My current approach is to write a native C app, do the ioctl with some sort of struct (I'm tempted just to memalloc and hand-write the first one), and see what happens.
The driver throws a bunch of debug info into the kernel log when you invoke the command so its dead easy to spot.
Any suggestions?
andrew500 said:
Hello,
Has anyone taken a look at the bcm4329's kernel module? I've been looking around and trying to figure out how the Sprint Hotspot application works and I've found it calls the SIOCSIWPRIV system call on the interface to bring up this mode.
Does anyone have any experience on this matter? I'm looking to get infrastructure mode working.
My current approach is to write a native C app, do the ioctl with some sort of struct (I'm tempted just to memalloc and hand-write the first one), and see what happens.
The driver throws a bunch of debug info into the kernel log when you invoke the command so its dead easy to spot.
Any suggestions?
Click to expand...
Click to collapse
im definitely not up to speed on this but if you wanna post some links to the source files you're referencing, it might help me and anybody else who is interested to get up to speed quicker and provide suggestions.
appreciate your work on troubleshooting and experimenting with wifi tether!
joeykrim,
I'm knee deep in it right now. I'm taking the source code to iwconfig and using it as a template to implement the system calls I need, using a hybrid of the structs in wireless.h and in the bcm4329 driver source, from the bravo kernel. Basically I create a big struct in memory and pass it into the driver using a pointer to a iw_point struct, which holds my big master struct, and then the driver copies it out of user-space into kernel space and acts upon it.
I'll put together all the details once they are a little more solid.
It looks like infrastructure-mode on the EVO is a very distinct possibility, this code will also translate into the workaround for built-in tether on Froyo, from what I've seen they are exclusively using this broadcom interface so far.
It's a hardware specific hack, but many of the phones that have come out lately are using the bcm4329 (and with good reason, chip has freakin everything).

[Q] OpenVPN Command Line to disconnect

I've run into a little problem. The solution is probably pathetically simple and I will want to kick myself for being unable to find the answer...nevertheless I've searched for most of the afternoon.
I connect to my openvpn from xoom as follows :
Open terminal and type the following:
su
cd /pathto/myopenvpnfolder (in my case /sdcard/openvpn)
openvpn clientconfigfile.ovpn
everything connects fine and works flawlessly
The problem is that I cannot disconnect unless I reboot the xoom.
Do you know the command line for this?
I know that there is an app called 'openvpn settings' that automates this process but 1), I want to understand syntax and 2), the app will not sustain a connection and nags my notification area. Any ideas? Thank you in advance.
Sent from my Xoom using Tapatalk
No one has any idea?
Sent from my Nook Color using Tapatalk
Ok
First of all -- I tried some basic commands on my phone -- without openvpn specifically, so try some things here -- worst case scenario you will have to reboot.
I believe openvpn creates another network interface. tiwlan0 is the main networking interface on my phone (D1). Your interface my vary. The best way I can advise you to look for your interface name is to take a look at dmesg. So at the command line, type dmesg and then scroll through the output.
Here is the relevant networking connections in mine:
<6>[18427.544403] TIWLAN: 2235.055000:
<6>[18427.548034] TIWLAN: 2235.058662: -----------------------------------------
------------
<6>[18427.559783] TIWLAN: 2235.070412: Driver Version : WiLink_Driver_6.1.0.0.1
31
<6>[18427.575408] TIWLAN: 2235.086037: Firmware Version: Rev 6.1.5.44.1
<6>[18427.601867] TIWLAN: 2235.112465: Station ID : 00-26-BA-3C-62-CB
<6>[18427.625610] TIWLAN: 2235.136208: -----------------------------------------
------------
<6>[18427.644744] TIWLAN: 2235.155342:
<4>[18429.784362] wlanDrvIf_Open
<6>[18429.787628] ADDRCONF(NETDEV_UP): tiwlan0: link is not ready
<6>[18429.832733] ADDRCONF(NETDEV_CHANGE): tiwlan0: link becomes ready
<6>[18430.268096] TIWLAN: 2236.929695: configHW_to_connected: *** NEW CONNECTION
***
<7>[18440.122283] tiwlan0: no IPv6 routers present
In order to list the network IP address listed with the specific interface I then did:
ifconfig tiwlan0
Which resulted in the following:
# ifconfig tiwlan0
ifconfig tiwlan0
tiwlan0: ip 192.168.1.105 mask 255.255.255.0 flags [up broadcast running multica
st]
Now I believe openvpn will create another network adapter -- something like tun0 or tap0 depending if you are bridging or routing your vpn (which depends which is specified in your .conf file). To bring down the interface manually, all you would do (assuming your rooted):
ifconfig <interface_name> down
I borrowed these commands from this tutorial (which will help a little bit -- but be warned, android doesn't have the full network-tools implementation so some of the commands with various switches will not be complete): http://ubuntuforums.org/showthread.php?t=571188
Hopefully this will get you on the correct track!!!!
Awesome! First I want to thank you for answering...second I want to kick myself for not trying basic Linux networking commands...I made a mountain out of a mole hill! Thank you muchly again!
Sent from my Xoom using Tapatalk
Dollyllama said:
Awesome! First I want to thank you for answering...second I want to kick myself for not trying basic Linux networking commands...I made a mountain out of a mole hill! Thank you muchly again!
Sent from my Xoom using Tapatalk
Click to expand...
Click to collapse
hey im a noob....I have a openvpn server at home but I cannot figure out exactly how to use it on the XOOM or on my Atrix. Could you be kind enough to give me step by step guide to use openvpn on Xoom, when you get time. Thank you so much.

[APP] DropBear Server - A SSH server completely free

Hi XDA community!
I've been working on my first real Android application for a few weeks now, and I just released in on the Google Play Store.
I'm posting here because some developers around here could be interested
It's a front-end to dropbear, a minimalist SSH server.
It allows you to SSH on to your Android phone and also to use SCP.
It is highly configurable and accepts a master password and/or public keys.
Feel free to give feedback / reports / anything.
https://play.google.com/store/apps/details?id=me.shkschneider.dropbearserver
Source is up on github and many thanks to the people listed in my README file.
Well, I installed it on a rooted Samsung Galaxy 2 with NeatRom kernel (Android 4.0.3). Installation is ok but when I start the server the applications remains blocked on the
window Starting server Please wait ...
0% ... 0/100
I waited several minutes but it does not move
Does this app have any advantages over SSHDroid? (Other than lack of ads)
It is just another alternative.
Free
No ads
Open-Source (github)
Start/Stop/Started/Stopped intents for broadcasts
Configurable
Root/non-root access
...
Sadly I can't get this to run on my Evo3d gsm. Everytime I try to connect I get "Error connecting: Connection refused" even on the adb shell:
Code:
1|[email protected]:/ # ssh -p 1022 [email protected]
ssh -p 1022 [email protected]
ssh: exited: Error connecting: Connection refused
ssh on the adb shell works with other computers in the local network.
I tried port 22 and 1022 with the same result, and tried almost every combination of the options. Certificates did not help either. One strange thing is, that i get two ips one is the usual unknown.external.ip.adress and the other is not my normal class c (192.168.0.xxx) ip i get over wlan but some 10.156.xx.xx ip. After some digging i found out, that thats the ip of the rmnet0 interface.
If you need any more information I am happy to provide you these as best as I can.
ls /sys/class/net returns:
Code:
dummy0
gannet0
ip6tnl0
lo
rmnet0
rmnet1
rmnet2
rmnet3
rmnet4
rmnet5
rmnet6
rmnet7
sit0
wlan0
I couldn't get dropbear to start on my GNex, but OK on the N7. Dropbear starts OK if I run it in a terminal. GUI just stuck at 'server stopped'.
Sent from my Nexus 7 using Tapatalk 2
Just updated, and now force closes on both
Sent from my Nexus 7 using Tapatalk 2
Latest update works great, thanks again
Sent from my Nexus 7 using Tapatalk 2
Not working for me on Moto XT910 with MIUI ICS. Even though I allowed it root, it forever says "Root privileges KO, Dropbear Status KO, Server status error"
I know the thread is a bit old and there is already a second release of this app, but I couldn't find any thread about it.
I have been running the server successfully and managed to make a connection over the local network. However, I get timed out when trying to connect over the mobile network. This should be possible, right? Or am I missing something here?
Thanks,
HolySid
where should I place my .ssh hosts file?

[Q] usb eth0 works but half the apps cant use it

Hi,
Over the past few days I've tried getting my USB Ethernet cable to work with my Tab 2 10.1 running stock ICS 4.0.4
And now I got it up to the point where my PC and my Tab can ping eachother, but that's about it. Get ready for a long and technical read
Now I know Samsung has neglected to include drivers for commonly used USB to Ethernet cables, so I built my own modules to load into the stock kernel (3.0.8-1060237):
drivers/net/mii.ko - Generic Media Independent Interface device support
drivers/net/usb/usbnet.ko - support for usb network
drivers/net/usb/mcs7830.ko - driver for this specific ethernet cable (moschip 7830 based)
Driver depends on support for USB network, USB network depends on support for media independent interface.
So loading these into the kernel using insmod works. After I plug in the cable the kernel tells me:
Code:
[ 3754.987335] MOSCHIP usb-ethernet driver 1-1:1.0: eth0: register 'MOSCHIP usb-ethernet driver' at usb-musb-hdrc-1, MOSCHIP 7830/7832/7730 usb-NET adapter, 00:60:6e:42:32:8f
And even netcfg agrees eth0 exists:
Code:
[email protected]:/ # netcfg
lo UP 127.0.0.1/8 0x00000049 00:00:00:00:00:00
ifb0 DOWN 0.0.0.0/0 0x00000082 26:d8:ae:9d:18:30
ifb1 DOWN 0.0.0.0/0 0x00000082 3e:2c:67:48:bd:92
sit0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
ip6tnl0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
eth0 DOWN 0.0.0.0/0 0x00001002 00:60:6e:42:32:8f
wlan0 UP 130.161.censored/26 0x00001043 1c:66:aa:50:39:ee
[email protected]:/ #
So for testing I put the device on a simple switch with just my PC.
I gave my PC 192.168.1.253 and the tablet 192.168.1.200 (both netmask 255.255.255.0).
Code:
[email protected]:/ # ifconfig eth0 192.168.1.200 netmask 255.255.255.0
And there was much rejoicing:
Code:
Windows:
Reply from 192.168.1.200: bytes=32 time<1ms TTL=64
Android:
64 bytes from 192.168.1.253: seq=32 ttl=128 time=0.733 ms
Now here is the problem: Half the apps trip over this new eth0 network interface.
For instance:
"kWS - android web server" works great, immediately recognizes eth0 and uses it without any problems.
Android Browser crashes the network driver.
SSHDroid starts up thinking it is an ipv6 interface and crashes the network driver on any incoming connections.
Also when I turn off WiFi (regardless if it is connected to a network or not), eth0 is killed too.
Couple of questions:
What am I missing to make Android treat this as a good, normal network interface?
How can I make the modules load when the tablet boots?
How can set the IP adres so I don't have to use ifconfig eth0 192...etc every time I connect the device?
How can I add the eth0 to the settings GUI of Android?
Can installing a different kernel or something like CyanogenMod fix the problem alltogether?
Many thanks in advance for any answers!
If anyone is interested in the modules I compiled please reply, but note they only work on rooted tablets that have stock ICS kernel version 3.0.8-1060237 because of what Linux calls "version magic".
Kind Regards,
Android has Incomplete Eth0 Support...
baggush said:
Hi,
Couple of questions:
What am I missing to make Android treat this as a good, normal network interface?
How can I make the modules load when the tablet boots?
How can set the IP adres so I don't have to use ifconfig eth0 192...etc every time I connect the device?
How can I add the eth0 to the settings GUI of Android?
Can installing a different kernel or something like CyanogenMod fix the problem alltogether?
Many thanks in advance for any answers!
Click to expand...
Click to collapse
Well, he first thing to know is that Android has incomplete Eth0 support!
As you've seen, it's implemented and correct at the Linux level. Which means programs that are written in C++ and either work at the native linux level or bypass the Android framework will work.
However, the Java implementation is busted. It's incomplete.
I'd highly recommend Ben Zores presentation, "Dive Into Android Networking: Adding Ethernet Connectivity" if you want to understand the issues.
(You'll have to google it, I can't post links yet!)
Basically all the Android API gets you is the ability to see that Eth0 exists. You can't talk to it, set it, get notifications on it, etc. because the Service Manager and the Connection Manager framework components are incomplete.
Some implementations, like Android-IA and Cynogen and Linaro have been patched to work, some better than others.
I ran into this the hard way, because I'm implementing a machine control system using Android as a UI and Control Computer. It's a fixed app, not a mobile/tablet thing. And I'm linking to a WAGO Modbus-based fieldbus system for digital and analog I/O and motion control.
Trust me, it's a real headache. I've gotten around it, but there's no official news or support yet.
Regards,
David Schofield, Hotspot Office LLC, Pittsburgh, PA
Galaxy tab 2 eth0 needed
I need to connect an USB to Ethernet to my Galaxy tab 2 7.0 (GT-P3100) or Galaxy tab 3 7.0 (GT-P3200), is there is a way to add the driver without rebuild the rom (like a patch or update) or if there is a custom ROM that supports Ethernet ? Please help me doing this
Ethernet support for Galaxy tab 2.7.0
MJBLACKEND said:
I need to connect an USB to Ethernet to my Galaxy tab 2 7.0 (GT-P3100) or Galaxy tab 3 7.0 (GT-P3200), is there is a way to add the driver without rebuild the rom (like a patch or update) or if there is a custom ROM that supports Ethernet ? Please help me doing this
Click to expand...
Click to collapse
How to say this gently... umm-m-m,
No.
Each manufacturer has configured Android to their liking, and apparently Samsung DOESN'T like Ethernet.
.
I'm doing just as you did, using a Radio Shack Belkin USB interface to connect to industrial equipment (Modbus/TCP PLC's and fieldbus I/O systems.) I've evaluated a number of tablets, including all Samsung tablets (and Nexus, Lenovo, Curtis, and many, many others.) If they don't fully support wired Ethernet, you can't back-fill it without rooting and flashing the ROMs.
(I wish Toshiba would unroot my original Thrive, which they've orphaned.)
In the end, I've bought cheap tablets like some Proscan's (at BigLots, $80USD ) and the 7" Zeki TBDG773B (K-Mart, $119USD) and in testing them, discovered they supported wired Ethernet. (Note that exact models are important, because I've found ROM differences between almost identical models that make the difference between success and failure. Polaroid-branded tablets are infamous for this.)
To test, go to Settings, Wireless & Networks -> Ethernet, (or sometimes, More...-> Ethernet) then switch Ethernet ON, and click Advanced Configuration or sometimes, Configure Ethernet Device. (Polaroids usually fail at this point, they never included the rest of the module.)
My Zeki gives the choice of DHCP vs. Static IP, .IP Address, Netmask, DNS Address and Gateway Address. Proscan gives you DNS1 and DNS2.
I have tested over 80 Android tablets now... Many are tested, few are worthy.
Check out my video on Android-->Ethernet connectivity on YouTube, search for Hotspot Office modbus, or watch video JCMkvHkeNzw, as in /watch?v=JCMkvHkeNzw
I've got specifics and talk about models and equipment and demonstrate stepper motor control using a WAGO fieldbus system.
Thanks
Hotspot Office said:
How to say this gently... umm-m-m,
No.
Each manufacturer has configured Android to their liking, and apparently Samsung DOESN'T like Ethernet.
.
I'm doing just as you did, using a Radio Shack Belkin USB interface to connect to industrial equipment (Modbus/TCP PLC's and fieldbus I/O systems.) I've evaluated a number of tablets, including all Samsung tablets (and Nexus, Lenovo, Curtis, and many, many others.) If they don't fully support wired Ethernet, you can't back-fill it without rooting and flashing the ROMs.
(I wish Toshiba would unroot my original Thrive, which they've orphaned.)
In the end, I've bought cheap tablets like some Proscan's (at BigLots, $80USD ) and the 7" Zeki TBDG773B (K-Mart, $119USD) and in testing them, discovered they supported wired Ethernet. (Note that exact models are important, because I've found ROM differences between almost identical models that make the difference between success and failure. Polaroid-branded tablets are infamous for this.)
To test, go to Settings, Wireless & Networks -> Ethernet, (or sometimes, More...-> Ethernet) then switch Ethernet ON, and click Advanced Configuration or sometimes, Configure Ethernet Device. (Polaroids usually fail at this point, they never included the rest of the module.)
My Zeki gives the choice of DHCP vs. Static IP, .IP Address, Netmask, DNS Address and Gateway Address. Proscan gives you DNS1 and DNS2.
I have tested over 80 Android tablets now... Many are tested, few are worthy.
Check out my video on Android-->Ethernet connectivity on YouTube, search for Hotspot Office modbus, or watch video JCMkvHkeNzw, as in /watch?v=JCMkvHkeNzw
I've got specifics and talk about models and equipment and demonstrate stepper motor control using a WAGO fieldbus system.
Click to expand...
Click to collapse
Thank you for your reply. As you mentioned, there is a way by rooting and flashing, so Where can we find a ready ROM which we can flash to enable Ethernet on Galaxy tab 2 [P3113]?
Also, is there a way to recompile the kernel of Galaxy tab 2 with enabling the Ethernet module from my side? if there is can you advise me how?
Thanks and regards,
Flashing the Galaxy...
MJBLACKEND said:
Thank you for your reply. As you mentioned, there is a way by rooting and flashing, so Where can we find a ready ROM which we can flash to enable Ethernet on Galaxy tab 2 [P3113]?
Also, is there a way to recompile the kernel of Galaxy tab 2 with enabling the Ethernet module from my side? if there is can you advise me how?
Thanks and regards,
Click to expand...
Click to collapse
There are sources on the internet, if you google for "reflash galaxy 2 ROM" but I don't know if they support wired ethernet.
You'll find sites like galaxys2root.com, etc. Biftor is apparently a popular ROM, and ODIN is a popular facility.
It's an involved process, but not impossible. Strict attention to the right instructions will win you success!
Good Providence!
-d
Bump!
Dear Forum,
has there been any development on this topic?
@Hotspot Office -- kudos for the link!
Like Hotspot Office, We have to build a machine GUI based on the P5110. My application will be bypassing the incomplete Android eth0 support
so most probable baggush's approach could work for us but we ar running Cyanogenmod 11 and the Dhollmen kernel.
I still have to get my legs about this whole issue. So any hints and thoughts will be greatly appreciated.
Martin
Functional Eth0, check out my project vid on youtube!
Well, I got things straight, but it wasn't easy.
Check out my project vid featuring a WAGO fieldbus controlling a stepper motor via a functional Eth0 on youtube
You can google for "youtube android modbus" or search youtube for video JCMkvHkeNzw
Or you can plug it into the youtube url, as in /watch?v=JCMkvHkeNzw
The actual title is "Android Tablet Modbus/TCP Stepper-Motor/Robot Exerciser"
If you like it, be sure to thumbs-up it, and leave a comment!
david schofield
dub-dub-dub dot hotspot office dot net
I'm running 4.2.2 so maybe this won't apply, but did you have to do anything in terms of the Ethernet UI in Settings? I've installed the drivers and it looks like the tablet is detecting it, but the Ethernet settings never show up
diimentio said:
I'm running 4.2.2 so maybe this won't apply, but did you have to do anything in terms of the Ethernet UI in Settings? I've installed the drivers and it looks like the tablet is detecting it, but the Ethernet settings never show up
Click to expand...
Click to collapse
Are you running a full 4.2.2, or a stripped down version? What's its pedigree?
Hotspot Office said:
Are you running a full 4.2.2, or a stripped down version? What's its pedigree?
Click to expand...
Click to collapse
I'm not sure, how can you tell?
diimentio said:
I'm not sure, how can you tell?
Click to expand...
Click to collapse
What kind of device is it? Or try Settings, About?
The thing is, if it isn't under "Settings->Wireless and Networks" or whatever, then you don't have it.
-d
Hotspot Office said:
What kind of device is it? Or try Settings, About?
The thing is, if it isn't under "Settings->Wireless and Networks" or whatever, then you don't have it.
-d
Click to expand...
Click to collapse
Well it definitely says 4.2.2 under Settings, About. I have a Samsung Galaxy Tab 2 GT-P5113 model. I don't know what a "stripped down" version is.
I don't have it under Wireless and Networks but in this video (https://www.youtube.com/watch?v=J-RQwQTjraM) the Ethernet option pops up when it detects a valid Ethernet connection. Obviously it's not the same model but I'm wondering whether I need a UI patch or if it should just work out of the box assuming I have all the correct drivers installed.
diimentio said:
Well it definitely says 4.2.2 under Settings, About. I have a Samsung Galaxy Tab 2 GT-P5113 model. I don't know what a "stripped down" version is.
I don't have it under Wireless and Networks but in this video (https://www.youtube.com/watch?v=J-RQwQTjraM) the Ethernet option pops up when it detects a valid Ethernet connection. Obviously it's not the same model but I'm wondering whether I need a UI patch or if it should just work out of the box assuming I have all the correct drivers installed.
Click to expand...
Click to collapse
In my experience, I've found you'd need the *EXACT* same model. I've checked probably a hundred tablets, and found that the specific model and software version, matters. That's why in my video I detail the exact model number. You need to realize that an Android version, say 4.2.2 isn't the same the whole world over. Like Windows XP Embedded, it's a kit of parts. I can burn a version of 4.2.2 with Ethernet support, and I can burn a version of 4.2.2 WITHOUT Ethernet support apps at the Android level. As the developer, I pick and choose what features and applications I include, and which I leave out--which I customize, and which I leave alone.
Sorry, unless you root your device with a version of 4.2.2. that supports the wired Ethernet applications in the settings, you're at the mercy of the Samsung folks.

Getting USB-Ethernet-Adapter started on Superman Rom

I wasn´t able to post the question directly under the Superman Costum Rom thread. So I try to do it here.
I installed [ROM][STABLE][TW][6.0.1][BPH6][24.08.16][SM-G930F/FD/W8] SuperMan-Rom V1.12 Aroma today. And as far it works really fine. But what bugs me is that I was able to use USB-Lan Adapter under Stock Rom that was just rooted. I only needed to input the following in the android console:
- ip link
- ifconfig eth0 up
- dchpcd eth0
The adapter started to work. I could ping to different web pages and play games etc. Only a few apps didn´t recognize internet. But after installing Superman Rom the same procedure doesn´t work any longer. I can ping to my router but not further. Any ideas so far? Thanks in advance.
So far I´ve got it working. Only if anybody wants to know it.
Its following steps:
- Root the device.
- Then install Terminal Editor or a different app like that.
then:
ip link
(shows eth0 your usb ethernet adapter somewhere in the list)
dhcpcd eth0
ndc resolver setnetdns eth0 8.8.8.8 8.8.4.4 (this line was the reason why I started this thread, my eth0-adapter couldnt resolve the dns)
then enter the following ip-rules:
ip rule add from all fwmark 0x101f7/0x1ffff lookup 1024 pref 13000
ip rule add from all oif eth0 lookup 1024 pref 14000
ip rule add from all fwmark 0x1f7/0x1ffff lookup 1024 pref 19000
ip rule add from all fwmark 0x0/0xffff lookup 1024 pref 22000
ip route add table 1024 192.168.178.0/24 dev eth0
ip route add table 1024 default via 192.168.178.1 dev eth0
(if they don´t work than look under: "ip rule". The rules for wlan0. The numbers like 0x101f7/0x1ffff behind fwmark must be similar to wlan0)
You can type in all this commands every time on restart or if you plug out your adapter. Or you save those command line entrys in a file called "eth.sh" store it on your device and execute it with Terminal emulator as "su -c 'sh eth.sh'
From there on if you ping to google or something. The packages should get to their target. But...
Some apps will still refuse to work. Because they depend on 3g or wlan adapter. So you need a app to fake wlan. You can do this with "exposed framework" and a module called "fake wlan". One reason more your device should be rooted.
After that all apps works in line now. I ve gone further and set up a init.d script that does the job when I boot up my device.
In the moment if you plug out your USB-Ethernet you may have to reboot the device. But maybe I can figure out something more convenient.

Categories

Resources