-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Orange Pi 5 Plus - serial port not working in FreeBSD14 and 13.2 #118
Comments
FreeBSD is hardcoding a 200 MHz ref clock here: https://github.com/freebsd/freebsd-src/blob/main/sys/dev/uart/uart_dev_ns8250.c#L461, while on this platform the clock is running at 24 MHz. So it does not look like a firmware issue. The UART console works fine in NetBSD, although it's being reconfigured at 115200 baud.
DTB is only usable for Rockchip Linux. For anything else ACPI should be used, and it's the default choice. |
What is inside your loader.conf ? With my Orange Pi5 plus, i have EDK2 0.9.1-7 in SPI, i boot on Nvme and loader.conf contain: dtbfile_load="YES" root@Orange-Pi-5-PlusBSD:~ # uname -a I have both console AND serial usable. (cu -s 1500000 -l /dev/cuaU0) with USB Serial connected to OrangePi5+ serial PIN. |
In my opinion, it should be written like this I managed to get a uart console only after this patch |
You are right, but with console="efi,comconsole" i get the message "console comconsole failed to initialize" Consoles: EFI console Command line arguments: loader.efi I have more problem with USB2, after FreeBSD boot USB2 are unusable, before FreeBSD boot, USB2 can be used in EDK2 with Keyboard but you loose the keyboard after OS boot :( |
Use the latest build artifact on Github to get USB 2 working. |
This won't work because FreeBSD doesn't have a generic_ohci_acpi driver. Here's the patch |
Using: v0.9.1-19-gcc77cee8
when I boot efi the serial ports works. The speed can be changed from the efi firmware. The terminal works OK up to the point where the system checks the processors. I see this on console during boot:
Setting currdev to disk0p2:
Loading /boot/defaults/loader.conf
Loading /boot/defaults/loader.conf
Loading /boot/device.hints
Loading /boot/loader.conf
console comconsole failed to initialize
The processors are identified and then serial output stops.
Output looks like this:
output to serial always stops here--> I/TC: Secondary CPU 7 switching to normal world boot.
Speed can be set to 150000 or 115200 in efi. the same results.
dmesg | grep uart
uart0: iomem 0xfeb50000-0xfeb50fff irq 21 on acpi0
On FreeBSD normally the next line of the dmesg output will show that the uart0 is then configured.
It normally looks like this:
uart0: console (115200,n,8,1)
I believe there is something missing in the DTB for the serial port on the Orange Pi 5 Plus.
The text was updated successfully, but these errors were encountered: