A Simple Way to Boot Through NVMe SSD and TF card

Here’s a simple way to boot into NVMe SSD by using a TF card.

  1. Download sdcard image from Downloading and Installing the Operating System | Bit-Brick
  2. Flash to image to SSD and TF card.
    unzip -p bit-brick-bianbu-desktop-sdcard.zip bit-brick-bianbu-desktop-sdcard.img | dd of=/dev/<your-ssd or your TF card> bs=1M status=progress
    
  3. Mount the TF card, and add two new lines to env_k1-x.txt:
    nvme_boot=setenv bootfs_devname nvme; setenv boot_devnum 0; setenv bootfs_part 5; setenv rootfs_part 6; run mmc_boot
    autoboot=nvme scan; run nvme_boot;
    
  4. Change UUID of TF card partition. Since we flash the same image to TF card and SSD, the partitions will have the same UUID. This command change the UUID of TF card partitions.
    tune2fs -U $(uuidgen) /dev/mmcblk0p5
    tune2fs -U $(uuidgen) /dev/mmcblk0p6
    
  5. Plug in TF card and NVMe SSD. And Boot!.
2 Likes

good,thanks for sharing,I will try to test it. :smiley:

Good job! :+1:I will try to do it too!