Active Topics

 


Reply
Thread Tools
Posts: 561 | Thanked: 75 times | Joined on Jan 2010 @ Spain
#121
I'm trying to use a USB to RJ45 hostmode mode.

The data provided by the command "lsusb"on my PC are:
ID 0fe6: 8101 Kontron (Industrial Computer Source / ICS Advent) DM9601 Fast Ethernet Adapter

How do I start on my N900?
Attached Files
File Type: txt hostmode.txt (15.3 KB, 197 views)
 
mveplus's Avatar
Posts: 66 | Thanked: 77 times | Joined on Jul 2010 @ intheclouds
#122
Originally Posted by WhiteWolf View Post
I'm trying to use a USB to RJ45 hostmode mode.

The data provided by the command "lsusb"on my PC are:
ID 0fe6: 8101 Kontron (Industrial Computer Source / ICS Advent) DM9601 Fast Ethernet Adapter

How do I start on my N900?
Hi, you may have my problem --missing kernel module for your usb2network adapter. Kernel 10power46, has build in only general usb networking. i.e. does not include all modules needed, for all possible usb devices - some may work and some nay not work.

if that is the case with you then download the module that i'm attached and do like root (you have to have installed pakage rootsh ), open terminal, change directory to the place that you download dm9601.ko, let assume that is in your documents folder:
Code:
cd MyDocs/.documents/
tar -zxvf dm.tar.gz
sudo gainroot
modprobe usbnet
insmod dm9601.ko
Assuming that you do not get any errors from the code here, then proceed like normal, start h-e-n, connect your adapter and after activateing hen, go and check do you have eth0 node in:
Code:
ls /dev/eth*
if you do then you are good to go
Attached Files
File Type: gz dm.tar.gz (69.2 KB, 137 views)
 

The Following User Says Thank You to mveplus For This Useful Post:
Posts: 561 | Thanked: 75 times | Joined on Jan 2010 @ Spain
#123
Thanks I'll try and tell you...
 
Posts: 561 | Thanked: 75 times | Joined on Jan 2010 @ Spain
#124
Do not get it to work.
 
Posts: 362 | Thanked: 143 times | Joined on Mar 2008
#125
Originally Posted by cheve View Post
hi,

I have tried to connect a usb DVD drive and got the following in the logs:

[39971.219238] /home/builder2/maemo-fremantle-armel-extras-devel/work/kernel-power-2.6.28/drivers/usb/core/inode.c: creating file '022'
[39971.219604] usb 1-1: New USB device found, idVendor=03f0, idProduct=5e07
[39971.219635] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[39971.219665] usb 1-1: Product: HP USB Mass Storage Device
[39971.219665] usb 1-1: Manufacturer: Hewlett-Packard
[39971.219696] usb 1-1: SerialNumber: 2104752485555557234
[39971.219726] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[39971.219757] hub 1-0:1.0: port 1 enable change, status 00000503
[39971.375396] Initializing USB Mass Storage driver...
[39971.375640] usb-storage 1-1:1.0: usb_probe_interface
[39971.375671] usb-storage 1-1:1.0: usb_probe_interface - got id
[39971.377471] scsi0 : SCSI emulation for USB Mass Storage devices
[39971.378784] usbcore: registered new interface driver usb-storage
[39971.378814] USB Mass Storage support registered.
[39971.381378] usb-storage: device found at 22
[39971.381378] usb-storage: waiting for device to settle before scanning
[39976.381317] usb-storage: device scan complete
[39976.394439] scsi 0:0:0:0: CD-ROM HP DVD-ROM rm475e JH21 PQ: 0 ANSI: 0

My guess is that h.e.n. is working, Is it? Further question is that how do I mount this one?(note: I have also posted http://talk.maemo.org/showthread.php...103#post927103) for help on this.)

Cheers,
pls excuse the bad form in quoting my own post. someone mentioned "modprobe isofs", did a search and came up with the following:

"The mount button is currently hardcoded to mount /dev/sda1, default for most USB flash drives and HDDs. For NTFS support, do modprobe ntfs as root. For ISO (CDs/DVDs - most of them), do modprobe isofs (also as root). CDs will have the dev node /dev/sr0, so you'll need to do mount /dev/sr0 /mnt etc"

in this link http://www.my-maemo.com/software/app...2&fldAuto=1973

Cheers,
 

The Following User Says Thank You to cheve For This Useful Post:
mveplus's Avatar
Posts: 66 | Thanked: 77 times | Joined on Jul 2010 @ intheclouds
#126
Originally Posted by WhiteWolf View Post
Do not get it to work.
attach the output files from fallowing commands, when the adapter is connected :
dmesg > dmdmesg.log
lsmod > dmmod.log
ifconfig > ifconfig.log
ls /dev/ > dmls.log
from ls /dev/eth* you should get eth0 , if you do not do not proceed with the fallowing, jump on the next section
also did you try:
Code:
sudo gainroot
ifconfig eth0 up 
udhcpc
IF the node eth0 is not created in /dev/ then you need udev rule to do so, download the attached file and copy it to /etc/udev/rules.d/ :
Code:
cd # to directory where you saved the file
tar -zxvf z98_usbEth.rules.tar.gz
sudo gainroot
cp z98_usbEth.rules /etc/udev/rules.d/
This script is taken form the package for N800, but modified for your specific device ATTRS{idProduct}=="8101" , according to your host-log file. It will work only for devices that that has this idProduct, you can modify z98_usbEth.rules, for other device IDs looking in dmesg log, finding yours product id and modifying this file.

Specail thanks to Mathan, h-e-n Team, the guys form here for good work which we can reuse now for N900, and all TMO hackers

By
Attached Files
File Type: gz z98_usbEth.rules.tar.gz (299 Bytes, 119 views)

Last edited by mveplus; 2011-01-25 at 03:49.
 

The Following 2 Users Say Thank You to mveplus For This Useful 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:
Boemien's Avatar
Posts: 770 | Thanked: 558 times | Joined on Mar 2010 @ Abidjan
#128
Please Guys, I own a Sagem Fast 800-E4 USB Modem! Is there a way to connect it to the Phone and have internet access???
 
Posts: 362 | Thanked: 143 times | Joined on Mar 2008
#129
@ Boemien, I think if your USB modem(refer to http://wiki.maemo.org/USB_to_ethernet_networking , there is a list of working at the end of that wiki article) uses one of the chipset mentioned in post 127 of this thread, then you have a better chance of get it working with the N900.

Cheers,

Last edited by cheve; 2011-01-25 at 22:03.
 

The Following User Says Thank You to cheve For This Useful Post:
Boemien's Avatar
Posts: 770 | Thanked: 558 times | Joined on Mar 2010 @ Abidjan
#130
Thanks Cheve, I will try it and post my feedbacks. But before I start, I Own An USB ADSL Modem wich requires Identification and password to get connected to internet. How do I enter the ID and the password? On Windows there is a GUI to do that, Even on Ubuntu (but it's a bit different)
 
Reply

Tags
awesome!, bada rox, h-e-n hostmode, more noise


 
Forum Jump


All times are GMT. The time now is 05:00.