|
| 1 | +# Thor host setup |
| 2 | + |
| 3 | +After installing JetPack 7.0.0 on the Thor devkit, please follow these steps to set up |
| 4 | +your Thor for running Holoscan sensor bridge examples. |
| 5 | + |
| 6 | +- Install Holoscan SDK v3.5.1 |
| 7 | + |
| 8 | +```none |
| 9 | + echo "deb https://repo.download.nvidia.com/jetson/jetson-4fed1671 r38.1 main" | sudo tee /etc/apt/sources.list.d/nvidia-l4t-apt-source-jpea.list |
| 10 | + sudo apt update |
| 11 | + sudo apt install holoscan |
| 12 | +``` |
| 13 | + |
| 14 | +- Install other Holoscan sensor bridge dependencies: |
| 15 | + |
| 16 | +```none |
| 17 | + sudo apt install -y git-lfs cmake libfmt-dev libssl-dev libcurlpp-dev libyaml-cpp-dev libibverbs-dev python3-dev |
| 18 | +``` |
| 19 | + |
| 20 | +- Obtain the Holoscan sensor bridge repository: |
| 21 | + |
| 22 | +```none |
| 23 | + git clone https://github.com/nvidia-holoscan/holoscan-sensor-bridge.git |
| 24 | +``` |
| 25 | + |
| 26 | +- Build Holoscan sensor bridge, inside the `holoscan-sensor-bridge` directory: |
| 27 | + |
| 28 | +```none |
| 29 | + mkdir build && cd build |
| 30 | + cmake -DCCCL_DIR:PATH="/usr/local/cuda/targets/sbsa-linux/lib/cmake/cccl" -DHOLOLINK_BUILD_SIPL=1 .. |
| 31 | + make -j |
| 32 | +``` |
| 33 | + |
| 34 | +- Enable the network interface and ensure that the camera enumerates. Note that this |
| 35 | + documentation assumes a camera IP address of 192.168.0.2. |
| 36 | + |
| 37 | +```none |
| 38 | + EN0=mgbe0_0 |
| 39 | + sudo nmcli con add con-name hololink-$EN0 ifname $EN0 type ethernet ip4 192.168.0.101/24 |
| 40 | + sudo nmcli connection modify hololink-$EN0 +ipv4.routes 192.168.0.2/32 |
| 41 | + sudo nmcli connection modify hololink-$EN0 ethtool.ring-rx 4096 |
| 42 | + sudo nmcli connection up hololink-$EN0 |
| 43 | +``` |
| 44 | + |
| 45 | +- Retrieve your camera's MAC ID with the `hololink-enumerate` command: |
| 46 | + |
| 47 | +```none |
| 48 | + ./tools/enumerate/hololink-enumerate |
| 49 | +``` |
| 50 | + |
| 51 | +You should see a response from the camera similar to this one: |
| 52 | + |
| 53 | +```none |
| 54 | + mac_id=8C:1F:64:6D:70:03 hsb_ip_version=0x2506 fpga_crc=0xffff ip_address=192.168.0.2 fpga_uuid=f1627640-b4dc-48af-a360-c55b09b3d230 serial_number=ffffffffffffff interface=mgbe0_0 board=Leopard Eagle |
| 55 | +``` |
| 56 | + |
| 57 | +Make sure to set all of the `ip_address` and `mac_address` fields in the configuration |
| 58 | +files (there are multiple instances in each configuration file) |
| 59 | + |
| 60 | +``` |
| 61 | + ../examples/sipl_config/vb1940_single.json |
| 62 | + ../examples/sipl_config/vb1940_dual.json |
| 63 | +``` |
| 64 | + |
| 65 | +Give permission for root to access the X display, Note that the DISPLAY environment |
| 66 | +variable needs to be set first if being run over SSH. |
| 67 | + |
| 68 | +```none |
| 69 | + xhost + |
| 70 | +``` |
| 71 | + |
| 72 | +Run the `sipl_player` application using either the single or dual camera configurations |
| 73 | +contained in the `examples/sipl_config` directory. To run them using HW ISP capture |
| 74 | +mode, use the following: |
| 75 | + |
| 76 | +```none |
| 77 | + sudo ./examples/sipl_player --json-config ../examples/sipl_config/vb1940_single.json |
| 78 | + sudo ./examples/sipl_player --json-config ../examples/sipl_config/vb1940_dual.json |
| 79 | +``` |
| 80 | + |
| 81 | +To run the examples for RAW capture mode, add the --raw argument. Note that the image |
| 82 | +quality will not be very good due to the lack of proper ISP processing (the image may be |
| 83 | +extremely dark). |
| 84 | + |
| 85 | +```none |
| 86 | + sudo ./examples/sipl_player --json-config ../examples/sipl_config/vb1940_single.json --raw |
| 87 | + sudo ./examples/sipl_player --json-config ../examples/sipl_config/vb1940_dual.json --raw |
| 88 | +``` |
| 89 | + |
| 90 | +JP7.0.0 release currently supports only the |
| 91 | +[Leopard imaging VB1940 Eagle Camera](sensor_bridge_hardware_setup.md). |
0 commit comments