Hello,
I am using 1GB nand flash in my am335x evm.I am able to boot my u-boot and uImage fron nand boot. while conducting the ubifs link it got error and it is not mounting to my ubi fileystem. I have applied 16-bit ecc in u-boot then only it is taking and booting from default nand.
Find my nand flash parameters and steps followed for creating the ubi.img. How o calculate PEB and LEB others.
Minimum input/output unit size : 2048 bytes
Sub-page size : 512 bytes
Eraseblock size : 131072 bytes, 128.0 KiB
Amount of eraseblocks : 4036 (529006592 bytes, 504.5 MiB)
OOB size : 128 bytes
Booting Error:
[ 3.746175] UBI error: ubi_io_read: -74 (ECC error) while reading 64 bytes from PEB 3:0, read 64 bytes
[ 3.759517] UBI error: ubi_io_read: -74 (ECC error) while reading 512 bytes from PEB 3:2048, read 512 bytes
I have given the commands for ubifs
$ mkfs.ubifs -q -r root-fs/ -m 2048 -e 129024 -c 2047 -o ubifs.img
$ ubinize -o ubi.img -m 2048 -p 128KiB -s 512 ubinize.cfg
[ubifs]
mode=ubi
image=ubifs.img
vol_id=0
vol_size=200MiB
vol_type=dynamic
vol_name=rootfs
vol_flags=autoresize
Is there any method to fix my nand booting issue????.
Regards
Anil