Re: mtd utilities work but ubi utilities do not?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



David, thank you for that information. However the following sequence of commands produces an uncorrectable ECC error where I think it shouldn't:

command sequence:
flash_erase /dev/mtd7 0 2048
ubiattach -p /dev/mtd7
ubidetach -p /dev/mtd7
ubiattach -p /dev/mtd7

dmesg:
[  362.807750] ubi0 warning: ubi_io_read: error -77 (ECC error) while reading 64 bytes from PEB 2044:0, read only 64 bytes, retry
[  362.808328] __nand_correct_data: uncorrectable ECC error
...

This error is present for every PEB in the ubi device.

Can you confirm that this should work?

________________________________________
From: David Oberhollenzer <david.oberhollenzer@xxxxxxxxxxxxx>
Sent: Wednesday, February 13, 2019 7:41 PM
To: Matt Schepers; linux-mtd@xxxxxxxxxxxxxxxxxxx
Subject: Re: mtd utilities work but ubi utilities do not?

Hello,


there are unfortunately some historical obscurities hidden in the tooling and some things might
not be too obvious at first.

You don't need to use ubiformat, unless you want to flash an existing UBI image (generated
by ubinize). The ubiformat also tool won't generate a warning or an error if you don't specify
an image file and simply march on.


The work flow for what you want to do would look something like this:

# flash_erase /dev/mtd7 0 0
# ubiattach -p /dev/mtd7
# ubimkvol /dev/ubi0 -s 100MiB -N rootfs_data
# ubimkvol /dev/ubi0 -s 40MiB -N config_data
# ....


Sincerely,

David


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux