[Bug 255072] boot (legacy): no progress beyond 'BIOS DRIVE D: is disk1'

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 08 Jan 2022 14:22:05 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255072

--- Comment #24 from spell@itl.ua ---
(In reply to Toomas Soome from comment #23)
gpart show /dev/da0
=>      1  2002941  da0  MBR  (978M)
        1     1600    1  efi  (800K)
     1601   803216    2  freebsd  [active]  (392M)
   804817  1198125       - free -  (585M)

This is 12.3-RELEASE-amd64 image.

disk_ioctl() returns the same 2002941 sectors and sector size 512.

According to my printf() info, probing disks appears ok.
The crash occurs on zfs probing stage, in the last iteration of the cycle:

        for (i = 0; devsw[i] != NULL; i++)

in loader's main.c, when i is 5 and devsw[i]->dv_name is zfs.

This is my printout with printf()'s in this cycle:

BTX loader 1.00  BTX version is 1.02
Consoles: internal video/keyboard
main.c: dv_name: fd dv_type=5
main.c: dv_name: cd dv_type=3
main.c: dv_name: disk dv_type=1
BIOS drive C: is disk0
BIOS drive D: is disk1
main.c: dv_name: net dv_type=2
main.c: dv_name: vdisk dv_type=1
main.c: dv_name: zfs dv_type=4

Zfs probing firstly probes HDD and here always is ok, and then probes Flash
drive and crashes on it (if AHCI mode set).

>Possible way to test this guess would be to read 1 sector at a time.
How to do this?

-- 
You are receiving this mail because:
You are the assignee for the bug.