You could see warnings about keyring here; they are harmless and they can be safely ignored: W: Cannot check Release signature;
I suppose this is another coffee-break command.
Once finished, we should find, in debian-stretch-arm64, a clean Debian root filesystem for the ESPRESSObin but, before transferring it into the microSD, we should fix the hostname file contents as shown here:
Then, we have to add the serial device ttyMV0 to the /etc/securetty file in order to be able to log in as the root user through the serial device, /dev/ttyMV0. Use the following command:
Use man securetty for further information about the root login through a serial connection.
And, as a last step, we have to set up a root password:
$ sudo chroot debian-stretch-arm64/ passwd Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
Here, I used the rootstring as password for the root user (it is up to you to choose yours).
In order to have further information regarding this usage of the chrootcommand, you can use the man chrootcommand or continue reading till the end of this chapter where I'm going to explain a bit better how it works.
Now, we can safely copy all files into our microSD using the following command:
$ sudo cp -a debian-stretch-arm64/* /media/$USER/root/
Here is what the microSD content should look like:
$ ls /media/$USER/root/ bin dev home lost+found mnt proc run srv tmp var boot etc lib media opt root sbin sys usr