Linux kernel configuration support for USB disk (for mini2440)

Publisher:快乐奇迹Latest update time:2020-06-28 Source: eefocusKeywords:linux Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Configuring USB

Because the USB flash drive uses SCSI commands, we first add SCSI support. In the Device Drivers menu, select SCSI device support, press Enter to enter the menu that appears, press the spacebar to select the option – SCSI device support, then enter and select SCSI disk support, return to the Device Drivers menu, select USB support, press Enter to enter the USB support menu, find and select "<*> USB Mass Storage support", in addition, most of the current USB flash drives and other mobile storage devices use FAT/FAT32 format, so we also need to add support for the FAT32 file system, select the following menu items in the kernel configuration main menu:


File systems —>

DOS/FAT/NT Filesystems —>

Enter the FAT32 file system configuration submenu and select: MSDOS fs support


In addition, in order to support Chinese and English encodings, select "-- Native language support —>" under the "File systems" menu and enter. Here, we need to select the following encodings to support:

<> Codepage 437 (United States, Canada)

<> NLS ISO 8859-1 (Latin 1; Western European Languages)

<> NLS UTF-8

Exit to save the above configuration.


Execute make zImage in the kernel source code root directory to burn the generated new kernel into the development board. Do not insert the USB flash drive yet (this is done to see the printed information when it is inserted). After the system starts, enter the command line console. At this time, you can see the USB flash drive information:

insert image description here

Manually mount the USB drive

1. Create the /mnt/udisk directory

#mkdir /mnt/udisk

2. Mount the USB drive to the /mnt/udisk directory

#mount /etc/sda4 /mnt/udisk


View the contents of the USB drive:


#cd /mnt/udisk

#ls

insert image description here

Keywords:linux Reference address:Linux kernel configuration support for USB disk (for mini2440)

Previous article:Driver Development HelloWorld (for mini2440)
Next article:Mini2440 starts the file system from NFS

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号