Provisioning a remote package server
Setting up an HTTP remote package server and pointing your target clients at it is easier than you might think. The client-side server address configuration varies between package managers. We will configure opkg
manually on Raspberry Pi 4.
Let’s start with the package server:
- First, navigate one level above the directory where you cloned Yocto.
- Next, set up your BitBake work environment:
$ source poky/oe-init-build-env build-rpi
- This sets a bunch of environment variables and puts you back in the
build-rpi
directory. - Build the
curl
package:$ bitbake curl
- Populate the package index:
$ bitbake package-index
- Locate the package installer files:
$ ls tmp-glibc/deploy/ipk
- There should be three directories, named cortexa72, all, and raspberrypi4_64, in ipk. The architecture directory is cortexa72 while the machine directory is raspberrypi4_64...