Giter Club home page Giter Club logo

che-aarch64-simple-sample's Introduction

Eclipse Che と Xilinx/qemu による Aarch64 開発体験サンプル

che.openshift.io 上に aarch64-linux-gnuXilinx/qemu の環境を構築します。

事前準備

che.openshift.io へのユーザー登録をしていない場合には、Registering to Hosted Che を参照してユーザー登録を行う。

体験手順

che.openshift.io の、外から devfile を差し込む機能を使って、カスタムワークスペースを構築する。

使用する devfile は以下。

https://gist.githubusercontent.com/mikoto2000/7a58e2130ec17b2cca17d9aee4257b73/raw/7bb067a8998e90fb4b9cacf861477d33280182ce/che-aarch64-simple-sample.yaml

che.openshift.io にワークスペースを作成する

che.openshift.io へログインした後、以下の URL に接続する。

https://che.openshift.io/f?url=https://gist.githubusercontent.com/mikoto2000/7a58e2130ec17b2cca17d9aee4257b73/raw/7bb067a8998e90fb4b9cacf861477d33280182ce/che-aarch64-simple-sample.yaml

url=xxx で指定した xxx を devfile として読み込んで、 che.openshift.io 上に環境を構築してくれる。 (che.openshift.io のサーバーから見える場所に置く必要がある)

ワークスペースを開いてからの操作

  1. ビルド
    1. メニューを Terminal -> Open Terminal in specific container -> gcc-aarch64-linux-gnu と選択していく
    2. 開いたターミナルで cd simple-sample; make
  2. QEMU 起動
    1. メニューを Terminal -> Open Terminal in specific container -> qemu-xilinx と選択していく
    2. 開いたターミナルで cd simple-sample; make qemu
      • QEMU が起動し、 GDB 接続待ち状態になる(Makefile 参照)
  3. デバッグ
    1. メニューを Terminal -> Open Terminal in specific container -> qemu-xilinx と選択していく
    2. 開いたターミナルで cd simple-sample; make debug
      • なぜか n -> Ctrl+cSIGINT を発生させないとハングアップする...
      • n -> Ctrl+c した後はいつも通りの gdb 操作ができる

スタック構築に使用した Docker イメージ

che-aarch64-simple-sample's People

Contributors

mikoto2000 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.