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
Install ubuntu on a USB flash drive and start Linux from the USB flash drive.
If we install the Linux system directly on our hard disk, the GRUB of Linux will overwrite the boot guide of window. It is not convenient to carry. So I want to install a ubuntu system on a USB flash drive, which can be started on any computer.
Preparations:
A 32g
First, verify the USB device is normal
: If the laptop is plugged into the USB device itself, there may be a problem with USB can not use the phenomenon.
Verification Method:Method One:Plug the USB device into another computer to see if the computer is available. If this device is not available on other computers, th
Rome was not built in one day. Before making the USB flash drive work, we actually made a lot of preparations for the driver.
We continue to follow our feelings. storage_probe (), 972 to 975 rows, and a series of functions named init _ * are called at the moment. Here some lock mechanisms and wait mechanisms are involved, however, it is only initialization, but it is ignored for the time being. It will be explained later, but remember that each row o
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
How does a USB flash drive become antivirus? _ Analysis of USB flash drive antivirus skills
USB flash drives are widely used, but there are not many computer viruses in the USB flash drives. Many people think that the computer will be poisoned, but they often ignore the virus in the
USB charging and plugging and USB debugging connect prompt
Find the code about USB debug enable in packages/apps/settings/src/COM/Android/settings/developmentsettings. Java:
Java code
Settings. Secure. putint (getcontentresolver (), settings. Secure. adb_enabled, 0 );
In this file, the value is saved to the settings database according to user settings. Action
Some basic concepts of USB
1. pipe is a data transmission model between the host and the device endpoint. There are two types of pipelines: unformattedStream pipe and message pipe ). Any USB device exists once powered onAn information pipe, that is, the default control pipe. The USB Host obtains the description, configuration, and status of the device through t
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 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.