2 title: Instrument Cluster (IC-IVI with Container isolation)
5 # Build and Boot AGL Instrument Cluster demo image (IC-IVI with Container isolation)
7 **1) Tested board:** **[Starter Kit Pro/M3](https://elinux.org/R-Car/Boards/M3SK) + [kingfisher support](https://elinux.org/R-Car/Boards/Kingfisher)**
12 ## 0. Host PC environemnt
14 Ubuntu OS (Tested version 18.04.6 LTS)
16 ## 1. Define Your Top-Level Directory
19 export AGL_TOP=$HOME/AGL
23 ## 2. Download the repo Tool and Set Permissions
27 export PATH=$HOME/bin:$PATH
28 curl https://storage.googleapis.com/git-repo-downloads/repo > $HOME/bin/repo
29 chmod a+x $HOME/bin/repo
32 ## 3. Download the AGL Source Files
33 - **AGL Version:** Magic Marlin
37 export AGL_TOP=$HOME/AGL/marlin
39 git config --global user.email "you@example.com"
40 git config --global user.name "Your Name"
41 repo init -b pike -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
44 - Optional: Specify the manifest file(pike_16.0.0.xml) using -m option
47 repo init -b pike -m pike_16.0.0.xml -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
49 - Optional: Specify the master branch
51 repo init -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
54 ## 4. Downloading Proprietary Drivers
55 Downloading Proprietary Drivers from [Renesas-automotive-products](https://www.renesas.com/us/en/products/automotive-products/automotive-system-chips-socs/r-car-h3-m3-documents-software)
56 - To check the files to download
58 grep -rn ZIP_.= $AGL_TOP/meta-agl/meta-agl-bsp/meta-rcar-gen3/scripts/setup_mm_packages.sh
59 export XDG_DOWNLOAD_DIR=$HOME/Downloads
61 - Download and copy Proprietary Drivers files (Run commands at downloaded files directory)
63 cp R-Car_Gen3_Series_Evaluation_Software_Package_* $XDG_DOWNLOAD_DIR/
64 chmod a+rw $XDG_DOWNLOAD_DIR/*.zip
66 ## 5. Define Your Board
67 - Supporting Starter Kit Pro/M3 + kingfisher Board (For other supported boards, check [Define Your Board](https://docs.automotivelinux.org/en/pike/#01_Getting_Started/02_Building_AGL_Image/09_Building_for_Supported_Renesas_Boards.md))
69 export MACHINE=m3ulcb-kf
71 ## 6. Run the aglsetup.sh Script
74 source meta-agl/scripts/aglsetup.sh -f -m $MACHINE -b $MACHINE agl-ic-container
79 bitbake agl-cluster-demo-lxc-host
81 - The build process puts the resulting image in the Build Directory
82 ($AGL_TOP/m3ulcb-kf/tmp/deploy/images/m3ulcb)
83 ## 8.Boot the Board (Deploying the AGL Demo Image)
84 - To boot your image on the Renesas board, you need to do three things:
86 a) Update all [firmware](https://docs.automotivelinux.org/en/pike/#01_Getting_Started/02_Building_AGL_Image/09_Building_for_Supported_Renesas_Boards/#4-troubleshooting) on R-Car M3 Starter Kit board (Flashing firmware).
88 b) Prepare the MicroSD card and Flash image to the MicroSD card using [Etcher](https://www.balena.io/etcher/)
89 (**image file name:** lxc-host-image-demo-m3ulcb-kf.wic.xz), then insert MicroSD card in the R-Car M3SK.
92 1) Use a MicroUSB cable to connect the PC to R-Car Starter Kit Pro (M3ULCB) board CN12 "CPLD/DEBUG"
93 - Serial settings are 115200 8N1.
94 - Run any standard terminal emulator program (e.g. minicom).
95 [Replace **"Device"** with USB tty device name, for example **`/dev/ttyUSB0`**]
97 sudo minicom -b 115200 -D "DEVICE"
101 - Quickly hit any key to get into the U-boot command prompt; you should see the following:
103 Hit any key to stop autoboot: 0 =>
105 - Booting image command (for details check [How to boot](https://elinux.org/R-Car/AGL#Instrument_Cluster_with_Container_isolation_demo_image))
107 ext4load 0x48080000 Image
108 ext4load 0x48000000 /boot/r8a77961-ulcb-kf.dtb
109 booti 0x48080000 - 0x48000000
112 # Run SoC board Screen
113 A) Connect HDMI panel to M3SK(CN4) for **IVI Container**
114 
116 B) Connect HDMI panel to Kingfisher(CN49)for **Cluster Container**
117 
119 <! -- https://elinux.org/images/thumb/7/76/Marlin-lxc-Cluster.JPG/1200px-Marlin-lxc-Cluster.JPG) -->
121 1. [eLinux](https://elinux.org/R-Car/AGL)
122 1. [Kingfisher Board](https://elinux.org/R-Car/Boards/Kingfisher)
123 1. [R-Car M3SK](https://elinux.org/R-Car/Boards/M3SK#Flashing_firmware)
124 1. [agl reference machines](https://docs.automotivelinux.org/en/pike/#02_hardware_support/01_Supported_Hardware_Overview/)
125 1. [AGL Tech Day Presenation](https://static.sched.com/hosted_files/agltechday2022/3b/agl-techday-202204.pdf)
126 1. [Build AGL Image](https://docs.automotivelinux.org/en/pike/#01_Getting_Started/02_Building_AGL_Image/0_Build_Process_Overview/)
127 1. [Building for Supported Renesas Boards](https://docs.automotivelinux.org/en/pike/#01_Getting_Started/02_Building_AGL_Image/09_Building_for_Supported_Renesas_Boards/)