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


Ignore:
Timestamp:
Aug 25, 2012, 9:16:15 PM (12 years ago)
Author:
murphpo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • howto/SD_Config/OSX

    v1 v1  
     1=== OS X ===
     2Apple provides a copy of dd with recent releases of OS X (at least since 10.7, probably earlier).
     3
     4'''Finding the SD card descriptor:'''[[BR]]
     5 1. Insert the SD card
     6 1. In a terminal run {{{diskutil list}}} to find device descriptor for SD card. Look for the SD card in the list of disks. On a MBP, the shows:
     7{{{
     8   #:                       TYPE NAME                    SIZE       IDENTIFIER
     9   0:      GUID_partition_scheme                        *500.1 GB   disk0
     10   1:                        EFI                         209.7 MB   disk0s1
     11   2:                  Apple_HFS Macintosh HD            499.2 GB   disk0s2
     12   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
     13/dev/disk1
     14   #:                       TYPE NAME                    SIZE       IDENTIFIER
     15   0:     FDisk_partition_scheme                        *2.0 GB     disk1
     16   1:                 DOS_FAT_32 WARP SD                 32.0 MB    disk1s1
     17}}}
     18 2. In this example, the SD card device descriptor is /dev/disk1. The actual descriptor will differ on other machines with different disk configurations.
     19
     20'''Copying the .bin file:'''[[BR]]
     21 1. Unmount ('''not''' eject) the drive using this command:
     22{{{
     23diskutil unmountDisk /dev/diskX
     24}}}
     25 1. Run this command, replacing the last three arguments with the correct values:
     26{{{
     27dd bs=512 seek=<N> if=<yourFile.bin> of=</dev/diskX>
     28}}}
     29  1. ''<N>'': depends on the target slot number; see the list above
     30  1. ''<yourFile.bin>'': the binary FPGA configuration file
     31  1. ''</dev/diskX>'': device descriptor for the SD card
     32 1. If successful, dd should report the following (the time/throughput values will differ):
     33{{{
     3418032+1 records in
     3518032+1 records out
     369232444 bytes transferred in 8.503631 secs (1085706 bytes/sec)
     37}}}
     38 1. Repeat for additional .bin config files if needed.
     39 1. Eject the SD card in the Finder (if it's mounted).