Install image for Raspberry Pi (Raspbian) under Mac

The following operations are available for Mac and Linux.

Download mirror

Download the mirror, the default is the latest desktop version here, other versions can visit Download Raspbian for Raspberry Pi

curl -o raspbian-stretch.zip https://downloads.raspberrypi.org/raspbian_latest

decompress

unzip raspbian-stretch.zip

Please note that the decompressed file name will be similar 2017-11-29-raspbian-stretch.imgdepending on the version. Please note that it will be changed in the following brushing action.

View memory card

df -h

Unmount the memory card

 sudo diskutil unmount /dev/diskXs1

Flash the image to the memory card

sudo dd bs=1m if=./2017-11-29-raspbian-stretch.img of=/dev/rdiskX

Eject the memory card

sudo diskutil eject /dev/rdiskX

test

Plug it into the Raspberry Pi and try it out.

Link

How to install Raspbian to SD card on Mac

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324464714&siteId=291194637