From: "Антон Мидюков" <midyukov-anton@ya.ru> To: devel-distro@lists.altlinux.org Subject: [devel-distro] grub и devicetree Date: Wed, 18 Dec 2019 00:10:31 +0700 Message-ID: <88db48d3-ba84-f761-94da-bdee8a3460ed@ya.ru> (raw) Доброго времени суток! Существует задача прописать конкретный путь до 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>
next reply other threads:[~2019-12-17 17:10 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-12-17 17:10 Антон Мидюков [this message] 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
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=88db48d3-ba84-f761-94da-bdee8a3460ed@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