User Tools

Site Tools


agl-distro:agl-raspberrypi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
agl-distro:agl-raspberrypi [2017/03/06 09:45]
leonanavi
agl-distro:agl-raspberrypi [2020/03/05 15:46]
leonanavi Set Raspberry Pi 4 as recommended
Line 3: Line 3:
 AGL has been initially ported to Raspberry Pi 2 and 3 by Leon Anavi thanks to the existing knowledge for enabling hardware graphics acceleration in Wayland and Weston from the Tizen Project and GENIVI Development Platform. AGL has been initially ported to Raspberry Pi 2 and 3 by Leon Anavi thanks to the existing knowledge for enabling hardware graphics acceleration in Wayland and Weston from the Tizen Project and GENIVI Development Platform.
  
-Follow the [[agl-distro:​source-code|general steps for building AGL]], download master branch and set **raspberrypi2** or **raspberrypi3** as a machine depending on the version and the model of your Raspberry Pi.+Follow the [[agl-distro:​source-code|general steps for building AGL]], download master branch and set **raspberrypi4** (recommended) ​or **raspberrypi3** as a machine depending on the version and the model of your Raspberry Pi. Support for Raspberry Pi 2 has been deprecated in the latest AGL releases.
  
 ====== Introduction:​ Building target AGL image with Yocto project ====== ====== Introduction:​ Building target AGL image with Yocto project ======
Line 122: Line 122:
 ==== Download Latest Stable Release ==== ==== Download Latest Stable Release ====
  
-To download all layers for the for the latest stable release, ​Chinook 3.0.1:+To download all layers for the for the latest stable release, ​flounder 6.0.4:
  
-<​code>​+<​code ​bash>
 cd $AGL_TOP cd $AGL_TOP
-repo init -b chinook ​-m chinook_3.0.1.xml -u https://​gerrit.automotivelinux.org/​gerrit/​AGL/​AGL-repo+repo init -b flounder ​-m flounder_6.0.4.xml -u https://​gerrit.automotivelinux.org/​gerrit/​AGL/​AGL-repo
 repo sync repo sync
 </​code>​ </​code>​
-==== Download Latest ​on Chinook Branch ​====+==== Download Latest ====
  
-To download all layers on the current ​release ​branch which may be in the midst of testing or changes prior to the next stable release:+To download all layers on the current ​master ​branch which may be in the midst of testing or changes prior to the next stable release:
  
-<​code>​+<​code ​bash>
 cd $AGL_TOP cd $AGL_TOP
-repo init -b chinook ​-u https://​gerrit.automotivelinux.org/​gerrit/​AGL/​AGL-repo+repo init -b master ​-u https://​gerrit.automotivelinux.org/​gerrit/​AGL/​AGL-repo
 repo sync repo sync
 </​code>​ </​code>​
-==== Download Master Branch ==== 
- 
-To download all code from master: 
- 
-<​code>​ 
-cd $AGL_TOP 
-repo init -u https://​gerrit.automotivelinux.org/​gerrit/​AGL/​AGL-repo 
-repo sync 
-</​code>​ 
-===== Set up Build Environment Info ===== 
- 
-AGL has created a set up script for defining the target build and desired optional features.\\ 
-To get a complete list of the options available run. 
- 
-<​code>​ 
-cd $AGL_TOP 
-source meta-agl/​scripts/​aglsetup.sh -h 
-</​code>​ 
-Once you run aglsetup.sh with your desired parameters, you can build any target desired. 
  
 ===== Features supported by aglsetup ===== ===== Features supported by aglsetup =====
Line 179: Line 160:
  
 ====== Building the AGL Demo Platform for Raspberry Pi ====== ====== Building the AGL Demo Platform for Raspberry Pi ======
 +
 +===== Raspberry Pi 4 (recommended) =====
 +
 +To build AGL demo platform for Raspberry Pi 4 use machine **raspberrypi4** and feature **agl-demo**:​
 +
 +<​code>​
 +source meta-agl/​scripts/​aglsetup.sh -m raspberrypi4 agl-demo agl-appfw-smack
 +bitbake agl-demo-platform
 +</​code>​
  
 ===== Raspberry Pi 3 ===== ===== Raspberry Pi 3 =====
Line 190: Line 180:
 ===== Raspberry Pi 2 ===== ===== Raspberry Pi 2 =====
  
-To build AGL demo platform for Raspberry Pi 2 use machine **raspberrypi2** and feature **agl-demo**:​+Raspberry Pi 2 support has been **deprecated** in the latest AGL releases. ​To build AGL demo platform for Raspberry Pi 2 use machine **raspberrypi2** and feature **agl-demo**:​
  
 <​code>​ <​code>​
Line 202: Line 192:
   * Connect your sdcard in your linux machine.   * Connect your sdcard in your linux machine.
   * Copy output image from build machine to linux machine that is connected your sdcard. (Often, those are same machines)   * Copy output image from build machine to linux machine that is connected your sdcard. (Often, those are same machines)
-  * Output Image location in build machine for Raspberry Pi 2: //​tmp/​deploy/​images/​raspberrypi2/​agl-demo-platform-raspberrypi2.rpi-sdimg// +  * Output Image location in build machine for Raspberry Pi 2: //​tmp/​deploy/​images/​raspberrypi2/​agl-demo-platform-raspberrypi2.wic.xz// 
-  * Output Image location in build machine for Raspberry Pi 3: //​tmp/​deploy/​images/​raspberrypi3/​agl-demo-platform-raspberrypi3.rpi-sdimg//+  * Output Image location in build machine for Raspberry Pi 3: //​tmp/​deploy/​images/​raspberrypi3/​agl-demo-platform-raspberrypi3.wic.xz//
   * Unmount the microSD card and after that flash output image to it card with root user:   * Unmount the microSD card and after that flash output image to it card with root user:
  
 //Note: the sdimage files can also be named rpi-sdimg-ota in case you have the **"​agl-sota"​** feature enabled// //Note: the sdimage files can also be named rpi-sdimg-ota in case you have the **"​agl-sota"​** feature enabled//
  
-<​code>​+<​code ​bash>
 sudo umount [sdcard device] sudo umount [sdcard device]
-sudo dd if=[output image] of=[sdcard device] bs=4M+xzcat [output image] ​| sudo dd of=[sdcard device] bs=4M status=progress
 sync sync
 </​code>​ </​code>​
Line 299: Line 289:
 IMAGE_INSTALL_append = " libomxil"​ IMAGE_INSTALL_append = " libomxil"​
 </​code>​ </​code>​
 +
 +====== SOTA ======
 +
 +To build AGL for Raspberry Pi with enabled software over the air updates, include **agl-sota** feature. In **bblayers.conf** replace **meta-updater-qemux86-64** with **meta-updater-raspberrypi**. In **local.conf** set **SOTA_PACKED_CREDENTIALS** and **OSTREE_BRANCHNAME**. More details are available [[https://​docs.ota.here.com/​getstarted/​dev/​raspberry-pi.html|here]].
 +
 +
 ====== Raspberry Pi Touchscreen with Rotation ====== ====== Raspberry Pi Touchscreen with Rotation ======
  
agl-distro/agl-raspberrypi.txt · Last modified: 2022/10/07 19:37 by vinodahuja