How to install pandapi to the latest octopi image - markniu/PandaPi GitHub Wiki
1,Build RT kernel and replace the old one in the image of octopi;
https://www.instructables.com/64bit-RT-Kernel-Compilation-for-Raspberry-Pi-4B-/
2, install tty0tty driver:
https://github.com/freemed/tty0tty
3, download the marlin compile&configure tools
cd /home/pi/phtml/
svn co https://github.com/markniu/doc_test.git/trunk/imges/html
sudo chmod 777 /home/pi/phtml/html/*
4,download marlin source code
cd /home/pi/PandaPI/
svn co https://github.com/markniu/PandaPi.git/trunk/Marlin2.x
5,install pi_marlin
cd /home/pi/PandaPI/Marlin2.x/pandapi/
make clean;make -j4
sudo chmod 777 pi_marlin
cp pi_marlin /home/pi
if there are problems about libpi.so or libwiringPi.so, you can copy them from the older image. note: the files of *.so in the 32bit image can not run in 64 bit image.
/etc/rc.local
6,add the autorun command in the start shell python /home/pi/gpio_pullup.py
node /home/pi/phtml/html/webserver.js &
/home/pi/phtml/html/monitor.sh &
add gpio_pullup.py
7.configure auto mount USB stick
https://raspberrypi.stackexchange.com/questions/66169/auto-mount-usb-stick-on-plug-in-without-uuid
note: change the /media/usb1 .../media/usb4
to /media/usb
,marlin only recognize the /media/usb folder
8.Enable the UART port on Pi
remove the console=serial0,115200 console=tty1
in cmdline.txt
sudo nano /boot/cmdline.txt
add one line dtoverlay=pi3-disable-bt
in config.txt
sudo nano /boot/config.txt
9. install software for flash MCU bootloader
sudo pip install pyserial
sudo apt-get install lrzsz
End, good luck! :)