On Wed, Jun 19, 2019 at 8:19 AM Richard Henwood Richard.Henwood@arm.com wrote:
- Create UEFI module for persistently loading DTB
- We have one which handles this for a single boot
- NB: Assuming Leif will handle this
So, one question about this approach, is how do we handle kernel upgrades and new dtb.. I'm not 100% sure what other distro's do, but fedora has set of dtb files per kernel version, but something that runs before grub wouldn't know which kernel version grub will load.
Semi-related, I'd suggested[1] addition of dmi-compatible property in DT, to give some mechanism to auto-pick the correct dtb, ie. something like:
dmi-compatible = "LENOVO 81JL/LNVNB161216", "LENOVO 81JL";
on my lenovo c630, the SMBIOS table has:
vendor: LENOVO product: 81JL board: LNVNB161216
(I'd be curios to see "dmesg | grep DMI" output from other laptops, btw.. to confirm these fields are populated in a reasonably sane way)
The idea would be to try to match "$vendor $product/$board" and then fall back to "$vendor $product"..