VirtualBox

Changeset 101191 in vbox for trunk


Ignore:
Timestamp:
Sep 20, 2023 12:16:40 PM (18 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
159164
Message:

Main/ConsoleImplConfigArmV8.cpp: Emit the uart FDT node only when a serial port is actually configured to avoid the UEFI hanging because it thinks there is something available, bugref:10403

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImplConfigArmV8.cpp

    r101073 r101191  
    534534            InsertConfigInteger(pCfg,  "MmioBase", 0x09000000);
    535535
     536            vrc = RTFdtNodeAddF(hFdt, "pl011@%RX32", 0x09000000);                               VRC();
     537            vrc = RTFdtNodePropertyAddStringList(hFdt, "clock-names", 2, "uartclk", "apb_pclk"); VRC();
     538            vrc = RTFdtNodePropertyAddCellsU32(hFdt, "clocks", 2,
     539                                               idPHandleAbpPClk, idPHandleAbpPClk);             VRC();
     540            vrc = RTFdtNodePropertyAddCellsU32(hFdt, "interrupts", 3, 0x00, 0x01, 0x04);        VRC();
     541            vrc = RTFdtNodePropertyAddCellsU32(hFdt, "reg", 4, 0, 0x09000000, 0, 0x1000);       VRC();
     542            vrc = RTFdtNodePropertyAddStringList(hFdt, "compatible", 2,
     543                                                 "arm,pl011", "arm,primecell");                 VRC();
     544            vrc = RTFdtNodeFinalize(hFdt);                                                      VRC();
     545
    536546            BOOL  fServer;
    537547            hrc = serialPort->COMGETTER(Server)(&fServer);                                  H();
     
    549559            }
    550560        }
    551 
    552         vrc = RTFdtNodeAddF(hFdt, "pl011@%RX32", 0x09000000);                               VRC();
    553         vrc = RTFdtNodePropertyAddStringList(hFdt, "clock-names", 2, "uartclk", "apb_pclk"); VRC();
    554         vrc = RTFdtNodePropertyAddCellsU32(hFdt, "clocks", 2,
    555                                            idPHandleAbpPClk, idPHandleAbpPClk);             VRC();
    556         vrc = RTFdtNodePropertyAddCellsU32(hFdt, "interrupts", 3, 0x00, 0x01, 0x04);        VRC();
    557         vrc = RTFdtNodePropertyAddCellsU32(hFdt, "reg", 4, 0, 0x09000000, 0, 0x1000);       VRC();
    558         vrc = RTFdtNodePropertyAddStringList(hFdt, "compatible", 2,
    559                                              "arm,pl011", "arm,primecell");                 VRC();
    560         vrc = RTFdtNodeFinalize(hFdt);                                                      VRC();
    561561
    562562        InsertConfigNode(pDevices, "arm-pl031-rtc", &pDev);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette