移植UBI的5号错误————UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB 0:512, written 0 byte
来源:互联网 发布:赛迦奥特曼大电影知版 编辑:程序博客网 时间:2024/05/13 21:42
1、5号错误
UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB 0:512, written 0 bytes
查阅include/asm-generic/error.h发现5号错误的定义为“#define EIO 5 /* I/O error */”。在http://www.linux-mtd.infradead.org/faq/ubi.html#L_subpage_verify_fail有对这个问题的专门描述:
I get "ubi_io_write: error -5 while writing 512 bytes to PEB 5:512"
If you have a 2048 bytes per NAND page device, and have CONFIG_MTD_NAND_VERIFY_WRITE enabled in your kernel, you will need to turn it off. The code does not currently (as of 2.6.26) perform verification of sub-page writes correctly. As UBI is one of the few users of sub-page writes, not much else seems to be affected by this bug.
虽然是说Linux内核配置,可是u-boot中同样有CONFIG_MTD_NAND_VERIFY_WRITE ,在smartarm3250.h中将这个宏注释掉,问题解决。要在内核中把MTD_NAND_VERIFY_WRITE这个宏关闭
Device Drivers --->
<*> Memory Technology Device (MTD) support --->
<*> NAND Device Support --->
[ ] Verify NAND page writes
2、19号错误
内核找不到分区,也就是你的bootargs变量设置错误,ubi.mtd=(你要烧到的分区)
0 0
- 移植UBI的5号错误————UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB 0:512, written 0 byte
- UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB 60:512, wri
- ubifs烧写遇到《UBI error: ubi_io_read: error -1 while reading 64 bytes from PEB》
- Uboot UBI 的移植
- Uboot UBI 的移植
- ubi移植
- UBI error: process_eb: bad image sequence number错误解决
- UBIFS error(pid 0):ubifs_get_sb:cannot open "ubi:nrootfs",error -19
- nand ubi - 5 kernel和ubi
- UBI
- UBI
- 一种新型FLASH文件系统UBI/UBIFS—-很不错的开源项目
- u-boot添加自己的命令—UBI镜像还原工具开发
- UBI error: ubi_create_volume: cannot create volume 1, error -28
- DM3730与fpga使用GPMC总线通讯出现UBI error错误之原因
- Error while writing to "/var/log/procmail.log"
- zlib error while attempting compression: "Ran out of output buffer for writing compressed bytes."
- zlib error while attempting compression: "Ran out of output buffer for writing compressed bytes."
- spring 入门01--IoC与DI
- SQL题
- C#实现对象映射
- 堆排序heapSort java实现
- CDOJ 1215--Secrete Master Plan【水题】
- 移植UBI的5号错误————UBI error: ubi_io_write: error -5 while writing 512 bytes to PEB 0:512, written 0 byte
- 命名空间namespace
- Please,take away my bad luck
- hibernate注解方式来处理映射关系
- 【LEETCODE】111-Minimum Depth of Binary Tree
- UISlider/UISegmentedControl/UISetpper/UISwitch/UIProgressView/UIPageControl/UIImageView
- 隐写术总结
- 未来计算机及外设畅想
- 半自动抓取知乎用户的微博地址(python)(2)