Default U-Boot Environment address

  • Hello,

    i'm looking for the default u-boot environment address to change the parameters with fw_setenv.


    U-Boot SPL 2020.04-00326-g42d2040a3 (Dec 23 2022 - 16:36:21 +0100)

    U-Boot 2020.04 (Mar 23 2023 - 13:00:25 +0000) for F&S


    CPU: i.MX8MP Lite[4] rev1.1, 1800 MHz (running at 1200 MHz)

  • Hello,


    I am assuming you are using the rather old release fsimx8mp-Y2023.03?


    In this release the u-boot environment address was defined in the u-boot device tree

    https://github.com/FSEmbedded/…ts/picocoremx8mp.dtsi#L43


    so your /etc/fw_env.config should look look like this

    Code
    1. # Configuration file for fw_(printenv/setenv) utility fsimx8mp-Y2023.03.
    2. # F&S Block device
    3. /dev/mmcblk2boot0 0x00138000 0x4000
    4. /dev/mmcblk2boot0 0x0013C000 0x4000


    Please note, that in newer releases, the definition moved to the NBoot config

    https://github.com/FSEmbedded/…nboot/nboot-info.dtsi#L88


    and your /etc/fw_env.config should look look like this


    Code
    1. # Configuration file for fw_(printenv/setenv) utility starting fsimx8mp-Y2023.09.
    2. # F&S Block device
    3. /dev/mmcblk2boot0 0x00040000 0x4000
    4. /dev/mmcblk2boot1 0x00040000 0x4000



    Your F&S Support Team

  • Thank you for your reply.


    It's a preinstalled version.



    With the older version:



    Code
    1. Disk /dev/mmcblk2: 3728 MB, 3909091328 bytes, 7634944 sectors
    2. 59648 cylinders, 4 heads, 32 sectors/track
    3. Units: sectors of 1 * 512 = 512 bytes
    4. Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
    5. /dev/mmcblk2p1 128,0,1 1023,3,32 16384 147455 131072 64.0M c Win95 FAT32 (LBA)
    6. /dev/mmcblk2p2 * 1023,3,32 1023,3,32 147456 2662399 2514944 1228M 83 Linux
    7. /dev/mmcblk2p3 1023,3,32 1023,3,32 2670592 2801663 131072 64.0M c Win95 FAT32 (LBA)
    8. /dev/mmcblk2p4 1023,3,32 1023,3,32 2818046 7438335 4620290 2256M f Win95 Ext'd (LBA)
    9. /dev/mmcblk2p5 1023,3,32 1023,3,32 2818048 5332991 2514944 1228M 83 Linux
    10. /dev/mmcblk2p6 1023,3,32 1023,3,32 5341184 7438335 2097152 1024M 83 Linux


    It works with those settings:


    Code
    1. /dev/mmcblk2 0x400000 0x1000



    With the newer verison:








    I tried your suggested settings, but they don't work.


    Is there some offset i'm missing?

  • Hello,


    both U-Boots are the old U-Boot 2020.04 Versions. There, the old settings


    Code
    1. /dev/mmcblk2boot0 0x00138000 0x4000
    2. /dev/mmcblk2boot0 0x0013C000 0x4000


    should be used. Please make sure to use mmcblk2 . This was not correct in my former post.

    If it is still now working, please contact us directly by mail or give us a call.


    Your F&S Support Team

  • Thank you for your help, it works on the newer board with:

    Code
    1. /dev/mmcblk2 0x00138000 0x4000
    2. /dev/mmcblk2 0x0013C000 0x4000

    The old one still only works with

    Code
    1. /dev/mmcblk2 0x400000 0x1000

    but that's ok.


    Is there any system, which board is delivered with which uboot Version?
    Always the newest?

  • Hello,


    if you order a default variant, you will always automatically receive the U-Boot from the latest release.

    If you order a customer specific variant, you can determine the software versions by yourself and you will have to sign a production release approval for each new Software that shall be installed to the board.


    Your F&S Support Team