Creation of an Openrex Basic meta to use the Raspberry PI Camera v2
Follow instructions below to create an Yocto Projet Jethro image
First we need to get the command repo
sudo aptitude install repo
sudo aptitude update
sudo aptitude upgrade
or by downloading it
mkdir bin
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > bin/repo
chmod a+x bin/repo
PATH=${PATH}:bin
Then create our work directory
mkdir fsl-community-bsp && cd fsl-community-bsp
Download Yocto project using this command
repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b jethro
Create manifest directory
mkdir -p .repo/local_manifests/
Create the manifest file
cat > .repo/local_manifests/imx6openrex.xml << EOF
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote fetch="git://github.com/FEDEVEL" name="fedevel"/>
<project remote="fedevel" revision="jethro" name="meta-openrex" path="sources/meta-openrex">
<copyfile src="openrex-setup.sh" dest="openrex-setup.sh"/>
</project>
</manifest>
EOF
repo sync
source openrex-setup.sh
MACHINE=imx6s-openrex source setup-environment build-openrex
MACHINE=imx6s-openrex bitbake core-image-base
umount /dev/YourSDCard
gunzip -c build-openrex/tmp/deploy/images/imx6s-openrex/core-image-base-imx6s-openrex.sdcard.gz > build-openrex/tmp/deploy/images/imx6s-openrex/core-image-base-imx6s-openrex.sdcard
sudo dd if=build-openrex/tmp/deploy/images/imx6s-openrex/core-image-base-imx6q-openrex.sdcard of=/dev/YourSDCard
umount /dev/YourSDCard
Follow the instruction below to create an Yocto Projet Krogoth image
First we need to get the command repo with package
sudo aptitude install repo
sudo aptitude update
sudo aptitude upgrade
or by downloading it
mkdir bin
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > bin/repo
chmod a+x bin/repo
PATH=${PATH}:bin
Then create our work directory
mkdir fsl-community-bsp && cd fsl-community-bsp
Download Yocto project using this command
repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-4.1-krogoth
Create manifest directory
mkdir -p .repo/local_manifests/
Create the manifest file
cat > .repo/local_manifests/imx6rex.xml << EOF
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote fetch="git://github.com/Voipac" name="voipac"/>
<project remote="voipac" revision="master" name="meta-fsl-arm-voipac" path="sources/meta-fsl-arm-voipac">
<copyfile src="voipac-setup.sh" dest="voipac-setup.sh"/>
</project>
</manifest>
EOF
repo sync
source voipac-setup.sh
MACHINE=imx6-openrexbasic source setup-environment build-dir
MACHINE=imx6-openrexbasic bitbake core-image-base
umount /dev/YourSDCard
gunzip -c build-dir/tmp/deploy/images/imx6-openrexbasic/core-image-base-imx6-openrexbasic.sdcard.gz > build-openrex/tmp/deploy/images/imx6-openrexbasic/core-image-base-imx6-openrexbasic.sdcard
sudo dd if=build-openrex/tmp/deploy/images/imx6-openrexbasic/core-image-base-imx6-openrexbasic.sdcard of=/dev/YourSDCard
umount /dev/YourSDCard
You will get an error like : Error "bootmmc" not defined, to fix this issue use the command below
setenv bootmmc "run findfdt; mmc dev ${mmcdev}; if mmc rescan; then if run loadbootscript; then run bootscript; else if run loadimage; then run mmcboot; else run netboot; fi; fi; else run netboot; fi;\0"; saveenv; reset;
Now plug your SD card in the OpenRex and it will boot on your Yocto image.
- Yocto 2.0 Jethro - Tool used to create our image
- Yocto 2.1 Krogoth - Tool used to create our image
- Ubuntu 16.04 - Host and build machine OS
- OpenRex - Development board used
- Alan Ait-Ali - Contributor - His Github
- Martin Laporte - Contributor - His Github
- Clément Ailloud - Contributor - His Github
- Romain Petit - Contributor - His Github