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.
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
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
If you are using Windows7 or WINDOWS8, you will find that the USB device's LED is still on when the USB device is securely removed. This can be confusing to us: is there any safe removal of USB devices? This is mainly due to the fact that the default setting for USB devices is to remain connected and to power the
Use an 8 gb usb flash drive to create multiple USB SeriesInitial Exploration of the System Boot Disk
Tool preparation: (search online)Can be found)
1. hp formatting tool.Rar
2. grub4dos-0.4.3-07-08-27.rar
3. grubutil-1.1-bin-w32-19.rar
4. UT163 Mass Production EngineerUT163 MPTool setup-v3.9.29.0.rar
5. USB flash disk master Chip DetectionTool ChipGeniUs.exe (ch
Tip:This solution is only applicable to Intel chipset models, and AMD chipset models cannot be used.The document states that the Windows 32-bit system is supported, but some 32-bit systems may have problems. We recommend that you install Windows 64-bit systems.1. Visit the Intel official websiteDownload the Windows 7 USB3.0 Creator utility;2. Use Windows 7 usb dvd Download Tool or UltraISO to create the original Win7 installation disk (do not use the
My colleagues tried this free software to test USB port storage device and downloaded version 1.0. After the test, I was told that it was strange, you must use a USB flash drive once before the software can be disabled. New USB flash drives can be used as usual. So I compared to Microsoft's Official Method of disabling USB
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.