Created
May 5, 2018 16:29
-
-
Save samqi/e99d95ae603fc89de36e3f09a958eaaa to your computer and use it in GitHub Desktop.
yocto-rpi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# old ref with 12mb image for R Pi https://www.cnx-software.com/2013/07/05/12mb-minimal-image-for-raspberry-pi-using-the-yocto-project/ | |
######################################################### | |
# 2018 - yocto for R Pi - http://www.jumpnowtek.com/rpi/Raspberry-Pi-Systems-with-Yocto.html | |
# install dependency on build machine/server | |
sudo apt install build-essential chrpath diffstat gawk libncurses5-dev texinfo python2.7 | |
# | |
#get main Yocto project poky layer | |
git clone -b rocko git://git.yoctoproject.org/poky.git poky-rocko | |
cd poky-rocko | |
#get the dependency layers - repositories shouldn’t need modifications other then periodic updates and can be reused for different projects or different boards. | |
git clone -b rocko git://git.openembedded.org/meta-openembedded | |
git clone -b rocko https://github.com/meta-qt5/meta-qt5 | |
git clone -b rocko git://git.yoctoproject.org/meta-security | |
git clone -b rocko git://git.yoctoproject.org/meta-raspberrypi | |
############ | |
# prep meta layer | |
mkdir ~/rpi | |
cd ~/rpi | |
git clone -b rocko git://github.com/jumpnow/meta-rpi | |
mkdir -p ~/rpi/build/conf | |
#or source poky-rocko/oe-init-build-env ~/rpi/build | |
#Customize the configuration files | |
cp meta-rpi/conf/local.conf.sample build/conf/local.conf | |
cp meta-rpi/conf/bblayers.conf.sample build/conf/bblayers.conf | |
sudo vim bblayers.conf | |
## start file | |
~/poky-rocko/ | |
meta-openembedded/ | |
meta-qt5/ | |
meta-raspberrypi | |
meta-security | |
... | |
~/rpi/ | |
meta-rpi/ | |
build/ | |
conf/ | |
########## end of bblayers.conf | |
sudo vim local.conf | |
#change root password under INHERIT += "extrausers" | |
EXTRA_USERS_PARAMS = "usermod -P <passwordhere> root; " | |
local.conf | |
#load config changes | |
source poky-rocko/oe-init-build-env ~/rpi/build | |
#BUILD - To build the console-image run the following command | |
bitbake console-image | |
#To build the qt5-image it would be | |
bitbake qt5-image |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment