Difference between revisions of "USB Host"

From ArmadeusWiki
Jump to: navigation, search
 
Line 6: Line 6:
 
  make linux-menuconfig
 
  make linux-menuconfig
  
select Device Driver->USB support->support for Host-side USB (kernel)
+
select Device Driver->USB support->support for Host-side USB (kernel)<br>
 
select Device Driver->Armadeus Specific Drivers->ISP1761 USB 2.0 Host controller (module)
 
select Device Driver->Armadeus Specific Drivers->ISP1761 USB 2.0 Host controller (module)
  
Line 12: Line 12:
 
Three drivers have to be started in order to get the ISP working.  
 
Three drivers have to be started in order to get the ISP working.  
 
They have to be started in the following order:
 
They have to be started in the following order:
  insmod /lib/modules/drivers/armadeus/isp1761/apf9328-isp1761.ko
+
  modprobe apf9328-isp1761
  insmod /lib/modules/drivers/armadeus/isp1761/hal/hal_imx.ko
+
  modprobe hal_imx
  insmod /lib/modules/drivers/armadeus/isp1761/host/pehci.ko
+
modprobe pehci
 +
 
 +
= USB devices =
 +
 
 +
== USB keyboard ==
 +
=== driver installation ===
 +
Adding USB keyboard support
 +
make linux-menuconfig
 +
select Device Driver->HID Devices-> Generic HID support (kernel)<br>
 +
select Device Driver->HID Devices-> USB Human Interface Device (module)
 +
=== Starting the driver ===
 +
modprobe usbhid
 +
 
 +
== USB Flash memory ==
 +
=== driver installation ===
 +
Adding USB Flash support
 +
make linux-menuconfig
 +
select Device Driver-> SCSI device support->SCSI device support (kernel)<br>
 +
select Device Driver-> SCSI device support->legacy /proc/scsi/ support (kernel)<br>
 +
select Device Driver-> SCSI device support->SCSI disk support (kernel)<br>
 +
 
 +
select Device Driver-> USB support ->USB device filesystem (kernel)<br>
 +
select Device Driver-> USB support ->USB Mass Storage support (kernel)<br>
 +
 
 +
=== Starting the driver ===
 +
if sda1 has not been previoulsy created
 +
mknod /dev/sda1 b 8 1
 +
create a mount directory "memstick"
 +
mkdir -m 777 /mnt/memstick
 +
mount the USB Flash device
 +
  mount -t vfat /dev/sda1 /mnt/memstick
 +
check what is present on the USB Flash device
 +
ls -al /mnt/memstick
 +
 
 +
 
  
  
 
== Links ==
 
== Links ==
 
* http://www.nxp.com/acrobat_download/datasheets/ISP1761_4.pdf
 
* http://www.nxp.com/acrobat_download/datasheets/ISP1761_4.pdf

Revision as of 19:48, 29 January 2008

How-To use the ISP176x USB Host controller of the APF9328DevFull

The DevFull is equipped with a USB 2.0 Host controller featuring three USB high speed ports.

Driver installation

make linux-menuconfig

select Device Driver->USB support->support for Host-side USB (kernel)
select Device Driver->Armadeus Specific Drivers->ISP1761 USB 2.0 Host controller (module)

Starting the drivers

Three drivers have to be started in order to get the ISP working. They have to be started in the following order:

modprobe apf9328-isp1761
modprobe hal_imx
modprobe pehci

USB devices

USB keyboard

driver installation

Adding USB keyboard support

make linux-menuconfig
select Device Driver->HID Devices-> Generic HID support (kernel)
select Device Driver->HID Devices-> USB Human Interface Device (module)

Starting the driver

modprobe usbhid

USB Flash memory

driver installation

Adding USB Flash support

make linux-menuconfig
select Device Driver-> SCSI device support->SCSI device support (kernel)
select Device Driver-> SCSI device support->legacy /proc/scsi/ support (kernel)
select Device Driver-> SCSI device support->SCSI disk support (kernel)
select Device Driver-> USB support ->USB device filesystem (kernel)
select Device Driver-> USB support ->USB Mass Storage support (kernel)

Starting the driver

if sda1 has not been previoulsy created

mknod /dev/sda1 b 8 1

create a mount directory "memstick"

mkdir -m 777 /mnt/memstick

mount the USB Flash device

mount -t vfat /dev/sda1 /mnt/memstick

check what is present on the USB Flash device

ls -al /mnt/memstick



Links