-2.6.22/drivers # cd usb/
Lfg1:/usr/src/linux-2.6.22/drivers/usb # ls
Kconfig Makefile README atm class core gadget host image misc mon
Serial storage usb-skeleton.c
Note that each directory contains a Kconfig file and Makefile, which is very important. We will introduce it later.
Our story is based on the drivers/usb
Create a USB flash drive and a UEFI boot drive for Chinese Cabbage
Make a USB flash drive for UEFI.
Download and install the brand new cabbage UEFI Version 7.3 from the official Chinese cabbage website.
Insert the USB fl
do not drive, simple rough with Raspberry Pi drive USB printerAdmin April 14, 2015 5 Comments
Many articles on the web are how to use raspberry sent to do a universal print server, but in many scenarios, the configuration cups what is really their own zuo of the good way to die, all kinds of Linux under the driver configuration to make blood vomit. and
three" as in the program, reset, and then get the largest LUN, this step is not necessary, and then we send a write (10) command to the device, note that this is an out transaction, so, cbw_flags= 0x00 instead of 0x80 as before, after issuing the write (10) command, we also send the data to the device to be written, 64 bytes each, a sector 512 bytes need to start 8 out transactions, this work and function putdata complete, Each time the 64 bytes sent we write to the 0--63, in the program, we wr
The first step is to view all the current disk information and find the device ID of the USB disk. For example:/dev/sdb specific operation method: (1) enter the sudofdisk-l command in the terminal and press enter to view all current disks. (2) Check the USB flash disk or the disk information you need to search for. You can exclude it by knowing the disk size. After viewing this information, you may see the
For a USB-enabled motherboard to be installed on a USB flash drive, you must first prepare a hard drive with a system installed to complete the following steps.
1
1, using BOOTICE.EXE to write to the hard disk master boot record as Grubdos, the startup file name is GRLDR
2
2, download a U disk boot tool, your U d
will have a different ending. When the birds choose to fasten gold on the wings, it means that it gives up its wings and fly high; choosing cloud-sky fight means giving up the burden of being out of the body.
So here, we need to carefully check the path we have chosen. Obviously, we have already said that for a USB flash drive, spec specifies that it belongs to the Bulk-only transmission mode, that is, it
high; choosing cloud-sky fight means giving up the burden of being out of the body.
So here, we need to carefully check the path we have chosen. Obviously, we have already said that for a USB flash drive, spec specifies that it belongs to the bulk-only transmission mode, that is, its US-> protocol is us_pr_bulk. This is just determined in get_device_info. Therefore, in the entire switch section, we only ex
We followed storage_probe () almost completely, and it seems that everything is about to end, but do you think you haven't understood how the device works so far? USB flash disks, not just USB devices or disks, must comply with the USB massstorage protocol and...
We followed storage_probe () almost completely, and it seems that everything is about to end, but do
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,
The following describes the usb_stor_control_thread () function. The wake-up command is the up ( amp; (us- gt; sema) from queuecommand, and the us- gt; 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 ()
The following describes the usb_stor_control_thread () function. What wakes up is the up ( (us-> sema) from the queuecommand, and us-> sulfate is assi
(WinRAR v3.5, winmd5 v1.2 );4. Disk tools (winpm and virtual drive manager );5. Chinese Input Method (polar Chinese, Pinyin plus );6. Windows attachments are retained (calculator, drawing, and notepad ).1. After micro-winpe is started, see:
2. After the dwarf dos toolbox is started, the menu is as follows:
[
The boot disk uses a 2 GB Kingston flash drive. I pas
Now that you know how to write the module, writing the device driver is naturally not difficult. I believe that no one who writes a module will find it difficult to write a device driver. Really, I'm not telling you the truth. writing a driver is not difficult. you can say with confidence that you can already write a device drive... Info nbsp
Now that you know how to write the module, writing the device driver is naturally not difficult. I believe th
Mount the USB flash drive another day and mount the dvd and mobile hard drive. 1. before inserting the USB flash drive, # cat/proc/tartitions2, insert the USB flash drive, # cat/proc/ta
1. Right-click "computer"-"device manager" on the desktop on the computer, and click "menu bar-> view-> sort devices by connection" on the displayed page:2. As shown in the figure above, the device should be a usb storage device, and then go to the directory:, find a folder starting with usb Stor, copy and download the folder, and paste it on the desktop, as shown in the figure
2. The CD-ROM cannot be mounted while the USB drive is installed. Tip Error your installation CD-ROM couldn ' t be mounted.3. After Google search, refer to foreign methods.4. After some groping. Get the solution, the native test succeeds. As follows:Install the kali2.0 process, the installation interface (that is, select the language, set the user name password, partition and other boot interface) The penul
Now that you know how to write the module, writing the device driver is naturally not difficult. I believe that no one who writes a module will find it difficult to write a device driver.Really, it's not difficult for me to write a driver. You can say with confidence that you can write a device driver. Yes, that's right. "Rejoice, so confident ."As mentioned above, every module starts with module_init and ends with module_exit. Let's take a look at the U dri
We followed storage_probe () almost completely, and it seems that everything is about to end, but do you think you haven't understood how the device works so far? USB flash drives are not only USB devices but also "disks". They also need to comply with the USB Mass Storage protocol and Transparent SCSI specifications. From the driver's perspective, it is similar
Get what we need from the two tables, and then the following code is expanded around the two pointers. (Unusual_dev and id) continue to read get_device_info ().
Row 3: Record unusual_dev in us. There is also such a member in us. In this way, it will be easy to use after recording. Because us runs through the whole story, it is very convenient to access its members and can be accessed at any time, however, the us_unusual_dev_list and storage_usb_ids tables will not be reused this time. Because w
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.