Hi,
On Thu, 10 Oct 2019 at 16:00, Jeffrey Hugo jeffrey.l.hugo@gmail.com wrote:
I'm curious, how have folks been adding the devicetree command to the grub menu entry? So far I've been manually editing the grub.cfg since that worked well with my development flow, but now things have changed a bit for me, and I'm looking for a way that it would be appended automatically when the config is autogenerated when installing a new kernel.
In Ubuntu, we have a component called flash-kernel that looks at various things in /sys and a database (text files) of mappings between machines and devicetree blob names. I have added the current AARCH64 laptops to it [1], such that if a kernel has a matching devicetree blob it will be copied into /boot. It is integrated with grub & kernel maintainer scripts to run on install/upgrades.
Then I have also patched grub to emit devicetree command if there is a kernel specific devicetree blob next to the matching initrd & kernel. [2] I have submitted this patch both to debian [3] and upstream [4], but so far there was no traction on it. It would be nice to get it in.
[1] http://launchpadlibrarian.net/446134743/flash-kernel_3.98ubuntu4_3.98ubuntu5... [2] http://launchpadlibrarian.net/434747982/grub2_2.04-1ubuntu1_2.04-1ubuntu2.di... [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=929427 [4] https://lists.gnu.org/archive/html/grub-devel/2019-05/msg00121.html