public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] UBIFS Problems with U-boot 2018.1 & 4.14 Linux
@ 2018-05-17 21:12 Otto Blom
  2018-05-18  8:44 ` Heiko Schocher
  0 siblings, 1 reply; 12+ messages in thread
From: Otto Blom @ 2018-05-17 21:12 UTC (permalink / raw)
  To: u-boot

Hi There !

I'm seeing a strange problem with u-boot 2018.1 and Linux 4.14 (Xilinx
Petalinux 2018.1).
If I write a ubifs image to flash using Linux 4.9 I can mount and read
files from the image
in both u-boot 2018.1 and Linux 4.14. However as soon as I write a new
file to the file-system
from Linux, U-boot can no longer read the file. The filesystem still
mounts, but when
I attempt to read the file I get the following error

UBIFS error (ubi0:0 pid 0): read_block: bad data node (block 661, inode 5763)
        magic          0x6101831
        crc            0x8e6aff1a
        node_type      1 (data node)
        group_type     0 (no node group)
        sqnum          63819
        len            3075
        key            (5763, data, 661)
        size           4096
        compr_typ      1
        data size      3027
        data:
UBIFS error (ubi0:0 pid 0): do_readpage: cannot read page 661 of inode
5763, error -22

The file can still be read correctly from Linux, leading me to believe
there is some form
of incompatibility going on. I noticed that the ubifs version number
was bumped from 4 to 5
in this commit

http://git.infradead.org/linux-ubifs.git/commit/fc4b891bbefa73b496bb44b076bb5274b6bfba68

Both Linux 4.9 and U-boot 18.1 still have version 4. Could that have
something do to with it ?

I'm running on a ZynqMP platform with Micron Flash (On-Die ECC)

Thanks in advance,

/Otto

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-12-20 20:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-17 21:12 [U-Boot] UBIFS Problems with U-boot 2018.1 & 4.14 Linux Otto Blom
2018-05-18  8:44 ` Heiko Schocher
2018-05-18  9:21   ` Richard Weinberger
2018-05-18 21:02     ` Otto Blom
2018-05-18 21:20       ` Richard Weinberger
2018-05-18 23:56         ` Otto Blom
2018-05-19  8:37           ` Richard Weinberger
2018-05-22  1:30             ` Otto Blom
2018-05-22  6:24               ` Richard Weinberger
2018-05-22  9:31                 ` Heiko Schocher
2018-05-22 17:23                   ` Otto Blom
2018-12-20 20:12                     ` jbd1986

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox