sw_setup

This is an old revision of the document!


Setup of raspian

  • Insert the micro SD card to the Raspberry Pi and power it on. Use an ethernet cable to connect.
  • Access ssh on the Raspberry. Default username is pi, password is raspberry, and hostname is raspberrypi.
  • Run sudo raspi-config and change password and timezone. Perhaps also run an update.
  • Run sudo raspi-config and enable SPI
  • Add these lines to the end of /boot/config.txt:
dtoverlay=mcp2515-can0,oscillator=16000000,interrupt=25
dtoverlay=spi-bcm2835-overlay
  • Add these lines to the end of /etc/network/interfaces for CAN to automatically start at boot with bitrate 125kbps(used by Torqeedo Interface Card):
auto can0
iface can0 inet manual
pre-up /sbin/ip link set can0 type can bitrate 125000
up /sbin/ifconfig can0 up
down /sbin/ifconfig can0 down
  • Reboot
  • sw_setup.1570108259.txt.gz
  • Last modified: 2022/09/19 11:33
  • (external edit)