Steps for creating AGL build for Raspberrypi3:
Open a terminal (ctrl+alt+t)
for python:
1)$sudo apt get install python3
2)$python3
Python 3.5.2 (default, Nov 12 2018, 13:43:14)
[GCC 5.4.0 20160609] on linux
for git:
3)$apt-get install git-core
4)$git --version
*for tar:
5)$apt-get install tar
6)$tar --version
tar (GNU tar) 1.28
==>For all essential tools needed for building AGL run the following command in a terminal
7) $sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev xterm cpio curl
Download AGL Source Code
8) $export AGL_TOP=$HOME/workspace_agl
9) $mkdir -p $AGL_TOP
10) mkdir -p ~/bin
11) $export PATH=~/bin:$PATH
12) $curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
13) $chmod a+x ~/bin/repo
14) $cd $AGL_TOP
15) $repo init -b flounder -m flounder_6.0.4.xml -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
16) $repo sync
amount of time taken to download is dependent on network speed
Raspberry Pi 3
To build AGL demo platform for Raspberry Pi 3 use machine raspberrypi3 and feature agl-demo by running the following commands in serial order:
17) $source meta-agl/scripts/aglsetup.sh -m raspberrypi3 agl-demo agl-netboot agl-appfw-smack//features add upon
user requirement
18) $bitbake agl-demo-platform
it will generate image, again amount of time taken depends on host machine configuration. It is better to have atleast an I3 machine with 8GB ram.
Upon 100% success
Plug in a sd card into host pc and do the following :
Be careful while selecting the SD card drive nodes (sdb and sdb1)
The file path where image to be copied to SD card lies after a successful build is "/home/<username>/workspace_agl/build/tmp/deploy/images/raspberrypi3/" . Run the following command in serial order:
19) $sudo dd if=/home/<username>/AGL_image/agl-demo-platform-raspberrypi3.rpi-sdimg of=sdb bs=4M
20) $sync</username></username>
UPON SUCCESS AGL image WILL BE READY to run on the target
PLUG IN the SD card in the RASPBERRY PI3 board and power it up to run the copied AGL image on it