For details about how to mount the jffs2 File System on the PC-Linux general technology-Linux technology and application information, see the following. I. Purpose
1. More convenient modification of the jffs2 file, for example, modifying the jffs2 file storing the setting information
I. Create a jffs2 File
1. Commands
Mkfs. jffs2-d dir_name-o image_name
Mkfs. jffs2 is a tool that can be obtained from 84 ftp
2. Example:
Cd/opt/qtopia-output
Mkfs. jffs2-d arm/-o/tftpboot/xieyan_080114_1.jffs2
2. Mount the jffs2 file on the PC (normal on suse9)
1. Insert related modules into the kernel
Modprobe mtdcore
Modprobe jffs2
Modprobe mtdram total_size = 100000 erase_size = 256
Modprobe mtdchar
Modprobe mtdblock
The above total_size specifies the size of the mount file, in kb. This item must be set
Because if the default value is used (the default value is small), The rootfs and Qtopia packages cannot be mounted.
2. Check whether mtd is normal.
(1) Check whether/dev/mtd0 and/dev/mtdblock0 are generated.
(2) display mtd device information
Cat/proc/mtd
3. Mount to the corresponding directory
Mkdir/mnt/test/
Cp jffs2 file name/dev/mtd0
Mount-t jffs2/dev/mtdblock0/mnt/test/
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service