Skip to content

tools/linux.py: Use devicetree for u-boot and kernel argument passing#544

Open
jannau wants to merge 2 commits intoAsahiLinux:mainfrom
jannau:u-boot_dt_no_env_override
Open

tools/linux.py: Use devicetree for u-boot and kernel argument passing#544
jannau wants to merge 2 commits intoAsahiLinux:mainfrom
jannau:u-boot_dt_no_env_override

Conversation

@jannau
Copy link
Member

@jannau jannau commented Feb 24, 2026

Instead of rewriting the default environment inside the u-boot image use the devicetree to pass the overrides. The kernel bootargs are already set in /chosen/bootargs. U-boot uses /config/{bootcmd,bootdelay,baudrate} (and a few more) if CONFIG_OF_CONTROL is set. Add support to populate the properties in /config/ in kboot.

This will allow dropping the u-boot default env modifying code from
linux.py and freebsd.py.

Signed-off-by: Janne Grunau <j@jannau.net>
@jannau jannau requested a review from svenpeter42 as a code owner February 24, 2026 22:11
Both bootargs and certain u-boot commands can be set via the devicetree.
The bootargs are already passed via "/chosen/bootargs". U-boot's
`bootcmd`, `bootdelay` and `baudrate` can be overriden in "/config/"
when CONFIG_OF_CONTROL is set.
Use proxy::kboot_set_uboot() to set these /config properties and drop
the modification of the default environment in the u-boot image.

Signed-off-by: Janne Grunau <j@jannau.net>
@jannau jannau force-pushed the u-boot_dt_no_env_override branch from 7b5e5f1 to 1bd7607 Compare February 24, 2026 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants