ALT Linux Distributions development
 help / color / mirror / Atom feed
* [devel-distro] grub и devicetree
@ 2019-12-17 17:10 Антон Мидюков
  2019-12-18 18:56 ` Антон Мидюков
  0 siblings, 1 reply; 8+ messages in thread
From: Антон Мидюков @ 2019-12-17 17:10 UTC (permalink / raw)
  To: devel-distro

Доброго времени суток!

Существует задача прописать конкретный путь до devicetree в конфигурации 
grub. Я так понимаю, что на данный момент devicetree задаётся автоматом 
в /etc/grub.d/10_linux:

[...]

fdt=
for i in "dtb-${version}" "dtb-${alt_version}"; do
if test -e "${dirname}/${i}/foundation-v8.dtb" ; then
fdt="${i}/foundation-v8.dtb"
break
fi
done

[...]

if test -n "${fdt}" ; then
message="$(gettext_printf "Loading fdt ...")"
sed "s/^/$submenu_indentation/" << EOF
echo '$(echo "$message" | grub_quote)'
devicetree ${rel_dirname}/${fdt}
EOF
fi

У меня сразу же возник вопрос, а у какого из наших ядер есть 
foundation-v8.dtb? Вроде нет такого.

Потому мне захотелось ввести переменную в /etc/sysconfig/grub2, например 
$GRUB_FDT, которая будет проверяться в /etc/grub.d/10_linux и 
подставляться в переменную fdt, т.е. в условие будет обёрнут лишь первый 
участок кода.

Пока это просто идея. Может я вообще не в правильную сторону мыслю и 
есть простое решение?

И насколько сложно у нас такой патч двинуть в Сизиф?

-- 
С уважением, Антон Мидюков <antohami@altlinux.org>



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-12-19  9:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-17 17:10 [devel-distro] grub и devicetree Антон Мидюков
2019-12-18 18:56 ` Антон Мидюков
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

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