Friday, May 29, 2020

Jetson Nano boot from USB

Follow "rootOnUSB" step by step, detail can find in here and here:


  1. Install your USB SSD drive in USB port
  2. Format if new drive: At Jetson nano desktop, use "search" app, search and run "Disk"
  3. Confirm USB disk drive = /dev/sda1, create and format partition in type of ext4.
  4. Reboot and check mount of /dev/sda1 from terminal: $df -h 
  5. Download from terminal:$git clone https://github.com/JetsonHacksNano/rootOnUSB
  6. $cd rootOnUSB
  7. $./addUSBToInitramfs.sh
  8. Ignore error, run:$ ./copyRootToUSB.sh -p /dev/sda1
  9. Get your disk UUID: $ ./diskUUID.sh
  10. copy text in terminal: "root=UUID=00000000-0000-0000-0000-000000000000 rootwait rootfstype=ext4"
  11. $cd /boot/extlinux/
  12. $sudo nano extlinux.conf , edit from this:
TIMEOUT 30
DEFAULT primary

MENU TITLE L4T boot options

LABEL primary
     MENU LABEL primary kernel
     LINUX /boot/Image
     INITRD /boot/initrd
     APPEND ${cbootargs} quiet

to this (the text root=UUID... is copy from step 10):

TIMEOUT 30
DEFAULT primary

MENU TITLE L4T boot options

LABEL primary
      MENU LABEL primary kernel
      LINUX /boot/Image
      INITRD /boot/initrd-xusb.img
      APPEND ${cbootargs} root=UUID=00000000-0000-0000-0000-000000000000 rootwait        rootfstype=ext4

LABEL sdcard
      MENU LABEL primary kernel
      LINUX /boot/Image
      INITRD /boot/initrd
      APPEND ${cbootargs} quiet

Reboot and finished, all data now transferred from SD card to USB SSD.



No comments:

Post a Comment