Difference between revisions of "How To Get Satellite CCRMA"

From CCRMA Wiki
Jump to: navigation, search
m
 
(49 intermediate revisions by 2 users not shown)
Line 1: Line 1:
by Edgar Berdahl, July 2011
+
by Edgar Berdahl, July 2011 and updated March 2013
  
 
== 1. Get The Parts ==
 
== 1. Get The Parts ==
  
* Beagle Board (preferably the Beagle Board '''xM''', try [http://www.digikey.com DigiKey] or [http://www.mouser.com Mouser])
+
See [https://ccrma.stanford.edu/wiki/Satellite_CCRMA_First_Steps this link] for a list of the parts.
  
* 4GB SD card or larger - get a high-quality one from a brand like Kingston
+
== 2. Burn Image to the SD Card ==
 +
'''Be very careful when carrying out this procedure! If you choose the wrong disk or partition, you could easily erase everything on it!'''
 +
* First download the appropriate Satellite CCRMA SDHC card image from [http://ccrma.stanford.edu/~eberdahl/Satellite the main page].
 +
* Before uncompressing the image file (it it is compressed), check the following. If you have a mac, then run
  
* One GT Max adjustable-length USB cable
+
''md5 [name of the downloaded file]''
  
* Ethernet cable
+
or if you have Linux, then run
  
* '''2.5A''' 5V switching power adaptor
+
''md5sum [name of the downloaded file]''
  
* [http://www.arduino.cc/en/Main/ArduinoBoardNano Arduino Nano] from Gravitec
+
to ensure that this checksum matches the one on [http://ccrma.stanford.edu/~eberdahl/Satellite the main page]. Otherwise, try downloading the compressed image again.
  
* Solderless breadboard
+
* Uncompress the image.
 +
* Then run the <tt>df</tt> command in the Terminal and look at the output. For example, I get
 +
<tt>OSX-Freshinstall:~ eberdahl$ df<br>
 +
Filesystem    512-blocks      Used Available Capacity  iused  ifree %iused  Mounted on<br>
 +
/dev/disk0s2  486717952 448570928  37635024    93% 56135364 4704378  92%  /<br>
 +
devfs                394      394        0  100%      682      0  100%  /dev<br>
 +
map -hosts            0        0        0  100%        0      0  100%  /net<br>
 +
map auto_home          0        0        0  100%        0      0  100%  /home</tt>
 +
* Connect the blank (micro) SD card to your Mac by plugging it in directly to a camera SD card reader or use a USB micro SDHC reader/writer.
 +
* Run the <tt>df</tt> command again in the Terminal to determine that the SD card (in this case named '''Untitled''') corresponds to the partition /dev/disk'''2s1''' on the disk /dev/disk'''2''' (or for you, it might show up as /dev/disk'''3s1''' and /dev/disk'''3''' or /dev/disk'''4s1''' and /dev/disk'''4''', etc.) Usually it shows up on the last line:
 +
<tt>OSX-Freshinstall:~ eberdahl$ df<br>
 +
Filesystem    512-blocks      Used Available Capacity  iused  ifree %iused  Mounted on<br>
 +
/dev/disk0s2  486717952 448570928  37635024    93% 56135364 4704378  92%  /<br>
 +
devfs                394      394        0  100%      682      0  100%  /dev<br>
 +
map -hosts            0        0        0  100%        0      0  100%  /net<br>
 +
map auto_home          0        0        0  100%        0      0  100%  /home<br>
 +
/dev/disk'''2s1'''      114576    44992    69584    40%      512      0  100%  /Volumes/'''Untitled'''</tt>
 +
* Unmount the partition by executing
 +
<tt>diskutil unmountDisk /dev/disk'''2s1'''</tt><br>
 +
or similar.
 +
* Write the image to the entire disk using the following
 +
<tt>sudo dd if=SatelliteCCRMA-xMRevC_Maverick.dd of=/dev/disk'''2''' bs=1m</tt><br>
 +
where you substitute the appropriate image and disk names. This will take a while. Once finished, the SD card will generally only be fully readable by Linux computers.
  
* '''Only if you have the Beagle Board original:''' External Ethernet/USB hub such as the GWC Technology HE2440
+
<br><br><Note from Wendy, July 2012><br>
 +
If you want to see how far along in the process you are, you can open another terminal window, and type
  
 +
<tt>killall -INFO dd</tt> in Mac OS X, or
  
 
+
<tt>killall -USR1 dd </tt> in Linux.
== 2. Burn Image to the SD Card ==
+
Read the results in the terminal carefully. If the error is only that it was unable to write the last few blocks, that may be ok. We have padded the image with zeros at the end, so theoretically it shouldn't matter so much if some of the zeros at the end are missing.
'''Be very careful when carrying out this procedure! If you choose the wrong block device, you could easily erase everything on it!'''
+
* Connect the blank (micro) SDHC card to your Mac by plugging it in directly to a camera SD card reader or use a USB micro SDHC reader/writer.
+
* Open up the Terminal program, and find out which block device the (micro) SDHC card is connected to by running the <tt>df</tt> command. For instance, you might see it show up as something like <tt>/dev/disk3s1</tt>, meaning that the block device for the entire SDHC micro card is <tt>/dev/disk3</tt>. From now on, we will refer to that as <tt>diskX</tt>.
+
* Unmount the block device by executing
+
<tt>diskutil unmountDisk /dev/diskX</tt>
+
* Write the image to the (micro) SDHC block device using the command
+
<tt>dd if=xM_RevC_Maverick.dd of=/dev/diskX bs=8225280</tt>
+
 
+
which will take some time to finish.
+
  
  
 +
For instance, when the procedure works for me, I see that almost all of the records are copied<br>
 +
<tt>sudo dd if=SatelliteCCRMA-xMRevC_Maverick.dd of=/dev/disk'''3''' bs=1M<br>
 +
7457+0 records in<br>
 +
7456+1 records out<br>
 +
7818186752 bytes transferred in 6604.225241 secs (1183816 bytes/sec)</tt>
  
Read the results in the terminal carefully to make sure that there weren't any errors. If you have any difficulties: try again, and/or try changing the <tt>bs</tt> value to 10M or something else. This changes the block size of each write. No matter what, using a high-quality (micro) SDHC card can save you a lot of trouble later!
 
  
 +
Tip for verifying the image: Attach an HDMI monitor to the kit so you can watch the output as it is trying to boot the image.
  
  
 +
If you have any further difficulties: Try again, use e.g. of=/dev/rdisk'''3''' instead. By the way, <tt>bs=1m</tt> or <tt>bs=1M</tt> changes the block size of each write. Depending on how your system is setup, writes may finish faster depending on what block size you use. No matter what, using a high-quality (micro) SDHC card can save you a lot of trouble later! For instance, we use the Kingston micro SDHC cards (minimum class 4, class 10 is better) that come with the Beagle Board xM.
  
 
== 3. Put Them All Together ==
 
== 3. Put Them All Together ==

Latest revision as of 11:03, 17 February 2014

by Edgar Berdahl, July 2011 and updated March 2013

1. Get The Parts

See this link for a list of the parts.

2. Burn Image to the SD Card

Be very careful when carrying out this procedure! If you choose the wrong disk or partition, you could easily erase everything on it!

  • First download the appropriate Satellite CCRMA SDHC card image from the main page.
  • Before uncompressing the image file (it it is compressed), check the following. If you have a mac, then run

md5 [name of the downloaded file]

or if you have Linux, then run

md5sum [name of the downloaded file]

to ensure that this checksum matches the one on the main page. Otherwise, try downloading the compressed image again.

  • Uncompress the image.
  • Then run the df command in the Terminal and look at the output. For example, I get

OSX-Freshinstall:~ eberdahl$ df
Filesystem 512-blocks Used Available Capacity iused ifree %iused Mounted on
/dev/disk0s2 486717952 448570928 37635024 93% 56135364 4704378 92% /
devfs 394 394 0 100% 682 0 100% /dev
map -hosts 0 0 0 100% 0 0 100% /net
map auto_home 0 0 0 100% 0 0 100% /home

  • Connect the blank (micro) SD card to your Mac by plugging it in directly to a camera SD card reader or use a USB micro SDHC reader/writer.
  • Run the df command again in the Terminal to determine that the SD card (in this case named Untitled) corresponds to the partition /dev/disk2s1 on the disk /dev/disk2 (or for you, it might show up as /dev/disk3s1 and /dev/disk3 or /dev/disk4s1 and /dev/disk4, etc.) Usually it shows up on the last line:

OSX-Freshinstall:~ eberdahl$ df
Filesystem 512-blocks Used Available Capacity iused ifree %iused Mounted on
/dev/disk0s2 486717952 448570928 37635024 93% 56135364 4704378 92% /
devfs 394 394 0 100% 682 0 100% /dev
map -hosts 0 0 0 100% 0 0 100% /net
map auto_home 0 0 0 100% 0 0 100% /home
/dev/disk2s1 114576 44992 69584 40% 512 0 100% /Volumes/Untitled

  • Unmount the partition by executing

diskutil unmountDisk /dev/disk2s1
or similar.

  • Write the image to the entire disk using the following

sudo dd if=SatelliteCCRMA-xMRevC_Maverick.dd of=/dev/disk2 bs=1m
where you substitute the appropriate image and disk names. This will take a while. Once finished, the SD card will generally only be fully readable by Linux computers.



<Note from Wendy, July 2012>
If you want to see how far along in the process you are, you can open another terminal window, and type

killall -INFO dd in Mac OS X, or

killall -USR1 dd in Linux. Read the results in the terminal carefully. If the error is only that it was unable to write the last few blocks, that may be ok. We have padded the image with zeros at the end, so theoretically it shouldn't matter so much if some of the zeros at the end are missing.


For instance, when the procedure works for me, I see that almost all of the records are copied
sudo dd if=SatelliteCCRMA-xMRevC_Maverick.dd of=/dev/disk3 bs=1M
7457+0 records in
7456+1 records out
7818186752 bytes transferred in 6604.225241 secs (1183816 bytes/sec)


Tip for verifying the image: Attach an HDMI monitor to the kit so you can watch the output as it is trying to boot the image.


If you have any further difficulties: Try again, use e.g. of=/dev/rdisk3 instead. By the way, bs=1m or bs=1M changes the block size of each write. Depending on how your system is setup, writes may finish faster depending on what block size you use. No matter what, using a high-quality (micro) SDHC card can save you a lot of trouble later! For instance, we use the Kingston micro SDHC cards (minimum class 4, class 10 is better) that come with the Beagle Board xM.

3. Put Them All Together

Plug everything in, and you should be ready to go. Here it is with some speakers.

SatelliteCCRMASmall.jpg