Bug#767744: flash-kernel: There is no way to specify a custom dtb
On Sun, 2014-11-02 at 12:08 +0100, Uwe Kleine-König wrote:
> Package: flash-kernel
> Version: 3.28
> Severity: wishlist
>
> Hello,
>
> I want to use flash-kernel on a machine that uses a device tree blob that isn't
> included in the kernel package. So flash-kernel's assumption to find
> /usr/lib/linux-image-$kvers/$dtb_id is wrong.
>
> Maybe something like:
>
> # if dtb_name starts with / assume it's a stand alone file. Otherwise
> # pick the one shipped by the linux image.
> if expr "$dtb_name" : "/" >/dev/null; then
> dtb="$dtb_name"
> else
> dtb="/usr/lib/linux-image-$kvers/$dtb_name"
> fi
>
> would work?
expr isn't a builtin, right? So we don't need to worry about dash vs
bash for it and whether the ":" operator is implemented.
Another possibility would be to search /etc/flash-kernel/dtbs (perhaps
with and without $kvers) before /usr/lib/blah.
I suppose you are needing to use flash-kernel's dtb appending mode,
otherwise you could just drop the file in /boot.
Ian.
Reply to: