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 the 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
aarch64
,all
, andraspberrypi4_64
inipk
. The architecture directory isaarch64
, while the machine directory israspberrypi4_64
. The names of these two directories will vary, depending on how your image has been configured...