sdcardcreation
Differences
This shows you the differences between two versions of the page.
sdcardcreation [2022/09/21 05:55] – created admin | sdcardcreation [2023/03/24 10:20] (current) – Changed formatting to match typical software build wiki pages. bhuey | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== SD Card Creation ====== | ====== SD Card Creation ====== | ||
+ | This section of the Wiki describes how to create an SD card for Oxygen by formatting the card, creating disk partitions, and copying the file systems. | ||
===== Format the SD card ===== | ===== Format the SD card ===== | ||
+ | In Linux, start fdisk by running | ||
+ | < | ||
+ | sudo fdisk / | ||
+ | </ | ||
- | sudo fdisk / | + | where // / |
- | where / | + | In fdisk, complete |
- | Whit in fdisk | + | - Press //'' |
- | p | + | - Press //'' |
- | to print and make sure the device is the sd card | + | - Press //'' |
- | n | + | - At the //'' |
- | new partition | + | - At the //'' |
- | p | + | - At the //'' |
- | Primary | + | - Press //'' |
- | Enter for default number | + | - Press //'' |
+ | - Press //'' | ||
+ | - Press //'' | ||
+ | - At the //'' | ||
+ | - At the //'' | ||
+ | - At the //'' | ||
+ | - Press //'' | ||
- | +1G | + | ===== Create the file systems ===== |
- | for last sector | + | First, create the boot file system on the 1 GB partition by running the following: |
- | n | + | < |
- | t | + | |
- | change the type | + | |
- | c | + | |
- | vfat32 | + | |
- | n | + | |
- | for new partiation | + | |
- | enter | + | |
- | enter | + | |
- | + | ||
- | w | + | |
- | to write the partition table | + | |
- | + | ||
- | ===== Create the file systems | + | |
- | ===== | + | |
sudo mkfs.vfat -n BOOT / | sudo mkfs.vfat -n BOOT / | ||
+ | </ | ||
+ | Then, create the main file system on the main partition by running: | ||
+ | < | ||
sudo mkfs.ext4 -L root / | sudo mkfs.ext4 -L root / | ||
+ | </ | ||
- | eject the sdcard | + | Next, eject the SD card, remove it, and then put it back in the computer. This step is important to get the OS to enumerate the card with these new file systems. |
- | Copy data to the sdcard | + | ===== Copy data to the SD card ===== |
- | + | ||
- | cd to the buildarea/ | + | |
+ | Change directory to //'' | ||
+ | < | ||
cp download.* / | cp download.* / | ||
- | |||
cp boot.bin / | cp boot.bin / | ||
cp Image / | cp Image / | ||
cp oxygen.dtb / | cp oxygen.dtb / | ||
- | + | sudo tar -xf rwt-sdr-image-oxygen.tar.gz -C / | |
- | + | ||
- | sudo tar -xf rwt-sdr-image-oxygen.tar.gz -C / | + | |
- | + | ||
sudo tar -xf | sudo tar -xf | ||
+ | </ | ||
sdcardcreation.1663757715.txt.gz · Last modified: 2022/09/21 05:55 by admin