meta-freescale-3rdparty icon indicating copy to clipboard operation
meta-freescale-3rdparty copied to clipboard

nitrogen6x: Can't write on U-Boot environment

Open Ossanes opened this issue 2 years ago • 3 comments

Image: core-image-base Kernel version: 5.10.104+gbb58f0eeb397 U-Boot Boundary version: v2020.10+gitAUTOINC+3d5e7f6023 Release: Master

I'm using fw_printenv (from u-boot-fw-utils) to read the environment.

fw_env.config: /dev/mtd1 0x00000 0x2000 0x1000 2

When I write any variable to the env using fw_setenv, I can't read it anymore.

root@nitrogen6x:/# fw_printenv
Cannot read environment, using default
Cannot read default environment from file

@gibsson

Ossanes avatar Apr 29 '22 18:04 Ossanes

@chrisdimich could you look into that, is it ok on our honister image? Thanks

gibsson avatar Apr 29 '22 18:04 gibsson

News?

otavio avatar Jun 23 '22 12:06 otavio

Yes, this is a bug in the MTD driver of the kernel which is broken since 5.4 (up to 5.15). When you write from userspace only the first byte is written to, so CRC is wrong. We hope to have a solution soon. We'll update once it's fixed.

gibsson avatar Jun 23 '22 13:06 gibsson