[Bug 254764] GPT 'bootme' flag is not respected on AARCH64

[email protected]
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254764

            Bug ID: 254764
           Summary: GPT 'bootme' flag is not respected on AARCH64
           Product: Base System
           Version: 13.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: arm
          Assignee: [email protected]
          Reporter: [email protected]

VMDISK fetched from here:
https://download.freebsd.org/ftp/releases/VM-IMAGES/13.0-RC4/aarch64/Latest/FreeBSD-13.0-RC4-arm64-aarch64.raw.xz

host % export VMDISK=FreeBSD-13.0-RC4-arm64-aarch64.raw
host % qemu-system-aarch64 \
    -m 4096M \
    -cpu cortex-a57 \
    -M virt \
    -bios /usr/local/share/u-boot/u-boot-qemu-arm64/u-boot.bin \
    -serial telnet::4444,server \
    -nographic \
    -drive if=none,file=${VMDISK},format=raw,id=hd0 \
    -device virtio-blk-device,drive=hd0 \
    -device virtio-net-device,netdev=net0 \
    -netdev user,id=net0

The GPT bootme flag is set on p4 partition:

root@freebsd:~ # gpart show
=>       3  29426709  vtbd0  GPT  (14G)
         3     66584      1  efi  (33M)
     66587   2097152      2  freebsd-swap  (1.0G)
   2163739   8388608      3  freebsd-ufs  (4.0G)
  10552347   8388608      4  freebsd-ufs  [bootme]  (4.0G)
  18940955  10485757         - free -  (5.0G)

Yet FreeBSD boots from p3 partition:

root@freebsd:~ # df -m
Filesystem      1M-blocks Used Avail Capacity  Mounted on
/dev/vtbd0p3         3958 2709   931    74%    /
devfs                   0    0     0   100%    /dev
/dev/vtbd0p4         3958 2706   935    74%    /ufsbe/4
/dev/gpt/efiesp        31    1    30     4%    /boot/efi

What am I doing wrong here?

Why it does not boot from p4 where 'bootme' flag is set?

Regards.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-arm
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.