Bug 48042 - u-boot-rpi3 2023.10-alt1 не находит SD-карту
Summary: u-boot-rpi3 2023.10-alt1 не находит SD-карту
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: u-boot-rpi3 (show other bugs)
Version: unstable
Hardware: aarch64 Linux
: P5 normal
Assignee: Sergey Bolshakov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-17 12:14 MSK by Антон Мидюков
Modified: 2023-10-19 06:04 MSK (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Антон Мидюков 2023-10-17 12:14:54 MSK
На Raspberry Pi 4B сломалась загрузка с SD-карты. u-boot-rpi3 2023.10-alt1 не находит SD-карту.
В u-boot консоли поменял первое значение boot_targets с mmc на mmc1 и выполнил

env run bootcmd

U-boot обнаружил SD-карту и загрузил с неё.
Т.е. проблема в неверном значении в переменной boot_targets.
Comment 1 Sergey Bolshakov 2023-10-17 15:21:58 MSK
Не воспроизводится:
--- %< ---
U-Boot 2023.10 (Oct 16 2023 - 11:40:39 +0000)

DRAM:  948 MiB (effective 3.9 GiB)
RPI 4 Model B (0xc03111)
Core:  134 devices, 13 uclasses, devicetree: board
MMC:   emmc2@7e340000: 0, mmcnr@7e300000: 1
Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1... 
In:    serial,usbkbd
Out:   serial,vidconsole
Err:   serial,vidconsole
Net:   eth0: genet@7d580000
starting USB...
No working controllers found
Hit any key to stop autoboot:  0 
** Booting bootflow 'emmc2@7e340000.bootdev.part_2' with extlinux
ALTLinux Boot Options
1:	linux
2:	5.16.16-mp-alt1
3:	6.5.4-mp-alt1
Enter choice: 2
Comment 2 Антон Мидюков 2023-10-17 17:59:27 MSK
Интересно. Будем искать отличия.
1. raspberrypi-firmware на fat32 актуальный? Из Сизифа?
2. Какой bcm2711-rpi-4-b.dtb на fat32 и есть ли он там вообще?
3. Что в config.txt?

Для воспроизведения проблемы можно взять регулярку:
http://nightly.altlinux.org/sisyphus-aarch64/current/regular-jeos-systemd-latest-aarch64.img.xz
И заменить uboot-rpi_4.bin на её fat32 разделе на новый u-boot (под тем же именем).
Comment 3 Repository Robot 2023-10-18 13:36:51 MSK
u-boot-rpi3-2023.10-alt2 -> sisyphus:

 Wed Oct 18 2023 Sergey Bolshakov <sbolshakov@altlinux.ru> 2023.10-alt2
 - fix booting from sdcard (closes: 48042)
Comment 4 Антон Мидюков 2023-10-19 06:04:57 MSK
Спасибо. Работает.