Changes between Initial Version and Version 1 of howto/SD_Config/Linux


Ignore:
Timestamp:
Aug 25, 2012, 10:56:24 PM (12 years ago)
Author:
murphpo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • howto/SD_Config/Linux

    v1 v1  
     1== Writing SD Cards: Linux ==
     2Every Linux distro should include dd. Run {{{which dd}}} to confirm you have it installed.
     3
     4'''Finding the SD card descriptor:'''[[BR]]
     5 1. Insert the SD card
     6 1. In a terminal run {{{fdisk -l}}}. Depending on your system, you may need to run this as root ({{{sudo fdisk -l}}}). Look for the SD card in the list of disks. On an Ubuntu 12.04 system with one hard drive, the output is:
     7{{{
     8}}}
     9 2. In this example, the SD card device descriptor is {{{/dev/disk1}}}. The actual descriptor will differ on other machines with different disk configurations, but should take the form {{{/dev/diskX}}}.
     10
     11'''Copying the .bin file:'''[[BR]]
     12 1. Unmount ('''not''' eject) the drive using this command (replacing {{{X}}} with your actual SD descriptor):
     13{{{
     14diskutil unmountDisk /dev/diskX
     15}}}
     16 1. Run this command, replacing the last three arguments with the correct values:
     17{{{
     18dd bs=512 seek=<N> if=<yourFile.bin> of=</dev/diskX>
     19}}}
     20  1. ''<N>'': depends on the target slot number; use (131072 + slotNum*32768). More details [wiki:..#Copying.binFilesSDCards here].
     21  1. ''<yourFile.bin>'': the binary FPGA configuration file
     22  1. ''</dev/diskX>'': device descriptor for the SD card
     23 1. If successful, dd should report the following (the time/throughput values will differ):
     24{{{
     2518032+1 records in
     2618032+1 records out
     279232444 bytes transferred in 8.503631 secs (1085706 bytes/sec)
     28}}}
     29 1. Repeat for additional .bin config files in additional slots if needed.
     30 1. Eject the SD card in the Finder (if it's mounted).