I have been trying to install Home Assistant OS on my APU.3C4-based PC (PC Engines apu3c4 product file). Note the board has no graphics card port. I managed to write the downloaded 8.4 release image to its disk. I would like to use its serial port so I can control the machine from my laptop, but I am not getting anything on the port that is connected to my laptop running Debian GNU/Linux (the stable Bullseye release). Because of that, I don’t know what is going on when I boot from SSD that has the image written over it.
How do I make HAOS to give something on the serial port? I believe I should change the kernel arguments to include console=ttyS0,115200n8 as that has worked for other OSes I installed on the machine. However, I do not know how to do that with the officially released 8.4 image.
What I attempted is to build a generic_x86_64 HAOS image by cloning https://github.com/home-assistant/operating-system/, checking out the 8.4 tag, then modifying ./buildroot-external/board/pc/generic-x86-64/cmdline.txt to read console=ttyS0,115200n8, and finally running sudo scripts/enter.sh make generic_x86_64. Unfortunately, this results in the following error:
...
1bdfc9a49750: Pull complete
b6227924db50: Pull complete
Digest: sha256:f8c65c9a3ecaa40c8f6e90e67c23c79c4dd6a2bee646a8c7c71bf9e49bea4eae
Status: Downloaded newer image for docker:20.10-dind
Waiting for Docker daemon...
Loading containers...
Loaded image: ghcr.io/home-assistant/amd64-hassio-audio:2022.05.0
open /var/lib/docker/tmp/docker-import-1908728770/repositories: no such file or directory
make[1]: *** [package/pkg-generic.mk:375: /build/output/build/hassio-1.0.0/.stamp_images_installed] Error 1
make[1]: Leaving directory '/build/buildroot'
make: *** [Makefile:39: generic_x86_64] Error 2
What do I do to resolve this image build issue, or more generally - how to get the serial port working for HAOS?
...
# Make sure to order images by size (largest first)
# It seems docker load requires space during operation
# shellcheck disable=SC2045
for image in $(ls -S /build/images/*.tar); do
docker load --input "${image}"
done
...
then check directory “/build/images/*.tar”, tar files exists.