Date: Wed, 22 Jan 2025 12:02:27 +0900 From: FUKAUMI Naoki <naoki@radxa.com> To: Warner Losh <imp@bsdimp.com>, Mark Millard <marklmi@yahoo.com> Cc: freebsd-arm@freebsd.org, Andrew Turner <andrew@fubar.geek.nz> Subject: Re: Radxa Orion O6 Message-ID: <289A1E5B1EB26246%2B02035adf-93b2-432e-aac7-8b9135ff600e@radxa.com> In-Reply-To: <CANCZdfobczXAct-C9Vvffe2mmj0Y5kpj-W-ywVbMQg_O5cctNg@mail.gmail.com> References: <EDDF572D3560B2F6%2Bc4a27a6d-9a19-40df-9eef-42bbb4e9aa39@radxa.com> <087C4A9F-288B-40EA-BE1B-ACFD32C86DF2@yahoo.com> <C7599FF0E0B3381D%2Be0606559-357c-435c-8534-7353a2055749@radxa.com> <9B90ADE3-9E1E-448A-B592-509B0E61B197@yahoo.com> <C7C5CBC3CFEF3079%2B0371ac55-6f32-4017-8916-4e3fbb971ad7@radxa.com> <1B4F62E3-A269-4611-B9ED-1A72298FFC85@yahoo.com> <6591E59D-4E91-4325-8A77-46E182303927@yahoo.com> <9581F4025795F7C5%2B10590950-836c-4d9c-9c05-43b25b880e08@radxa.com> <9EDB5AF9-B11B-474E-8541-6C10098574CE@yahoo.com> <CANCZdfobczXAct-C9Vvffe2mmj0Y5kpj-W-ywVbMQg_O5cctNg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Warner, On 1/22/25 06:26, Warner Losh wrote: > I think there is... The loader thinks the console is only serial. Andy > Turner > has a review to add additional pl011 types that are common but were missed > by my initial parsing. Maybe all we need is https://reviews.freebsd.org/ > D48526 <https://reviews.freebsd.org/D48526> > to get to the next level. I think type is 0x03 on Orion O6. $ grep EFI_ACPI_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_INTERFACE_TYPE_ARM_PL011_UART edk2/MdePkg/Include/IndustryStandard/SerialPortConsoleRedirectionTable.h edk2-platforms/Platform/CIX/Sky1/Drivers/AcpiSocTables/Spcr.aslc edk2/MdePkg/Include/IndustryStandard/SerialPortConsoleRedirectionTable.h:#define EFI_ACPI_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_INTERFACE_TYPE_ARM_PL011_UART 0x03 edk2-platforms/Platform/CIX/Sky1/Drivers/AcpiSocTables/Spcr.aslc: EFI_ACPI_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_INTERFACE_TYPE_ARM_PL011_UART, Btw, I found the key to enable the SPCR table in EDK2. I rebuilt the UEFI and the SPCR table started to appear. But on FreeBSD things got worse, I lost output on both serial and HDMI... Linux(same as before = both serial and HDMI work): [ 0.000000] ACPI: RSDP 0x0000000479C30018 000024 (v02 CIXTEK) [ 0.000000] ACPI: XSDT 0x0000000479C3FE98 00007C (v01 CIXTEK SKY1EDK2 01000101 01000013) [ 0.000000] ACPI: FACP 0x0000000479C3FC98 00010C (v05 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 0.000000] ACPI: DSDT 0x0000000479C10018 012C20 (v05 CIXTEK SKY1EDK2 00000001 INTL 20200925) [ 0.000000] ACPI: SSDT 0x0000000479C37518 002FCA (v05 CIXTEK SKY1EDK2 00000001 INTL 20200925) [ 0.000000] ACPI: CSRT 0x0000000479C3FA98 00008C (v00 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 0.000000] ACPI: DBG2 0x0000000479C3FB98 00005C (v00 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 0.000000] ACPI: GTDT 0x0000000479C3E998 000084 (v03 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 0.000000] ACPI: IORT 0x0000000479C3BD18 000AD8 (v05 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 0.000000] ACPI: SDEI 0x0000000479C3FE18 000024 (v01 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 0.000000] ACPI: SPCR 0x0000000479C3FF98 000050 (v02 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 0.000000] ACPI: APIC 0x0000000479C3EA98 000428 (v05 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 0.000000] ACPI: SSDT 0x0000000479C3CE18 0011FC (v02 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 0.000000] ACPI: MCFG 0x0000000479C3F918 00006C (v01 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 0.000000] ACPI: SPCR: console: pl011,mmio32,0x40e0000,115200 [ 0.000000] ACPI: Use ACPI SPCR as default console: Yes NetBSD(same as before = only HDMI works): [ 1.000000] ACPI: RSDP 0x0000000479C30018 000024 (v02 CIXTEK) [ 1.000000] ACPI: XSDT 0x0000000479C3FE98 00007C (v01 CIXTEK SKY1EDK2 01000101 01000013) [ 1.000000] ACPI: FACP 0x0000000479C3FC98 00010C (v05 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 1.000000] ACPI: DSDT 0x0000000479C10018 012C20 (v05 CIXTEK SKY1EDK2 00000001 INTL 20200925) [ 1.000000] ACPI: SSDT 0x0000000479C37518 002FCA (v05 CIXTEK SKY1EDK2 00000001 INTL 20200925) [ 1.000000] ACPI: CSRT 0x0000000479C3FA98 00008C (v00 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 1.000000] ACPI: DBG2 0x0000000479C3FB98 00005C (v00 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 1.000000] ACPI: GTDT 0x0000000479C3E998 000084 (v03 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 1.000000] ACPI: IORT 0x0000000479C3BD18 000AD8 (v05 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 1.000000] ACPI: SDEI 0x0000000479C3FE18 000024 (v01 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 1.000000] ACPI: SPCR 0x0000000479C3FF98 000050 (v02 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 1.000000] ACPI: APIC 0x0000000479C3EA98 000428 (v05 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 1.000000] ACPI: SSDT 0x0000000479C3CE18 0011FC (v02 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 1.000000] ACPI: MCFG 0x0000000479C3F918 00007C (v01 CIXTEK SKY1EDK2 01000101 CIX 00000001) OpenBSD(worse than before = no output from both serial and HDMI): boot> NOTE: random seed is being reused. booting sd0a:/bsd: 11519740+2776632+299032+849160 [934269+91+1308336+810852]=0x1 402018 FACP SSDT CSRT DBG2 GTDT IORT SDEI SPCR APIC SSDT MCFG Best regards, -- FUKAUMI Naoki Radxa Computer (Shenzhen) Co., Ltd.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?289A1E5B1EB26246%2B02035adf-93b2-432e-aac7-8b9135ff600e>