--- title: '樹梅派3B+設定' disqus: hackmd --- 樹梅派3B+設定 === 樹梅派3B+ 解決開機彩虹畫面 更新bootloader與5G wifi設定 :::info 2020.12.09 update ::: ![](https://i.imgur.com/yOkF3GR.jpg) ## Table of Contents [TOC] ## Beginners Guide Pi 3B Pi 2B v1.2使用BCM2837A0 Pi 3B+ 3A+ 使用BCM2837B0 需更新bootloader 否則卡在彩虹畫面 準備樹梅派3B硬體進行bootloader更新,再安裝wifi。 其他軟體可選擇性安裝 再插入樹梅派3B+即可使用 記得開啟自動登入,以ssh 環境 --- 硬體: raspberry pi3B+ OS: ubuntuMate16.04.7 先在pi3B 硬體執行以下 --- 使用基礎映像檔 https://releases.ubuntu-mate.org/archived/xenial/armhf/ ubuntu-mate-16.04.2-desktop-armhf-raspberry-pi.img.xz ``` sudo apt update sudo apt upgrade -y ``` ``` wget https://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/raspberrypi-bootloader_1.20181112-1_armhf.deb mkdir /tmp/pi-bootloader sudo dpkg-deb -x raspberrypi-bootloader_1.20181112-1_armhf.deb /tmp/pi-bootloader sudo cp /tmp/pi-bootloader/boot/* /boot/ ``` 5G wifi --- ``` mkdir wifi-firmware && cd wifi-firmware wget https://github.com/RPi-Distro/firmware-nonfree/raw/master/brcm/brcmfmac43455-sdio.bin wget https://github.com/RPi-Distro/firmware-nonfree/raw/master/brcm/brcmfmac43455-sdio.clm_blob wget https://github.com/RPi-Distro/firmware-nonfree/raw/master/brcm/brcmfmac43455-sdio.txt sudo cp *sdio* /lib/firmware/brcm/ ``` 其他軟體(選擇安裝) --- #### 開機自動登入 ![](https://i.imgur.com/4DVEoWA.jpg) [SBC] step1.System--> Users and Groups-->loggin without password step2. modify *60-lightdm-gtk-greeter.conf* under */usr/share/lightdm/lightdm.conf.d* ```bash= sudo vim /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf` ``` the whole script should look like this ```vim= [SeatDefaults] greeter-session=lightdm-gtk-greeter autologin-user=jbot ``` #### 安裝細節 python:3.5.2 sudo apt update `sudo raspi-config` enable camera i2c ssh 註:spi有錯誤 #### 開機 ![](https://i.imgur.com/HuK7NWu.png) Connection closed by ip port 解法: **sudo dpkg-reconfigure openssh-server** sudo systemctl enable ssh #### 一般軟體安裝 sudo apt install vim git zsh ForwardX11 yes ### 其他應用軟體安裝 ```bash= sudo apt install htop atop nethogs iftop sudo apt install aptitude apt-file sudo apt install -y build-essential libblas-dev liblapack-dev libatlas-base-dev gfortran libyaml-cpp-dev raspberrypi-kernel-headers sudo apt install -y i2c-tools sudo apt install -y python-dev ipython python-sklearn python-smbus sudo apt install -y python-termcolor sudo apt install python-frozendict sudo apt install python-tables pip install comptests pip install procgraph sudo pip3 install scipy==0.19.1 sudo pip install ruamel.yaml --upgrade ``` ### 移除liboffice等肥大影音軟體 sudo apt autoremove sudo apt clean ### make swap 為了編譯某些消耗記憶體函式庫 sudo dd if=/dev/zero of=/swap0 bs=1M count=512 sudo mkswap /swap0 sudo vi /etc/fstab /swap0 swap swap sudo swapon -a https://github.com/shihyuan/lane_change_detection ## Appendix and FAQ :::info **Find this document incomplete?** Leave a comment! ::: https://ubuntu-mate.community/t/adapting-ubuntu-mate-16-04-image-to-run-on-the-3b-3a/18797 https://hackmd.io/Gc2NdNZ_RBWqopQ-c3e0Tg ![](https://i.imgur.com/l9buV54.jpg) ###### tags:`Documentation` `jbot`