How to configure Marlin code - markniu/PandaPi GitHub Wiki
the default configure of Marlin in the Pi IMG is for printer ender3,for other printers you may need to configure it.
normally,only the direction of the motors,logic of endstops,print size needs to be change.
There are two ways to compile marlin:
Method 1.Edit and compile with Browser
1. open the http://RaspberryPi_IP:8181/ with browser on your computer or phone. here my PI's IP address is 192.168.1.229
2. Save changes. If you changed the source code e.g Configuration.h,you need to save it.
3. Compile. the raspberryPi will compile the souce code and return status information that will be displayed on a console dialog.
4. Run. if compile success, you can click this button to run(no need to reboot the raspberryPI).
Update Raspbian. Update this web edit tool or other files in the Raspberry Pi system.
Run PandaPI/Klipper mode. it will flash the pandapi firmware or klipper firmware to mcu and set the environment of rasspberryPi to run pandapi marlin or klipper at next boot up.
Update source. Update to the newest marlin source code from pandapi github,this update will overwirte the local files,and the old files will be backuped up.
this PandPi source code based on marlin firmware,except the temperature and fan control code that are running on pandaPI MCU,so you can reference http://marlinfw.org/docs/configuration/configuration.html
Method 2.Compile it with command line(SSH)
setup ssh https://www.raspberrypi.org/documentation/remote-access/ssh/windows.md
1. compile source code:
cd /home/pi/PandaPI/Marlin2.x/pandapi
ls
you can see all the marlin source code are here.
"/home/pi/PandaPI/Marlin2.x/pandapi" is the default source code folder, you can copy you source code to any folder you like.
then run "make" to compile
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib
sudo make clean;sudo make
by the way,you can download the source code from github,and copy the pandapi folder to the U drive,plug it to raspberry Pi and then run make command in the pandapi folder.
2. kill pi_marlin:
sudo killall monitor.sh
sudo killall pi_marlin
password of sudo is raspberry
3. copy the pi_marlin to boot up folder
sudo chmod 777 pi_marlin
cp pi_marlin /home/pi
4. run marlin
sudo ./pi_marlin &