]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - doc/README.usb
Initial revision
[karo-tx-uboot.git] / doc / README.usb
1 /*
2  * (C) Copyright 2001
3  * Denis Peter, MPL AG Switzerland
4  *
5  * See file CREDITS for list of people who contributed to this
6  * project.
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License as
10  * published by the Free Software Foundation; either version 2 of
11  * the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21  * MA 02111-1307 USA
22  *
23  */
24
25 USB Support for PIP405 and MIP405 (UHCI)
26 ========================================
27
28 The USB support is implemented on the base of the UHCI Host
29 controller.
30
31 Currently supported are USB Hubs, USB Keyboards and USB Floppys.
32 Tested with a TEAC Floppy TEAC FD-05PUB and Chicony KU-8933 Keyboard.
33
34 How it works:
35 -------------
36
37 The USB (at least the USB UHCI) needs a frame list (4k), transfer
38 descripor and queue headers which are all located in the main memory.
39 The UHCI allocates every milisecond the PCI bus and reads the current
40 frame pointer. This may cause to crash the OS during boot. So the USB
41 _MUST_ be stopped during OS boot. This is the reason, why the USB is
42 NOT automatically started during start-up. If someone needs the USB
43 he has to start it and should therefore be aware that he had to stop
44 it before booting the OS.
45
46 For USB keyboards this can be done by a script which is automatically
47 started after the U-Boot is up and running. To boot an OS with a an
48 USB keyboard another script is necessary, which first disables the
49 USB and then executes the boot command. If the boot command fails,
50 the script can reenable the USB kbd.
51
52 Common USB Commands:
53 - usb start:
54 - usb reset:        (re)starts the USB. All USB devices will be
55                     initialized and a device tree is build for them.
56 - usb tree:         shows all USB devices in a tree like display
57 - usb info [dev]:   shows all USB infos of the device dev, or of all
58                     the devices
59 - usb stop [f]:     stops the USB. If f==1 the USB will also stop if
60                     an USB keyboard is assigned as stdin. The stdin
61                     is then switched to serial input.
62 Storage USB Commands:
63 - usb scan:         scans the USB for storage devices.The USB must be
64                     running for this command (usb start)
65 - usb device [dev]: show or set current USB staorage device
66 - usb part [dev]:   print partition table of one or all USB storage
67                     devices
68 - usb read addr blk# cnt:
69                     read `cnt' blocks starting at block `blk#'to
70                     memory address `addr'
71 - usbboot addr dev:part:
72                     boot from USB device
73
74 Config Switches:
75 ----------------
76 CFG_CMD_USB         enables basic USB support and the usb command
77 CONFIG_USB_UHCI     defines the lowlevel part.A lowlevel part must be defined if
78                     using CFG_CMD_USB
79 CONFIG_USB_KEYBOARD enables the USB Keyboard
80 CONFIG_USB_STORAGE  enables the USB storage devices