<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>48042</bug_id>
          
          <creation_ts>2023-10-17 12:14:54 +0300</creation_ts>
          <short_desc>u-boot-rpi3 2023.10-alt1 не находит SD-карту</short_desc>
          <delta_ts>2023-10-19 06:04:57 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>u-boot-rpi3</component>
          <version>unstable</version>
          <rep_platform>aarch64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Антон Мидюков">antohami</reporter>
          <assigned_to name="Sergey Bolshakov">sbolshakov</assigned_to>
          <cc>antohami</cc>
    
    <cc>jqt4</cc>
    
    <cc>sbolshakov</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>235058</commentid>
    <comment_count>0</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2023-10-17 12:14:54 +0300</bug_when>
    <thetext>На 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>235091</commentid>
    <comment_count>1</comment_count>
    <who name="Sergey Bolshakov">sbolshakov</who>
    <bug_when>2023-10-17 15:21:58 +0300</bug_when>
    <thetext>Не воспроизводится:
--- %&lt; ---
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 &quot;uboot.env&quot; 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 &apos;emmc2@7e340000.bootdev.part_2&apos; with extlinux
ALTLinux Boot Options
1:	linux
2:	5.16.16-mp-alt1
3:	6.5.4-mp-alt1
Enter choice: 2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>235107</commentid>
    <comment_count>2</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2023-10-17 17:59:27 +0300</bug_when>
    <thetext>Интересно. Будем искать отличия.
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 (под тем же именем).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>235142</commentid>
    <comment_count>3</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2023-10-18 13:36:51 +0300</bug_when>
    <thetext>u-boot-rpi3-2023.10-alt2 -&gt; sisyphus:

 Wed Oct 18 2023 Sergey Bolshakov &lt;sbolshakov@altlinux.ru&gt; 2023.10-alt2
 - fix booting from sdcard (closes: 48042)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>235162</commentid>
    <comment_count>4</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2023-10-19 06:04:57 +0300</bug_when>
    <thetext>Спасибо. Работает.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>