2012-03-29 2 views
1

임베디드 리눅스를 실행하는 SAM9 기반 보드가 있습니다.UBIFS 부트 오류

나는 JFFS2 파일 시스템을 가지고 있었고 이제는 UBIFS로 옮길 생각을하고 있습니다.

내 보드에 사용중인 buildroot 패키지의 make menuconfig에서 UBIFS를 대상 파일 시스템으로 사용할 수있게했습니다.

rootfs.arm.ubifs 파일을 생성했습니다.이 파일은 .jffs2 파일과 동일한 방법으로 bootloader의 nandwrite 유틸리티를 사용하여 보드에서 플래시했습니다.

은 또한에 bootargs를 변경 :

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

하지만 보드 부팅 다음과 같은 오류 받고 있어요 : 이것은 추측

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   

답변

3

,하지만 당신에게 ubinize했다 rootfs를 원시 NAND에 플래시하기 전에? http://www.linux-mtd.infradead.org/doc/ubifs.html#L_usptools

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. 
+0

감사에서

! 그게 효과가 :) :) 나는 rootfs를 ubinized하고 낸드 플래시 그것을 작동했습니다. – androidFan