summaryrefslogtreecommitdiffstats
path: root/getting-started/machines/R-Car-Starter-Kit-gen3.md
diff options
context:
space:
mode:
Diffstat (limited to 'getting-started/machines/R-Car-Starter-Kit-gen3.md')
-rw-r--r--getting-started/machines/R-Car-Starter-Kit-gen3.md58
1 files changed, 37 insertions, 21 deletions
diff --git a/getting-started/machines/R-Car-Starter-Kit-gen3.md b/getting-started/machines/R-Car-Starter-Kit-gen3.md
index d7fbfd1..46eb121 100644
--- a/getting-started/machines/R-Car-Starter-Kit-gen3.md
+++ b/getting-started/machines/R-Car-Starter-Kit-gen3.md
@@ -23,9 +23,9 @@ The following documents may also be helpful:
Before setting up the build environment, you need to download the proprietary drivers.
-* Download Renesas graphics drivers with a "click through" license from Renesas website [Link][rcar Linux] and [Link][rcar Linux Drivers]
+* Download Renesas graphics drivers with a "click through" license from Renesas website [Link][rcar Linux Drivers]
* Under the Target hardware: **R-Car H3/M3** section.
-
+
#### Note:
* You have to register with a free account on MyRenesas and accept the license conditions before downloading them the drivers.
@@ -35,11 +35,12 @@ Once you registered, you can download two zip files.
Here after is an example of the typical files downloaded at the time of writing:
```
+test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
chmod a+r $XDG_DOWNLOAD_DIR/*.zip
ls -1 $XDG_DOWNLOAD_DIR
total 8220
--rw-r--r--. 1 1664 agl-sdk 4.5M Dec 8 15:23 R-Car_Gen3_Series_Evaluation_Software_Package_for_Linux-20170125.zip
--rw-r--r--. 1 1664 agl-sdk 2.5M Dec 8 15:24 R-Car_Gen3_Series_Evaluation_Software_Package_of_Linux_Drivers-20170125.zip
+-rw-r--r--. 1 1664 agl-sdk 4.5M Dec 8 15:23 R-Car_Gen3_Series_Evaluation_Software_Package_for_Linux-20170427.zip
+-rw-r--r--. 1 1664 agl-sdk 2.7M Dec 8 15:24 R-Car_Gen3_Series_Evaluation_Software_Package_of_Linux_Drivers-20170427.zip
```
## Setting up the build environment:
@@ -63,7 +64,7 @@ Now, init your build environment:
```
cd $AGL_TOP
-source meta-agl/scripts/aglsetup.sh -m $MACHINE -b build agl-devel agl-demo agl-netboot agl-appfw-smack
+source meta-agl/scripts/aglsetup.sh -m $MACHINE -b build agl-devel agl-demo agl-netboot agl-appfw-smack agl-localdev
```
**IMPORTANT NOTE**: Read the log to be sure you had no error during your setup.
@@ -75,12 +76,11 @@ In case of missing graphics drivers, you could notice an error message as follow
/home/working/workspace_agl_master /home/working/workspace_agl_master/build_gen3
The graphics and multimedia acceleration packages for
the R-Car Gen3 board can be downloaded from:
- https://www.renesas.com/en-us/software/D6000821.html
- https://www.renesas.com/en-us/software/D6000822.html
+ http://www.renesas.com/secret/r_car_download/rcar_demoboard.jsp
These 2 files from there should be store in your'/home/devel/Téléchargements' directory.
- R-Car_Gen3_Series_Evaluation_Software_Package_for_Linux-20170125.zip
- R-Car_Gen3_Series_Evaluation_Software_Package_of_Linux_Drivers-20170125.zip
+ R-Car_Gen3_Series_Evaluation_Software_Package_for_Linux-20170427.zip
+ R-Car_Gen3_Series_Evaluation_Software_Package_of_Linux_Drivers-20170427.zip
/home/working/workspace_agl_master/build_gen3
--- fragment /home/working/workspace_agl_master/meta-agl/templates/base/99_setup_EULAconf.sh
--- end of setup script
@@ -129,7 +129,7 @@ ls -l $AGL_TOP/build/tmp/deploy/images/$MACHINE
```
#### Note
-In case of failure of the build it is safe to first check that the Linux distribution chosen for your host has been validated for version 2.1 of Yocto.
+In case of failure of the build it is safe to first check that the Linux distribution chosen for your host has been validated for version 2.2 of Yocto.
# Booting AGL Image on R-Car Starter Kit Gen3 boards using a microSD card
@@ -215,7 +215,7 @@ sudo fdisk /dev/sdc
* Initialize the ext4 partition using “mke2fs”; for example, if the microSD card is associated with *sdc*:
```
-sudo mke2fs -t ext4 /dev/sdc1
+sudo mke2fs -t ext4 -O ^64bits /dev/sdc1
mke2fs 1.42.13 (17-May-2015)
Creating filesystem with 3911168 4k blocks and 979200 inodes
@@ -229,6 +229,9 @@ sudo mke2fs -t ext4 /dev/sdc1
Writing superblocks and filesystem accounting information: done
```
+> **CAUTION**: Gen3 boards don't understand 64bits blocks used when filesystem
+> is formated with *64bits* feature so make sure you don't use it.
+
### Copying the built image to the SD-card
Insert the SD-card into your build host:
@@ -283,12 +286,20 @@ sudo $TAR --extract --numeric-owner --preserve-permissions --preserve-order --to
```
Copy Kernel Image and Device Tree Blob file into the **boot** directory:
-* For machine h3ulcb:
+* For machine h3ulcb (BSP >= 2.19):
+
+```
+sudo cp Image-r8a7795-es1-h3ulcb.dtb $SDCARD/boot/
+```
+
+* For machine h3ulcb (BSP < 2.19):
+
```
sudo cp Image-r8a7795-h3ulcb.dtb $SDCARD/boot/
```
* For machine m3ulcb:
+
```
sudo cp Image-r8a7796-m3ulcb.dtb $SDCARD/boot/
```
@@ -500,21 +511,27 @@ setenv bootargs console=ttySC0,115200 root=/dev/mmcblk1p1 rootwait ro rootfstype
setenv bootcmd run load_ker\; run load_dtb\; booti 0x48080000 - 0x48000000
setenv load_ker ext4load mmc 0:1 0x48080000 /boot/Image
```
-
- * For machine h3ulcb:
-
+
+ * For machine h3ulcb (BSP >= 2.19):
+
+ ```
+setenv load_dtb ext4load mmc 0:1 0x48000000 /boot/Image-r8a7795-es1-h3ulcb.dtb
+ ```
+
+ * For machine h3ulcb (BSP < 2.19):
+
```
setenv load_dtb ext4load mmc 0:1 0x48000000 /boot/Image-r8a7795-h3ulcb.dtb
```
-
+
* For machine m3ulcb:
-
+
```
setenv load_dtb ext4load mmc 0:1 0x48000000 /boot/Image-r8a7796-m3ulcb.dtb
```
-
+
* Finally save boot environment:
-
+
```
saveenv
```
@@ -595,8 +612,7 @@ Generic guide on how to add a new service in the BSP.
[R-car m3ulcb]: http://elinux.org/R-Car/Boards/M3SK
[R-car h3ulcb]: http://elinux.org/R-Car/Boards/H3SK
[R-car yocto]: http://elinux.org/R-Car/Boards/Yocto-Gen3
-[rcar Linux]: https://www.renesas.com/en-us/software/D6000821.html
-[rcar Linux Drivers]: https://www.renesas.com/en-us/software/D6000822.html
+[rcar Linux Drivers]: https://www.renesas.com/solutions/automotive/rcar-demoboard.html
[Iot.bzh AGL-Kickstart-on-Renesas-Porter-Board]: http://docs.automotivelinux.org/docs/devguides/en/dev/reference/iotbzh2016/sdk/AGL-Kickstart-on-Renesas-Porter-board.pdf
[Iot.bzh AGL-Devkit-Image-and-SDK-for-Porter]: http://docs.automotivelinux.org/docs/devguides/en/dev/reference/iotbzh2016/sdk/AGL-Devkit-Image-and-SDK-for-porter.pdf
[Iot.bzh AGL-Devkit-Build-your-1st-AGL-Application]: http://docs.automotivelinux.org/docs/devguides/en/dev/reference/iotbzh2016/sdk/AGL-Devkit-Build-your-1st-AGL-Application.pdf