Using Mac to connect Raspberry Pi 4


1. Edit the config

  • using the usb to write the TF card
  • open /boot/wpa_supplicant.conf
  • insert the data

    country=CN
    update_config=1
    ctrl_interface=/var/run/wpa_supplicant
    
    network={
       ssid="<wifi 名称>"
       psk="<wifi 密码>"
    }
  • click here to format the data.

2. TTL to connect

Edit the config

# edit TF card `/boot/config.txt` 

# add the content

enable_uart=1

Install the device drive in mac

  1. ch340g Drive
  2. PL2303 Drive

Check for success

> ls /dev | grep tty.usb

# if appear tty.usbserial  , it was scucuessful

Connection

GND->Groud
RXD->GPIO 14(TXD)
TXD->GPIO 15(RXD)

if you have power supply, please remove the 5v red line

Install Screen to ssh

> brew install screen
> screen /dev/tty.usbserial 115200

Uninstall the drive

> rm -rf /System/Library/Extensions/XXXX.kext
> rm -rf /System/Library/Extensions.kextcache
> rm -rf /System/Library/Extensions.mkext
> kextcache -k /System/Library/Extensions
Last modification:August 26th, 2020 at 06:38 pm
小编很用心去写文章的,大家伙们给点支持呗。