Skip to content

[BOOTSCRIPT] new boot scripts and environment structure for U-boot and GRUB

Davide Cardillo requested to merge davc/bootscript_parameter into scarthgap_kickoff

This merge request enhances the bootscript system by introducing a structured set of .scr/.cfg and .env/grubenv files, enabling flexible boot management for SECO boards and third-party machines. Key updates include:

  • Bootscript Tree Creation:

    • U-boot:
      • boot.scr/boot.env: Core files acting as a library of macros and the main script for loading other bootscripts.
      • boot_hw.scr/boot_hw.env: Hardware-specific scripts.
      • boot_clea-os.scr/boot_clea-os.env: Clea OS distribution-specific scripts, customizable based on machine and configuration (e.g., flavors, disk layouts).
    • GRUB:
      • grub.cfg: main boot script that optionally supports loading an additional .cfg or LUA script at runtime
      • grubenv: GRUB environment
  • File-Parametric Class Integration: Introduced BOOTSCRIPT_PARAM for parameterized script generation at SOC, board, and distribution levels, accommodating diverse disk layouts and configurations.

This system improves flexibility, simplifies maintenance, and supports broader hardware and OS compatibility. Initial scripts are drafts and will be refined during testing across architectures and configurations.

Signed-off-by: Davide Cardillo davide.cardillo@seco.com

Edited by Alessandro Pecugi

Merge request reports

Loading