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


Ignore:
Timestamp:
Aug 25, 2012, 11:01:04 PM (12 years ago)
Author:
murphpo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • howto/SD_Config/Linux

    v1 v2  
    44'''Finding the SD card descriptor:'''[[BR]]
    55 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:
     6 1. In a terminal run {{{fdisk -l}}}. Depending on your system, you may need to run this as root ({{{sudo fdisk -l}}}).
     7 1. Find the SD card in the list of disks. The descriptor will have the form {{{/dev/<something>}}}
     8  1. On our test system (Ubuntu 12.04, PC with one hard drive), the output is:
    79{{{
     10$ sudo fdisk -l
     11Disk /dev/sda: 500.1 GB, 500107862016 bytes
     12255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
     13Units = sectors of 1 * 512 = 512 bytes
     14Sector size (logical/physical): 512 bytes / 4096 bytes
     15I/O size (minimum/optimal): 4096 bytes / 4096 bytes
     16Disk identifier: 0xad574c68
     17
     18   Device Boot      Start         End      Blocks   Id  System
     19/dev/sda1              63       80324       40131   de  Dell Utility
     20Partition 1 does not start on physical sector boundary.
     21/dev/sda2   *       81920    27967487    13942784    7  HPFS/NTFS/exFAT
     22/dev/sda3        27967488   502366207   237199360    7  HPFS/NTFS/exFAT
     23/dev/sda4       502368254   976771071   237201409    5  Extended
     24Partition 4 does not start on physical sector boundary.
     25/dev/sda5       502368256   972666879   235149312   83  Linux
     26/dev/sda6       972668928   976771071     2051072   82  Linux swap / Solaris
     27
     28Disk /dev/sdb: 1977 MB, 1977614336 bytes
     29255 heads, 63 sectors/track, 240 cylinders, total 3862528 sectors
     30Units = sectors of 1 * 512 = 512 bytes
     31Sector size (logical/physical): 512 bytes / 512 bytes
     32I/O size (minimum/optimal): 512 bytes / 512 bytes
     33Disk identifier: 0x00000000
     34
     35   Device Boot      Start         End      Blocks   Id  System
     36/dev/sdb1               2       62505       31252    b  W95 FAT32
    837}}}
    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}}}.
     38  2. In this output, the first disk is the computer's hard drive. The second disk is the SD card (notice the capacity of approx 2GB, with 1 32MB FAT partition).
     39  2. In this example, the SD card device descriptor to use with dd {{{/dev/sdb}}}.
    1040
    1141'''Copying the .bin file:'''[[BR]]
    12  1. Unmount ('''not''' eject) the drive using this command (replacing {{{X}}} with your actual SD descriptor):
    13 {{{
    14 diskutil unmountDisk /dev/diskX
    15 }}}
    1642 1. Run this command, replacing the last three arguments with the correct values:
    1743{{{
    18 dd bs=512 seek=<N> if=<yourFile.bin> of=</dev/diskX>
     44dd bs=512 seek=<N> if=<yourFile.bin> of=</dev/someDevice>
    1945}}}
    2046  1. ''<N>'': depends on the target slot number; use (131072 + slotNum*32768). More details [wiki:..#Copying.binFilesSDCards here].
    2147  1. ''<yourFile.bin>'': the binary FPGA configuration file
    22   1. ''</dev/diskX>'': device descriptor for the SD card
     48  1. ''</dev/someDevice>'': device descriptor for the SD card
    2349 1. If successful, dd should report the following (the time/throughput values will differ):
    2450{{{
    255118032+1 records in
    265218032+1 records out
    27 9232444 bytes transferred in 8.503631 secs (1085706 bytes/sec)
    2853}}}
    2954 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).