View Single Post
mveplus's Avatar
Posts: 66 | Thanked: 77 times | Joined on Jul 2010 @ intheclouds
#127
Here is more easy solution for the people that struggle with USB <> NET adapters
Usual WARNING apply for that beta package ! If you mess up it's your call!

Working with Matan's kernel-10power46 and with kernel-10power46-wl1 (patched with injection capability) form lxp.
Not tested with lower versions of Matan's kernel may work?!? (but h-e-n will not - probably)

What contain that package?

1. compiled some of the missing kernel USB2NET modules like external modules
rtl8150.ko
mcs7830.ko
dm9601.ko
smsc95xx.ko
kaweth.ko
pegasus.ko
plusb.ko
gl620a.ko
catc.ko

these are not included modules in kernel-power v46, but Matan may add them in future updates.

2. I updated some of the scripts form original package for N800 to be able to use them with our kernel 2.6.28.10power46, but they were pretty much almost working.
3. Some settings for adding WIRED to show up in the usual network list - see below screenshot - do not ask for improvements because I'm not familiar with Hildon at all, may be someone who is capable of doing something about can fix/add some features.

For now the script is capable of getting setting form DHCP server (IP,GW, DNS), but you can not add IP address from Hildon (desktop) manually. You can do that form terminal if you connect to network that does not serve DHCP.

Download attached usb2net_n900_v.0.1.8.DEB package and install it: <- NEW
Code:
cd MyDocs/.documents
sudo gainroot
dpkg -i usb2net_n900_v.0.1.8.deb
if you want to remove the package:
Code:
sudo gainroot
dpkg -P usb2net
reboot
IF for any reason not working with your USB2NET adapter then check do you have node (file) created in /dev/eth0, when h-e-n is started Hi-Speed,VBUS, Enumerate is pressed. Try to enumerate again after a few seconds, if still does not show up then you need to make your hands dirty
Code:
ls /dev/eth*
#output should be:
/dev/eth0
# if not then:
dmesg | grep 'idProduct'
# or
lsusb
to find out the idProduct='8730' usually four digits without quotas.
then you need to edit and add one row in
Code:
 vi /etc/udev/rules.d/z98usbEth.rules
you will need root access, you can use your favorite editor - vi, nano or leafpad.

You need to add that row like in screenshot below

VERY IMPORTANT! - when you disconnect your adapter you need to press 'ENUMERATE' AGAIN in h-e-n, this will give chance to udevd to register that USB2NET device is disconnected and will remove /dev/eth0, ifconfig eth0 down and clean routing table, other wise you may have problems connecting back to Wireless! Only 'VBUS boost off' does not do the job.


Some side effects and known problems:
1. During the installation of the usb2net, your wireless connection will be disconnected for a while
2. This is program is not designed to work with two USB to Ethernet adapters, ONLY with one at a time, do not know what will happed if you do ( not tested)
3.FIXED in version 0.1.8 - load modules on demand! as Joerg_rw suggested - Thanks Joerg_rw

No warranty of any kind! this is beta package!

Tested and working with
1. 'noname' RTL8150 based USB 1.1 - drains about 110mA form USB port.
2. 'noname' MCS8730 based USB 2.0 - drains about 186mA from USB port.

If your adapter is consuming equal or higher that 200mA, then it will not work, without external power + hub! wait for h-e-n update.

Cheers
Attached Images
   

Last edited by mveplus; 2011-01-27 at 02:39. Reason: clear, typos, new refined package, again update
 

The Following 5 Users Say Thank You to mveplus For This Useful Post: