Bug 47700 - Raspberry Pi 4 не загружается после обновления
Summary: Raspberry Pi 4 не загружается после обновления
Status: CLOSED FIXED
Alias: None
Product: Branch p10
Classification: Unclassified
Component: make-initrd (show other bugs)
Version: не указана
Hardware: aarch64 Linux
: P5 normal
Assignee: qa-team@altlinux.org
QA Contact: qa-p10@altlinux.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-22 19:39 MSK by jqt4@altlinux.org
Modified: 2023-10-10 15:53 MSK (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jqt4@altlinux.org 2023-09-22 19:39:03 MSK
Установлен образ http://ftp.altlinux.org/pub/distributions/ALTLinux/p10/images/simply/aarch64//slinux-10.0-rpi4-aarch64.img.xz

Для воспроизведения проблемы нужно обновить систему на Raspberry Pi 4 обычным способом:
apt-get update
apt-get dist-upgrade

rpm -q make-initrd
make-initrd-2.31.0-alt5.aarch64

update-kernel

После перезагрузки выдаются сообщения:
Mounting filesystem [/sys/firmvare/efi/efivars]:     [FAILED]
initramfs: Waiting for root ...
Далее происходит выход в rdshell.
Система не загружается.

В rdshell выполнил команды:
cd /lib/initrd/boot/scripts
./mountpoints
poll: mountpoints: /sys/firmvare/efi/efivars: Does not exist

Загрузка не выполнена из-за отсутствия каталога /sys/firmvare/efi/efivars
На Raspberry Pi 4 нет UEFI.

В строках кода:
https://git.altlinux.org/gears/m/make-initrd.git?p=make-initrd.git;a=blob;f=0002-BACKPORT-boot-from-IMSM.patch;h=a37ff631b811e2d233195b5abcde96a95d0729a8;hb=e3123b4a95c4a43ec35c0226e81756b4bfb961a0#l22
https://git.altlinux.org/gears/m/make-initrd.git?p=make-initrd.git;a=blob;f=0002-BACKPORT-boot-from-IMSM.patch;h=a37ff631b811e2d233195b5abcde96a95d0729a8;hb=e3123b4a95c4a43ec35c0226e81756b4bfb961a0#l38
на основании наличия модуля ядра efivarfs предполагается наличие пути /sys/firmvare/efi/efivars, что для Raspberry Pi 4 неверно.
Comment 1 Антон Мидюков 2023-09-22 19:59:28 MSK
Вот этот апстримный патч не поможет:
https://github.com/osboot/make-initrd/commit/43558a2cccb7fc2d3399c533a508414620ba9094
?
Comment 2 jqt4@altlinux.org 2023-09-25 16:20:48 MSK
(Ответ для Антон Мидюков на комментарий #1)
> Вот этот апстримный патч не поможет:
> https://github.com/osboot/make-initrd/commit/
> 43558a2cccb7fc2d3399c533a508414620ba9094
> ?

Протестировал - помогает.
Comment 3 Антон Мидюков 2023-09-25 16:22:05 MSK
(Ответ для jqt4@altlinux.org на комментарий #2)
> (Ответ для Антон Мидюков на комментарий #1)
> > Вот этот апстримный патч не поможет:
> > https://github.com/osboot/make-initrd/commit/
> > 43558a2cccb7fc2d3399c533a508414620ba9094
> > ?
> 
> Протестировал - помогает.

Тогда сделай бекпорт.
Comment 4 Sergey Ivanov 2023-10-10 15:53:56 MSK
Данная ошибка исправлена в p10 в таске:
https://git.altlinux.org/tasks/330304/