LoginSignup
3

More than 3 years have passed since last update.

2019/8/22にリリース発表されたAGL UCB 8.0.0をRaspberryPi3B+で起動する

Last updated at Posted at 2019-09-15

目的

2019/8/22にリリース発表されたAGL UCB 8.0.0をRaspberryPi3B+で起動した際の備忘録です
AGLはAutomotive Grade Linuxの略です。

automotivelinux.org
Automotive Grade Linux、新たなインストルメントクラスタ エキスパートグループ、最新版 UCB 8.0 コードリリースを発表

手順

1.準備

32GB SDカード
RaspberryPi3B+
image書き込みソフトEtcher
IMG_1387.JPG

2.起動イメージの準備

Automotive Grade Linuxのサイトから、RaspberriPi3用のイメージをダウンロード
「Community BSPs」-「Snapshot Binary」- 「agl-demo-platform-raspberrypi3.wic.xz」をクリック
バージョンは、20190910時点で最新のUCB 8.0.0を使用しました。

3.起動イメージの書込み

EtcherでイメージをSDカードへ書き込み
Image Selectionでイメージを指定して、「Flash!」をクリック

4.起動

RaspberryPi3B+を用い、SDカードを差し換えます。
起動して3分ほど待ち、AGLのGUI画面が出力されればOKです。

IMG_1386.JPG

5.デモアプリ動作確認

HMIを色々触っています。
MediaPlayerくらいは使えるようにしたい。

3h程で起動まで辿り着けると思うので、興味のある方はぜひ!

ソースコードビルド手順

ソースコードからのビルド手順は、こちらを見れば分かりやすい。
SSH経由でビルドすると、ビルド中にXvncのCPU負荷が100%となる。なぜだろう。。

Debugging

RaspberryPi3BのDebuggingのページを参照
USBケーブルの線をRaspberryPi3B+のGPIOに接続し、terminal側でUSBデバイスを指定すればよさそうです。
USB GND --> Raspi GPIO pin 6
USB TX --> Raspi GPIO pin 8
USB RX --> Raspi GPIO pin 10

It is possible to debug AGL images on Raspberry Pi using 3.3V USB to serial cable, such as Olimex USB-Serial-Cable-F, connected to the UART of the board. Follow the instructions below to connect a cable to the board (do it on your own risk, no warranty is provided):
Connect the BLUE wire if you are using Olimex USB-Serial-Cable-F to pin 6 of Raspberry Pi,
Connect the RX line of the cable (GREEN wire if you are using Olimex USB-Serial-Cable-F) to pin 8 (TX line) of Raspberry Pi,
Connect the TX line of the cable (RED wire if you are using Olimex USB-Serial-Cable-F) to pin 10 (RX line) of Raspberry Pi.

追記:以下を使用してDebuggingを行うことができました。

使用したUSBケーブル、windowsドライバインストーラのリンクは下記の通り。

Raspberry Pi ラズベリーパイ用の USB-TTLシリアルコンソールのUSB変換COMケーブルモジュールのケーブル
【Windows10】PL2303HX搭載のシリアル-USB変換ケーブルを動かす
PL2303_64bit_Installer.exe

ターミナル(teraterm等)から接続時にID/Passwordを求められる。
下記の通り入力する。
  ID: root
  Password:(不要)

[agl-discussions] Help with SSH password

The DISTRO_FEATURES += "debug-tweaks" will enable login as root w/o
password.

参考

automotivelinux.org
Automotive Grade Linux、新たなインストルメントクラスタ エキスパートグループ、最新版 UCB 8.0 コードリリースを発表
AGL UCB 7.0をラズパイで動かしてみる
Raspberry Pi 3 B+でAGLブート
Automotive Grade Linuxことはじめ
Building for Raspberry PI 2 or 3
Automotive Grade Linuxことはじめ

Raspberry Pi ラズベリーパイ用の USB-TTLシリアルコンソールのUSB変換COMケーブルモジュールのケーブル
【Windows10】PL2303HX搭載のシリアル-USB変換ケーブルを動かす

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
3