Showing results for 
Show  only  | Search instead for 
Did you mean: 
Registered: ‎09-07-2016

2017.4 SDK UBIFS mout failed on qspi-nor flash in zcu102 rev 1.0 and 1.1

Hi expert,


At first, JFFS2 works well on this qspi-nor-flash

Then UBIFS failed as follows?


root@xilinx-zynqmp:~# flash_erase /dev/mtd4 0 0
Erasing 128 Kibyte @ 34a0000 -- 58 % complete FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
Erasing 128 Kibyte @ 59c0000 -- 100 % complete
root@xilinx-zynqmp:~# ubiattach /dev/ubi_ctrl -m 4
ubi0: attaching mtd4
ubi0: scanning is finished
ubi0: empty MTD device detected
ubi0: attached mtd4 (name "qspi-rootfs", size 89 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 130944 bytes
ubi0: min./max. I/O unit sizes: 1/512, sub-page size 1
ubi0: VID header offset: 64 (aligned 64), data offset: 128
ubi0: good PEBs: 719, bad PEBs: 0, corrupted PEBs: 0
ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 0/0, WL threshold: 4096, image sequence number: 3570212078
ubi0: available PEBs: 715, total reserved PEBs: 4, PEBs reserved for bad PEB handling: 0
ubi0: background thread "ubi_bgt0d" started, PID 925
UBI device number 0, total 719 LEBs (94148736 bytes, 89.8 MiB), available 715 LEBs (93624960 bytes, 89.3 MiB), LEB size 130944 bytes (127.9 KiB)
root@xilinx-zynqmp:~# ubimkvol /dev/ubi0 -N root -s 93624960
Volume ID 0, size 715 LEBs (93624960 bytes, 89.3 MiB), LEB size 130944 bytes (127.9 KiB), dynamic, name "root", alignment 1
root@xilinx-zynqmp:~# mount -t ubifs ubi0:root /media
UBIFS (ubi0:0): default file-system created
UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 931
UBIFS error (ubi0:0 pid 929): ubifs_scan: garbage
UBIFS error (ubi0:0 pid 929): ubifs_recover_master_node: failed to recover master node
UBIFS (ubi0:0): background thread "ubifs_bgt0_0" stops
mount: /media: wrong fs type, bad option, bad superblock on ubi0:root, missing codepage or helper program, or other error.


Any idea?




0 Kudos
2 Replies
Registered: ‎09-14-2016



Maybe try 


root@xilinx-zynqmp:~# mount -t ubifs /dev/ubi4_0 /media



instead of


root@xilinx-zynqmp:~# mount -t ubifs ubi0:root /media




0 Kudos
Registered: ‎09-07-2016

There is no differences between these two commands, and I think it should be /dev/ubi0_0, it's the only one.

Still the same error.

0 Kudos