Author Topic: Usb Networking And Usbfunction.py  (Read 4681 times)

sentinel

  • Newbie
  • *
  • Posts: 41
    • View Profile
Usb Networking And Usbfunction.py
« on: January 12, 2006, 08:28:09 am »
Hi,

If you see the following thread:

https://www.oesf.org/forums/index.php?showtopic=16999

I've having problems getting usb networking running under pdaX on the 5500.

'ifconfig' shows no devices with usb0 running.

I managed to launch the USB Settings app from the shell after commenting out the model detection lines, but it still keeps crashing out once I try and apply the settings.

The offending line in usbconfig.py seems to be:

285: FD = open(self.CFG_FILENAME, "w")

where CFG_FILENAME is defined as:

33: CFG_FILENAME = os.environ['HOME'] + "/Choices/usbconfig.py"


If I do a search for usbconfig.py, nothing shows up.

Can anyone post the contents of this file (or let me know where it can be found) - or any suggestions to work around the problem ?

I've tried modifying the usbdconfig file under hotplug, and starting up /etc/usbcontrol but I still can't bring up the usb0 device.

This is starting to drive me mad.............


Rgds
Neil.

jbruno

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
    • http://
Usb Networking And Usbfunction.py
« Reply #1 on: January 12, 2006, 09:32:57 am »
Is your /etc/hotplug/usbdnet.conf set up properly?

For example, here's mine:

Code: [Select]
#IP=192.168.129.201
#NETMASK=255.255.255.0
DHCPS=no
DHCPC=yes


This sets up the Z so it get's its IPAddr from my WinXP machine when I plug it into the cradle. You don't need to run any utility to modify settings here - I just used a text editor and changed what I needed.  Make sure you put the string "yes" exactly for things you want enabled (see /etc/hotplug/usbd.func)

You don't need to explicitly run anything, it automatically executes the script /etc/hotplug/usbd.func when you insert the Z into the cradle.

Do you have any useful messages from /var/log/messages, or dmesg output? There may be clues there.
-----
SL6000L
ATP 512MB SD

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Usb Networking And Usbfunction.py
« Reply #2 on: January 12, 2006, 02:36:46 pm »
Quote
The offending line in usbconfig.py seems to be:

285: FD = open(self.CFG_FILENAME, "w")

where CFG_FILENAME is defined as:

33: CFG_FILENAME = os.environ['HOME'] + "/Choices/usbconfig.py"


If I do a search for usbconfig.py, nothing shows up.

Can anyone post the contents of this file (or let me know where it can be found) - or any suggestions to work around the problem ?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=110630\"][{POST_SNAPBACK}][/a][/div]

That should be 'usbconfig.cfg' (not .py), and it's just the settings for the utility to read from. Does your /usr/bin/usbfunction.py actually have this line wrong, or was that just a typo?

On my SL6000, the config file contains:

Code: [Select]



        
        
        

But I assume this should only affect the utility settings - as noted above you should be able to get it working without having to use the utility.
SL6000-L, RC12

sentinel

  • Newbie
  • *
  • Posts: 41
    • View Profile
Usb Networking And Usbfunction.py
« Reply #3 on: January 12, 2006, 04:06:13 pm »
Thanks for that.

Yes - the reference to 'usbconfig.py' was a typo - it should have been 'usbconfig.cfg'.

Anyway, my OSX box is now picking an Ethernet Adapter on 'en1'. However, it states that 'The cable for the Ethernet Adapter (en1) is connected, but your computer does not have an IP address...'

I tried ammending /etc/hotplug/usbdnet.conf with various cominations, (usually with an IP addres of 192.168.129.201 or 192.168.129.1) but can't seem to assign an IP address to it...

Having checked 'ifconfig' again, it seems that no 'usb0' interface is being brought up. I could'nt find any useful error messages.

Hmmm... I'm getting a bit stumped on this....

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Usb Networking And Usbfunction.py
« Reply #4 on: January 12, 2006, 04:29:00 pm »
hmm you can perhaps try to do a

Code: [Select]
ifconfig usbd0 192.168.129.201 up
in a terminal...

(btw VoiDeR has used the builder to compile a bunch oh ipks for 5500
see http://mail.pdaxrom.org/contrib)
« Last Edit: January 12, 2006, 04:30:21 pm by pgas »
SLC-860 cacko / senao wifi

sentinel

  • Newbie
  • *
  • Posts: 41
    • View Profile
Usb Networking And Usbfunction.py
« Reply #5 on: January 12, 2006, 06:13:44 pm »
When I try
ifconfig usbd0 192.168.129.201 up

I get the message:

SIOCSIFADDR: No such device
usbd0: unknown interface: No such device
usbd0: unknown interface: No such device

sentinel

  • Newbie
  • *
  • Posts: 41
    • View Profile
Usb Networking And Usbfunction.py
« Reply #6 on: January 13, 2006, 04:53:15 pm »
OK,

I finally got this working. Not sure exactly why, but I set the IP on the Z to 192.168.129.201 (DHCPS & DHCPC set to 'no'), and manually configured the OSX ethernet interface to 192.168.129.1

However, I can't seem to make a ssh connection.

I've ran ssh-keygen on the Z a few times, with and without a password, but when I connect as root@192.168.129.201, it keeps kicking me out with 'permission denied'....

Is there are additional flags that I have to add ?

Thanks
Neil.

sentinel

  • Newbie
  • *
  • Posts: 41
    • View Profile
Usb Networking And Usbfunction.py
« Reply #7 on: January 14, 2006, 06:16:56 am »
Setting a root password helped..........

Doh!

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Usb Networking And Usbfunction.py
« Reply #8 on: January 15, 2006, 05:34:23 pm »
Quote
I finally got this working. Not sure exactly why, but I set the IP on the Z to 192.168.129.201 (DHCPS & DHCPC set to 'no'), and manually configured the OSX ethernet interface to 192.168.129.1

I vaguely recall reading somewhere that DHCP is a no-go at present for some reason (might just be the config app)
SL6000-L, RC12

telemetric_au

  • Sr. Member
  • ****
  • Posts: 327
    • View Profile
    • http://www.tyrannozaurus.com/feed/contribs/telemetric/index.htm
Usb Networking And Usbfunction.py
« Reply #9 on: April 28, 2006, 12:26:23 am »
Quote
Quote
I finally got this working. Not sure exactly why, but I set the IP on the Z to 192.168.129.201 (DHCPS & DHCPC set to 'no'), and manually configured the OSX ethernet interface to 192.168.129.1

I vaguely recall reading somewhere that DHCP is a no-go at present for some reason (might just be the config app)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=111084\"][{POST_SNAPBACK}][/a][/div]

im running 5500 with 1.1.0beta1 and dhcp works  
Collie w/ pdaxrom & Puppy OS w/ cross-sdk
Hawking HCF686TX 10/100, Ambicom 802.11b (WL1100C-CF), Xircom 56K Global CF
Kingston CF Elite Pro & SD 1Gb & 128mb for flashing
$2 screen protector, collie.pdaxrom.feed : my collie pdaxrom site