On Fri, 30 Jul 2021, Peter Grehan wrote:

I grabbed an external USB drive from an Intel machine and put it to an AMD host
using it to boot directly from it like:
         -s 3,ahci-hd,/dev/da0,sectorsize=512 \
...

On the AMD machine this doesn't work and I get a lot of:

ivhd0: EVT INTR 45 Status:0x1a EVT Head:0xfb0 Tail:0x430]^M
   [CMD Total 0xaf] Tail:0xaf0, Head:0xaf0.^M
...
Is this in theory supposed to work?

Yes.

Good.


Does this in any way depend on the USB
port used or are we simply working on the device node?

bhyve only uses the device node.

Also good.


Do you have passthru devices configured ? If so, are they under the same controller that the USB device is on ?

I do.
And they did work fine without the raw disk (netbooting FreeBSD).
If I remove the passthru devices the Linux on the disk boots.

nexus0
  cryptosoft0
  aesni0
  smbios0
  ram0
  apic0
  vtvga0
  acpi0
    cpu0
      hwpstate0
      acpi_perf0
      cpufreq0
    cpu1
      acpi_perf1
    cpu2
      acpi_perf2
    cpu3
      acpi_perf3
    acpi_button0
    pcib0
      pci0
        hostb0
        amdiommu0
        hostb1
        pcib1
          pci1
            ppt0
        pcib2
          pci2
            igb0
        pcib3
          pci3
            ppt1
        pcib4
          pci4
            ppt2
        pcib5
          pci5
            ppt3
        xhci0
          usbus0
            uhub1
              umass0
        ahci0
          ahcich0
          ahcich1
        ehci0
          usbus1
            uhub0
              uhub2
        isab0
          isa0
            orm0
            superio0
              wbwd0
        sdhci_pci0
        hostb2
        hostb3
        hostb4
        hostb5
        hostb6
        hostb7
    acpi_tz0
...


(also what version of FreeBSD on the host)

HEAD as of a few days or weeks ago.

--
Bjoern A. Zeeb                                                     r15:7

Reply via email to