Table of Contents
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
In Linux, start fdisk by running
sudo fdisk /dev/mmcblk0
where // /dev/mmcblk0 // is the base device of the SD card in the computer.
In fdisk, complete the following steps in numerical order:
- Press
pand thenEnterto print the partition table and make sure the device is the SD card. - Press
nand thenEnterto add a new partition. - Press
pand thenEnterto designate the new partition as the primary partition. - At the
Partition numberprompt, pressEnterto use the default partition number 1. - At the
First sectorprompt, pressEnterto use the default first sector size of 2048. - At the
Last sectorprompt, enter+1Gand pressEnterto set the partition size as 1 GB. - Press
tand thenEnterto change the partition type. - Press
cand thenEnterto select vfat32 as the partition type. - Press
nand thenEnterto create another partition. - Press
Enterto select the default partition type of primary. - At the
Partition numberprompt, pressEnterto use the default partition number 2. - At the
First sectorprompt, pressEnterto use the default first sector size of 2099200. - At the
Last sectorprompt, pressEnterto use the default last sector size. - Press
wand thenEnterto write the new partitions to the SD card.
Create the file systems
First, create the boot file system on the 1 GB partition by running the following:
sudo mkfs.vfat -n BOOT /dev/mmcblk0p1
Then, create the main file system on the main partition by running:
sudo mkfs.ext4 -L root /dev/mmcblk0p2
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 SD card
Change directory to buildarea/temp/deploy/images/oxygen, or where you have downloaded the image. Then, run the following:
cp download.* /media/user/BOOT/ cp boot.bin /media/user/BOOT/ cp Image /media/user/BOOT/ cp oxygen.dtb /media/user/BOOT/ sudo tar -xf rwt-sdr-image-oxygen.tar.gz -C /media/user/root/ sudo tar -xf
