| 1 | <?xml version='1.0' encoding="UTF-8"?> |
1 | <?xml version='1.0' encoding="UTF-8"?> |
| 2 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/usb-guide.xml,v 1.6 2005/08/10 13:09:27 swift Exp $ --> |
2 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/usb-guide.xml,v 1.7 2005/08/25 11:24:46 fox2mike Exp $ --> |
| 3 | |
3 | |
| 4 | <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
4 | <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
| 5 | |
5 | |
| 6 | <guide link="/doc/en/usb-guide.xml"> |
6 | <guide link="/doc/en/usb-guide.xml"> |
| 7 | <title>Gentoo Linux USB Guide</title> |
7 | <title>Gentoo Linux USB Guide</title> |
| … | |
… | |
| 17 | |
17 | |
| 18 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
18 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
| 19 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
19 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
| 20 | <license/> |
20 | <license/> |
| 21 | |
21 | |
| 22 | <version>1.4</version> |
22 | <version>1.5</version> |
| 23 | <date>2005-06-17</date> |
23 | <date>2005-08-25</date> |
| 24 | |
24 | |
| 25 | <chapter> |
25 | <chapter> |
| 26 | <title>Introduction</title> |
26 | <title>Introduction</title> |
| 27 | <section> |
27 | <section> |
| 28 | <title>What is USB?</title> |
28 | <title>What is USB?</title> |
| … | |
… | |
| 409 | /dev/sda1 490M 34M 457M 7% /mnt/usb |
409 | /dev/sda1 490M 34M 457M 7% /mnt/usb |
| 410 | </pre> |
410 | </pre> |
| 411 | |
411 | |
| 412 | <note> |
412 | <note> |
| 413 | Digital cameras can be accessed the same way as memory sticks. I have a Nikon |
413 | Digital cameras can be accessed the same way as memory sticks. I have a Nikon |
| 414 | Coolpix 5200 and this is the way I access it. The camera is set to behave like |
414 | Coolpix 5200 and this is the way I access it. Cameras these days usually have |
| 415 | a USB mass storage device (as against PTP mode, which most cameras have these |
415 | two modes to transfer pictures; USB mass storage and PTP (Picture Transfer |
| 416 | days) and the procedure is exactly the same, because of which I have not |
416 | Protocol). The camera is set to USB mass storage mode and hence the procedure is |
|
|
417 | exactly the same as that of accessing a memory stick because of which I have not |
| 417 | explained in detail about the same. Please note that this may NOT work in all |
418 | explained in detail about it. Please note that this may NOT work in all cases |
| 418 | cases and with all digital cameras that have USB support. |
419 | and with all digital cameras that have USB support. |
| 419 | </note> |
420 | </note> |
| 420 | |
421 | |
| 421 | <p> |
422 | <p> |
| 422 | How would a USB mouse show up in case you had one? It will show up as an HID |
423 | How would a USB mouse show up in case you had one? It will show up as an HID |
| 423 | device. |
424 | device. |
| … | |
… | |
| 538 | <p> |
539 | <p> |
| 539 | To cut the long story short, Gentoo uses <c>sys-apps/hotplug</c> to handle |
540 | To cut the long story short, Gentoo uses <c>sys-apps/hotplug</c> to handle |
| 540 | the firmware side of things in <e>hot-pluggable</e> devices. |
541 | the firmware side of things in <e>hot-pluggable</e> devices. |
| 541 | <c>sys-apps/hotplug</c> will use the required firmware to make that device |
542 | <c>sys-apps/hotplug</c> will use the required firmware to make that device |
| 542 | usable. The firmware should be put in the <path>/lib/firmware</path> directory |
543 | usable. The firmware should be put in the <path>/lib/firmware</path> directory |
| 543 | and is picked up from there. Getting it is simple: the usual emerge will do. |
544 | and is picked up from there. Getting it is simple; the usual emerge will do. |
| 544 | </p> |
545 | </p> |
| 545 | |
546 | |
| 546 | <pre caption="Installing hotplug"> |
547 | <pre caption="Installing hotplug"> |
| 547 | # <i>emerge hotplug</i> |
548 | # <i>emerge hotplug</i> |
| 548 | </pre> |
549 | </pre> |
| 549 | |
550 | |
| 550 | <p> |
551 | <p> |
| 551 | Now the obvious question would be, what is coldplug and why is it needed? |
552 | Now the obvious question would be, what is coldplug and why is it needed? |
| 552 | <c>sys-apps/coldplug</c> does what hotplug does, but it does it for |
553 | <c>sys-apps/coldplug</c> does what hotplug does, but it does it for |
| 553 | <e>hot-pluggable</e> devices that are already connected at boot time. A good |
554 | <e>hot-pluggable</e> devices that are already connected at boot time. A good |
| 554 | example of this would be a USB Network card. Earlier the hotplug package was |
555 | example of this would be a USB Network card. Earlier, hotplug was the package |
| 555 | responsible for handling both, but then it was split into hotplug and coldplug, |
556 | responsible for handling both, but then it was split into hotplug and coldplug, |
| 556 | each with their distinct purposes. Emerge it if you have <e>hot-pluggable</e> |
557 | with coldplug doing all the work. Install it if you have <e>hot-pluggable</e> |
| 557 | devices that you need activated on boot up. |
558 | devices that you need activated on boot up. |
| 558 | </p> |
559 | </p> |
| 559 | |
560 | |
| 560 | <pre caption="Installing coldplug"> |
561 | <pre caption="Installing coldplug"> |
| 561 | # <i>emerge coldplug</i> |
562 | # <i>emerge coldplug</i> |
| … | |
… | |
| 565 | * rc-update complete. |
566 | * rc-update complete. |
| 566 | </pre> |
567 | </pre> |
| 567 | |
568 | |
| 568 | <note> |
569 | <note> |
| 569 | The above initscript does what hotplug's initscript used to do (for already |
570 | The above initscript does what hotplug's initscript used to do (for already |
| 570 | attached hot-pluggable devices). hotplug does not have an initscript of its |
571 | attached hot-pluggable devices). The current <path>/etc/init.d/hotplug</path> |
| 571 | own as of now. |
572 | script does nothing more than check if the CONFIG_HOTPLUG is enabled for the |
|
|
573 | current kernel. |
| 572 | </note> |
574 | </note> |
| 573 | |
575 | |
| 574 | </body> |
576 | </body> |
| 575 | </section> |
577 | </section> |
| 576 | </chapter> |
578 | </chapter> |