Leopold has quit [Quit: No Ping reply in 180 seconds.]
Leopold has joined #u-boot
mahk has quit [Ping timeout: 265 seconds]
mahk has joined #u-boot
<tlwoerner>
marex: i thought it would be nice to add "gpio-line-names" for the olinuxino-maxi, but then i realized that in order to do so i'd have to create 4 u-boot defconfigs and 4 linux kernel device trees
apritzel_ has quit [Ping timeout: 268 seconds]
<marex>
tlwoerner: how so ?
<tlwoerner>
unless i can figure out how to programmatically tell the difference between the 4 imx233-olinuxino boards
<tlwoerner>
because the u-boot defconfig includes the name of the linux device tree
<marex>
oh, because of the variants
<marex>
there is the maxi, mini, nano and something ?
<tlwoerner>
micro
<marex>
good thing they stopped just short of yocto
<tlwoerner>
lol!
Leopold has quit [Quit: No Ping reply in 180 seconds.]
<marex>
tlwoerner: hmmm, does the same U-Boot work on all of them ?
<marex>
maybe you can at least shift the decision to U-Boot shell
<marex>
and there you can script it
<tlwoerner>
apparently (i only have the maxi...i think)
GNUtoo has quit [Ping timeout: 255 seconds]
<tlwoerner>
a script in u-boot would have to "look" for some difference? e.g. check some gpios or something?
<marex>
yeah, but at least you dont have to encode four DTs into U-Boot itself
Leopold has joined #u-boot
<tlwoerner>
okay. so use the same u-boot on all 4, write a script to figure out the variant, which then chooses the correct DT for linux?
<marex>
tlwoerner: that might be easiest , if possible , yes
<tlwoerner>
would i have to rely on the manufacturer doing something explicit in hardware, or are there other tricks? e.g. probing peripherals?
<tlwoerner>
i guess looking through the schematics or manuals might show peripherals at different locations
GNUtoo has joined #u-boot
<marex>
tlwoerner: there are differences
<marex>
the reduced versions might not have all the I2C peripherals , although , probing i2c is a bit iffy practice, it might lock up ancient I2C devices
<Tartarus>
For platforms where there's a run-time way to check what the variant is, if U-Boot doesn't have to care which one it's on to function, 1 U-Boot picking the right dtb for Linux is best. If U-Boot itself has to care (some difference that can't be run-time safely failed) then SPL picking the right dtb to pass to full U-Boot is best, assuming we have space for that.
mmu_man has joined #u-boot
mmu_man has quit [Quit: reboot]
Gravis_ has quit [Ping timeout: 256 seconds]
Gravis has joined #u-boot
Leopold has quit [Remote host closed the connection]
Leopold has joined #u-boot
mmu_man has joined #u-boot
<marex>
tlwoerner: there is also DTB_RESELECT
<marex>
Tartarus: ^
<marex>
that's u-boot picking the right dtb for u-boot
mmu_man has quit [Ping timeout: 268 seconds]
<Tartarus>
Right, if we need it
<Tartarus>
Esp given the "fun" of some of the TI evms, if we can just punt to Linux, with the full DTB and not have to worry about things in U-Boot, that's the best
<Tartarus>
But if we need it in U-Boot, DTB_RESELECT (or the SPL option to find the right FIT name match?)