Set up
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*Astract [#mb3e1685]
-RobotCar's RasberryPI method of building an environment.
-Download RASPBIAN STRETCH LITE.
-There is a problem avoidance peculiar to Stretch.
Link(JP):https://github.com/FaBoPlatform/RobotCarAI/tree/pull/install_raspberry_pi3
*Install Stretch Lite [#ld01fbe2]
-Desktop function is unnecessary, download RASPBIAN STRETCH LITE with small capacity.
Download URL: https://www.raspberrypi.org/downloads/raspbian/
-Writes the downloaded image file to SDCARD.
-If you are a Windows PC you can write with Win32DiskImager.
-Since the capacity of RobotCarAI's environment is large, SDCARD should use 32GB or more.
-The default login user of Raspberry Pi,
user: pi
password: raspberry
*raspi-config [#af07e04a]
-Enable SSH / SPI / I2C / WiFi.
-Run raspi-config as the root user and make each setting.
sudo raspi-config
-> Interfacing options
-> To activate SSH,SPI and I2C
--SSH:Required for logging into Raspberry Pi 3 via network.
--SPI:Required for button operation of RobotCar.
--I2C:Required for RobotCar distance sensor operation.
-Connect Raspberry Pi 3 to WiFi
sudo raspi-config
->Network Options
->Set JP as WiFi country code
--Enter WiFi SSID and password
wpa_passphrase 'SSID' ‘PASSWORD’
--This setting is saved below.
/etc/wpa_supplicant/wpa_supplicant.conf
*RobotCar source code download [#r2957764]
-Download RobotCar source code with git.
sudo apt-get update
sudo apt-get dist-upgrade -y
sudo apt-get update
sudo apt-get install -y git
mkdir -p /home/pi/notebooks/github/
cd /home/pi/notebooks/github
git clone https://github.com/FaBoPlatform/RobotCarAI
*OS preference [#if1cc2e1]
-OS update, bash setting, vim setting etc. It is not essential for operation, but it makes it easy to see a little.
cd /home/pi/notebooks/github/RobotCarAI/install_raspberry_pi3
# Since the line feed code may be CRLF (DOS), change to LF (UNIX)
find ./ -type f | xargs -n1 sed -i "s/\r//g”
chmod 755 *.sh
sudo ./setup_update.sh
sudo ./setup_dircolors.sh
sudo ./setup_bash.sh
sudo ./setup_vim.sh
sudo ./setup_ip_forward.sh
sudo ./setup_package.sh
*I2C Kernel / smbus correction [#t4ec0242]
-Raspbian Stretch Lite will generate an error when smbus code is executed even if I2C is enabled with raspi-config.
-The cause seems to be in Kernel, so fix it.
wget -O i2c1-bcm2708.dtbo https://drive.google.com/uc\?export=download\&id=0B_P-i4u-SLBXb3VlN0N5amVBb1k
sudo chmod 755 i2c1-bcm2708.dtbo
sudo chown root:root i2c1-bcm2708.dtbo
sudo mv i2c1-bcm2708.dtbo /boot/overlays/
sudo sh -c 'echo "dtoverlay=i2c1-bcm2708" >> /boot/config.txt'
sudo reboot
# After reboot, continue logging in again to Raspberry Pi 3
sudo sh -c '/bin/echo Y > /sys/module/i2c_bcm2708/parameters/combined'
sudo reboot
Reference:
-https://github.com/raspberrypi/firmware/issues/867
-https://www.raspberrypi.org/forums/viewtopic.php?t=192958
-https://github.com/raspberrypi/firmware/issues/828
*Change hostname [#rb0d3a9a]
-Change the host name. This is not mandatory for operation.
-Rewrite / etc / hostname.
sudo vi /etc/hostname
-> Your HOSTNAME (RobotCar)
-Rewrite /etc/hosts
sudo vi /etc/hosts
->
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.1.1 RobotCar
sudo reboot
-Confirm host name
hostnamectl
*Docker install and RobotCar Docker Environment Download [#sd51301c]
-Docker install
sudo apt-get install -y docker.io
sudo reboot
-RobotCar Docker Environment Download
sudo docker pull naisy/fabo-jupyter-armhf
*Docker container creation [#eb8c9f45]
-CPU version, with SPI and I2C
sudo docker run -itd --device /dev/spidev0.0:/dev/spidev0.0 --device /dev/i2c-1:/dev/i2c-1 -v /home/pi/notebooks:/notebooks -e "PASSWORD=gclue" -p 6006:6006 -p 8888:8888 naisy/fabo-jupyter-armhf /bin/bash -c "jupyter notebook --allow-root --NotebookApp.iopub_data_rate_limit=10000000"
-CPU version, for development, with SPI, USB camera, I2C and TCP communication port
sudo docker run -itd --device /dev/video0:/dev/video0 --device /dev/spidev0.0:/dev/spidev0.0 --device /dev/i2c-1:/dev/i2c-1 -v /home/pi/notebooks:/notebooks -e "PASSWORD=gclue" -p 6006:6006 -p 8888:8888 -p 8091:8091 naisy/fabo-jupyter-armhf /bin/bash -c "jupyter notebook --allow-root --NotebookApp.iopub_data_rate_limit=10000000"
終了行:
*Astract [#mb3e1685]
-RobotCar's RasberryPI method of building an environment.
-Download RASPBIAN STRETCH LITE.
-There is a problem avoidance peculiar to Stretch.
Link(JP):https://github.com/FaBoPlatform/RobotCarAI/tree/pull/install_raspberry_pi3
*Install Stretch Lite [#ld01fbe2]
-Desktop function is unnecessary, download RASPBIAN STRETCH LITE with small capacity.
Download URL: https://www.raspberrypi.org/downloads/raspbian/
-Writes the downloaded image file to SDCARD.
-If you are a Windows PC you can write with Win32DiskImager.
-Since the capacity of RobotCarAI's environment is large, SDCARD should use 32GB or more.
-The default login user of Raspberry Pi,
user: pi
password: raspberry
*raspi-config [#af07e04a]
-Enable SSH / SPI / I2C / WiFi.
-Run raspi-config as the root user and make each setting.
sudo raspi-config
-> Interfacing options
-> To activate SSH,SPI and I2C
--SSH:Required for logging into Raspberry Pi 3 via network.
--SPI:Required for button operation of RobotCar.
--I2C:Required for RobotCar distance sensor operation.
-Connect Raspberry Pi 3 to WiFi
sudo raspi-config
->Network Options
->Set JP as WiFi country code
--Enter WiFi SSID and password
wpa_passphrase 'SSID' ‘PASSWORD’
--This setting is saved below.
/etc/wpa_supplicant/wpa_supplicant.conf
*RobotCar source code download [#r2957764]
-Download RobotCar source code with git.
sudo apt-get update
sudo apt-get dist-upgrade -y
sudo apt-get update
sudo apt-get install -y git
mkdir -p /home/pi/notebooks/github/
cd /home/pi/notebooks/github
git clone https://github.com/FaBoPlatform/RobotCarAI
*OS preference [#if1cc2e1]
-OS update, bash setting, vim setting etc. It is not essential for operation, but it makes it easy to see a little.
cd /home/pi/notebooks/github/RobotCarAI/install_raspberry_pi3
# Since the line feed code may be CRLF (DOS), change to LF (UNIX)
find ./ -type f | xargs -n1 sed -i "s/\r//g”
chmod 755 *.sh
sudo ./setup_update.sh
sudo ./setup_dircolors.sh
sudo ./setup_bash.sh
sudo ./setup_vim.sh
sudo ./setup_ip_forward.sh
sudo ./setup_package.sh
*I2C Kernel / smbus correction [#t4ec0242]
-Raspbian Stretch Lite will generate an error when smbus code is executed even if I2C is enabled with raspi-config.
-The cause seems to be in Kernel, so fix it.
wget -O i2c1-bcm2708.dtbo https://drive.google.com/uc\?export=download\&id=0B_P-i4u-SLBXb3VlN0N5amVBb1k
sudo chmod 755 i2c1-bcm2708.dtbo
sudo chown root:root i2c1-bcm2708.dtbo
sudo mv i2c1-bcm2708.dtbo /boot/overlays/
sudo sh -c 'echo "dtoverlay=i2c1-bcm2708" >> /boot/config.txt'
sudo reboot
# After reboot, continue logging in again to Raspberry Pi 3
sudo sh -c '/bin/echo Y > /sys/module/i2c_bcm2708/parameters/combined'
sudo reboot
Reference:
-https://github.com/raspberrypi/firmware/issues/867
-https://www.raspberrypi.org/forums/viewtopic.php?t=192958
-https://github.com/raspberrypi/firmware/issues/828
*Change hostname [#rb0d3a9a]
-Change the host name. This is not mandatory for operation.
-Rewrite / etc / hostname.
sudo vi /etc/hostname
-> Your HOSTNAME (RobotCar)
-Rewrite /etc/hosts
sudo vi /etc/hosts
->
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.1.1 RobotCar
sudo reboot
-Confirm host name
hostnamectl
*Docker install and RobotCar Docker Environment Download [#sd51301c]
-Docker install
sudo apt-get install -y docker.io
sudo reboot
-RobotCar Docker Environment Download
sudo docker pull naisy/fabo-jupyter-armhf
*Docker container creation [#eb8c9f45]
-CPU version, with SPI and I2C
sudo docker run -itd --device /dev/spidev0.0:/dev/spidev0.0 --device /dev/i2c-1:/dev/i2c-1 -v /home/pi/notebooks:/notebooks -e "PASSWORD=gclue" -p 6006:6006 -p 8888:8888 naisy/fabo-jupyter-armhf /bin/bash -c "jupyter notebook --allow-root --NotebookApp.iopub_data_rate_limit=10000000"
-CPU version, for development, with SPI, USB camera, I2C and TCP communication port
sudo docker run -itd --device /dev/video0:/dev/video0 --device /dev/spidev0.0:/dev/spidev0.0 --device /dev/i2c-1:/dev/i2c-1 -v /home/pi/notebooks:/notebooks -e "PASSWORD=gclue" -p 6006:6006 -p 8888:8888 -p 8091:8091 naisy/fabo-jupyter-armhf /bin/bash -c "jupyter notebook --allow-root --NotebookApp.iopub_data_rate_limit=10000000"
ページ名: