>De plus, hotplug appelé depuis le noyau n'utilise jamais /etc/hotplug/*.rc (ici en
>tout cas).
Désolé, j'avais fait un raccourcis entre le mode hotplug et coldplug(boot)
>C'est pas hotplug qui a "détecté" ça.
Nan, c'est le noyau, j'ai compris ca ;) Le noyau détecte un matos et hotplug charge le module qui va bien. Je mettais dans hotplug aussi le parti du noyau qui se charge de la détection ;)
>pas de MAP_CURRENT sous Linux 2.6. C'est-à-dire avec module-init-tools. Mais
>Debian doit être avec modutils pour être compatible Linux 2.4 (comme je l'ai
>sous-entendu plus haut). Ça regarde Debian.
MAP_CURRENT=$MODULE_DIR/modules.usbmap
milouse:/home/gnumdk# ls /etc/hotplug/modules.usbmap
ls: /etc/hotplug/modules.usbmap: Aucun fichier ou répertoire de ce type
Je confirme, y'a pas avec un 2.6 :p Donc, d'apres tes conclusion, usb.agent ne charge aucun module, il fait quoi au fait? :) Parce que apres avoir regardé le script, il ne devrait effectivement rien faire :)
Pourtant:
Oct 27 22:47:54 milouse kernel: usb 1-1: USB disconnect, address 2
Oct 27 22:48:00 milouse kernel: usb 1-1: new full speed USB device using address 4
Oct 27 22:48:01 milouse kernel: /mnt/Download/Tar.gz/spca5xx-10092004/drivers/usb/spca50x.c: USB SPCA5XX camera found. Logitech ClickSmart 510 (SPCA500+unknown CCD)
Oct 27 22:48:01 milouse kernel: /mnt/Download/Tar.gz/spca5xx-10092004/drivers/usb/spca50x.c: [spca50x_probe:7320] Camera type JPEG
Oct 27 22:48:01 milouse usb.agent[26610]: spca50x: loaded successfully
http://linux-hotplug.sourceforge.net:(...) There is a "hotplug" system service (/etc/rc.d/init.d/hotplug) that's invoked during system booting, which handles initialization including "coldplugging" by invoking /etc/hotplug/type.rc files for each type the system supports. These types include usb, pci for PCI and Cardbus, net for networking, and so on. These types are defined by the Linux kernel, and are passed as the first (and usually only) command argument to /sbin/hotplug invocations.
Once hotplugging is initialized, /sbin/hotplug will do its job when devices are hotplugged. It does its work by invoking /etc/hotplug/type.agent files. Those files normally handle tasks like selecting and loading driver modules.
En clair, je comprend plus vraiment comment ca marche :)
Pour finir, Mandrake 10.1, Suse 9.2 et Debian utilisent /etc/init.d/hotplug au boot!
Seul Suse l'a renommé coldplug :)
[^] # Re: Drôle de surprise !
Posté par gnumdk (site web personnel) . En réponse à la dépêche Sortie de la Debian Woody 3.0r3. Évalué à 2.
>tout cas).
Désolé, j'avais fait un raccourcis entre le mode hotplug et coldplug(boot)
>C'est pas hotplug qui a "détecté" ça.
Nan, c'est le noyau, j'ai compris ca ;) Le noyau détecte un matos et hotplug charge le module qui va bien. Je mettais dans hotplug aussi le parti du noyau qui se charge de la détection ;)
>pas de MAP_CURRENT sous Linux 2.6. C'est-à-dire avec module-init-tools. Mais
>Debian doit être avec modutils pour être compatible Linux 2.4 (comme je l'ai
>sous-entendu plus haut). Ça regarde Debian.
MAP_CURRENT=$MODULE_DIR/modules.usbmap
milouse:/home/gnumdk# ls /etc/hotplug/modules.usbmap
ls: /etc/hotplug/modules.usbmap: Aucun fichier ou répertoire de ce type
Je confirme, y'a pas avec un 2.6 :p Donc, d'apres tes conclusion, usb.agent ne charge aucun module, il fait quoi au fait? :) Parce que apres avoir regardé le script, il ne devrait effectivement rien faire :)
Pourtant:
Oct 27 22:47:54 milouse kernel: usb 1-1: USB disconnect, address 2
Oct 27 22:48:00 milouse kernel: usb 1-1: new full speed USB device using address 4
Oct 27 22:48:01 milouse kernel: /mnt/Download/Tar.gz/spca5xx-10092004/drivers/usb/spca50x.c: USB SPCA5XX camera found. Logitech ClickSmart 510 (SPCA500+unknown CCD)
Oct 27 22:48:01 milouse kernel: /mnt/Download/Tar.gz/spca5xx-10092004/drivers/usb/spca50x.c: [spca50x_probe:7320] Camera type JPEG
Oct 27 22:48:01 milouse usb.agent[26610]: spca50x: loaded successfully
http://linux-hotplug.sourceforge.net:(...)
There is a "hotplug" system service (/etc/rc.d/init.d/hotplug) that's invoked during system booting, which handles initialization including "coldplugging" by invoking /etc/hotplug/type.rc files for each type the system supports. These types include usb, pci for PCI and Cardbus, net for networking, and so on. These types are defined by the Linux kernel, and are passed as the first (and usually only) command argument to /sbin/hotplug invocations.
Once hotplugging is initialized, /sbin/hotplug will do its job when devices are hotplugged. It does its work by invoking /etc/hotplug/type.agent files. Those files normally handle tasks like selecting and loading driver modules.
En clair, je comprend plus vraiment comment ca marche :)
Pour finir, Mandrake 10.1, Suse 9.2 et Debian utilisent /etc/init.d/hotplug au boot!
Seul Suse l'a renommé coldplug :)