how to symbolic link /dev/serial0 -> /dev/ttyAMA0 #27229
Unanswered
jfrancis71
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a Raspberry Pi 5 with BuildHat (a lego hardware interface).
The build hat software determines the Raspberry Pi model by looking at /dev/serial0 and querying what it links to. So it is important for correction operation that /dev/serial0 should link to /dev/ttyAMA10
I have a dev rule that sets this up in the host. So on host /dev/serial0 -> /dev/ttyAMA10
My Dockerfile looks like
If I try:
podman run --rm -it --privileged poddy
The link is not present.
With Docker I can execute:
docker run --rm -it --privileged -v /dev:/dev hat
and I see:lrwxrwxrwx 1 root root 8 Oct 2 11:03 /dev/serial0 -> ttyAMA10
which is what I want.
But if I try the equivalent with podman:
podman run --rm -it --privileged -v /dev:/dev poddy
I get an error:
Error: container create failed (no logs from conmon): conmon bytes "": readObjectStart: expect { or n, but found , error found in #0 byte of ...||..., bigger context ...||...
Any help appreciated. Thanks
Beta Was this translation helpful? Give feedback.
All reactions