Am 20.11.2015 um 20:09 schrieb Matwey V. Kornilov:
16.11.2015 04:05, Andreas Färber пишет:
Am 15.11.2015 um 19:50 schrieb Matwey V. Kornilov:
2015-11-15 21:34 GMT+03:00 Andreas Färber <afaerber@suse.de>:
Am 28.10.2015 um 19:07 schrieb Matwey V. Kornilov:
I've just looked through perl-bootloader. It is not so hard to implement additional module Extlinux.pm, given there is hardware support to test. But I would say that to implement extlinux support seems to be way easier than direct u-boot anyway. Patching perl-bootloader should be sufficient for correct operation of kernel RPM post/pre scripts.
Have you looked further into implementing this?
I am testing changes to dtb-source, but I do not have a good solution for /boot/dtb symlink yet. Switching to extlinux would elegantly avoid tackling that. ;)
I've just tested that extlinux worked. I am going to start to implement initial support into perl-bootloader,
Great, then I'll leave my hands off.
I gathered that /etc/sysconfig/bootloader would need LOADER_TYPE="extlinux", and Library.pm:SetLoaderType() would need to handle "extlinux" to instantiate your new Core/Extlinux.pm. https://github.com/openSUSE/perl-bootloader
Looks promising, do you have it packaged for testing?
Now I am going to implement DTB handling. kernel and dtb-* can be installed and removed independently. Among other, additional commands for update_bootloader are required. For dtb-*-%{version} %postin we need to scan entries with kernel %{version} and set fdtdir to "/boot/dtb-%{version}"
No, my plan was to just set fdtdir on kernel installation. The idea is that you can use a dtb-tegra124-4.3.0-1 with kernel-lpae-4.3.0-1 but not randomly mix and match versions. I definitely do not want installing a new dtb package to update all my old kernels to the new version - that's likely to break, they're not fully independent of each other. If there's any Contrib packages installing to /boot/dtb we'll need to update them, too.
For dtb-*-%{version} %preun we need to scan entries which use /boot/dtb-%{version} and set fdtdir to "/boot/dtb" fallback.
Would the new perl-Bootloader ever realistically encounter dtb packages following the old /boot/dtb scheme? Once we have everything in place for switching to extlinux.conf, we won't even need any /boot/dtb symlink. I've seen kernel uninstallation leaving the /boot/initrd symlink dangling, so I saw no need to go through hoops for /boot/dtb either.
The flavor of dtb (dtb file) is to be specified in /etc/sysconfig/bootloader
That shouldn't be necessary, U-Boot is supposed to provide $fdtfile. In my testing I didn't need to specify a dtb file in extlinux.conf, only the dtb directory. Regards, Andreas -- SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Graham Norton; HRB 21284 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org