diff options
author | Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp> | 2024-08-11 11:18:34 +0900 |
---|---|---|
committer | Walt Miner <walt@linux.com> | 2024-08-19 20:56:18 +0000 |
commit | ee5076e125b8e95be83bfa4d188a2795922cbdcd (patch) | |
tree | 83d088a6e044b3414c91da984847b5db268536a2 | |
parent | 7caa7c5d7c5454ec79fb90f102508565f432c5b1 (diff) |
Add command line container exchange method for IC container
This patch add most easy container exchange method to document.
Bug-AGL: SPEC-5224
Change-Id: Idb9b1b046286dc2cd5b48247d4a007d12ce9bb9f
Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/documentation/+/30187
Tested-by: Walt Miner <walt@linux.com>
Reviewed-by: Walt Miner <walt@linux.com>
-rw-r--r-- | docs/01_Getting_Started/03_Build_and_Boot_guide_Profile/01_Instrument_Cluster_(IC-IVI_with_Container_isolation).md | 115 | ||||
-rw-r--r-- | docs/01_Getting_Started/03_Build_and_Boot_guide_Profile/images/image10.jpeg | bin | 77366 -> 0 bytes | |||
-rw-r--r-- | docs/01_Getting_Started/03_Build_and_Boot_guide_Profile/images/image9.jpeg | bin | 84781 -> 75705 bytes |
3 files changed, 85 insertions, 30 deletions
diff --git a/docs/01_Getting_Started/03_Build_and_Boot_guide_Profile/01_Instrument_Cluster_(IC-IVI_with_Container_isolation).md b/docs/01_Getting_Started/03_Build_and_Boot_guide_Profile/01_Instrument_Cluster_(IC-IVI_with_Container_isolation).md index 549111b..5c549a5 100644 --- a/docs/01_Getting_Started/03_Build_and_Boot_guide_Profile/01_Instrument_Cluster_(IC-IVI_with_Container_isolation).md +++ b/docs/01_Getting_Started/03_Build_and_Boot_guide_Profile/01_Instrument_Cluster_(IC-IVI_with_Container_isolation).md @@ -314,48 +314,67 @@ card device is /dev/mmcblkX may be. ## 7. How to use container exchange UI. -### 7a. Momi Web +IC container integration has three method for container exchange. -The Momi web is a web interface for container exchange. When you want -to use Momi web, you must connect network between board and -PC/Tablet/Phone. +| No. | Method | Refer to | +|:---|:---|:---| +| 1 | Command line interface | Sub section 7a. | +| 2 | Web UI | Appendix 3. | +| 3 | Key board UI | Appendix 4. | -**The Momi web is completely demo feature, that open many security hole. - You shall not use out of standalone demo.** -#### 1st step: Check IP address in your board. +### 7a. How to change guest using command line interface -After booting, you check IP address in your board. +The cmcontrol is a command line interface for the container manager. It supports container listing, shutdown, reboot, force reboot, and active guest change. ```bash -root@raspberrypi4-64:\~# ifconfig\ -eth0 Link encap:Ethernet HWaddr E4:XX:YY:ZZ:WW:VV\ - inet addr:192.168.10.128 Bcast:192.168.10.255 - Mask:255.255.255.0 +$ cmcontrol +usage: [options] + + --help print help strings. + --get-guest-list get guest container list from container manager. + --get-guest-list-json get guest container list from container manager by json. + --shutdown-guest-name=N shutdown request to container manager. (N=guest name) + --shutdown-guest-role=R shutdown request to container manager. (R=guest role) + --reboot-guest-name=N reboot request to container manager. (N=guest name) + --reboot-guest-role=R shutdown request to container manager. (R=guest role) + --force-reboot-guest-name=N reboot request to container manager. (N=guest name) + --force-reboot-guest-role=R shutdown request to container manager. (R=guest role) + --change-active-guest-name=N change active guest request to container manager. (N=guest name) ``` -In this case, this board set IP address by 192.168.10.128. +You can get installed container guests in the system using --get-guest-list option. -#### 2nd step: Connect to board using web browser. +```bash +$ cmcontrol --get-guest-list +HEADER: name, role, status + cluster-demo, cluster, started + agl-flutter-ivi-demo, ivi, disable + agl-momi-ivi-demo, ivi, started + agl-qt-ivi-demo, ivi, disable +``` -Open "[http://a.b.c.d:8080](http://a.b.c.d:8080)". When -a board is set IP address 192.168.10.128, you open -"[http://192.168.10.128:8080](http://192.168.10.128:8080)". +The name is a guest name. The role is a guest role (cluster or ivi). The status is a status of guest. Current inactive guest status is disable. -When you success to connect to board, your web browser show these web -UI. -#### PC View +If you want to change guest from agl-momi-ivi-demo to agl-flutter-ivi-demo, it uses these command. -![](images/image4.png) +```bash +$ cmcontrol --change-active-guest-name=agl-flutter-ivi-demo +$ cmcontrol --shutdown-guest-role=ivi +``` -#### Mobile View +If you want to reboot IVI guest with shutdown process, it uses these command. -![](images/image5.png) +```bash +$ cmcontrol --reboot-guest-role=ivi +``` -### 7b. Keyboard Interface +If you want to force reboot IVI guest without shutdown process, it uses these command. -Please refer to Appendix 3. +```bash +$ cmcontrol --force-reboot-guest-role=ivi +``` ## Frequently Asked Questions @@ -402,15 +421,51 @@ Please refer to Appendix 3. ![](images/image9.jpeg) -### HTML5 IVI - -![](images/image10.jpeg) - ### Momi IVI ![](images/image11.jpeg) -## Appendix 3. How to configure Special Keyboard. +## Appendix 3. How to use Web UI (Momi Web). + +The Momi web is a web interface for container exchange. When you want +to use Momi web, you must connect network between board and +PC/Tablet/Phone. + +**The Momi web is completely demo feature, that open many security hole. + You shall not use out of standalone demo.** + +### 1st step: Check IP address in your board. + +After booting, you check IP address in your board. + +```bash +root@raspberrypi4-64:\~# ifconfig\ +eth0 Link encap:Ethernet HWaddr E4:XX:YY:ZZ:WW:VV\ + inet addr:192.168.10.128 Bcast:192.168.10.255 + Mask:255.255.255.0 +``` + +In this case, this board set IP address by 192.168.10.128. + +### 2nd step: Connect to board using web browser. + +Open "[http://a.b.c.d:8080](http://a.b.c.d:8080)". When +a board is set IP address 192.168.10.128, you open +"[http://192.168.10.128:8080](http://192.168.10.128:8080)". + +When you success to connect to board, your web browser show these web +UI. + +### PC View + +![](images/image4.png) + +### Mobile View + +![](images/image5.png) + + +## Appendix 4. How to configure Special Keyboard. ### How to get configuration tool. diff --git a/docs/01_Getting_Started/03_Build_and_Boot_guide_Profile/images/image10.jpeg b/docs/01_Getting_Started/03_Build_and_Boot_guide_Profile/images/image10.jpeg Binary files differdeleted file mode 100644 index 70af6c2..0000000 --- a/docs/01_Getting_Started/03_Build_and_Boot_guide_Profile/images/image10.jpeg +++ /dev/null diff --git a/docs/01_Getting_Started/03_Build_and_Boot_guide_Profile/images/image9.jpeg b/docs/01_Getting_Started/03_Build_and_Boot_guide_Profile/images/image9.jpeg Binary files differindex 0a3e945..8d42761 100644 --- a/docs/01_Getting_Started/03_Build_and_Boot_guide_Profile/images/image9.jpeg +++ b/docs/01_Getting_Started/03_Build_and_Boot_guide_Profile/images/image9.jpeg |