- Write to SD card with Raspbian Buster Lite https://downloads.raspberrypi.org/raspbian/images/raspbian-2019-07-12/
Copy to sd card in /boot/ skin.rnsd-main.zip
or skin.rnse-main.zip
Insert SD card into Raspberry and connect MCP2515 canbus module
Connect to Raspberry via SSH
login: pi
password: rpi
(or yours. Password input is not shown)
cd /tmp
wget -q -N https://github.com/coucouillu/rnspi-install/archive/main.zip
https://raw.githubusercontent.com/coucouillu/rnspi-install/main/main.zip
https://raw.githubusercontent.com/coucouillu/rnspi-install/main.zip
rm -r rnspi-install-main
unzip main.zip
cd rnspi-install-main
sudo sh install.sh
sudo bluetoothctl
scan on
Find your phone
pair D4:11:A3:A0:C1:96
Request PIN code
[agent] Enter PIN code:1234
exit
sudo nano /boot/config.txt
old parameter from maltsevvv before change in 2023
# HDMI to VGA adapter
hdmi_group=1
hdmi_mode=6
insert
# HDMI to VGA adapter for RNS
hdmi_force_hotplug=1
hdmi_ignore_edid=0xa5000080
hdmi_group=2
hdmi_mode=87
hdmi_timings 800 0 51 44 121 460 0 10 9 14 0 0 0 32 1 16000000 3
framebuffer_width=400
framebuffer_height=230
# Enable MCP2515 can0
dtparam=spi=on
dtoverlay=mcp2515-can0,oscillator=8000000,interrupt=25
dtoverlay=spi-bcm2835-overlay
# Enable audio (loads snd-hifiberry) and comment #dtparam=audio=on
dtoverlay=hifiberry-dac
# Enable video core & MPEG
gpu_mem=128
start_x=1
sudo apt update
sudo nano /etc/rsyslog.conf
#module(load="imuxsock") # provides support for local system logging
#module(load="imklog") # provides kernel logging support
sudo apt install -y kodi
sudo nano /etc/systemd/system/kodi.service
[Unit]
Description = Kodi Media Center
[Service]
User = pi
Group = pi
Type = simple
ExecStart = /usr/bin/kodi-standalone
Restart = always
RestartSec = 15
[Install]
WantedBy = multi-user.target
sudo systemctl enable kodi.service
sudo systemctl start kodi.service
sudo mkdir /home/pi/movies /home/pi/music /home/pi/mults
sudo chmod -R 0777 /home/pi/movies /home/pi/music /home/pi/mults
sudo apt install python-pip
sudo apt install can-utils
sudo pip install python-can
sudo nano /etc/systemd/system/tvtuner.service
[Unit]
Description=Emulation tv-tuner 4BO919146B
[Service]
Type=simple
ExecStart=/usr/bin/python /home/pi/.kodi/addons/skin.rnsd/tvtuner.pyo
Restart=always
[Install]
WantedBy=multi-user.target
sudo systemctl start tvtuner.service
sudo systemctl enable tvtuner.service
sudo apt install samba
sudo nano /etc/samba/smb.conf
[rns]
path = /home/pi/
create mask = 0775
directory mask = 0775
writeable = yes
browseable = yes
public = yes
force user = root
guest ok = yes
sudo service smbd restart
sudo nano /usr/bin/raspi-config
После функции do_overlayfs() {
Примерно в строках 2435 и 2479 RET=1 заменить на RET=0
sed -i '/do_overlayfs() {/,/}/ s/RET=$1/RET=0/' /usr/bin/raspi-config
Примерно в строке 2573 после
case $i in
добавить
--enable-overlayfs)
INTERACTIVE=False
do_overlayfs
exit $?
;;
--disable-overlayfs)
INTERACTIVE=False
disable_overlayfs
exit $?
;;
sed -i '
/case $i in/a # ADD OVERLAY FS\
--enable-overlayfs)\
INTERACTIVE=False\
do_overlayfs\
exit $?\
;;\
--disable-overlayfs)\
INTERACTIVE=False\
disable_overlayfs\
exit $?\
;;\
' /usr/bin/raspi-config
sudo raspi-config --enable-overlayfs
sudo raspi-config --disable-overlayfs
sudo nano /boot/config.txt
# Enable MCP2515 can1
# cd /boot/overlays
# wget https://github.com/maltsevvv/rnspi-install/raw/main/img/mcp2515-can1-0.dtbo
dtoverlay=spi1-1cs,cs0_pin=16
dtoverlay=mcp2515,spi1-0,oscillator=8000000,interrupt=12
int : GPIO12
sck : GPIO21
si : GPIO20
so : GPIO19
cs : GPIO16