This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ubi文件系统挂载失败



你好,

开发包是:DVRRDK_04.00.00.03

内核kernel的配置是ti8168_evm_defconfig

制作ubi根文件系统的命令是这样:

mkfs.ubifs -r $(TARGET_FS) -F -o ubifs.img -m 2048 -e 126976 -c 3761

ubinize -o $(TFTP_HOME)/binary/evm/ubifs.img -m 2048 -p 128KiB -s 512 -O 2048 $(dvr_rdk_PATH)/makerules/ubinize.cfg

ubinize.cfg的内容是


[ubifs]                                                                                                                                                                 
 mode=ubi                                                                                                                                                                
 image=ubifs.img                                                                                                                                                         
 vol_id=0                                                                                                                                                                
 vol_size=192MiB                                                                                                                                                         
 vol_type=dynamic                                                                                                                                                        
 vol_name=rootfs                                                                                                                                                         
 vol_flags=autoresize 

启动内核之后发现没有列出nand分区信息(空),发现omap2-nand 初始化失败,提示如下:




NOR:Can't request GPMC CS
.......
omap2-nand driver initalizing
UBI error: ubi_init: UBI error:cannot initialize UBI,error -19






第一个提示nor存储器,应该没有关系吧?都没有这个硬件。 第二个错误的原因是什么呢?就算了ubi镜像没做好,没烧好,这个初始化应该也能通过?

-----------------------

通过调试打印,知道是nand_scan_indent函数失败了,ti8168_dvr_config就成功了,但是我对比下两个配置文件,mtd部分的是一致的