(With a little help) I successfully built core-image-minimal and installed it on an SDcard that booted my X-MCIMX8M-EVK. My goal was to have an Ubuntu with apt-get so I could load other Linux packages.
I believe these lines in ~/imx-yocto-bsp/build-min/conf/local.conf were key to getting apt-get.
# Switch to Debian packaging and include package-management in the image
PACKAGE_CLASSES = "package_deb"
EXTRA_IMAGE_FEATURES += "package-management"
Now I have apt-get and several other apt commands:
# ls /usr/bin/*apt*
/usr/bin/apt /usr/bin/apt-ftparchive
/usr/bin/apt-cache /usr/bin/apt-get
/usr/bin/apt-cdrom /usr/bin/apt-key
/usr/bin/apt-config /usr/bin/apt-mark
/usr/bin/apt-extracttemplates /usr/bin/apt-sortpkgs
But I can't get any packages:
root@imx8mqevk:/# apt update
Reading package lists... Done
Building dependency tree... Done
All packages are up to date.
root@imx8mqevk:/# apt install build-essential
Reading package lists... Done
Building dependency tree... Done
E: Unable to locate package build-essential
I do not have any entries in /etc/apt/sources.list.
When I edited some in, i got the following errors for all that I copied from another Ubuntu 20.04 installation:
W: GPG error: http://ports.ubuntu.com/ubuntu-ports focal-security InRelease: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
E: The repository 'http://ports.ubuntu.com/ubuntu-ports focal-security InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Why didn't the Yocto project that I made successfully contain some valid repositories that I could use to get tools from?