ubifs: u-boot vs barebox

Nataraj S Narayan natarajsn at gmail.com
Tue Aug 23 02:06:37 EDT 2011


Hi Sascha

I am able to boot a ubifs filesystem in barebox, after writing the
file system in u-boot. But the reverse doesn't work.

After a

ubiattach /dev/nand0.data;
ubimkvol /dev/ubi0 data 0
tftp rootfs.ubifs.nat /dev/ubi0.data

in barebox,  I replaced barebox with u-boot, keeping the same kernel
and FS, which of course didn't  boot giving me:-

 corrupted PEBs are: 0 1 2 3 4 5 6 7 8 9 10 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 43
UBIFS error (pid 1): ubifs_get_sb: cannot open "ubi0:data", error -19



U-Boot> ubi part data

BI: fixable bit-flip detected at PEB 1514
UBI: fixable bit-flip detected at PEB 1515
UBI: fixable bit-flip detected at PEB 1516
UBI: fixable bit-flip detected at PEB 1517
UBI: fixable bit-flip detected at PEB 1518
UBI: fixable bit-flip detected at PEB 1519
UBI: fixable bit-flip detected at PEB 1520
UBI: fixable bit-flip detected at PEB 1521
UBI: fixable bit-flip detected at PEB 1522
UBI: fixable bit-flip detected at PEB 1523
UBI: fixable bit-flip detected at PEB 1524
UBI: fixable bit-flip detected at PEB 1525
UBI: fixable bit-flip detected at PEB 1526
UBI: fixable bit-flip detected at PEB 1527
UBI: fixable bit-flip detected at PEB 1528
UBI: fixable bit-flip detected at PEB 1529
UBI: fixable bit-flip detected at PEB 1530
UBI: fixable bit-flip detected at PEB 1531
UBI: fixable bit-flip detected at PEB 1532
UBI: fixable bit-flip detected at PEB 1533
UBI: fixable bit-flip detected at PEB 1534
UBI: fixable bit-flip detected at PEB 1535
UBI: fixable bit-flip detected at PEB 1536
UBI: fixable bit-flip detected at PEB 1537
UBI: fixable bit-flip detected at PEB 1538
UBI: fixable bit-flip detected at PEB 1539
UBI: fixable bit-flip detected at PEB 1540
UBI: fixable bit-flip detected at PEB 1541
UBI: fixable bit-flip detected at PEB 1542
UBI: fixable bit-flip detected at PEB 1543
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
UBI init error -22
exit not allowed from main input shell.
Clancor> <INTERRUPT>


Am I missing any steps? I wrote the FS using  the following in u-boot.

tftp 0x21400000 rootfs.ubifs ;ubi write 0x21400000 data 0x1b90000


regards

Nataraj



More information about the barebox mailing list