I am booting FUSDK Linux image through SD card on Hifive Sifive Ub=nmatched Board.Which package manager should I follow to install required packages on it.apt-get is not working
The default package manager is opkg, but there is remote repositories. You need to use OpenEmbedded to build the packages, copy them over (*.ipk), install with opkg.
That should be “there is no remote repository”.
Hello KN Ganendra Murthy
In the yocto build system, you can also maintain your own apt-get server.
For this, in the yocto build system, you have to follow the below steps.
you have to add the below variables in the image then only u can access the apt-get server
IMAGE_INSTALL_append = " apt " // your image should be apt package
EXTRA_IMAGE_FEATURES ?= "debug-tweaks package-management ssh-server-openssh"
// for package management
PACKAGE_CLASSES = “package_deb” // it will create deb files for eack package
you have to build required packages at least one time later you can install the debs by using apt-get in runtime.
after building packages you have to do the below steps to run the apt-get server.
$ bitbake package-index
later you should go in this path/directory : build/tmp-glibc/deploy/deb and run below commnd to run apt-get server
$ python -m SimpleHTTPServer 8000 // in my case port number is 8000 given in the conf/local.conf
if you add apt in your image and server IP. in the image should become server IP and debs packages directory’s
root@Unmatched~# cat /etc/apt/sources.list
deb http://192.168.1.4:8000/all ./
deb http://192.168.1.4:8000/riscv64 ./
deb http://192.168.1.4:8000/unmatched ./
after booting the image u do an apt-get update before this u have to run the python -m SimpleHTTPServer 8000 command in the build directory then apt will install packages from your apt server
$ apt-get install package-name
Later apt-get it will work in your image.
If u have any doubts please free to ask.