View | Details | Raw Unified | Return to bug 40443
Collapse All | Expand All

(-)book.sgml (-34 / +24 lines)
Lines 62-70 Link Here
62
62
63
    <para>Welcome to the FreeBSD 2.X-4.X FAQ!</para>
63
    <para>Welcome to the FreeBSD 2.X-4.X FAQ!</para>
64
64
65
    <para>As is usual with Usenet FAQs, this document aims to cover the
65
    <para>As is usual with FAQs, this document identifies and answers some
66
      most frequently asked questions concerning the FreeBSD operating
66
      frequently asked questions, in this case concerning the FreeBSD operating
67
      system (and of course answer them!).  Although originally intended
67
      system.  Although originally intended
68
      to reduce bandwidth and avoid the same old questions being asked
68
      to reduce bandwidth and avoid the same old questions being asked
69
      over and over again, FAQs have become recognized as valuable
69
      over and over again, FAQs have become recognized as valuable
70
      information resources.</para>
70
      information resources.</para>
Lines 2426-2443 Link Here
2426
        </question>
2426
        </question>
2427
2427
2428
        <answer>
2428
        <answer>
2429
          <para>USB device support was added to FreeBSD 3.1.  However, it
2429
          <para>Preliminary USB device support was added to FreeBSD 3.1,
2430
            is still in preliminary state and may not always work as of
2430
            and significantly improved in 3.2; 3.1 is not recommended
2431
            version 3.2. If you want to experiment with the USB keyboard
2431
            for USB usage.  As of FreeBSD 4.1, the GENERIC kernel
2432
            support, follow the procedure described below.</para>
2432
            can automatically load USB device drivers as
2433
            necessary.</para>
2434
2435
              <para>With FreeBSD 4.1 and later, USB support can be
2436
              enabled in /etc/rc.conf; everything else is automatic.
2437
              Edit <filename>/etc/rc.conf</filename> and add the
2438
              following lines:</para>
2433
2439
2434
          <procedure>
2440
              <programlisting>usbd_enable="YES"
2435
            <step>
2441
usbd_flags=""</programlisting>
2436
              <para>Use FreeBSD 3.2 or later.</para>
2437
            </step>
2438
2442
2439
            <step>
2443
              <para>For FreeBSD 4.0, add the following lines to your kernel configuration
2440
              <para>Add the following lines to your kernel configuration
2441
                file, and rebuild the kernel.</para>
2444
                file, and rebuild the kernel.</para>
2442
2445
2443
              <programlisting>device  uhci
2446
              <programlisting>device  uhci
Lines 2446-2452 Link Here
2446
device  ukbd
2449
device  ukbd
2447
options KBD_INSTALL_CDEV</programlisting>
2450
options KBD_INSTALL_CDEV</programlisting>
2448
2451
2449
              <para>In versions of FreeBSD before 4.0, use this
2452
              <para>In versions of FreeBSD before 4.0, use these lines
2450
                instead:</para>
2453
                instead:</para>
2451
2454
2452
              <programlisting>controller      uhci0
2455
              <programlisting>controller      uhci0
Lines 2454-2488 Link Here
2454
controller      usb0
2457
controller      usb0
2455
controller      ukbd0
2458
controller      ukbd0
2456
options         KBD_INSTALL_CDEV</programlisting>
2459
options         KBD_INSTALL_CDEV</programlisting>
2457
            </step>
2458
2460
2459
            <step>
2461
              <para>If you've rebuilt your kernel, go to the <filename>/dev</filename> directory and create
2460
              <para>Go to the <filename>/dev</filename> directory and create
2461
                device nodes as follows:</para>
2462
                device nodes as follows:</para>
2462
2463
2463
              <screen>&prompt.root; <userinput>cd /dev</userinput>
2464
              <screen>&prompt.root; <userinput>cd /dev</userinput>
2464
&prompt.root; <userinput>./MAKEDEV kbd0 kbd1</userinput></screen>
2465
&prompt.root; <userinput>./MAKEDEV kbd0 kbd1</userinput></screen>
2465
2466
            </step>
2467
2468
            <step>
2469
              <para>Edit <filename>/etc/rc.conf</filename> and add the
2470
                following lines:</para>
2471
2472
              <programlisting>usbd_enable="YES"
2473
usbd_flags=""</programlisting>
2474
2475
            </step>
2476
          </procedure>
2477
2466
2478
          <para>After the system is rebooted, the AT keyboard becomes
2467
          <para>After the system is rebooted, the AT or PS/2 keyboard becomes
2479
            <devicename>/dev/kbd0</devicename> and the USB keyboard becomes
2468
            <devicename>/dev/kbd0</devicename> and the USB keyboard becomes
2480
            <devicename>/dev/kbd1</devicename>, if both are connected to the
2469
            <devicename>/dev/kbd1</devicename>, if both are connected to the
2481
            system.  If there is the USB keyboard only, it will be
2470
            system.  If the only keyboard is USB, it will be
2482
            <devicename>/dev/ukbd0</devicename>.</para>
2471
            <devicename>/dev/ukbd0</devicename> and <devicename>/dev/kbd0</devicename>.</para>
2483
2472
2484
          <para>If you want to use the USB keyboard in the console, you
2473
          <para>If you want to use the USB keyboard in the console with
2485
            have to explicitly tell the console driver to use the existing
2474
            an AT or PS/2 keyboard connected, you
2475
            have to explicitly tell the console driver to use the
2486
            USB keyboard. This can be done by running the following
2476
            USB keyboard. This can be done by running the following
2487
            command as a part of system initialization.</para>
2477
            command as a part of system initialization.</para>

Return to bug 40443