-
-
Notifications
You must be signed in to change notification settings - Fork 806
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
Neither miniterm nor minipush work for me #230
Comments
The Docker situation with serial ports is not great. To be honest, I haven't really tried to get this working: I just build directly in Linux without the Docker image and then use my fork of I was able to reproduce your issue. Sadly, I wasn't able to figure out how to fix it. Regardless of the arguments I give to Docker ( Perhaps someone who knows Docker better can help us out. We will try to get this all fixed as soon as possible. |
Thanks for investigating. At least I know it's not something obvious. I noticed the Dockerfile was based on ubuntu 20.04 and I wondered if the original host was also 20.04, and maybe they've tightened some security since then, so I've built a bootable USB stick from 20.04. So far, I'm getting the same results but I haven't done a lot of playing with that one, yet. |
Like I say, it's a |
You can close this ticket. I had two issues. The first was that I was using Docker Desktop. I'm not familiar with Docker. I already had it installed from another project. When I started these tutorials, I followed the Install Docker Engine link from the front page and clicking the Ubuntu link on there took me to the Install Docker Engine on Ubuntu page, which says: so I made an assumption that I wouldn't need to do anything else and then forgot all about it. Whilst I was digging, the day before yesterday, I came across a post where someone was working with some USB hardware in Docker Desktop and it wouldn't connect. Someone pointed out to him that Docker Desktop works differently from Docker Engine and didn't have as good hardware support, especially USB. Unfortuantely, that still didn't trigger my memory but I went through the process of uninstalling Docker Desktop and installing Docker Engine and then re-cloning the repo to get rid of all of my twiddling and 05 and 06 both now work for me. The second was that my moulded blue-plug USB-Serial adapter works up to the point where Thanks for looking into this for me, earlier. |
Ah. I am also using Docker Desktop, which explains why I was able to reproduce your problem. Thanks much: I'll try this myself! Please share whatever detail you can about the serial adapters? I'd really like to understand what's going on there. Thanks much for your patience as we figured stuff out. Glad you're working now. |
I have tried
make miniterm
in 05 andmake chainboot
in 06 and neither detects the USB serial device. I have two different USB serial devices and an RPi3 and an RPi4. I usedminiterm
in python3 andscip
to test that both USB serial devices and both RPis will boot the kernel for 05, so I'm happy that everything should work.I started with 05. I know nothing about Ruby so I resorted to the traditional approach of adding some print lines to see where it gets to. I added a
puts
line, here:Below, is my output. First, I ran the
ls -l
command and you can see that the USB Serial device is not plugged in/detected. Then I ranmake miniterm
and, after five loops, I plugged in the USB device . It's not detected. I cancel miniterm and re-run thels -l
and you can see the USB device is available on the host.So, I wondered if it's possible to check if the USB device is available in the docker container session. [I figured I needed a different docker command line. I don't know anything about Docker or
make
, so I did a bit of trail-and-error.] To themakefile
, after the section where you assemble the DOCKER_* command line components, I added:so that I could see the command line, and
and then after the
miniterm:
section, I added:When I run
make ttyusb
, having left the USB Serial device plugged in from the previous tests, I get:If I change it to:
I get
which is odd because I haven't told it to look for
/dev/ttuUSB0
.Note: previously, the
200
has been189
(and possibly other values).When I run the same command on the host, I get:
To confirm this, I also added to the
makefile
:and:
and when I run
make ttydmesg
, I get:Then I plug in the USB Serial device and there are no updates. At the same time, I was running
sudo dmesg -w | grep tty
in another terminal on the host and could see the USB device registering:As mentioned above, I have two different USB Serial devices (one USB, one USB-C) so I try the other one. I see no change on the container output but the host output shows:
Can you think of anything I can try?
I'm running Ubuntu VERSION="24.04.1 LTS (Noble Numbat)" on the host.
The text was updated successfully, but these errors were encountered: