Difference between revisions of "Cogniteam/ROSCUBE"

From cogniteam
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 33: Line 33:
  
 
=== Prepare released image on Host PC ===
 
=== Prepare released image on Host PC ===
 +
 +
<big>Here you can '''[https://cloud.cogni.io/index.php/s/x6IAEsROSdW59nj download]''' image for ROSCUBE
 +
</big>
  
 
<big>Assuming image’s file name is mfi_npn2_nvidia-sample-rootfs-bionic_l4t-32-5-0-kernel-1-0-8.tar.xz. Un-archive this file first.
 
<big>Assuming image’s file name is mfi_npn2_nvidia-sample-rootfs-bionic_l4t-32-5-0-kernel-1-0-8.tar.xz. Un-archive this file first.
Line 65: Line 68:
 
<big>Install your and SSD and boot, then open the menu and search disk.
 
<big>Install your and SSD and boot, then open the menu and search disk.
 
</big>
 
</big>
 +
 +
<gallery widths=550px heights=350px mode="packed-hover margin-right" border=none>
 +
  File:JetsonSSD1.png|
 +
  </gallery>
  
 
<big>Launch the disk app, then you’ll see this.</big>
 
<big>Launch the disk app, then you’ll see this.</big>
  
 +
<gallery widths=550px heights=550px mode="packed-hover margin-right" border=none>
 +
  File:JetsonSSD2.png|
 +
  </gallery>
  
<big>In example is a 240 GB SSD. The size of your Partition 3 depends on the SSD you installed. Then press '''ctrl + F''' to start formatting your SSD.
+
<big>In example size is a 240 GB SSD. The size of your Partition 3 depends on the SSD you installed. Then press '''ctrl + F''' to start formatting your SSD.
 
</big>
 
</big>
 +
 +
<gallery widths=500px heights=200px mode="packed-hover margin-right" border=none>
 +
  File:JetsonSSD3.png|
 +
  </gallery>
  
 
<big>When you see this, click '''Format''' to continue. Then you’ll get a 240 GB free space.
 
<big>When you see this, click '''Format''' to continue. Then you’ll get a 240 GB free space.
 
</big>
 
</big>
 +
 +
<gallery widths=550px heights=550px mode="packed-hover margin-right" border=none>
 +
  File:JetsonSSD4.png|
 +
  </gallery>
  
 
<big>Now let’s create Partition
 
<big>Now let’s create Partition
 
</big>
 
</big>
 +
 +
<gallery widths=550px heights=500px mode="packed-hover margin-right" border=none>
 +
  File:JetsonSSD5.png|
 +
  </gallery>
  
 
<big>Choose the size of your main partition. We suggest you to leave 16 GB for swap file.
 
<big>Choose the size of your main partition. We suggest you to leave 16 GB for swap file.
 
</big>
 
</big>
  
 +
<gallery widths=550px heights=500px mode="packed-hover margin-right" border=none>
 +
  File:JetsonSSD6.png|
 +
  </gallery>
  
 
<big>Give your volume a name. Then click '''Create'''. Then you’ll see this coming.
 
<big>Give your volume a name. Then click '''Create'''. Then you’ll see this coming.
 
</big>
 
</big>
  
 +
<gallery widths=550px heights=500px mode="packed-hover margin-right" border=none>
 +
  File:JetsonSSD7.png|
 +
  </gallery>
  
 
<big>Now you have successfully created a volume, but it’s not mounted yet. Let’s mount it using shell command. Jetsonhacks have already integrated those commands into a shell script. Let’s run it to make Xavier boot from SSD.
 
<big>Now you have successfully created a volume, but it’s not mounted yet. Let’s mount it using shell command. Jetsonhacks have already integrated those commands into a shell script. Let’s run it to make Xavier boot from SSD.
 
</big>
 
</big>
 
  
 
=== Copy the rootfs from SD card to SSD ===
 
=== Copy the rootfs from SD card to SSD ===

Latest revision as of 16:35, 10 November 2021

System Level ROScube Pico Flashing Image

Set ROScube Pico into recovery mode

a. Connect power cable to ROScube Pico.

b. Short Pin 03 and Pin 04 and hold short status.

c. Keep Pin 03 and Pin 04 short status and press Reset button.

d. Release Short pins and pull out cable.

Now ROScube Pico is in recovery mode.

Connect Host PC and ROScube Pico with micro usb cable

Prepare released image on Host PC

Here you can download image for ROSCUBE

Assuming image’s file name is mfi_npn2_nvidia-sample-rootfs-bionic_l4t-32-5-0-kernel-1-0-8.tar.xz. Un-archive this file first. <syntaxhighlight lang="bash" line='line'> $> tar xvf mfi_npn2_nvidia-sample-rootfs-bionic_l4t-32-5-0-kernel-1-0-8.tar.xz $> cd mfi_npn2_nvidia-sample-rootfs-bionic_l4t-32-5-0-kernel-1-0-8 </syntaxhighlight>


Then, use BSP internal tool, nvmflash.sh to run the flashing procedure. Please make sure your Host PC has attached to ROScube Pico. <syntaxhighlight lang="bash" line='line'> $> cd mfi_rqp_nx $> sudo ./nvmflash.sh </syntaxhighlight>


Note: You may need to input your host PC’s root password when flashing the image.

Note: The flashing procedure might take 8 ~ 10 minutes.

Boot Jetson Xavier from M.2 NVMe SSD

The basic idea of these steps is to copy rootfs from SD/emmc to SSD. After the system has loaded the image from SD/emmc, the boot process will be transferred to SSD. This is how you can make Xavier to boot from SSD. But remember, if you are using Xavier NX, you still need SD card plugged in order to boot the device cause NX doesn’t allow you to boot directly from SSD.

Format the SSD you have installed

Install your and SSD and boot, then open the menu and search disk.

Launch the disk app, then you’ll see this.

In example size is a 240 GB SSD. The size of your Partition 3 depends on the SSD you installed. Then press ctrl + F to start formatting your SSD.

When you see this, click Format to continue. Then you’ll get a 240 GB free space.

Now let’s create Partition

Choose the size of your main partition. We suggest you to leave 16 GB for swap file.

Give your volume a name. Then click Create. Then you’ll see this coming.

Now you have successfully created a volume, but it’s not mounted yet. Let’s mount it using shell command. Jetsonhacks have already integrated those commands into a shell script. Let’s run it to make Xavier boot from SSD.

Copy the rootfs from SD card to SSD

First of all, you need to clone the project.

<syntaxhighlight lang="bash" line='line'> $> git clone https://github.com/jetsonhacks/rootOnNVMe.git $> cd rootOnNVMe </syntaxhighlight>

Then copy rootfs file to your SSD.

<syntaxhighlight lang="bash" line='line'> $> ./copy-rootfs-ssd.sh </syntaxhighlight>

Enable booting from SSD

You need to run.

<syntaxhighlight lang="bash" line='line'> $> ./setup-service.sh $> sudo reboot </syntaxhighlight>