首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >UBIFS启动错误

UBIFS启动错误
EN

Stack Overflow用户
提问于 2012-03-29 17:13:34
回答 1查看 6.4K关注 0票数 1

我有一个运行嵌入式linux的基于SAM9的主板。

我有一个JFFS2文件系统,现在正在考虑迁移到UBIFS。

我在我的主板上使用的buildroot包的make menuconfig中启用了UBIFS作为目标文件系统。

我生成了rootfs.arm.ubifs文件,我使用引导加载程序的nandwrite实用程序将其闪存到我的主板上,方法与我用于.jffs2文件的方式相同。

我还将bootargs更改为:

setenv bootargs 'console=ttyS0,115200 rw ubi.mtd=1,2048 rootfstype=ubifs root=ubi0:rootfs'

但是我得到了以下启动主板的错误:

代码语言:javascript
复制
Creating 2 MTD partitions on "atmel_nand":                                                                                                       
0x000000000000-0x000000400000 : "Kernel"                                                                                                         
0x000000400000-0x000010000000 : "Data"                                                                                                           
UBI: attaching mtd1 to ubi0                                                                                                                      
UBI: physical eraseblock size:   131072 bytes (128 KiB)                                                                                          
UBI: logical eraseblock size:    126976 bytes                                                                                                    
UBI: smallest flash I/O unit:    2048                                                                                                            
UBI: sub-page size:              512                                                                                                             
UBI: VID header offset:          2048 (aligned 2048)                                                                                             
UBI: data offset:                4096                                                                                                            
UBI warning: ubi_scan: 276 PEBs are corrupted                                                                                                    
corrupted PEBs are: 0 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 517
UBI error: ubi_read_volume_table: the layout volume was not found                                                                                
UBI error: ubi_init: cannot attach mtd1                                                                                                          
UBI error: ubi_init: UBI error: cannot initialize UBI, error -22        
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-04-04 23:54:35

这只是一个猜测,但您是否在将rootfs闪存到原始NAND之前使用了它?

来自http://www.linux-mtd.infradead.org/doc/ubifs.html#L_usptools

代码语言:javascript
复制
The images produced by mkfs.ubifs may be written to UBI volumes using 
ubiupdatevol or may be further fed to the ubinize tool to create an UBI 
image which may be put to the raw flash.
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/9922368

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档