StarFive VisionFive 2/Catalyst

From Gentoo Wiki
Jump to:navigation Jump to:search

Differents approach to build a Catalyst seed

Use the crossdev root (option 1)

It is possible directly use the crossdev root under /usr to build a rootfs; it is broadly similar to using Catalyst however instead of generating a seed tarball the rootfs is built by chrooting directly into the crossdev root. There are some advantages to this approach, particularly that it is possible to save a significant amount of time.

While this may be faster for quick development or building for a single device, if intending to target multiple configurations it is usually better to use Catalyst as a generic stage 1 image may be created and used as the base for multiple stage 3 images. Using Catalyst also provides better isolation between the host and target systems.

The target environment must also match the merged/split /usr layout of the host environment: if the host environment is a split /usr, then the Gentoo profile used in the target environment must also be one of the split /usr profile. In case a mismatch would happen, expect some failures when emerging some packages. No need for an exact match however: it is possible to use a OpenRC profile on the host and a Systemd profile on the target as long as their /usr layout is the same.