Armadilloフォーラム

CUI アプリケーションを開発する(Armadillo Base OS)

k.sato

2023年7月7日 14時28分

佐藤と申します。
お世話になっております。

Armadillo-640製品マニュアル Armadillo Base OS 対応
https://manual.atmark-techno.com/armadillo-640/armadillo-640_product_ma…

上記の10.1.CUI アプリケーションを開発する
を行っているのですが
10.1.4.3. アプリケーションの実行で
[App run on Armadillo] を実行してもユーザーLED(緑)が点滅しません。

 *  Executing task: ./scripts/run_armadillo.sh shell 
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:BTBcRzAoBG5RGUntBiGnX34xqpa5QC7LxpvvTRd8cjs.
Please contact your system administrator.
Add correct host key in config/ssh_known_hosts to get rid of this message.
Offending ECDSA key in config/ssh_known_hosts:2
  remove with:
  ssh-keygen -f "config/ssh_known_hosts" -R "192.10.10.46"
ECDSA host key for 192.10.10.46 has changed and you have requested strict checking.
Host key verification failed.
 
 *  The terminal process "/usr/bin/bash '-c', './scripts/run_armadillo.sh shell'" terminated with exit code: 255. 
 *  Terminal will be reused by tasks, press any key to close it. 

10.1.2.4. 初期設定 等のミスなのでしょうか?

[my_project] を作り直して [Setup environment]を行っても完了したとだけ出力されます。

 *  Executing task: ./scripts/setup_env.sh 
初期設定が完了しました。
 *  Terminal will be reused by tasks, press any key to close it. 

以上、よろしくお願い致します。

コメント

at_dominique.m…

2023年7月7日 15時15分

佐藤さん、

お世話になっています、
マルティネです。

>  *  Executing task: ./scripts/run_armadillo.sh shell 
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
> Someone could be eavesdropping on you right now (man-in-the-middle attack)!
> It is also possible that a host key has just been changed.
> The fingerprint for the ECDSA key sent by the remote host is
> SHA256:BTBcRzAoBG5RGUntBiGnX34xqpa5QC7LxpvvTRd8cjs.
> Please contact your system administrator.
> Add correct host key in config/ssh_known_hosts to get rid of this message.
> Offending ECDSA key in config/ssh_known_hosts:2
>   remove with:
>   ssh-keygen -f "config/ssh_known_hosts" -R "192.10.10.46"
> ECDSA host key for 192.10.10.46 has changed and you have requested strict checking.
> Host key verification failed.
> 
>  *  The terminal process "/usr/bin/bash '-c', './scripts/run_armadillo.sh shell'" terminated with exit code: 255. 
>  *  Terminal will be reused by tasks, press any key to close it. 

> 10.1.2.4. 初期設定 等のミスなのでしょうか?

このエラーはメッセージのとおり、一度 Armadillo に接続してから別の Armadillo か初期化した後の Armadillo に接続しようとしています。
それで間違いなければ、プロジェクトディレクトリの「config/ssh_known_hosts」ファイルを削除していただければ解決されます。

[my_project] を作り直したことで config のファイルも削除されたと思いますが、プロジェクトを作り直してからファイルをコピーしていたらまたおきますね。現在は「Generate development swu」のステップで reinstall の想定をしてそのファイルを削除していますが、次のバージョンで「Setup environment」でも削除するようにします。

よろしくお願いします。

k.sato

2023年7月7日 15時55分

マルティネ様
回答ありがとうございます。

> remove with:
> ssh-keygen -f "config/ssh_known_hosts" -R "192.10.10.46"
と出ていたのに申し訳ありません。
「config/ssh_known_hosts」ファイルを削除することで
[App run on Armadillo] と[App stop on Armadillo]が実行できました。

10.1.2.5. アプリケーション実行用コンテナイメージの作成で
作成した SWU イメージは my_project/container_armv7/dev ディレクトリ下に shell_app_dev_image.swu という ファイル名で保存されています。
とありますが、現行だと
「my_project/swu/dev.swu」を使用する形でよいのですよね?

以上、よろしくお願い致します。

at_dominique.m…

2023年7月7日 16時21分

佐藤さん、

マルティネです。

> 「config/ssh_known_hosts」ファイルを削除することで
> [App run on Armadillo] と[App stop on Armadillo]が実行できました。

ご確認ありがとうございます。
Setup の改善を行って、マニュアルにも一言追加しようと思いますので連絡していただいてありがとうございます。

> 10.1.2.5. アプリケーション実行用コンテナイメージの作成で
> 作成した SWU イメージは my_project/container_armv7/dev ディレクトリ下に shell_app_dev_image.swu という ファイル名で保存されています。
> とありますが、現行だと
> 「my_project/swu/dev.swu」を使用する形でよいのですよね?

申し訳ございません、確かにマニュアルの問題です。
製品が違いますが、「CUI アプリケーションを開発する」の部分だけを A6E のマニュアルで確認できればと思います:
https://manual.atmark-techno.com/armadillo-iot-a6e/armadillo-iotg-a6e_p…

これも今月末に修正します。

よろしくお願いします。