Skip to content

Integrate meta-seco-imx/u-boot-seco-imx/add_eeprom_manager_d18

Commit: clea-os/layers/seco/meta-seco-imx@6e073d3b

Integrate u-boot-seco-imx/add_eeprom_manager_d18

--

Commit: clea-os/bsp/nxp/u-boot-seco-imx@34733cb4

[ENV][D18] Add seco_device_config scripts and enable them for D18

The commits adds a new command fdt_overlay_apply_all: The iterates about different 'functions' currently panel and touch, and tries to load the configuration from different sources: seco_config: u-boot environment seco_device_config: eeprom or other persitent storage default: hardcoded image default

If one config is found it applies the mapped devicetree overlay to the loaded base devicetree and stops further processing for this function. That means if seco_config is set for the panel, the eeprom setting is ignored, if seco_config is not set, the setting from the eeprom is taken.

For the seco_device_config the mapping from 'panel-id-1' or 'touch-id-1' is read from the already loaded devicetree.

This commit also enables this functionality by overwriting the fdt_overlay_load2ram command in the default environemnt. Changing this variable is used as a hook to adapt the boot behavior for clea-os-things (with bootscript from disk) and clea-os-embedded (with hardcoded bootscript from environment).

Generally it is implemented in a way that also preserves the previous boot behavior if no configuration in the eeprom is found. (This is relevant for D18 on the B79 carrier, as the same sources are used here).

To achieve this, the following steps are taken:

  • no debug output during normal boot
  • reading of devicetree only when the eeprom config is valid (otherwise the fdt commands print errors)
  • taking seco_config settings into account, with higher priority then the eeprom config.

Due to the limited size of the environment, some variable names have been shortened to reduce the memory footprint of this new feature. A drawback is reduced readibility.

The default part is currently unused, but may be a position to store buildtime configurations.

--

Commit: clea-os/bsp/nxp/u-boot-seco-imx@833ab166

[DTS][D18] Enable I2C_5

--

Commit: clea-os/bsp/nxp/u-boot-seco-imx@75f3c3f7

[DTS][D18] Fix pinctrl for flexcan1

--

Commit: clea-os/bsp/nxp/u-boot-seco-imx@5eb2cc9d

[CONFIG][D18] Enable EEPROM manager commands

MODV-78

Merge request reports

Loading