[zd1211-devs] Is it possible to use zd1211rw without udev???
Hello all, Im running linux 2.6.19 on an embedded system with the new AMCC PPC440EPx. As (inhouse) external diagnostic interface we plan to use wireless lan. So I searched the kernel and found zd1211rw, bought a zyxel g-220v2 stick, tested it on my home pc, and was greatly pleased. Your driver works absolutelay reliable. My problems began now on the embedded system. I can't use udev, because the systems design haven't got much memory. To be honest, I would not like to use it because of a lot reasons. So the crucial question for me is: Is it possible to use zd1211rw without udev? and What has to be done for this working? (I'm sure there is something to do:-) regards, Stephan ___ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Zd1211-devs mailing list - http://zd1211.ath.cx/ Unsubscribe: https://lists.sourceforge.net/lists/listinfo/zd1211-devs
Re: [zd1211-devs] Is it possible to use zd1211rw without udev???
Stephan Broß wrote: My problems began now on the embedded system. I can't use udev, because the systems design haven't got much memory. To be honest, I would not like to use it because of a lot reasons. So the crucial question for me is: Is it possible to use zd1211rw without udev? and What has to be done for this working? (I'm sure there is something to do:-) I guess you didn't try it? Network devices don't use device nodes, and it is using the kernel-side USB stuff so it doesn't need a device node either. So AFAIK zd1211rw doesn't care about udev. However, on my AT91RM9200 box with 2.6.20, applying any real traffic down the zd1211rw causes the USB Host controller driver to blow violent chunks and mark it as failed. That can be some feature of the embedded box, although it handles large amount of traffic on a USB Flash stick just fine. It may be relevant that it is through a passive USB1.1 hub at the time too. Anyway I don't think udev is going to matter. -Andy - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Zd1211-devs mailing list - http://zd1211.ath.cx/ Unsubscribe: https://lists.sourceforge.net/lists/listinfo/zd1211-devs
Re: [zd1211-devs] Is it possible to use zd1211rw without udev???
So the crucial question for me is: Is it possible to use zd1211rw without udev? and What has to be done for this working? (I'm sure there is something to do:-) The only problem I can think of is loading the device's firmware. The driver sends a notification to user space and user space is supposed to send the firmware back to the device driver. So you need to have some user space tool to pick up the notification and act upon it. In the past hotplug did this job and later udev took over. So the hotplug scripts might still be usable. Some things to look for (I'm not sure if all this still applies though): - /proc/sys/kernel/hotplug: holds the name of a program that intercepts kernel notifications - udev's firmware_helper program or firmware loading script: this should give you an idea how user space sends firmware to a device (It's basically a matter of writing a file holding the firmware to a device specific node in the sysfs tree) Hotplug might also have such a script but I'm not sure if it's usable on recent kernels. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Zd1211-devs mailing list - http://zd1211.ath.cx/ Unsubscribe: https://lists.sourceforge.net/lists/listinfo/zd1211-devs
Re: [zd1211-devs] Is it possible to use zd1211rw without udev???
So the crucial question for me is: Is it possible to use zd1211rw without udev? and What has to be done for this working? (I'm sure there is something to do:-) The only problem I can think of is loading the device's firmware. Correct, thats my problem too. You can use a much simpler script for embedded work that can cope with firmware loading then the hotplug or udev packages would use. #!/bin/sh # Both $DEVPATH and $FIRMWARE are already provided in the environment. Andi, could you post your DEVPATH, please? HOTPLUG_FW_DIR=/lib/firmware date /tmp/hotplug_debug echo ACTION=$ACTION /tmp/hotplug_debug echo DEVICE=$DEVICE /tmp/hotplug_debug echo PRODUCT=$PRODUCT /tmp/hotplug_debug set /tmp/hotplug_debug if [ $ACTION = remove ] ; then echo (aborting as it is remove)/tmp/hotplug_debug exit 0 fi echo DEVPATH=\'$DEVPATH\' /tmp/hotplug_debug echo FIRMWARE=\'$FIRMWARE\' /tmp/hotplug_debug ll $HOTPLUG_FW_DIR/$FIRMWARE /tmp/hotplug_debug echo /tmp/hotplug_debug ll /sys/$DEVPATH /tmp/hotplug_debug sleep 1 echo -n 1/sys/$DEVPATH/loading How did you manage writing to sysfs. I tried to mount it with 'exec' option, but without success. Nowhere I can find a file named 'loading' or 'data', so I assume you create it? regards, Stephan ___ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Zd1211-devs mailing list - http://zd1211.ath.cx/ Unsubscribe: https://lists.sourceforge.net/lists/listinfo/zd1211-devs
Re: [zd1211-devs] Is it possible to use zd1211rw without udev???
Stephan Broß wrote: How did you manage writing to sysfs. I tried to mount it with 'exec' option, but without success. Nowhere I can find a file named 'loading' or 'data', so I assume you create it? Nope. Just mount sysfs with the default mount options is all you need, assuming that you enabled it in your kernel .config (CONFIG_SYSFS). The /etc/fstab entry would look like this sysfs /syssysfs defaults0 0 The loading and other fancy bits are dynamically created before the /sbin/hotplug script is called, and $DEVPATH is likewise dynamically created and defined in the environment before /sbin/hotplug is called. -Andy - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Zd1211-devs mailing list - http://zd1211.ath.cx/ Unsubscribe: https://lists.sourceforge.net/lists/listinfo/zd1211-devs
Re: [zd1211-devs] Is it possible to use zd1211rw without udev???
The loading and other fancy bits are dynamically created before the /sbin/hotplug script is called, and $DEVPATH is likewise dynamically created and defined in the environment before /sbin/hotplug is called. Aah, now it becomes plainer. First I have to install the hotplug package and to enable HOTPLUG in my kernel, right? regards, Stephan ___ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Zd1211-devs mailing list - http://zd1211.ath.cx/ Unsubscribe: https://lists.sourceforge.net/lists/listinfo/zd1211-devs
Re: [zd1211-devs] Is it possible to use zd1211rw without udev???
[EMAIL PROTECTED] wrote: The loading and other fancy bits are dynamically created before the /sbin/hotplug script is called, and $DEVPATH is likewise dynamically created and defined in the environment before /sbin/hotplug is called. Aah, now it becomes plainer. First I have to install the hotplug package and to enable HOTPLUG in my kernel, right? You defniitely need hotplug enabled in your .config, but the point is that the script I posted is sufficient to get the firmware in your zd1211. You don't need the hotplug usermode package if you put that script to /sbin/hotplug and chmod +x it. -Andy - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Zd1211-devs mailing list - http://zd1211.ath.cx/ Unsubscribe: https://lists.sourceforge.net/lists/listinfo/zd1211-devs