cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ottob
Explorer
Explorer
2,608 Views
Registered: ‎05-26-2017

Problems with UBIFS on ZynqMP+ using Petalinux 2017.1

Hello All ! 

 

I'm wondering if anyone else is seeing problems with NAND & UBIFS on the ZynqMP+ platform. I try real basic commands which works well on our other (iMX) platform. 

 

ubiformat /dev/mtd1 -y

ubiattach -p /dev/mtd1

ubimkvol /dev/ubi0 -N config_data -s 64MiB

mount -t ubifs /dev/ubi0_0 /mnt/

 

Everything looks good except for the mounting which dies with

 

[ 1837.858127] ubifs_scan_a_node: UBIFS DBG scan (pid 1866): scanning master node at LEB 1:0

[ 1837.866269] get_master_node: UBIFS DBG rcvry (pid 1866): found a master node at 1:0

[ 1837.873903] get_master_node: UBIFS DBG rcvry (pid 1866): found corruption at 1:2048

[ 1837.881565] UBIFS error (ubi0:0 pid 1866): ubifs_recover_master_node: failed to recover master node

[ 1837.890649] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" stops

[ 1837.897086] ubi_close_volume: UBI DBG gen (pid 1866): close device 0, volume 0, mode 2

[ 1837.904980] ubi_close_volume: UBI DBG gen (pid 1866): close device 0, volume 0, mode 1

mount: mounting /dev/ubi0_0 on /mnt/ failed: Invalid argument

 

nandtest looks ok

root@plnx_aarch64:~# nandtest /dev/mtd1

ECC corrections: 2483456

ECC failures   : 0

Bad blocks     : 0

BBT blocks     : 0

061c0000: reading (4 of 4)...

256 bit(s) ECC corrected at 061c0000

07fe0000: checking...of 4)...

Finished pass 1 successfully

 

We are using a DDR / NAND combo device from Micron - MT29UZ4B8DZZHGPB

 

Any thoughts on what this could be ? 

 

Thanks in advance,

 

/Otto

0 Kudos
3 Replies
ottob
Explorer
Explorer
2,579 Views
Registered: ‎05-26-2017

0 Kudos
1,712 Views
Registered: ‎09-07-2016

Hi, Otto

 

I also run into this issue, but my mtd is nor-flash on zcu102 rev 1.0, how can you use nand drivers?

 

Cheers,

Zumeng

 

 

0 Kudos
ottob
Explorer
Explorer
1,695 Views
Registered: ‎05-26-2017

Hi Zumeng !

 

You cant. It needs to be the driver for your flash device. You might want to try disabling DMA in the Flash controller, if possible. That tends to create problems 

 

/Otto

0 Kudos