This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:common:development:create-bootable-tf-card [2022/07/05 04:16] nick |
products:sbc:common:development:create-bootable-tf-card [2024/01/11 05:52] (current) nick |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Create Bootable TF Card ====== | ====== Create Bootable TF Card ====== | ||
| - | |||
| - | ===== Introduction ===== | ||
| - | |||
| What is a bootable TF card? | What is a bootable TF card? | ||
| - | * A bootable TF card is an TF card that has a bootloader installed on it. | + | |
| - | * A bootable TF card is also known as a boot disk, which your SBC can boot-up from. | + | * A bootable TF card is also known as a boot disk, which your SBC can boot-up from. |
| Why do we need a bootable TF card? | Why do we need a bootable TF card? | ||
| Line 15: | Line 12: | ||
| <WRAP important > | <WRAP important > | ||
| - | The process for VIM1, VIM2, VIM3, VIM3L and VIM4 is similar, so we will use VIM1 as an example. | + | The process for VIM1, VIM2, VIM3, VIM3L, VIM1S and VIM4 is similar, so we will use VIM1 as an example. |
| </ | </ | ||
| - | ===== Getting Started | + | ===== Download boot images |
| - | Download U-Boot for ([[dl> | + | Download U-Boot for ([[dl> |
| <tabbox VIM1/ | <tabbox VIM1/ | ||
| Line 28: | Line 25: | ||
| * '' | * '' | ||
| - | <tabbox VIM4> | + | < |
| * '' | * '' | ||
| Line 34: | Line 31: | ||
| </ | </ | ||
| + | |||
| + | ===== Linux command line usage examples ===== | ||
| Insert the TF card into your PC, and unmount it: | Insert the TF card into your PC, and unmount it: | ||
| - | ```sh | + | ```shell |
| $ sudo umount /dev/sdX1 | $ sudo umount /dev/sdX1 | ||
| ``` | ``` | ||
| Line 43: | Line 42: | ||
| Format the TF card as FAT32: | Format the TF card as FAT32: | ||
| - | ```sh | + | ```shell |
| $ sudo mkfs.vfat /dev/sdX1 | $ sudo mkfs.vfat /dev/sdX1 | ||
| ``` | ``` | ||
| Line 51: | Line 50: | ||
| <tabbox VIM1/ | <tabbox VIM1/ | ||
| - | ```sh | + | ```shell |
| $ sudo dd if=u-boot.bin.sd.bin of=/dev/sdX conv=fsync, | $ sudo dd if=u-boot.bin.sd.bin of=/dev/sdX conv=fsync, | ||
| $ sudo dd if=u-boot.bin.sd.bin of=/dev/sdX conv=fsync, | $ sudo dd if=u-boot.bin.sd.bin of=/dev/sdX conv=fsync, | ||
| ``` | ``` | ||
| - | <tabbox VIM4> | + | < |
| - | ```sh | + | ```shell |
| $ sudo dd if=u-boot.bin.sd.bin.signed of=/dev/sdX conv=fsync, | $ sudo dd if=u-boot.bin.sd.bin.signed of=/dev/sdX conv=fsync, | ||
| $ sudo dd if=u-boot.bin.sd.bin.signed of=/dev/sdX conv=fsync, | $ sudo dd if=u-boot.bin.sd.bin.signed of=/dev/sdX conv=fsync, | ||
| Line 67: | Line 66: | ||
| Eject the TF card from your PC: | Eject the TF card from your PC: | ||
| - | ```sh | + | ```shell |
| $ sudo eject /dev/sdX | $ sudo eject /dev/sdX | ||
| ``` | ``` | ||
| <WRAP important > | <WRAP important > | ||
| - | Replace | + | Replace |
| </ | </ | ||
| - | ===== Check your Bootable TF Card ===== | + | ===== Bootable TF Card logs ===== |
| - | + | ||
| - | [[products: | + | |
| - | Insert | + | You need to [[products: |
| If your SBC has successfully booted from the TF card, you should get this Terminal print-out: | If your SBC has successfully booted from the TF card, you should get this Terminal print-out: | ||
| Line 115: | Line 112: | ||
| <WRAP tip > | <WRAP tip > | ||
| - | In rare cases, you may need to in order to boot from an SD card. | + | In rare cases, you may need to erase eMMC in order to boot from an TF card. |
| </ | </ | ||