DemesneGH commented on PR #193:
URL: 
https://github.com/apache/incubator-teaclave-trustzone-sdk/pull/193#issuecomment-2919152539

   Updated according to previous discussion with @m4sterchain .
   This is the current workflow:
   
   #### Full workflow of quick build and run:
   ```
   Open a Terminal and we called it Terminal A:
   $ git clone https://github.com/apache/incubator-teaclave-trustzone-sdk.git 
&& cd incubator-teaclave-trustzone-sdk
   $ docker build -f Dockerfile.dev -t teaclave-trustzone-sdk-dev .  # or use 
docker pull after publish
   $ docker run -it --rm \
     --name teaclave_sdk_dev \
     -v $(pwd):/root/teaclave_sdk_src \
     -w /root/teaclave_sdk_src \
     teaclave-trustzone-sdk-dev \
     bash
   
   build and sync: also in Terminal A, after we enter the docker container:
   $ make -C examples/hello_world-rs/
   $ sync_to_emulator examples/hello_world-rs/
   
   run: needs two new terminals: B and C
   1. In Terminal B: Connect to guest VM shell to run commands inside the 
emulated environment  
   $ docker exec -it teaclave_sdk_dev listen_on_guest_vm_shell
   
   2. In Terminal C: Monitor TA (Trusted Application) output logs  
   $ docker exec -it teaclave_sdk_dev listen_on_ta_output
   
   3. In Terminal A: Start the QEMU emulator and connect to two listening port
   $ DEBUG=1 start_qemuv8
   
   4. In Terminal B: Run the example Trusted Application after get the guest VM 
shell  
   $ ./host/hello_world-rs
   ```
   
   #### For frequent rebuild and debugging (open additional Terminal D for 
building and enter docker):  
   ```
   In Terminal D:
   $ docer exec -it teaclave_sdk_dev bash
   After enter the docker container, re-build and sync to emulator:
   $ make -C examples/hello_world-rs/  
   $ sync_to_emulator examples/hello_world-rs/
   
   Then in Terminal B:  
   $ ./host/hello_world-rs
   ```
   
   Please feel free to try the current workflow and share your feedback.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org
For additional commands, e-mail: dev-h...@teaclave.apache.org

Reply via email to