UBIFS corruptions on NOR-Flash
Han Xu
xhnjupt at gmail.com
Thu Oct 22 15:43:10 PDT 2015
Sorry, my mistake. I thought Roshni was testing the SPI-NOR via ECSPI
interface. For the QSPI flash chips we usually mount the UBIFS on it
and run bonnie++ test. I don't have any Vybrid board but I have i.MX
platform which use quite similar QSPI IP, I run the ubi-test on
i.MX6SX with s25fl128s chip but didn't see the issue you met.
I suggest you ignore the UBI layer first and just full fill the flash
with random data and dump the data with dd command for comparison, to
check the data integrity on driver layer.
root at imx_mfgtools:~/test/ubitest# ./runtests.sh /dev/ubi0
Running mkvol_basic /dev/ubi0
Running mkvol_bad /dev/ubi0
UBI error: verify_mkvol_req: bad volume creation request
Volume creation request dump:
vol_id -2
alignment 1
bytes 16482816
vol_type 3
name_len 22
1st 16 characters of name: mkvol_bad:test_m
UBI error: verify_mkvol_req: bad volume creation request
Volume creation request dump:
vol_id 128
alignment 1
bytes 16482816
vol_type 3
name_len 22
1st 16 characters of name: mkvol_bad:test_m
UBI error: verify_mkvol_req: bad volume creation request
Volume creation request dump:
vol_id 0
alignment 0
bytes 16482816
vol_type 3
name_len 22
1st 16 characters of name: mkvol_bad:test_m
UBI error: verify_mkvol_req: bad volume creation request
Volume creation request dump:
vol_id 0
alignment -1
bytes 16482816
vol_type 3
name_len 22
1st 16 characters of name: mkvol_bad:test_m
UBI error: verify_mkvol_req: bad volume creation request
Volume creation request dump:
vol_id 0
alignment 65409
bytes 16482816
vol_type 3
name_len 22
1st 16 characters of name: mkvol_bad:test_m
UBI error: verify_mkvol_req: bad volume creation request
Volume creation request dump:
vol_id 0
alignment 1
bytes -1
vol_type 3
name_len 22
1st 16 characters of name: mkvol_bad:test_m
UBI error: verify_mkvol_req: bad volume creation request
Volume creation request dump:
vol_id 0
alignment 1
bytes 0
vol_type 3
name_len 22
1st 16 characters of name: mkvol_bad:test_m
UBI error: ubi_create_volume: not enough PEBs, only 252 available
UBI error: ubi_create_volume: cannot create volume 0, error -28
UBI error: ubi_create_volume: not enough PEBs, only 252 available
UBI error: ubi_create_volume: cannot create volume 0, error -28
UBI error: verify_mkvol_req: bad volume creation request
Volume creation request dump:
vol_id 0
alignment 1
bytes 65408
vol_type 7
name_len 22
1st 16 characters of name: mkvol_bad:test_m
UBI error: ubi_create_volume: volume 0 already exists
UBI error: ubi_create_volume: cannot create volume 0, error -17
UBI error: ubi_create_volume: volume "mkvol_bad:test_mkvol()" exists (ID 0)
UBI error: ubi_create_volume: cannot create volume 1, error -17
UBI error: ubi_create_volume: volume "mkvol_bad:test_mkvol()" exists (ID 0)
UBI error: ubi_create_volume: cannot create volume 1, error -17
UBI error: ubi_open_volume: cannot open device 0, volume 128, error -22
UBI error: ubi_open_volume: cannot open device 0, volume -1, error -22
UBI error: ubi_open_volume: cannot open device 0, volume 128, error -22
UBI error: ubi_open_volume: cannot open device 0, volume 0, error -19
UBI error: ubi_open_volume: cannot open device 0, volume 0, error -19
Running mkvol_paral /dev/ubi0
Running rsvol /dev/ubi0
Running io_basic /dev/ubi0
Running io_read /dev/ubi0
Running io_update /dev/ubi0
Running io_paral /dev/ubi0
On Thu, Oct 15, 2015 at 2:39 AM, Richard Weinberger
<richard.weinberger at gmail.com> wrote:
> On Thu, Oct 15, 2015 at 4:20 AM, Han Xu <xhnjupt at gmail.com> wrote:
>> I didn't test UBI on our board since we mount 4M SPI-NOR on board
>> which is not large enough to test UBI.
>
> So, the driver is completely untested wrt. UBI.
> Maybe UBI uncovers an issue. Wouldn't be
> the first time...
>
> --
> Thanks,
> //richard
More information about the linux-mtd
mailing list