From: "Антон Мидюков" <midyukov-anton@ya.ru>
To: devel-distro@lists.altlinux.org
Subject: Re: [devel-distro] grub и devicetree
Date: Thu, 19 Dec 2019 01:56:30 +0700
Message-ID: <1a27ad28-aeb3-d070-2c35-4c16219ec136@ya.ru> (raw)
In-Reply-To: <88db48d3-ba84-f761-94da-bdee8a3460ed@ya.ru>
18.12.2019 0:10, Антон Мидюков пишет:
> Доброго времени суток!
>
> Существует задача прописать конкретный путь до devicetree в
> конфигурации grub. Я так понимаю, что на данный момент devicetree
> задаётся автоматом в /etc/grub.d/10_linux:
>
> [...]
Я сделал тестовое задание:
[#243217] [test-only] EPERM (try 2) grub.git=2.02-alt21
Изменения следующие:
1. Появилась возможность в /etc/sysconfig/grub2 записать в переменную
GRUB_FDT_LINUX имя необходимого dtb вместо умолчального
foundation-v8.dtb, который во всех наших ядрах для aarch64 есть (но есть
ещё и не совсем наши ядра). Возможно, стоит отказаться от этой
возможности. А может и не стоит, удобная фича.
2. Добавил в качестве пути поиска dtb для симлинков vmlinuz и kernel:
/boot/dtb
Таким образом, для того, чтобы можно было задать devicetree, должны быть
в наличии симлинки:
/boot/dtb -> /lib/devicetree/%version-%flavour-%release
/boot/dtb-%version-%flavour-%release ->
/lib/devicetree/%version-%flavour-%release
И в наличии должен быть
/boot/dtb-%version-%flavour-%release/${GRUB_FDT_LINUX} и
/boot/dtb/${GRUB_FDT_LINUX}
Вопрос: их, видимо, должен создавать installkernel при наличии
/lib/devicetree/%version-%flavour-%release?
Получается, нужно ещё доработать bootloaders-utils. Или добавить в пути
поиска /lib/devicetree/%version-%flavour-%release лучше?
--
С уважением, Антон Мидюков <antohami@altlinux.org>
next prev parent reply other threads:[~2019-12-18 18:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-17 17:10 Антон Мидюков
2019-12-18 18:56 ` Антон Мидюков [this message]
2019-12-18 20:28 ` Sergey Bolshakov
2019-12-19 8:16 ` Антон Мидюков
2019-12-19 8:26 ` Антон Мидюков
2019-12-19 8:41 ` Sergey Bolshakov
2019-12-19 8:51 ` Антон Мидюков
2019-12-19 9:10 ` Nikolai Kostrigin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1a27ad28-aeb3-d070-2c35-4c16219ec136@ya.ru \
--to=midyukov-anton@ya.ru \
--cc=devel-distro@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Distributions development
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel-distro/0 devel-distro/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel-distro devel-distro/ http://lore.altlinux.org/devel-distro \
devel-distro@lists.altlinux.org devel-distro@lists.altlinux.ru devel-distro@lists.altlinux.com
public-inbox-index devel-distro
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel-distro
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git