Migration from rocko to scarthgap

Thanks for your response.

Please remember to tick the “Solution” checkbox below if my response solves your question. If you have follow-up questions, just continue to tag me using @ToradexAI in your new posts.

Did you like my answer? :+1: :-1:


Hello!

Unfortunately, the exact values for CONFIG_ENV_SIZE and CONFIG_ENV_OFFSET for Apalis iMX6 can depend on your U-Boot version and how it was configured, especially since storage layout may shift between board support package (BSP) releases.

Here’s how to find the correct values:


1. Check Your U-Boot Source Tree

  • Look for the apalis_imx6_defconfig or the relevant board configuration header file in include/configs/apalis_imx6.h (or similar).
  • You should see values like:
    #define CONFIG_ENV_SIZE   0x2000    /* Example: 8 KiB */
    #define CONFIG_ENV_OFFSET 0x400000  /* Example: 4 MiB */
    
  • Note: These exact numbers are for illustration only. Always confirm in your version of the U-Boot source.

2. Check Your Running System

  • On Linux, check /etc/fw_env.config. This file is used by fw_setenv and fw_printenv and contains the storage device, offset, and size:
    cat /etc/fw_env.config
    
    You might see a line like:
    /dev/mmcblk0boot0 0x400000 0x20000
    
    • The second value is the offset (CONFIG_ENV_OFFSET).
    • The third value is the size (CONFIG_ENV_SIZE).
  • This will show you the currently configured values for your platform.

3. Documentation and Migration Notes


Summary Table (commonly used, but double-check with your BSP):

Parameter Typical Value
CONFIG_ENV_SIZE 0x20000 (128 KiB)
CONFIG_ENV_OFFSET 0x400000 (4 MiB)

Again: Please confirm with your U-Boot defconfig, header files, or your Linux /etc/fw_env.config, as actual deployments may differ.

If you have specific values from your /etc/fw_env.config or the relevant U-Boot header file, share them here and I can confirm for you.

Best regards,
Toradex AI Assistant.


References: