yocto
Yocto
- Essai : Créer une image 64-bit pour Raspberry Pi 3
$ git clone -b thud git://git.yoctoproject.org/poky.git poky-thud $ cd poky-thud $ git clone -b thud git://git.yoctoproject.org/meta-raspberrypi $ source oe-init-build-env rpi3-64-build $ bitbake-layers add-layer ../meta-raspberrypi $ bitbake-layers add-layer ../meta-openembedded/meta-oe $ bitbake-layers add-layer ../meta-openembedded/meta-multimedia $ echo "MACHINE = \"raspberrypi3-64\"" >> conf/local.conf $ echo "DISTRO_FEATURES_append = \"wifi\"" >> conf/local.conf $ echo "IMAGE_INSTALL_append = \"dropbear mpd alsa-utils htop kernel-modules linux-firmware-bcm43430 wpa-supplicant\"" >> conf/local.conf $ echo "LICENSE_FLAGS_WHITELIST = \"commercial\"" >> conf/local.conf $ echo "PACKAGECONFIG += \"alsa ffmpeg flac\"" >> ../meta-openembedded/meta-multimedia/recipes-multimedia/musicpd/mpd_0.20.22.bb $ bitbake core-image-minimal
- En cas de message d'erreur “Your system needs to support the en_US.UTF-8 locale.”, faire
dpkg-reconfigure locales
pour ajouteren_US.UTF-8
. - Configurer WiFi et MPD : Suivre cette config, il faut changer le numéro de la carte son dans
mpd.conf
, c'est-à-diredevice “hw:2,0”
(cat /proc/asound/cards
pour trouver ce numéro). Lancermpd
pour tester.- Pour que
mpd
se lance au boot :# cd /etc/init.d/ # wget http://download.tuxfamily.org/bz31notes/yocto/files/mpd # chmod +x mpd # update-rc.d mpd defaults
yocto.txt · Dernière modification : 2018/12/07 16:27 de bz31