saveenv not working


  • Hi, 

    On Yocto hardknott_1v5 tag build it is not possible to save U-boot environment. 

    I have the following error

    Environment size: 2331/4092 bytes
    u-boot=> saveenv
    Saving Environment to MMC... Writing to MMC(2)... MMC: block number 0x2008 exceeds max(0x2000)
    failed
    Failed (1)

    How can i solve this ? 

    My image is on eMMC device.



  • Hi O.JUD,

                  Happy new year! Sorry for late reply, I just saw your question and we will check this issue asap, but can you tell me how did you build up the enviroment?

    Thanks

    BR

    Anson


  • Hello, 

    Happy new year too . 

    I built the image with bitbake imx-image-multimedia . then flashed the image imx-image-multimedia-lec-imx8mp.wic.bz2 with balenaEtcher . 

    The system starts well but no saveenv in u-boot.

    I tried with dd command too with the same behaviour .

    To bypass the issue i dd my rootfs on /dev/sda2 on another sdcard with original LEC-IMX8MP-2G-IPi-SMARC-PLUS_Yocto-hardknott_V1_R3_2022_11_17 image then copied  the kernel , dtd .

    Regards

     


  • Hi , 

    I succeeded to solve this issue by reflashing LEC-IMX8MP-2G-IPi-SMARC-PLUS-UUU-TOOL_20220309 with uuu (but with uuu Git version) .  Your uuu version does not work for me.

    Can't explain what's the root cause .


Please login to reply this topic!