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

Nanopi R1: See if UART1(external uart) can be used #130

Open
vj-kumar opened this issue Dec 30, 2021 · 7 comments
Open

Nanopi R1: See if UART1(external uart) can be used #130

vj-kumar opened this issue Dec 30, 2021 · 7 comments

Comments

@vj-kumar
Copy link
Contributor

Once you put the R1 inside its metallic case, you no longer have access to the debug uart. Only UART1 near the Antenna connector is visible. Need to find out if UART1 can be used as debug uart.

@chombourger
Copy link
Collaborator

It is something we may want as a build-time setting since some folks may want to connect UART1 to their DUT

@vj-kumar
Copy link
Contributor Author

vj-kumar commented Jan 4, 2022

Agreed.

@bovi
Copy link
Member

bovi commented Jun 7, 2023

@chombourger do you actually use the NanoPI NEO with a second UART based on the ISAR image in this repo? A colleague from me who is just setting this up is struggling with it. I notice that the documentation seems to elaborate quiet a bit about the NanoPI, hence I would assume it is his fault (-;

/cc @kergos

@chombourger
Copy link
Collaborator

@chombourger do you actually use the NanoPI NEO with a second UART based on the ISAR image in this repo? A colleague from me who is just setting this up is struggling with it. I notice that the documentation seems to elaborate quiet a bit about the NanoPI, hence I would assume it is his fault (-;

/cc @kergos

Hello @bovi , this issue is for the https://www.friendlyelec.com/index.php?route=product/product&product_id=248, another NanoPI variant.

I don't think the NEO has pins for 2 UARTs: just one.

I did use the UART at the very beginning to bring-up the NEO but have not since (I however believe the first and only UART should still work).

@bovi
Copy link
Member

bovi commented Jun 20, 2023

Hi @chombourger,

the NEO definitly has more than one UART: Screenshot 2023-06-21 at 01 08 14

As a matter of fact @kergos has managed today to use the UART from a regular Armbian by modifying the overlay kernel configuration. So the hardware is definitely capable but we didn't yet manage to bring this back into ISAR. If we manage to change the ISAR to work probably on the NEO Core would you accept a merge request to integrate it here? Or would you prefer to maintain additional ISAR configurations outside of the tree?

@chombourger
Copy link
Collaborator

thanks for the pointers. I would definitely accept a merge request to get those UART interfaces supported (it would be super useful to have the NanoPI+MTDA able to get the target console over UART)

@fmoessbauer
Copy link
Member

As a matter of fact @kergos has managed today to use the UART from a regular Armbian by modifying the overlay kernel configuration. So the hardware is definitely capable but we didn't yet manage to bring this back into ISAR.

I'm currently working on integrating the necessary infrastructure for that into ISAR and Linux:

The ISAR-only strategy is to use the DTs from u-boot, as these are compile with symbol information. This also works with the distro kernels pre Linux 6.6, however the device trees might be a bit out-of-sync with the one from the corresponding kernel version. From Linux 6.6 on, we can use the DT from the distro kernel again.

Note: we are already running the ISAR + u-boot DTs approach for some weeks in our lab now.

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

4 participants