Linux-2.6.32 port on mini2440 Development Board configure USB peripherals

Source: Internet
Author: User

Linux-2.6.32 port on mini2440 Development Board configure USB peripherals 1 configure and test USB keyboard, scanner and mouse input in kernel source code directory terminal: make menuconfig, select the following sub menu items in turn: device Drivers ---> [*] HID Devices ---> press the Space key to select "USB Human Interface Device (full HID) support", so that the USB keyboard and mouse are configured. Tip: here the configuration option corresponds to the kernel source code directory is: linux-2.6.32.2/drivers/hid/usbhid, where the USB keyboard and bar code scanner is the same principle, therefore, their code is the same. 2. Test the USB keyboard, scanner, and mouse. Run make zImage in the root directory of the kernel source code to burn the generated new kernel to the Development Board, we still use the file system root_qtopia provided by the friendly arm for testing, because it supports both USB keyboard, mouse, and touch screen, and supports hot swapping, so it is very convenient to use. In the previous step, we clicked through the touch screen to enter the qtopia system. Therefore, we can directly find a usb hub and connect the USB mouse and keyboard, or even the USB barcode scanner, find an application with the mouse, such as the "NOTE" that comes with qtopia, and click open it. Then, you can enter various English characters on the keyboard, you can also use a USB barcode scanner to scan the barcode for input. 3 configure the USB flash drive because the USB flash drive uses the SCSI command. Therefore, we need to add the SCSI support first. In the Device Drivers menu, select SCSI devicesupport, press enter to enter the menu that appears, press the Space key to select option-SCSI device support, and then choose SCSI disk support, and return to the Device Drivers menu, select USB support, press enter to enter the USB support menu, and select <*> USB Mass Storage support. In addition, currently, most of the USB flash drives are in the FAT/FAT32 format. Therefore, we need to add support for the FAT32 file system. In the Kernel configuration main menu, select the following menu items: file systems ---> DOS/FAT/NT Filesystems ---> Go To The FAT32 File System Configuration sub-menu and select MSDOS fs support. In addition, to support Chinese and English encoding, under the "File systems" menu, select "-*-N Ative plugin agesupport ---> "and enter. Here, we need to select the following encoding support: <*> Codepage 437 (United States, Canada) <*> nls iso 8859-1 (Latin 1; Western European ages) <*> NLS UTF-8 exit to save the above configuration. 4. perform the following steps to connect the test USB flash drive: make zImage under the root directory of the kernel source code to burn the generated new kernel to the Development Board, do not insert a USB flash drive (to view the printed information at the time of insertion). After the system is started, go to the command line console. At this time, you can see the USB flash drive information: at this time, the USB flash drive has been automatically mounted to the/udisk directory of the Development Board. At the same time, in the Qtopia system, you can see that there is an additional tag on the taskbar, all files in the USB flash drive are displayed in the "document" group, but the directory name is not displayed. if you have too many files, the list is quite impressive. Note: Qtopia supports automatic disk mounting through a Qtopia 2.2.0 plug-in developed by the friendly arm. Currently, it only recognizes the MMC/SD card or the first partition of the USB flash drive, the format is common VFAT/FAT32/FAT16. If your USB flash drive or SD card cannot be identified, check whether the format is VFAT/FAT32/FAT16. 5 configure and test the USB camera Linux kernel version is often updated, which constantly add more driver support is one of the main reasons, directory Linux-2.6.32.2 has supported almost all USB camera driver, however, the USB camera driver of each manufacturer has different interfaces for the upper layer. Therefore, even if the kernel supports so many cameras, common USB camera applications cannot recognize them. The following describes how to configure a USB camera in the kernel: In the Device Drivers menu, select Multimedia devices, press enter to select the "*" option, and select Video capture adapters to go To the displayed menu, find the V4L USB device option and go to the displayed menu, select the "*" option, and then select GSPCA based webcams. GSPCA is a 10 thousand USB camera driver developed by a French programmer in his spare time. Here you can select support for all types of USB cameras, --- GSPCA based webcams <*> ALi USB m5602 Camera Driver <*> STV06XX USB Camera Driver <*> GL860 USB Camera Driver <*> Conexant Camera Driver <*> Etoms USB Camera Driver <*> Fujitsu FinePix USB V4L2 driver <*> Jeilin jpeg usb V4L2 driver <*> Mars USB Camera Driver <*> Mars-Semi MR97310A USB Camera Driver <*> OV519 USB Camera Driver <*> OV534 USB Camer A Driver <*> Pixart PAC207 USB Camera Driver <*> Pixart PAC7311 USB Camera Driver <*> SN9C20X USB Camera Driver <*> SONIX Bayer USB Camera Driver <*> sonix jpeg usb Camera driver <*> SPCA500 USB Camera Driver <*> SPCA501 USB Camera Driver <*> SPCA505 USB Camera Driver <*> SPCA506 USB Camera Driver <*> SPCA508 USB Camera Driver <*> SPCA561 USB Camera Driver <*> SQ Technologies SQ905 based USB Camera Driver <*> SQ Technologies SQ905C based USB Camera Driver <*> Syntek DV4000 (STK014) USB Camera Driver <*> sunplus usb Camera Driver <*> T613 (JPEG Compliance) USB Camera Driver <*> TV8532 USB Camera Driver <*> VC032X USB Camera Driver <*> ZC3XX USB Camera Driver. In this way, we have configured a universal USB Camera Driver, if a new kernel version is available, there may be many options. 6. Test the connection steps of the USB camera. Run make zImage in the kernel source code directory and write the generated kernel to the Development Board. The file system root_qtopia that comes with the friendly arm is still used, because there is already a program for dynamic preview and photographing of USB cameras. Insert the camera to the USB Host port of the Development Board. Then, in the "friendly arm" program group, click the "USB camera" program to open the dynamic preview interface, adjust the camera's focus, take a good shot, and click the "Snap" button to take a photo. The photo will be saved to the "document" group. This program can also adjust the brightness, contrast, and gamma values. Each model of the camera has set the best value or default value at the factory, the program will read and set them when it is enabled.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.