LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   /dev/usb0 missing (https://www.linuxquestions.org/questions/slackware-14/dev-usb0-missing-357767/)

samac 08-28-2005 08:57 AM

/dev/usb0 missing
 
I am having to fix my USB network connection to my Zaurus.

I trimmed my Slackware 10.1 installation to the bone, and trimmed a bit to hard. I have everything working apart from my USB network.

Upon starting my network script I get the following message:

Code:

SIOCSIFADDR: no such device
usb0: unknown interface: no such device
SIOCSIFNETMASK: no such device
usb0: unknown interface: no such device
SIOCADDRT: no such device

ls -al /dev/usb0 gives no response

The USB connection is detected when I unplug and replug the zaurus as "tail /var/log/messages" reads:

kernel: usb 1-1.3: new full speed USB device using ohci-hcd and address 11

ifconfig -a does not show network device usb0 even though it is specified in /etc/rc.d/rc.init1.conf and enabled in /etc/rc.d/rc.init1

Has anyone any idea how to create /dev/usb0 ?

Samac

Bonzodog 08-28-2005 09:16 AM

um...
(as root)

$cd /dev
$mknod usb0

hope this helps

Simon

samac 08-28-2005 09:36 AM

um ...

I thought that mknod required the use of major and minor numbers and is the device a FIFO or unbuffered device, I ask because these details are not listed in /usr/src/linux/Documentation/devices.txt and there are no details that I can find when googling

Any further insight would be appreciated.

Samac

samac 08-29-2005 03:23 PM

Anyone ?

Bonzodog 08-29-2005 05:34 PM

from what I can determine, /dev/usb0 would be a character special device. There is an interesting script in the /dev directory called 'makedev'. The apparent aim of this is to help you create a device node of the correct type with out any hassle.
You would still use mknod to create it though, unless you decided to give the makedev script a try. see man mknod

Simon

samac 08-30-2005 04:33 AM

MAKEDEV unfortunately doesn't create the device, however it is good to know that it is a character device (I was thinking that, but wasn't sure).

That leads to the second problem, what are the major and minor numbers, because they are not listed in /usr/src/linux/Documentation/devices.txt .

I am at a loss to explain why I had it before and I don't have it now. What does Slackware use to create the /dev directory on start-up. I thought it was the package devs-2.3.1-noarch-21.tgz, but reinstalling that package does not create the device.

Maybe a symlink to something in the /dev/usb/ directory?

Maybe udev? (but I don't understand that one yet)

Samac

samac 08-30-2005 02:56 PM

Did some more playing, didn't seem to accomplish anything, then suddenly it started working, still no sign of /dev/usb0 but it works, now that is strange because my script is set to work specifically with /dev/usb0

The world is wierd!

Samac

jmill_1 09-03-2005 07:26 AM

ok samac could you please tell us what you did to get it to work? I am having the toughest time getting my new Z to sync with my Mandrake box. It is detected because I can see it in usb view but cannot get online with it because it isn't syncing. I too have no usb0 so please tell me what you did to get it to sync!

Thanks!

samac 09-03-2005 07:54 AM

I suspect the problem was on the Z side as it disappeared after I had to reboot the Z.

There are full details on how to do it on here

Samac

milindlokde 11-11-2010 08:20 PM

Quote:

Originally Posted by samac (Post 1823916)
Code:

SIOCSIFADDR: no such device
usb0: unknown interface: no such device


Even I am getting the same message. I am trying to connect my Imate Pdal windows mobile to Fedora 13. There is no USB0. You have got it working but how.
I read the link provided for zaurus. There is no "/etc/hotplug/blacklist" file in Fedora 13. "lsmod|grep usbnet" gives
Code:

usbnet                13646  0
mii                    3422  3 usbnet,8139too,8139cp


T3slider 11-11-2010 11:58 PM

Quote:

Originally Posted by milindlokde (Post 4156333)
Even I am getting the same message. I am trying to connect my Imate Pdal windows mobile to Fedora 13. There is no USB0. You have got it working but how.
I read the link provided for zaurus. There is no "/etc/hotplug/blacklist" file in Fedora 13. "lsmod|grep usbnet" gives
Code:

usbnet                13646  0
mii                    3422  3 usbnet,8139too,8139cp


This thread is pretty old and hotplug hasn't been used for some time (and you are using another distribution). Your device would almost certainly require some device-specific knowledge, since it uses Windows Mobile. My Z is gathering dust with a dead battery, and it's been a while since I've done this, so my memory is foggy...I have scripts that control setting up the network with the usb0 device, but as long as the proper modules were loaded (both on the Z and the host), and as long as the networking settings were setup correctly on the Z, it worked perfectly. If a /dev/usb0 device is not created for you despite the usbnet module being loaded, then you should check your Windows Mobile settings to ensure that this is possible. The Zaurus runs real Linux and is a very different beast compared to Windows Mobile.


All times are GMT -5. The time now is 05:54 PM.