ok6410 development board miniusb disk port simulation u

PC via miniUSB port USB interface S3C6410 development board, reading the content on the SD card, make U disk Development Board to be used is the same as the phone connected to the computer! Specific steps are as follows:

This article reprint please indicate the source: http://blog.sina.com.cn/s/blog_a189aca10102v5vm.html
Linux3.0.1 into the kernel directory play make menuconfig kernel configuration steps are as follows:
1) Select the USB support in the device drivers
S3C6410 (Linux3.0.1) of the disk becomes linux U <wbr> gadget <wbr> driver

2) into the USB support select USB Gadget Support
S3C6410 (Linux3.0.1) of the disk becomes linux U <wbr> gadget <wbr> driver

3)在USB Gadget Support中选择S3C HS/OTG USB Device Controller、USB Gadget Drivers、File-backed Storage Gadget
S3C6410 (Linux3.0.1) of the disk becomes linux U <wbr> gadget <wbr> driver

S3C6410 (Linux3.0.1) of the disk becomes linux U <wbr> gadget <wbr> driver
Then save and exit execution command to compile the kernel: make zImage (remember to use the newly generated kernel image)
Performing the command generation module: make modules
S3C6410 (Linux3.0.1) of the disk becomes linux U <wbr> gadget <wbr> driver

OK at compile drivers / usb / gadget / directory module will generate two g_file_storage.ko

Instructions are executed in the development board

insmod g_file_storage.ko file=/dev/sdcard stall=0 removable=1

S3C6410 (Linux3.0.1) of the disk becomes linux U <wbr> gadget <wbr> driver

You can see the U disk into WINDOWS, do not drive if you are prompted to complete the installation, etc., please look at hot-swappable USB interface

S3C6410 (Linux3.0.1) of the disk becomes linux U <wbr> gadget <wbr> driver

S3C6410 (Linux3.0.1) of the disk becomes linux U <wbr> gadget <wbr> driver
Role of each of the above modules, the search can not understand, not one written out herein, specific steps described above, two attached above link:

http://blog.csdn.net/luckywang1103/article/details/21546129

http://www.eepw.com.cn/article/148060.htm

Guess you like

Origin www.cnblogs.com/eastgeneral/p/12317055.html