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

Rock 5B - Uarts #6989

Open
isarrider opened this issue Mar 27, 2024 · 19 comments
Open

Rock 5B - Uarts #6989

isarrider opened this issue Mar 27, 2024 · 19 comments

Comments

@isarrider
Copy link

Hi,

on my Rock 5B I can only see 2 Uarts:
│ ttyS6 console : [On] │
│ ttyFIQ0 console : [Off] │
I guess thats is similar for everybody when not on a newer kernel
like here: https://forum.armbian.com/topic/27877-rs232-activation/

And it has to wait for a kernel update?

BR,
Alex

@MichaIng
Copy link
Owner

Which kernel version do you currently have?

uname -a

@isarrider
Copy link
Author

isarrider commented Mar 27, 2024

Latest that comes along:
Linux Rock5-4GB 5.10.160-legacy-rk35xx

@MichaIng
Copy link
Owner

Ah right. I wanted to add builds for the new Linux 6.1 "vendor" branch Armbian generated for RK3588. But I need to add support for building those to our GitHub Actions workflow.

@isarrider
Copy link
Author

@isarrider
Copy link
Author

@isarrider
Copy link
Author

looking at this 6.1 might not be enough for UART...

@MichaIng MichaIng modified the milestones: v9.3, v9.4 Apr 16, 2024
@MichaIng MichaIng modified the milestones: v9.4, v9.5 May 13, 2024
@isarrider
Copy link
Author

This would also work here, right?
#6797

@isarrider
Copy link
Author

Doing "apt install linux-{image,dtb}-vendor-rk35xx" on the Rock 5B works, but then u only have:
ttyFIQ0 console : [Off]
and nth else...
This link shows that 6.3 changes sth as there is then support...
Any plan to get the Rock 5B also to the latest kernel?

@isarrider
Copy link
Author

isarrider commented May 23, 2024

and it gives you btw this Kernel:
Linux Rock5-4GB 6.1.43-vendor-rk35xx #1 SMP Sat May 11 11:15:57 UTC 2024 aarch64 GNU/Linux

@MichaIng
Copy link
Owner

Hmm, there are a bunch of overlays for RK3588 and UART, but not sure whether they apply in this particular case:
image
Can you try that: rk3588 is the prefix, so use e.g. uart0-m2 in the overlays= line (in case add it) in /boot/dietpiEnv.txt to enable UART0. Not sure which one is which on this SBC, and whether they really work on all RK3588 SBCs, but worth to try.

@isarrider
Copy link
Author

I saw that but it seemed so random and I was hpoing for a newer kernel where it should be in...
But let me try...

@isarrider
Copy link
Author

doenst change, still:
ttyFIQ0 console : [Off]
no matter if with or without prefix...

@MichaIng
Copy link
Owner

It must be without prefix, else it cannot work. Also the file extension must be skipped. So really just "uart0-m2", respectively.

overlays=uart0-m2

And try that with all overlays, whether any of them works.

@isarrider
Copy link
Author

We get this (and again what learned ;)) with overlays=uart0-m2:
ttyS0 console : [Off]
ttyFIQ0 console : [Off]

@MichaIng
Copy link
Owner

So far so good. The question then is which pins that one uses, which UART you need and if it actually works 🙂.

@isarrider
Copy link
Author

isarrider commented May 23, 2024

actually I need more than one UART - so only a tiny step.
Like a car with one instead of zero wheels... ;)

@MichaIng
Copy link
Owner

Just add more overlays, space-separated:

overlays=uart0-m2 uart1-m1

I read some time ago, but forgot what those -mX suffixes mean 🤔.

@isarrider
Copy link
Author

hmm - interesting - didnt know you can use more of them at once...
Could be a good workaround until a newer kernel is there...

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

No branches or pull requests

2 participants