meta-freescale-3rdparty
meta-freescale-3rdparty copied to clipboard
nitrogen6x: Can't write on U-Boot environment
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
@chrisdimich could you look into that, is it ok on our honister image? Thanks
News?
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.