Changes between Version 2 and Version 3 of howto/SD_Config


Ignore:
Timestamp:
Aug 25, 2012, 3:09:19 PM (12 years ago)
Author:
murphpo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • howto/SD_Config

    v2 v3  
    9292Apple provides a copy of dd with recent releases of OS X (at least since 10.7, probably earlier).
    9393
     94'''Finding the SD card descriptor:'''[[BR]]
    9495 1. Insert the SD card
    95  1. Run {{{diskutil list}}} to find device descriptor for SD card. Use this in place of {{{/dev/diskX}}} below.
     96 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:
     97{{{
     98   #:                       TYPE NAME                    SIZE       IDENTIFIER
     99   0:      GUID_partition_scheme                        *500.1 GB   disk0
     100   1:                        EFI                         209.7 MB   disk0s1
     101   2:                  Apple_HFS Macintosh HD            499.2 GB   disk0s2
     102   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
     103/dev/disk1
     104   #:                       TYPE NAME                    SIZE       IDENTIFIER
     105   0:     FDisk_partition_scheme                        *2.0 GB     disk1
     106   1:                 DOS_FAT_32 WARP SD                 32.0 MB    disk1s1
     107}}}
     108 2. In this example, the SD card device descriptor is /dev/disk1. The actual descriptor will differ on other machines with different disk configurations.
     109
     110'''Copying the .bin file:'''[[BR]]
    96111 1. Unmount ('''not''' eject) the drive using this command:
    97112{{{
    98113diskutil unmountDisk /dev/diskX
    99114}}}
    100 
    101 For each configuration file you wish to write:
    102  1. Run:
     115 1. Run this command, replacing the last three arguments with the correct values:
    103116{{{
    104 dd bs=512 seek=N if=yourFile.bin of=/dev/diskX
     117dd bs=512 seek=<N> if=<yourFile.bin> of=</dev/diskX>
    105118}}}
    106  2. ''N'' (the argument to seek) depends on the target slot number; see the list above
     119  1. ''<N>'': depends on the target slot number; see the list above
     120  1. ''<yourFile.bin>'': the binary FPGA configuration file
     121  1. ''</dev/diskX>'': device descriptor for the SD card
    107122 1. If successful, dd should report:
    108123{{{
    109 blocks written
     12418032+1 records in
     12518032+1 records out
     1269232444 bytes transferred in 8.503631 secs (1085706 bytes/sec)
    110127}}}
    111  1. Repeat for additional config files if needed.
    112  1. Some versions of OS X re-mount the FAT volume after each call to dd. Run {{{diskutil unmountDisk /dev/diskX}}} again to un-mount it.
     128 1. Repeat for additional .bin config files if needed.
     129 1. Eject the SD card in the Finder (if it's mounted).
     130
     131----
     132=== Windows ===
     133
     134A port of dd is available for Windows from XX. We have sucessfully tested verison 0.6b3 on Win 7 64-bit.
     135
     136Download dd.exe from the site above. Rename it win-dd.exe (to avoid conflicting with the dd.exe included with XPS) and place it somewhere in your Windows path.
     137
     138'''Finding the SD card descriptor:'''[[BR]]
     139 1. Insert the SD card. Take note of which drive letter it is assigned.
     140 1. Open a command prompt and run