<Tartarus>
DEFAULT_ENV_FILE is kinda, in my mind, a special extreme case of wanting to modify the default env
<Tartarus>
The preferred way today, is to use CONFIG_EXTRA_ENV_TEXT and then only having CONFIG_EXTRA_ENV_SETTINGS for distroboot
<Tartarus>
(since that whole func(...) thing just doesn't work with the text env)
<Tartarus>
dragonboard410c is an example there
camus has quit [Ping timeout: 252 seconds]
<apalos>
Tartarus: ok thanks
mckoan|away has quit [Read error: Connection reset by peer]
mckoan|away has joined #u-boot
flyback has quit [Ping timeout: 252 seconds]
<apalos>
Tartarus: xypron. I'll look at the Makefile changes tomorrow.
<Tartarus>
Thanks
<Tartarus>
One of those "would be nice" is to audit the assembly funcs so we could do -z noexecstack ala Linux
<Tartarus>
But my quick skim says that no, trying to fiddle with linker scripts to avoid that warning is unreasonable
<Tartarus>
(certainly for u-boot, but if you can rework the EFI ones, OK)
<Tartarus>
Currrent CI images use gcc-12.2 which shows the issue
<Tartarus>
(well, binutils-whatever is new enough for it)
mmu_man has quit [Ping timeout: 260 seconds]
rvalue has quit [Ping timeout: 268 seconds]
flyback has joined #u-boot
mmu_man has joined #u-boot
Leopold has quit [Quit: No Ping reply in 180 seconds.]
Leopold has joined #u-boot
<Tartarus>
xypron: dependabot is trying to give us some certifi update which is from sphinx stuff, I assume you'll be sending something about that soon or noting it's not relevant to our uses?
<apteryx>
hello! how do I tell u-boot to boot using the /boot/extlinux/extlinux.conf file?
vagrantc has joined #u-boot
<Tartarus>
sysboot
<apteryx>
ah! thank you. it's not enabled for the u-boot fork I'm using. Seems I need: CONFIG_DISTRO_DEFAULTS=y ?
<Tartarus>
That's the best option, yes, it'll make booting any regular distro a lot easier
<Tartarus>
CMD_SYSBOOT is its own option too
guillaume_g has quit [Quit: Konversation terminated!]
<apteryx>
OK. Any tip to use 'make menuconfig' while not on the actual target? Do I need to define some variable to make this possible?
<Tartarus>
Well, it's a bit unclear, since you're on some fork
<Tartarus>
However other boards in that fork are enabling DISTRO_DEFAULTS, do that
mmu_man has quit [Ping timeout: 260 seconds]
<apteryx>
hmm, DISTRO_DEFAULTS as a Kconfig option didn't exist back then (2015). What I have is an include file named config_distro_defaults.h
<Tartarus>
You should probably look at pi or something as a reference
<apteryx>
1998a1a6c32d5e3ed729e0e08867d6f8fa97df50 seems useful indeed (ARM: rpi_b: rework boot scripts, enable sysboot) made some 9 years ago
Gravis has quit [Ping timeout: 256 seconds]
<apteryx>
but sysboot support is already enabled for that commit it seems
* apteryx
dig in older commits
Gravis has joined #u-boot
<apteryx>
ah, so just an #include <config_distro_bootcmd.h> in the board include/configs/$board.h
PhoenixMage has quit [Ping timeout: 256 seconds]
rvalue has joined #u-boot
PhoenixMage has joined #u-boot
Gravis has quit [Ping timeout: 246 seconds]
umbramalison has quit [Ping timeout: 255 seconds]
<apteryx>
OK, I now have sysboot
<apteryx>
to test, I was currently loading my dtb and kernel in memory and then bootz from it
<apteryx>
via nfs
<apteryx>
is it possible to test 'sysboot' with nfs?
Leopold has quit [Remote host closed the connection]
Leopold has joined #u-boot
PhoenixMage has quit [Ping timeout: 246 seconds]
PhoenixMage has joined #u-boot
Leopold has quit [Remote host closed the connection]
Leopold has joined #u-boot
PhoenixMage has quit [Ping timeout: 268 seconds]
PhoenixMage has joined #u-boot
<apteryx>
I think I need to use 'tftpboot' for that
Gravis has joined #u-boot
Gravis has quit [Ping timeout: 246 seconds]
Gravis has joined #u-boot
<apteryx>
I've now included also config_distro_bootcmd.h in my board config.h, but I don't see the variables I thought it would now define, such as "boot_extlinux"
<apteryx>
ah... seems I need to register the BOOTENV macro in the board CONFIG_EXTRA_ENV_SETTINGS
torez has quit [Quit: torez]
<apteryx>
OK, got it. I used embestmx6boards.h as an example
<apteryx>
ok it's because ${scriptaddr} is not defined, and booting from the mmc expands to 'sysboot mmc 0:1 any /boot/extlinux/extlinux.conf'
<apteryx>
in my extlinux.conf, there's a FDTDIR defined, like: FDTDIR /gnu/store/8x3kdgkvha0a1hhhqk90kp9mpl1wdwx3-linux-libre-arm-generic-6.0.10/lib/dtbs. But when it tries to boot the entry, it fails with: ** File not found /gnu/store/8x3kdgkvha0a1hhhqk90kp9mpl1wdwx3-linux-libre-arm-generic-6.0.10/lib/dtbs/<NULL>-<NULL>.dtb **
<apteryx>
I'm wondering what these <NULL> are supposed to eb