-
Notifications
You must be signed in to change notification settings - Fork 0
yocto flash
- Blank microSD card, > 2 GiB
- Bash terminal/Linux environment on your computer
Note: this is partially adapted from the Raspberry Pi installation guide. If you’re in Windows you can try one of these programs, just make sure to unzip the compressed image first.
Download my compressed SD image; other recent Ocra images (e.g. from Thomas Witzel/Danny Park) should also work.
Note: this is partially adapted from the Download and install SD card image (Windows). Using, for example, the program Win32 Disk Imager, one should follow these steps below:
- Unzip the compressed image.
- Insert SD card into your PC or SD card reader.
- Download Win32 Disk Imager and install it. BE CAREFUL THAT YOU’RE INSTALLING THE CORRECT FILE
- Right-click on the WinDisk32Imager and select Run as Administrator.
- Under image file box select unzipped Red Pitaya image file, File type . and select the sdimage-bootpart-202004030120-mmcblk0.direct file (or equivalent).
- Under device box select the drive letter of the SD card. !!! Be careful to select the correct drive. If you choose the wrong one you risk erasing data from the computer’s hard disk! You can easily see the drive letter (for example E:) by looking in the left column of Windows Explorer.
- Click Write and wait for the write to complete.
- Exit the Imager.
Flash it to your SD card, using an SD card reader or similar. In the Linux terminal, I navigate to the image location, then use these commands to extract and write the image:
tar -xvf sdimage-bootpart-202004030120-mmcblk0.direct.tar.bz2
sudo dd if=./sdimage-bootpart-202004030120-mmcblk0.direct of=/dev/sdd bs=1M && sync
where /dev/sdd
is the SD card device; it may be different on your system.
Immediately after inserting your SD card, you can find out its device using dmesg | tail
in the terminal.
BE SURE OF WHAT YOUR SD CARD DEVICE IS, OTHERWISE YOU COULD LOSE DATA ON YOUR HARD DRIVES - CHECK USING GPARTED OR SIMILAR IF YOU’RE UNSURE.
This should take around 3 to 5 minutes.
You should receive some info similar to:
1112+1 records in
1112+1 records out
1166386176 bytes (1.2 GB, 1.1 GiB) copied, 101.467 s, 11.5 MB/s
You might want to verify the SD card contents as follows:
sudo dd bs=1M if=/dev/sdd of=test.img count=1113
sudo truncate --reference sdimage-bootpart-202004030120-mmcblk0.direct test.img
md5sum sdimage-bootpart-202004030120-mmcblk0.direct test.img
sudo rm test.img
where count
is based on what the SD-writing dd command showed (1112+1=1113 in the above example).
If the MD5 hashes of the two files are identical, all is well; safely eject the SD card if it’s mounted (note: some Linux environments will have auto-mounted it).