インテル® Agilex™ ハード・プロセッサー・システム (HPS) のリモート・システム・アップデート・ユーザーガイド
ID
683184
日付
7/10/2020
Public
このドキュメントの新しいバージョンが利用できます。お客様は次のことを行ってください。 こちらをクリック 最新バージョンに移行する。
インテルのみ表示可能 — GUID: wvk1571159427441
Ixiasoft
1. 概要
2. 使用例
3. クワッドSPIフラッシュレイアウト
4. インテル® Quartus® Prime開発ソフトウェアおよびツールのサポート
5. ソフトウェアのサポート
6. リモート・システム・アップデートの例
7. バージョンの互換性に関する考慮事項
8. HPS FirstでのRSUの使用
9. 決定ファームウェアのバージョン情報
10. インテルAgilex SoCリモート・システム・アップデート・ユーザーガイドのドキュメント改訂履歴
A. コンフィグレーション・フローの図
B. RSUステータスおよびエラーコード
C. LIBRSUリファレンス情報
D. U-Boot RSUリファレンス情報
C.5.1. librsu_init
C.5.2. librsu_exit
C.5.3. rsu_slot_count
C.5.4. rsu_slot_by_name
C.5.5. rsu_slot_get_info
C.5.6. rsu_slot_size
C.5.7. rsu_slot_priority
C.5.8. rsu_slot_erase
C.5.9. rsu_slot_program_buf
C.5.10. rsu_slot_program_factory_update_buf
C.5.11. rsu_slot_program_file
C.5.12. rsu_slot_program_factory_update_file
C.5.13. rsu_slot_program_buf_raw
C.5.14. rsu_slot_program_file_raw
C.5.15. rsu_slot_verify_buf
C.5.16. rsu_slot_verify_file
C.5.17. rsu_slot_verify_buf_raw
C.5.18. rsu_slot_verify_file_raw
C.5.19. rsu_slot_program_callback
C.5.20. rsu_slot_program_callback_raw
C.5.21. rsu_slot_verify_callback
C.5.22. rsu_slot_verify_callback_raw
C.5.23. rsu_slot_copy_to_file
C.5.24. rsu_slot_enable
C.5.25. rsu_slot_disable
C.5.26. rsu_slot_load_after_reboot
C.5.27. rsu_slot_load_factory_after_reboot
C.5.28. rsu_slot_rename
C.5.29. rsu_slot_status_log
C.5.30. rsu_notify
C.5.31. rsu_clear_error_status
C.5.32. rsu_reset_retry_counter
C.5.33. rsu_dcmf_version
C.6.1. count
C.6.2. list
C.6.3. size
C.6.4. priority
C.6.5. enable
C.6.6. disable
C.6.7. request
C.6.8. request-factory
C.6.9. erase
C.6.10. add
C.6.11. add-factory-update
C.6.12. add-raw
C.6.13. verify
C.6.14. verify-raw
C.6.15. copy
C.6.16. log
C.6.17. notify
C.6.18. clear-error-status
C.6.19. reset-retry-counter
C.6.20. display-dcmf-version
C.6.21. help
D.5.1. rsu_init
D.5.2. rsu_exit
D.5.3. rsu_slot_count
D.5.4. rsu_slot_by_name
D.5.5. rsu_slot_get_info
D.5.6. rsu_lot_size
D.5.7. rsu_slot_priority
D.5.8. rsu_slot_erase
D.5.9. rsu_slot_program_buf
D.5.10. rsu_slot_program_factory_update_buf
D.5.11. rsu_slot_program_buf_raw
D.5.12. rsu_slot_verify_buf
D.5.13. rsu_slot_verify_buf_raw
D.5.14. rsu_slot_enable
D.5.15. rsu_slot_disable
D.5.16. rsu_slot_load
D.5.17. rsu_slot_load_factory
D.5.18. rsu_slot_rename
D.5.19. rsu_status_log
D.5.20. rsu_notify
D.5.21. rsu_clear_error_status
D.5.22. rsu_reset_retry_counter
D.5.23. rsu_dcmf_version
D.6.1. dtb
D.6.2. list
D.6.3. slot_by_name
D.6.4. slot_count
D.6.5. slot_disable
D.6.6. slot_enable
D.6.7. slot_erase
D.6.8. slot_get_info
D.6.9. slot_load
D.6.10. slot_load_factory
D.6.11. slot_priority
D.6.12. slot_program_buf
D.6.13. slot_program_buf_raw
D.6.14. slot_program_factory_update_buf
D.6.15. slot_rename
D.6.16. slot_size
D.6.17. slot_verify_buf
D.6.18. slot_verify_buf_raw
D.6.19. status_log
D.6.20. update
D.6.21. notify
D.6.22. clear_error_status
D.6.23. reset_retry_counter
D.6.24. display_dcmf_version
インテルのみ表示可能 — GUID: wvk1571159427441
Ixiasoft
6.5.1. RSUクライアントを使用した基本動作の実行
この項では、RSUクライアントを使用して次の基本動作を実行する方法を示しています。
- RSUステータスの照会
- スロットの数およびそれらに関する情報の照会
- 新しいアプリケーション・イメージの追加
- アプリケーション・イメージが正しく書き込まれたことの確認
- 特定のアプリケーション・イメージのロードの要求
- ボードの電源を再投入して、Linux*を起動します。
- ユーザー名を「root」にして、空のパスワードを使用してログインします。
[ 6.504437] socfpga-dwmac ff800000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx udhcpc: sending discover udhcpc: sending select for 10.122.105.61 udhcpc: lease of 10.122.105.61 obtained, lease time 3600 /etc/udhcpc.d/50default: Adding DNS 10.248.2.1 /etc/udhcpc.d/50default: Adding DNS 10.2.71.6 /etc/udhcpc.d/50default: Adding DNS 10.31.40.4 done. hwclock: can't open '/dev/misc/rtc': No such file or directory Starting syslogd/klogd: done Poky (Yocto Project Reference Distro) 3.0.2 linux /dev/ttyS0 linux login: root root@linux:~#
- 次のコマンドを実行して、stratix10-rsuカーネルドライバーをロードします。
root@linux:~# insmod stratix10-rsu.ko
- パラメーターを指定せずに rsu_client を実行して、ヘルプメッセージを表示します。
root@linux:~# ./rsu_client --- RSU app usage --- -c|--count get the number of slots -l|--list slot_num list the attribute info from the selected slot -z|--size slot_num get the slot size in bytes -p|--priority slot_num get the priority of the selected slot -E|--enable slot_num set the selected slot as the highest priority -D|--disable slot_num disable selected slot but to not erase it -r|--request slot_num request the selected slot to be loaded after the next reboot -R|--request-factory request the factory image to be loaded after the next reboot -e|--erase slot_num erase app image from the selected slot -a|--add file_name -s|--slot slot_num add a new app image to the selected slot -u|--add-factory-update file_name -s|--slot slot_num add a new factory update image to the selected slot -A|--add-raw file_name -s|--slot slot_num add a new raw image to the selected slot -v|--verify file_name -s|--slot slot_num verify app image on the selected slot -V|--verify-raw file_name -s|--slot slot_num verify raw image on the selected slot -f|--copy file_name -s|--slot slot_num read the data in a selected slot then write to a file -g|--log print the status log -n|--notify value report software state -C|--clear-error-status clear errors from the log -Z|--reset-retry-counter reset current retry counter -m|--display-dcmf-version print DCMF version -h|--help show usage message
- 現在のステータスを表示する rsu_client コマンドを実行すると、スロット0 (パーティションP1) からのアプリケーション・イメージがエラーなしでロードされていることが示されます。
root@linux:~# ./rsu_client --log VERSION: 0x00000202 STATE: 0x00000000 CURRENT IMAGE: 0x0000000001000000 FAIL IMAGE: 0x0000000000000000 ERROR LOC: 0x00000000 ERROR DETAILS: 0x00000000 RETRY COUNTER: 0x00000000 Operation completed
- スロットに関する情報を表示するRSUクライアント・コマンドを実行します。
root@linux:~# ./rsu_client --count number of slots is 3 Operation completed root@linux:~# ./rsu_client --list 0 NAME: P1 OFFSET: 0x0000000001000000 SIZE: 0x01000000 PRIORITY: 1 Operation completed root@linux:~# ./rsu_client --list 1 NAME: P2 OFFSET: 0x0000000002000000 SIZE: 0x01000000 PRIORITY: [disabled] Operation completed root@linux:~# ./rsu_client --list 2 NAME: P3 OFFSET: 0x0000000003000000 SIZE: 0x01000000 PRIORITY: [disabled] Operation completed
- スロット1を消去し、application2.rpd アプリケーション・イメージをスロット1 (パーティションP2) に追加します。
root@linux:~# ./rsu_client --erase 1 Operation completed root@linux:~# ./rsu_client --add application2.rpd --slot 1 Operation completed
- アプリケーション・イメージがフラッシュに正しく書き込まれたことを確認します。
root@linux:~# ./rsu_client --verify application2.rpd --slot 1 Operation completed
- スロットを再度リストします。これは、最も高い優先度 (つまり、最も低い優先度番号) を持つ最後に書き込まれたパーティションP2イメージを示しています。
root@linux:~# ./rsu_client --list 0 NAME: P1 OFFSET: 0x0000000001000000 SIZE: 0x01000000 PRIORITY: 2 Operation completed root@linux:~# ./rsu_client --list 1 NAME: P2 OFFSET: 0x0000000002000000 SIZE: 0x01000000 PRIORITY: 1 Operation completed root@linux:~# ./rsu_client --list 2 NAME: P3 OFFSET: 0x0000000003000000 SIZE: 0x01000000 PRIORITY: [disabled] Operation completed
- ボードの電源を再投入して、Linux*を起動し、RSUモジュールをロードしてステータスを表示します。実行中のパーティションP2からのイメージが表示されます。
root@linux:~# insmod stratix10-rsu.ko root@linux:~# ./rsu_client --log VERSION: 0x00000202 STATE: 0x00000000 CURRENT IMAGE: 0x0000000002000000 FAIL IMAGE: 0x0000000000000000 ERROR LOC: 0x00000000 ERROR DETAILS: 0x00000000 RETRY COUNTER: 0x00000000 Operation completed
- 次の reboot コマンドでSDMからスロット0 (パーティションP1) を要求するようにRSUクライアントに指示します。
root@linux:~# ./rsu_client --request 0 Operation completed
- reboot コマンドを実行して、Linux*を再起動します。
root@linux:~# reboot
- Linux*にログインし、カーネルドライバをロードして、RSUステータスを表示します。
root@linux:~# ./rsu_client --log VERSION: 0x00000202 STATE: 0x00000000 CURRENT IMAGE: 0x0000000001000000 FAIL IMAGE: 0x0000000000000000 ERROR LOC: 0x00000000 ERROR DETAILS: 0x00000000 RETRY COUNTER: 0x00000000 Operation completed
ステータスは、要求に応じて、パーティションP1からのイメージがロードされたことを示します。