che.openshift.io
上に aarch64-linux-gnu
と Xilinx/qemu
の環境を構築します。
che.openshift.io
へのユーザー登録をしていない場合には、Registering to Hosted Che を参照してユーザー登録を行う。
che.openshift.io
の、外から devfile を差し込む機能を使って、カスタムワークスペースを構築する。
使用する devfile は以下。
che.openshift.io
へログインした後、以下の URL に接続する。
url=xxx
で指定した xxx
を devfile として読み込んで、 che.openshift.io
上に環境を構築してくれる。
(che.openshift.io
のサーバーから見える場所に置く必要がある)
- ビルド
- メニューを
Terminal
->Open Terminal in specific container
->gcc-aarch64-linux-gnu
と選択していく - 開いたターミナルで
cd simple-sample; make
- メニューを
- QEMU 起動
- メニューを
Terminal
->Open Terminal in specific container
->qemu-xilinx
と選択していく - 開いたターミナルで
cd simple-sample; make qemu
- QEMU が起動し、 GDB 接続待ち状態になる(Makefile 参照)
- メニューを
- デバッグ
- メニューを
Terminal
->Open Terminal in specific container
->qemu-xilinx
と選択していく - 開いたターミナルで
cd simple-sample; make debug
- なぜか
n
->Ctrl+c
でSIGINT
を発生させないとハングアップする... n
->Ctrl+c
した後はいつも通りの gdb 操作ができる
- なぜか
- メニューを