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 <afaer...@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
https://github.com/openSUSE/perl-bootloader/pull/81 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}" For dtb-*-%{version} %preun we need to scan entries which use /boot/dtb-%{version} and set fdtdir to "/boot/dtb" fallback. The flavor of dtb (dtb file) is to be specified in /etc/sysconfig/bootloader -- To unsubscribe, e-mail: opensuse-arm+unsubscr...@opensuse.org To contact the owner, e-mail: opensuse-arm+ow...@opensuse.org