Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

u-boot: add 'bootdir' to the generated uEnv.txt #3271

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jun 26, 2024

  1. u-boot: add 'bootdir' to the generated uEnv.txt

    When doing a full copy of:
    
    $deployment/usr/lib/ostree-boot -> /boot/ostree/$os-$bootcsum/
    
    U-Boot bootscript can use the 'bootdir' to find, for example,
    the Device Tree (dtb) file, as in:
    
    load ${dtype} ${disk}:${bootpart} ${a_fdt} ${bootdir}${dtbname}
    
    Or u-boot external bootscript:
    
    load ${dtype} ${disk}:${bootpart} ${a_scr} ${bootdir}${scriptname}
    
    It could also be possible to point 'bootdir' directly to the
    $deployment/usr/lib/ostree-boot, but this would add unnecessary
    restrictions on what file system can be used for rootfs as u-boot,
    for example, can not read from BTRFS. So having
    bootdir=/boot/ostree/$os-$bootcsum/ is a better approach here, as
    /boot can be on a separate partition with its own file system type.
    
    Signed-off-by: Gatis Paeglis <[email protected]>
    Signed-off-by: Hongxu Jia <[email protected]>
    Signed-off-by: Chen Qi <[email protected]>
    hongxu-jia authored and ChenQi1989 committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    a76d28f View commit details
    Browse the repository at this point in the history