Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2024.01, v2024.04-rc4 are OUT / Merge Window is CLOSED, next branch is OPEN / Release v2024.04 is scheduled for 02 April 2024 / Channel archives at https://libera.irclog.whitequark.org/u-boot
redbrain has quit [Read error: Connection reset by peer]
redbrain has joined #u-boot
joeskb7 has joined #u-boot
wak has quit [Quit: ZNC - https://znc.in]
wak has joined #u-boot
KREYREN_ has quit [Remote host closed the connection]
KREYREN has joined #u-boot
<marex> KREYREN: why SPL without DT ?
<marex> KREYREN: I suspect EFI will pick the DT that is bundled with U-Boot proper
<marex> xypron: ^
<marex> apalos: ^
<KREYREN> marex, because i want the distros to be able to do their own adjustments to the DT without U-Boot just forcing one DT on everyone
<marex> KREYREN: generally with U-Boot, the DT used to boot the kernel is not the U-Boot one, so I wonder why EFI is picking the U-Boot one here
<KREYREN> marex, i see dunno why it does that though it's doing that for all devices tbh
<marex> KREYREN: can you paste the failing boot log ? maybe we can figure it out ?
<KREYREN> marex, it doesn't fail to boot it just takes the DT with itself to the OS seemingly as checked with dtc
<marex> KREYREN: sorry, my crystal ball is currently discharged ...
<KREYREN> marex, i will get you the log just a sec i am flashing the u-boot on the device
<marex> take your time
<KREYREN> i've applied hdmi-connector changes to the DT in u-boot and it's being used in the OS^
<KREYREN> https://github.com/u-boot/u-boot/blob/master/arch/arm/dts/sun50i-a64-teres-i.dts DTS for reference (hdmi-connector not defined)
<KREYREN> it seems to happen only on UEFI with EXTLINUX it seems to use the linux's DT
<marex> KREYREN: break into the U-Boot shell and run 'printenv'
<marex> KREYREN: that will give you the entire U-Boot env, check what's in `bootcmd`
<marex> does it do some bootefi or some such ?
<KREYREN> > bootcmd=run distro_bootcmd
F0rTex has quit [Ping timeout: 264 seconds]
F0rTex has joined #u-boot
<KREYREN> distro nixos with systemd-boot
<marex> efi_dtb_prefixes=/ /dtb/ /dtb/current/
<marex> I wonder what that is for
<marex> KREYREN: maybe if you follow the bootcmd execution path across the scripts, you might find out why it falls back to the built in DT
<KREYREN> (note: nixos doesn't manage u-boot it's manually compiled from source)
<quinq> setenv efi_fdtfile ${fdtfile};
<marex> quinq: that's already in scan_dev_for_efi , isnt it ?
<marex> KREYREN: check if you have allwinner/sun50i-a64-teres-i.dtb in any of the efi_dtb_prefixes=/ /dtb/ /dtb/current/
<quinq> marex, if I understand correctly, that's what KREYREN is trying to avoid
<KREYREN> marex, within the u-boot environment or in the OS?
<KREYREN> marex, doesn't seem that the file is anywhere on the filesystem
<KREYREN> (find is still running..)
jclsn has quit [Ping timeout: 246 seconds]
jclsn has joined #u-boot
<marex> KREYREN: the file should be on your filesystem
<marex> KREYREN: the OS should install it there
<marex> KREYREN: if the file is not there, well, then ... U-Boot cannot pick it up and falls back to its own built-in DT
<marex> quinq: I am not sure about that
<KREYREN> it's in nixos's derivations but not really on the system
<KREYREN> the devicetree is activated in nixos though which https://github.com/NixOS/nixpkgs/blob/nixos-23.11/nixos/modules/hardware/device-tree.nix#L148 seems to declare it to take it from the store
<KREYREN> path/to/kernel/dtbs
<KREYREN> which should be set as FDTDIR?
<KREYREN> brainstormed that with nixos, i am supposed to manage this scenario through implementing downstream in https://github.com/NixOS/nixos-hardware/tree/master afaiu
<KREYREN> thanks for help
Leopold has quit [Remote host closed the connection]
mmu_man has quit [Ping timeout: 255 seconds]
Leopold has joined #u-boot
Leopold has quit [Remote host closed the connection]
<marex> KREYREN: I do not know what nixos does, sorry
Leopold has joined #u-boot
<marex> KREYREN: but it seems like a nixos specific thing, you seem to need to find out how to deploy the .dtb file into rootfs
Leopold has quit [Remote host closed the connection]
Leopold has joined #u-boot
<vagrantc> KREYREN: is the /nix/ directory on the same partition as rootfs, or does it copy files around into /boot or something?
<tpw_rules> the /boot dir is on a different fs
<vagrantc> KREYREN: not terribly familiar with nix, but somewhat familiar with guix, which is similar
<vagrantc> if /boot is on a separate filesystem, you may have to copy the .dtb into /boot somehow
<tpw_rules> i think the only way on nixos to use a custom DTB is to use extlinux boot, because UEFI can't let the boot files specify the dtb
<vagrantc> unless systemd-boot can read from multiple filesystems ... i've mostly use the extlinux.conf support or boot scripts, a little bit with GRUB's UEFI support
<vagrantc> tpw_rules: sounds plausible
<tpw_rules> iirc grub can load a dtb into memory, but nixos is not set up to use that function, and systemd-boot sure won't do that
<vagrantc> yeah, grub can load a single .dtb into memory ... so if you you have to pick which kernel's .dtb and cannot easily switch between kernel versions
<KREYREN> vagrantc, NixOS gets deployed in stages during initrd where the nix store holds all the software and configuration for the OS so basically NixOS systems gets declared in a text file using a functional language and then it installs the OS on each boot following these instructions where only the store and personal files are persistent
<KREYREN> so if the dtb has to be in the filesystem then the nix daemon has to be programmed to put these files in the filesystem during the boot
<KREYREN> guix handles it differently as they don't have purity sufficiently implemented yet so the system just stays the way it is and nix daemon just replaces files when requested
<vagrantc> don't quite follow you here, but ok. :)
<vagrantc> sounds pretty much just like what guix does...
<vagrantc> KREYREN: basically, whatever part of nix installs the kernel, probably has to install the .dtb right alongside it
<vagrantc> or nearby, or whatever
<KREYREN> yep seems like it, trying to figure out how to implement it now, bcs nixos seems to want to have a declarations like https://github.com/NixOS/nixos-hardware/blob/master/starfive/visionfive/v2/firmware.nix for the device to handle these
zsoltiv_ has quit [Ping timeout: 255 seconds]
zsoltiv_ has joined #u-boot
vagrantc has quit [Quit: leaving]
Danish has joined #u-boot
Danish has quit [Excess Flood]
Danish has joined #u-boot
rvalue has quit [Ping timeout: 255 seconds]
dhruvag2000 has joined #u-boot
rvalue has joined #u-boot
naoki has joined #u-boot
monstr has joined #u-boot
rvalue has quit [Quit: ZNC - https://znc.in]
jfsimon1981_b has quit [Remote host closed the connection]
zsoltiv_ has quit [Quit: Left]
zsoltiv_ has joined #u-boot
rainbyte has quit [Read error: Connection reset by peer]
rainbyte has joined #u-boot
linfax has joined #u-boot
KREYREN_ has joined #u-boot
KREYREN has quit [Remote host closed the connection]
<apalos> marex: you have a few options,
<apalos> marex: EFI usually uses the DT that's bundled with u-boot -- but you can override it and load your own with bootefi command
frieder has joined #u-boot
GNUtoo_ has joined #u-boot
GNUtoo has quit [Ping timeout: 260 seconds]
sszy has joined #u-boot
<apalos> marex: FWIW EFI installs the DT as a config table
mripard has joined #u-boot
ikarso has joined #u-boot
mmu_man has joined #u-boot
rainbyte has quit [Read error: Connection reset by peer]
rainbyte has joined #u-boot
mmu_man has quit [Ping timeout: 252 seconds]
mmu_man has joined #u-boot
mmu_man has quit [Ping timeout: 255 seconds]
mmu_man has joined #u-boot
naoki has quit [Quit: naoki]
rvalue has joined #u-boot
rvalue has quit [Ping timeout: 264 seconds]
lixkel_ has joined #u-boot
naoki has joined #u-boot
dsimic has quit [Ping timeout: 268 seconds]
dsimic has joined #u-boot
<marex> apalos: seems like the boot scripts were still the distro bootcommand ones and they didnt find the DT
Net147 has quit [Quit: Quit]
<apalos> marex: havent checked that for ages tbh,
<apalos> but I know distros need a way of loading their own DT (like they used to )
<apalos> and the current bootefi format, were you have to explicitly load it manually isn't too helpful for them
Net147 has joined #u-boot
Net147 has joined #u-boot
Net147 has quit [Changing host]
monstr has quit [Ping timeout: 252 seconds]
goliath has quit [Quit: SIGSEGV]
slobodan_ has joined #u-boot
lane has quit [Write error: Connection reset by peer]
bryanb has quit [Write error: Broken pipe]
d4ve has quit [Remote host closed the connection]
lane has joined #u-boot
bryanb has joined #u-boot
d4ve has joined #u-boot
pgreco has quit [Ping timeout: 268 seconds]
Stat_headcrabed has joined #u-boot
Leopold has quit [Ping timeout: 260 seconds]
slobodan_ has quit [Ping timeout: 264 seconds]
germ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
slobodan has joined #u-boot
Stat_headcrabed has quit [Quit: Stat_headcrabed]
slobodan has quit [Remote host closed the connection]
KREYREN_ has quit [Remote host closed the connection]
KREYREN_ has joined #u-boot
slobodan has joined #u-boot
ikarso has quit [Quit: Connection closed for inactivity]
slobodan has quit [Remote host closed the connection]
slobodan has joined #u-boot
goliath has joined #u-boot
germ has joined #u-boot
germ has quit [Changing host]
germ has joined #u-boot
Stat_headcrabed has joined #u-boot
Stat_headcrabed has quit [Client Quit]
sakman has joined #u-boot
ikarso has joined #u-boot
vagrantc has joined #u-boot
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
pgreco has joined #u-boot
f_ has quit [Read error: Connection reset by peer]
f_ has joined #u-boot
jclsn has quit [Quit: WeeChat 4.2.1]
jclsn has joined #u-boot
ikarso has quit [Quit: Connection closed for inactivity]
zear_ has joined #u-boot
jclsn has quit [Quit: WeeChat 4.2.1]
rfried8 has joined #u-boot
Hypfer1 has joined #u-boot
pbsds9 has joined #u-boot
f__ has joined #u-boot
aat596_ has joined #u-boot
bern_ has joined #u-boot
m5zs7k_ has joined #u-boot
jclsn has joined #u-boot
bern has quit [Ping timeout: 260 seconds]
agraf has quit [Ping timeout: 260 seconds]
marcan has quit [Ping timeout: 260 seconds]
m5zs7k has quit [Quit: m5zs7k]
crazy_imp has quit [Ping timeout: 264 seconds]
marex has quit [Ping timeout: 264 seconds]
njha has quit [Ping timeout: 264 seconds]
bq has quit [Ping timeout: 264 seconds]
bern_ is now known as bern
njha has joined #u-boot
f_ has quit [Ping timeout: 260 seconds]
pbsds has quit [Ping timeout: 260 seconds]
CounterPillow has quit [Ping timeout: 260 seconds]
rfried has quit [Ping timeout: 260 seconds]
Hypfer has quit [Ping timeout: 260 seconds]
MWelchUK has quit [Ping timeout: 260 seconds]
Hypfer1 is now known as Hypfer
pbsds9 is now known as pbsds
rfried8 is now known as rfried
bq has joined #u-boot
CounterPillow has joined #u-boot
aat596_ is now known as aat596
aat596 has quit [Read error: Connection reset by peer]
zear has quit [Ping timeout: 260 seconds]
zear_ is now known as zear
marex has joined #u-boot
crazy_imp has joined #u-boot
f__ is now known as f_
marcan has joined #u-boot
agraf has joined #u-boot
redbrain has quit [Read error: Connection reset by peer]
redbrain_ has joined #u-boot
m5zs7k_ is now known as m5zs7k
jagan6 has joined #u-boot
ikarso has joined #u-boot
qqq has joined #u-boot
jagan6 has quit [Ping timeout: 250 seconds]
sakman has quit [Remote host closed the connection]
sakman has joined #u-boot
apritzel has joined #u-boot
apritzel has left #u-boot [Leaving]
slobodan has quit [Read error: Connection reset by peer]
frieder has quit [Remote host closed the connection]
slobodan has joined #u-boot
joeskb7 has quit [Quit: Lost terminal]
ikarso has quit [Quit: Connection closed for inactivity]
naoki has quit [Quit: naoki]
Leopold has joined #u-boot
slobodan has quit [Read error: Connection reset by peer]
slobodan has joined #u-boot
slobodan has quit [Read error: Connection reset by peer]
slobodan has joined #u-boot
slobodan has quit [Read error: Connection reset by peer]
slobodan has joined #u-boot
Leopold has quit [Remote host closed the connection]
Leopold has joined #u-boot
naoki has joined #u-boot
slobodan has quit [Read error: Connection reset by peer]
haritz has quit [Ping timeout: 272 seconds]
haritz has joined #u-boot
haritz has quit [Changing host]
haritz has joined #u-boot
vagrantc has quit [Quit: leaving]