PC ubuntu添加yaffs2支持+nandflash模拟
来源:互联网 发布:短篇小说 知乎 编辑:程序博客网 时间:2024/06/08 06:57
http://comments.gmane.org/gmane.linux.file-systems.yaffs/3522
Setup environment
1 . Install mtd tools
sudo apt-get install mtd-utils
2. Install “git” tool for download
sudo apt-get install git-core
3. Download newest yaffs2 filesystem code
sudo git clone git://www.aleph1.co.uk/yaffs2
Config yaffs2 filesystem
1. Generate yaffs.ko
cd xxx/yaffs2
cp ./ yportenv_multi.h ./yportenv.h
sudo make modules
These commands will generate yaffs2multi.ko
2. Insmod needed ko files
sudo modprobe mtd
sudo modprobe mtdchar
sudo modprobe mtdblock
cd xxx/yaffs2
insmod ./yaffs2multi.ko
Then, use “cat /proc/filesystem “, you will see that “yaffs2” file system is listed in the supported filesystem.
3. Use nandsim to generate a simulated nand flash device
sudo modprobe nandsim first_id_byte=0x20 second_id_byte=0xa2 third_id_byte=0x00 fourth_id_byte=0x15
Generate a yaffs2image using mkyaffs2image
1. Create rootfs
Create “rootfs” dir anywhere, and add bin/, etc/, lib/, root/, tmp/ subdirectory, “hello.txt” file.
2. Generate
xxx/mkyaffs2image xxx/rootfs rootfs.image
The rootfs.image is needed to write to nand flash.
Mount yaffs2 image to nand flash
1. Erase flash
sudo flash_eraseall /dev/mtd0
2. Write image to flash
nandwrite -a -o /dev/mtd0 rootfs.image
3. Mount
Create xxx/yaffs2_mount
mount -t yaffs2 /dev/mtdblock0 xxx/yaffs2
cd xxx/yaffs2
You will see bin/, etc/, lib/, root/, tmp, and hello.txt, which are created when generating yaffs2 image file.
- PC ubuntu添加yaffs2支持+nandflash模拟
- ppcboot添加nandflash支持
- 为内核添加yaffs2文件系统支持
- 在内核里添加yaffs2的支持
- 内核添加对yaffs2文件系统的支持
- nandflash yaffs2 oob
- linux内核添加对YAFFS2文件系统的支持
- U-Boot2010.06移植(2440)-----添加支持YAFFS2文件系统
- u-boot移植(六)添加nandflash支持
- 第二部分 s3c2440 移植linux内核 添加网卡支持 yaffs2文件系统支持
- ucLinux支持yaffs2文件系统
- ubuntu 中添加中文支持
- ubuntu 1404 添加中文支持
- ffs2官网-源码下载和向内核添加yaffs2文件系统支持
- linux-3.4.6内核添加yaffs2文件系统支持后编译出错
- yaffs2 支持linux内核操作
- uboot 中支持yaffs2文件系统
- Linux内核移植--YAFFS2支持
- tgcopter v3.x开发记录---stm32f4与arduino通过SPI的DMA通信
- put_user & get_user
- 金融总结十 上交所和深交所的集合竞价
- HDU 2795
- ZigBee属性表-中文解释
- PC ubuntu添加yaffs2支持+nandflash模拟
- 选择排序
- 三种客户端访问wcf服务端的方法 C#
- Min and Max Timing Paths--时序路径
- 一道月薪3W的java面试题
- 工作中用到的SQL语句
- 设置SOCKET的发送与接收缓冲区
- 深度分析Android out of memory问题
- 管理是什么——浅谈开发经理的管理