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

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

    <bug>
          <bug_id>46669</bug_id>
          
          <creation_ts>2023-06-27 16:00:04 +0300</creation_ts>
          <short_desc>u-boot-qemu не может загрузить regular-jeos-systemd-aarch64.img в QEMU</short_desc>
          <delta_ts>2023-06-27 18:08:33 +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-qemu</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="Иван Зелинский">ivzeivze</reporter>
          <assigned_to name="Sergey Bolshakov">sbolshakov</assigned_to>
          <cc>sbolshakov</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>228439</commentid>
    <comment_count>0</comment_count>
    <who name="Иван Зелинский">ivzeivze</who>
    <bug_when>2023-06-27 16:00:04 +0300</bug_when>
    <thetext>ОС запускается с использованием бинарника из u-boot-qemu-2022.07-alt1.aarch64.rpm.

ОС не запускается с использованием бинарника из u-boot-qemu-2023.04-alt1.aarch64.rpm!


Образ ОС:
http://nightly.altlinux.org/sisyphus-aarch64/snapshots/20230621/regular-jeos-systemd-20230621-aarch64.img.xz
$ gost12sum regular-jeos-systemd-20230621-aarch64.img.xz
abb4a8cc5568320e462498c6d1ca957f29047853a1c38b2b0bdfc01393eb0c6d regular-jeos-systemd-20230621-aarch64.img.xz

Запускается при помощи скрипта (https://www.altlinux.org/Regular/arm#%D0%97%D0%B0%D0%BF%D1%83%D1%81%D0%BA_%D0%B2_QEMU):
#!/bin/sh
UBOOT_BIN=qemu_arm64/u-boot.bin
IMAGE=system.img
exec qemu-system-aarch64 \
	-machine virt -cpu cortex-a57 -m 2048 -smp 4 \
	-bios $UBOOT_BIN \
	-drive if=none,id=sda,format=raw,file=$IMAGE  \
	-device virtio-blk-device,drive=sda \
	-device virtio-keyboard -device virtio-tablet \
	-net nic -net user,hostfwd=tcp::2297-:22 \
	-device virtio-gpu-gl,xres=1366,yres=768 -nographic -display sdl,gl=on

Лог из терминала:
$ ./qemu_aarch64.sh 


U-Boot 2023.04 (Apr 04 2023 - 10:41:12 +0000)

DRAM:  2 GiB
Core:  51 devices, 14 uclasses, devicetree: board
Flash: 64 MiB
Loading Environment from Flash... *** Warning - bad CRC, using default environment

In:    pl011@9000000
Out:   pl011@9000000
Err:   pl011@9000000
Net:   eth0: virtio-net#32
Hit any key to stop autoboot:  0 
Scanning for bootflows in all bootdevs
Seq  Method       State   Uclass    Part  Name                      Filename
---  -----------  ------  --------  ----  ------------------------  ----------------
Scanning global bootmeth &apos;efi_mgr&apos;:
Scanning bootdev &apos;fw-cfg@9020000.bootdev&apos;:
fatal: no kernel available
No working controllers found
scanning bus for devices...
Unknown seq -1 for label &apos;scsi&apos;
Scanning bootdev &apos;virtio-blk#31.bootdev&apos;:
  0  distro       ready   virtio       2  virtio-blk#31.bootdev.par /boot/extlinux/extlinux.conf
** Booting bootflow &apos;virtio-blk#31.bootdev.part_2&apos; with distro
ALTLinux Boot Options
1:	linux
2:	6.1.34-std-def-alt1
3:	6.3.8-un-def-alt1
Enter choice: 1:	linux
Retrieving file: ../vmlinuz
Skipping linux for failure retrieving kernel
2:	6.1.34-std-def-alt1
Retrieving file: ../vmlinuz-6.1.34-std-def-alt1
Skipping 6.1.34-std-def-alt1 for failure retrieving kernel
3:	6.3.8-un-def-alt1
Retrieving file: ../vmlinuz-6.3.8-un-def-alt1
Skipping 6.3.8-un-def-alt1 for failure retrieving kernel
Boot failed (err=-14)
Unknown seq -1 for label &apos;nvme&apos;
BOOTP broadcast 1
DHCP client bound to address 10.0.2.15 (1 ms)
Scanning bootdev &apos;virtio-net#32.bootdev&apos;:
BOOTP broadcast 1
DHCP client bound to address 10.0.2.15 (0 ms)
*** Warning: no boot file name; using &apos;0A00020F.img&apos;
Using virtio-net#32 device
TFTP from server 10.0.2.2; our IP address is 10.0.2.15
Filename &apos;0A00020F.img&apos;.
Load address: 0x40400000
Loading: *
TFTP error: &apos;Access violation&apos; (2)
Not retrying...
No more bootdevs
---  -----------  ------  --------  ----  ------------------------  ----------------
(1 bootflow, 1 valid)
=&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>228453</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2023-06-27 18:08:33 +0300</bug_when>
    <thetext>u-boot-qemu-2023.04-alt2 -&gt; sisyphus:

 Tue Jun 27 2023 Sergey Bolshakov &lt;sbolshakov@altlinux.ru&gt; 2023.04-alt2
 - fix relative path boot (closes: 46669)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>