创客百科

姿势共享,有节操无门槛参与的创客百科,创客动力之源 \ (^_^) /

用户工具

站点工具


note:spoony:flashing-the-sd-card-using-mac

这是本文档旧的修订版!


A PCRE internal error occured. This might be caused by a faulty plugin

====== FLASHING THE SD CARD USING MAC ====== First of all, make sure your SD card is inserted in one of the slots of your Mac (in an USB card reader or directly in the integrated SD card reader slot, if your device has one). Next step is to launch a terminal window on your Mac and enter the following command: diskutil list which will list all the disks that are attached to your MAC. The resulting output will look something like this: <code> /dev/disk0 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *500.3 GB disk0 1: EFI EFI 209.7 MB disk0s1 2: Apple_CoreStorage 499.4 GB disk0s2 3: Apple_Boot Boot OS X 134.2 MB disk0s3 /dev/disk1 #: TYPE NAME SIZE IDENTIFIER 0: Apple_HFS Macintosh HD *499.1 GB disk1 /dev/disk2 #: TYPE NAME SIZE IDENTIFIER 0: FDisk_partition_scheme *7.9 GB disk2 1: DOS_FAT_32 CANAKIT 7.9 GB disk2s1 <code> Find the unit name that corresponds to your SD card (looking at the sizes of the drives will help you identify the right one). In the previous example, it's /dev/disk2. Before proceeding with the flash of the SD card, you should unmount it first. To do that, launch the Disk Utility tool and unmount the SD Card. Do NOT eject it, simply unmount it with a right-click. Alternatively, you can also unmount the disk manually, by typing the following in the terminal window: <code>diskutil unmountDisk /dev/disk2</code> Double-check your card's drive letter! Choosing the wrong drive will likely result in data loss or even worse harm to your computer. To write the image to the SD card, the command syntax is: <code>dd bs=1m if=[source] of=[destination]</code> so a real example of the command is: <code>sudo dd bs=1m if=/Users/antonypa/Desktop/RuneAudio_rpi_0.3-beta_20141029_2GB.img of=/dev/disk2</code> After launching the command you should wait for the flashing process to complete. It can take several minutes, and you'll know that it has completed when the prompt comes back with no errors.

本页面的其他翻译:
note/spoony/flashing-the-sd-card-using-mac.1482854175.txt.gz · 最后更改: 2016/12/27 23:56 (外部编辑)