Commit 2dde68e5 authored by Uwe Kleine-König's avatar Uwe Kleine-König
Browse files

Add support to create bootspec entries

See
https://www.barebox.org/doc/latest/user/booting-linux.html#bootloader-spec
about some technical background.
parent bab9f9e6
......@@ -182,8 +182,8 @@ The supported fields are:
root= to the kernel.
* Method: (optional) indicates how to support this particular machine;
the default is "generic"; other available methods are: android, multi,
redboot, slug, symlink
the default is "generic"; other available methods are: android, bootspec,
multi, redboot, slug, symlink
* Boot-Device: (optional) block device to mount before installing
kernel, initrd and U-Boot script; Boot-Kernel-Path, Boot-Initrd-Path and
......
flash-kernel (3.100) UNRELEASED; urgency=medium
* Add support for bootspec entries (bootable by barebox). (Closes: #931953)
-- Uwe Kleine-König <ukleinek@debian.org> Fri, 12 Jul 2019 22:36:52 +0200
flash-kernel (3.99) unstable; urgency=medium
[ Domenico Andreoli ]
......
......@@ -897,6 +897,21 @@ case "$method" in
fi
android_flash "$part"
;;
"bootspec")
{
printf "title\t\tDebian\n"
printf "version\t\t$(cat /etc/debian_version) ($desc)\n"
printf "linux\t\t$kfile\n"
printf "initrd\t\t$ifile\n"
if [ -n "$dtb_name" ] ; then
printf "devicetree\t$dtb_name\n"
fi
printf "options\t\t$(get_kernel_cmdline)\n"
printf "linux-appendroot true\n"
} > "$tmpdir/debian.conf"
mkdir -p /loader/entries
mv "$tmpdir/debian.conf" /loader/entries/debian.conf
;;
"generic")
kernel="$kfile"
initrd="$ifile"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment