This story uses kernel code 2.6.22. In the Linux kernel code directory, all the Code related to the device driver is under the drivers/directory. Using the ls command in this directory, you can see many subdirectories:
Lfg1:/usr/src/linux-2.6.22/drivers # ls
Kconfig acpi atm block char cpufreq dma fc4 hid ide
Input leds md mfd mtd oprofile pci ps3 s390 serial spi
Usb zorro Makefile amba auxdisplay bluetooth clocksource crypto
Edac firewire hwmon
Recently, I often have to deal with LINUX deployment. I usually need to test it on my own machine before deploying the production environment. For example, you can use a USB flash drive to install the operating system.VMware Workstation9.0 is installed on the machine to run multiple test VMS. The reason is of course to use this to deploy some operating systems, especially USB flash drives (you can also use
After sorting and digesting the device model, you have the foundation to compile a device driver program.
You need to be familiar with the driver of the USB device because of the working relationship. Therefore, select the driver of the USB device as the start point.
How can a USB device be discovered by the USB Sy
The USB host will enumerate the devices after it detects that the USB device is plugged in. Why enumerate? Enumeration is to read the various descriptor information from the device, so that the host can load the appropriate driver according to this information, so as to know the device is what device, how to communicate and so on.Enumeration process:1, the USB ho
Probe, disconnect, id_table, the first of the three elements to appear is id_table. What is it?
We have said that a device can only bind one driver, but the driver does not support only one device. The principle is very simple. For example, if I have two USB flash drives, I can insert them together, but I only need to load one module, USB-storage. I have never heard of it. inserting two
Deepin disables usb sound card and deepin disables usb
The author uses the roaming player sound card to support two interfaces: 5mm and USB. Although the USB interface can be identified, there is no sound. Therefore, usb sound card driver is prohibited.
What is the USB debug mode?
USB Debug mode is an Android-enabled feature that allows you to copy data between your computer and Android devices, install applications on mobile devices, read log data, and so on. By default, the USB debug mode is turned off, so you need to manually open it;2
Turn on USB debug mode
And
As mentioned above, return to the usb_stor_acquire_resources () function and return 0. So we finally went back to the storage_probe () function.
Row 3: The scsi_add_host () function is executed. The previously applied us-> host is passed to it as a parameter, and intf-> dev is also passed to it, this is used to register sysfs. As mentioned above, scsi_add_host () must be executed after scsi_host_alloc so that the SCSI core layer can know that such a host exists. If scsi_add_host () is successfu
The previous use of U disk System are used UltraISO direct production of the startup disk, and sometimes a couple of days have to dress up the system, today is windows, tomorrow is Ubuntu, the day after that may be other Linux distribution, very inconvenient, So just want to use a U disk to do a multi-system startup disk, after n days of continuous practice, and constantly try to finally let me succeed.Pre-production preparation :1) 1 USB flash drive
USB flash drive (system) disk creation, USB flash drive
The system won't be installed now. It's OUT! The system is also installed with a light disk! USB flash drive is now popular! Dear user. The following describes how to create a USB flash drive (BOOT ).
First, open the web page to enter Baidu
Baidu entered
In the "USB series three", we implemented a series of SCSI commands, in this series, we want to implement the command to write sector to the U disk, so this article is relatively easy, more is to give a realization of the source program.In the third USB series, the SCSI commands we implement are: INQUIRY, read capacity (10), TEST UNIT ready, REQUEST sense, read (10), all the commands that are read out, so i
http://china.rs-online.com/web/p/usb-cable-assemblies/7244143/Product Details USB3.0 AdapterSuperSpeed USB will provide 10x data conversion rate high-speed USB, as well as improve power efficiencyUSB3.0 Cable provides a durable, high-quality connectionFast transfer speed between storage devices and peripheralsProvides a throughput of up to 4.8Gbps for USB3.0 host
Create a Windows 7 installation USB flash drive and a Windows 7 installation USB flash drive in linux
Http://blog.csdn.net/pipisorry/article/details/41369821
Linux is installed, and win7 is installed with a USB flash drive (network installation should be acceptable ),
First, you must create a win7 installation USB flas
Recently in the use of STM32 USB module to develop a project, it is very simple, the result of a fast two days to the USB packet buffer access to do a little summary here.
The STM32 USB module packet buffer has 512B, but in the STM32 reference manual memory image shows that 0x40006000-0x400063ff, a whole lot of 512B, how can this, but also in the attempt to progr
Small series very do not like other people's USB stick to my computer, because the friends they always have some strange software and other things, and the U disk insert always let me feel some files on the computer is not safe! Bean System Small Series today share this method can be set in the Win7 system only read the development of USB flash drive, Other U disk computers are not read! Let's take a look a
USB has become one of the indispensable interfaces of PC, almost all devices can be connected to USB devices, USB keyboard, mouse, printer, camera, and commonly used U disk and so on, starting from this article, will focus on the use of USB devices in Dos method, There will be several temporary difficult to set, write
The following describes the usb_stor_control_thread () function. What wakes up is the up ( (us-> sema) from the queuecommand, and us-> sulfate is assigned to the Server Load balancer, in contrast, the Server Load balancer is a parameter passed in when the SCSI core layer calls the queuecommand. Focus on usb_stor_control_thread (). Row 3: As mentioned earlier, we have to look at the dev_mutex lock from a higher perspective after reading the entire module.
Line 3: If us_fw.x_disconnecting is set,
The following describes the usb_stor_control_thread () function. What wakes up is the up ( (US-> SEMA) from the queuecommand, and us-> sulfate is assigned to the Server Load balancer, in contrast, the Server Load balancer is a parameter passed in when the SCSI core layer calls the queuecommand. Focus on usb_stor_control_thread (). Row 3: As mentioned earlier, we have to look at the dev_mutex lock from a higher perspective after reading the entire module.
Line 3: If us_fw.x_disconnecting is set,
S3C2440 provides a USB slave interface. We can use it to simulate 2440 as a USB flash drive and access 2440 directly from the computer as a drive letter.
I. Kernel configurationUSB support
USB Peripheral Controller (S3C2410 USB device controller) --->
S3C2410 USB device con
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.