google-coral / coralmicro

Source code for Coral Dev Board Micro
Apache License 2.0
106 stars 44 forks source link

Coral Mini and Mendel Install #71

Closed silver2row closed 11 months ago

silver2row commented 1 year ago

Description

Hello,

I am using Debian Bookworm as a host. I can get as far as getting online and then I receive errors that are not available when researching online. I think pushing an apt repo. may be more rewarding compared to just using pip3 via python3 -m pip install ....

https://coral.ai/docs/dev-board-mini/get-started/#1-gather-requirements works until I need to install MDT. When installing MDT, I receive an error about some ssh keys not being installed or available. Also, when I use the command, python3 -m pip install --user mendel-development-tool , the error is stating that I can use it but I have to admit that it will break python3.

Seth

Click to expand! ### Issue Type Build/Install ### Operating System Linux ### Coral Device Dev Board Mini ### Other Devices _No response_ ### Programming Language Other ### Relevant Log Output ``` mdt shell Waiting for a device... Connecting to green-quill at 192.168.x.x Key not present on green-bill -- pushing Couldn't connect to keymaster on green-bill: [Errno 111] Connection refused. Did you previously connect from a different machine? If so, mdt-keymaster will not be running as it only accepts a single key. You will need to either: 1) Remove the key from /home/mendel/.ssh/authorized_keys on the device via the serial console - or - 2) Copy the mdt private key from your home directory on this host in ~/.config/mdt/keys/mdt.key to the first machine and use 'mdt pushkey mdt.key' to add that key to the device's authorized_keys file. Failed to push via keymaster -- will attempt password login as a fallback. Can't login using default credentials: Bad authentication type; allowed types: ['publickey'] ``` and... ``` python3 -m pip install --user mendel-development-tool error: externally-managed-environment × This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install. If you wish to install a non-Debian-packaged Python package, create a virtual environment using python3 -m venv path/to/venv. Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make sure you have python3-full installed. If you wish to install a non-Debian packaged Python application, it may be easiest to use pipx install xyz, which will manage a virtual environment for you. Make sure you have pipx installed. See /usr/share/doc/python3.11/README.venv for more information. note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification. ```
silver2row commented 1 year ago

Hello,

I will get the log output soon. I am sorry I did not have it on me at the time of writing the error/issue.

Seth

P.S. I tried w/ --break-system-packages and I just installed python3-full. I will report back soon. Okay, so, python3-full does not do the trick. I will test w/ python3-venv and then report back.

silver2row commented 1 year ago

Okay. I found a newer image and the fastboot requirements...

Updates on the way!

silver2row commented 1 year ago

Okay...

So, I got this far now:

Login timed out after 60 seconds
Mendel GNU/Linux (eagle) queen-orange ttyS0

queen-orange login: eagle
Password: 

Login incorrect
queen-orange login:

I do not know the sign in credentials. Send guidance.

Seth

Update

I got to sign in but only via the UART at /dev/ttyUSB0 w/ mendel:mendel. I still cannot sign in via the mdt action command.

silver2row commented 1 year ago

Okay...

So, I got this far now:

Login timed out after 60 seconds
Mendel GNU/Linux (eagle) queen-orange ttyS0

queen-orange login: eagle
Password: 

Login incorrect
queen-orange login:

I do not know the sign in credentials. Send guidance.

Seth

silver2row commented 1 year ago
# Hack in known-to-be-working-in-docker version, see
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=930684
wget -O debbootstrap.deb http://ftp.us.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.89_all.deb
--2023-09-19 01:16:20--  http://ftp.us.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.89_all.deb
Resolving ftp.us.debian.org (ftp.us.debian.org)... 64.50.233.100, 64.50.236.52, 208.80.154.139, ...
Connecting to ftp.us.debian.org (ftp.us.debian.org)|64.50.233.100|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2023-09-19 01:16:20 ERROR 404: Not Found.

make: *** [//build/prereqs.mk:73: prereqs] Error 8
make: Leaving directory '/build'
The command '/bin/sh -c /bin/bash -c 'apt-get update && apt-get install -y sudo make && ln -sfr /build/Makefile /Makefile && source /build/setup.sh && make -C /build prereqs'' returned a non-zero code: 2
make: *** [/home/partl/bin/build/docker.mk:32: /home/partl/bin/cache/aiy-board-builder.tar] Error 2

I am getting an error (obviously). Did people in the Mendel Linux Distro quit or are they refusing to update the build?

Either way, I cannot build the Mendel Linux Distro from source on a Debian 12 Bookworm Distro. Is there any other ways outside of this site: https://coral.googlesource.com/docs/+/refs/heads/master/GettingStarted.md ?

Also...if you are building this repo and try to put the file /bin/ in use, do not. This will create headaches down the road when trying to erase things.

google-coral-bot[bot] commented 11 months ago

Are you satisfied with the resolution of your issue? Yes No