Skip to content
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

Open
rdunkle34 opened this issue Jan 21, 2024 · 1 comment
Open

Orange Pi 5 Plus - serial port not working in FreeBSD14 and 13.2 #118

rdunkle34 opened this issue Jan 21, 2024 · 1 comment

Comments

@rdunkle34
Copy link

rdunkle34 commented Jan 21, 2024



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.

@mariobalanica
Copy link
Collaborator

mariobalanica commented Jan 21, 2024

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.

I believe there is something missing in the DTB for the serial port on the Orange Pi 5 Plus.

DTB is only usable for Rockchip Linux. For anything else ACPI should be used, and it's the default choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants