User Tools

Site Tools


sovol_mods

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
sovol_mods [2024/02/18 11:59] tortesovol_mods [2025/01/21 12:21] (current) torte
Line 1: Line 1:
-===== Sovol KlipperScreen =====+{{page>redirect#this_wiki_has_moved}} 
 +https://torte71.github.io/InsideSovolKlipperScreen/sovol_mods.html 
 +{{page>redirect#section}} 
 +---- 
 + 
 +===== Sovol KlipperScreen (Makerbase MKS KLIPAD50) ===== 
 + 
 +Please note that this is just work-in-progress.\\ 
 +The changes listed here may not be complete and are just quickly tested.\\ 
 +Thanks to Vasyl Gontar for his additions/corrections to this list. 
 ==== Modifications by Sovol ==== ==== Modifications by Sovol ====
   * KlipperScreen   * KlipperScreen
Line 17: Line 27:
   * Kernel:   * Kernel:
     * (unsure, if changed - but not working for all later kernels -> spi-dev missing)     * (unsure, if changed - but not working for all later kernels -> spi-dev missing)
-      * "/boot/dtb/rockchip/overlay/rockchip-fixup.scr" recreates +      * "/boot/dtb/rockchip/overlay/rockchip-fixup.scr" 
-      * "/boot/dtb/rockchip/rk3328-roc-cc.dtb" every kernel-update?+      * "/boot/dtb/rockchip/rk3328-roc-cc.dtb"
       * see https://irq5.io/2018/07/24/boot-time-device-tree-overlays-with-u-boot/       * see https://irq5.io/2018/07/24/boot-time-device-tree-overlays-with-u-boot/
       * see https://github.com/redrathnure/armbian-mkspi       * see https://github.com/redrathnure/armbian-mkspi
     * Serial console (u-boot messages): 1500000,8,n,1     * Serial console (u-boot messages): 1500000,8,n,1
 +
 +  * u-boot (bootloader)
 +    * <del>Sovols bootloader allows booting from an external device (USB-stick)</del>
 +    * [[Booting]] from an external device (USB-stick)
 +
  
 ---- ----
Line 43: Line 58:
   * hid-flash   * hid-flash
     * **unknown binary, source code missing**     * **unknown binary, source code missing**
 +    * probably precompiled ''klipper/lib/hidflash''
 +    * ++references |
 +<code>
 +/home/mks/ff-hid-flash.txt:Binary file /home/mks/_root/hid-flash matches
 +/home/mks/klipper/src/stm32/Makefile:lib/hidflash/hid-flash:
 +/home/mks/klipper/src/stm32/Makefile:   @echo "  Building hid-flash"
 +/home/mks/klipper/src/stm32/Makefile:flash: $(OUT)klipper.bin lib/hidflash/hid-flash
 +/home/mks/klipper/docs/Bootloaders.md:The hid-flash program is used to upload a binary to the bootloader. You
 +/home/mks/klipper/docs/Bootloaders.md:~/klipper/lib/hidflash/hid-flash ~/klipper/out/klipper.bin
 +/home/mks/klipper/docs/Bootloaders.md:As with the STM32F1, the STM32F4 uses the hid-flash tool to upload binaries to
 +/home/mks/klipper/docs/Bootloaders.md:hid-flash.
 +/home/mks/klipper/lib/hidflash/changes.diff: EXECUTABLE = hid-flash
 +/home/mks/klipper/lib/hidflash/changes.diff:  @echo "    hid-flash requires libusb-1.0, please install with:"
 +/home/mks/klipper/lib/hidflash/changes.diff:+* This version of hid-flash has been modified to work with Klipper.
 +/home/mks/klipper/lib/hidflash/changes.diff:   printf("Usage: hid-flash <bin_firmware_file> <comport> <delay (optional)>\n");
 +/home/mks/klipper/lib/hidflash/changes.diff:   printf("Usage: hid-flash <bin_firmware_file> <comport (optional)> <delay (optional)>\n");
 +/home/mks/klipper/lib/hidflash/Makefile:EXECUTABLE = hid-flash
 +/home/mks/klipper/lib/hidflash/Makefile:        @echo "    hid-flash requires libusb-1.0, please install with:"
 +/home/mks/klipper/lib/hidflash/README:The source for the hid-flash program in this folder is a deriviative of the
 +/home/mks/klipper/lib/hidflash/README:The original source for hid-flash was written by Bruno Freitas, available
 +/home/mks/klipper/lib/hidflash/README:1) The "port" argument is now optional.  If not supplied hid-flash will not
 +/home/mks/klipper/lib/hidflash/README:2) When the serial port is specified, hid-flash will use Klipper's procedure
 +/home/mks/klipper/lib/hidflash/README:3) The hid-flash program now accepts a command from the bootloader that allows
 +/home/mks/klipper/lib/hidflash/README:   libusb-1.0 dependency for hid-flash.
 +/home/mks/klipper/lib/hidflash/main.c:* This version of hid-flash has been modified to work with Klipper.
 +/home/mks/klipper/lib/hidflash/main.c:    printf("Usage: hid-flash <bin_firmware_file> <comport (optional)> <delay (optional)>\n");
 +/home/mks/klipper/lib/.gitignore:hidflash/hid-flash
 +/home/mks/klipper/scripts/flash_usb.py:    args = ["lib/hidflash/hid-flash", binfile]
 +/home/mks/klipper/scripts/flash_usb.py:        raise error("Error running hid-flash")
 +/home/mks/klipper/scripts/flash_usb.py:# Flash via call to hid-flash
 +/home/mks/findfiles:find / -xdev -type f -print0 | xargs -0 grep "\<hid-flash\>"
 +Binary file /root/hid-flash matches
 +/var/lib/dpkg/info/makerbase-client.md5sums:ef3573cd08e43b74bbd22ab2dfe68f3b  root/hid-flash
 +/var/lib/dpkg/info/makerbase-client.list:/root/hid-flash
 +</code>
 +++
   * uart   * uart
     * **unknown binary, source code missing**     * **unknown binary, source code missing**
 +    * ++references |
 +<code>
 +(tons of references found -> left out)
 +/var/lib/dpkg/info/makerbase-client.list:/root/uart
 +</code>
 +++
   * udp_server   * udp_server
     * **unknown binary, source code missing**     * **unknown binary, source code missing**
 +    * ++references |
 +<code>
 +/var/lib/dpkg/info/makerbase-client.md5sums:6f515dc45b55e81f496c64036318c75e  root/udp_server
 +/var/lib/dpkg/info/makerbase-client.list:/root/udp_server
 +Binary file /var/lib/selinux/default/active/policy.linked matches
 +Binary file /var/lib/selinux/default/active/policy.kern matches
 +</code>
 +++
  
 ---- ----
Line 54: Line 119:
   * **Installs system updates**   * **Installs system updates**
   * Files: [[makerbase-auto-fresh-files]]   * Files: [[makerbase-auto-fresh-files]]
 +  * Unofficial package: {{ :wiki:makerbase-auto-fresh-service.deb |}}
   * Details:   * Details:
     * if existing: install ''/root/system_deb/*.deb'' and reboot     * if existing: install ''/root/system_deb/*.deb'' and reboot
Line 60: Line 126:
       * ensure running automounter (mounts to ''./printer_data/gcodes/USB'')       * ensure running automounter (mounts to ''./printer_data/gcodes/USB'')
       * move ''armbian-update.deb'' from automount to ''/home/mks'', then install and reboot       * move ''armbian-update.deb'' from automount to ''/home/mks'', then install and reboot
 +  * Depends on makerbase-automount@.service
 +  * Might become useful once there is an unbricking-package like Sovol's armbian-update.deb
 === makerbase-automount@.service === === makerbase-automount@.service ===
-  * **Mounts all storage devices/partitions under /home/mks/printer_data/gcodes/**+  * **Mounts all storage devices/partitions under /home/mks/printer_data/gcodes/USB/**
   * Files: [[makerbase-automount-files]]   * Files: [[makerbase-automount-files]]
 +  * Unofficial package: {{ :wiki:makerbase-automount-service.deb |}}
 +  * Useful for those who want to have USB-drives automatically mounted as gcode storage
 === makerbase-beep.service === === makerbase-beep.service ===
   * **Beeps if touchscreen is touched**   * **Beeps if touchscreen is touched**
   * Files: [[makerbase-beep-files]]   * Files: [[makerbase-beep-files]]
 +  * Unofficial package: {{ :wiki:makerbase-beep-service.deb |}}
   * Details:   * Details:
     * initializes GPIO#82 (beeper pin)     * initializes GPIO#82 (beeper pin)
     * reads events from touchscreen (with vendor_product_id=*1a86*e5e3*)     * reads events from touchscreen (with vendor_product_id=*1a86*e5e3*)
     * beeps if touch-button got pressed     * beeps if touch-button got pressed
 +  * Useful
 === makerbase-byid.service === === makerbase-byid.service ===
   * **Updates ''serial:'' from section ''[mcu]'' in ''home/mks/printer_data/config/printer.cfg''**   * **Updates ''serial:'' from section ''[mcu]'' in ''home/mks/printer_data/config/printer.cfg''**
   * Files: [[makerbase-byid-files]]   * Files: [[makerbase-byid-files]]
 +  * Unofficial package: {{ :wiki:makerbase-byid-service.deb |}}
 +  * Probably useless, the name of the serial connection doesn't change
 === makerbase-net-mods.service === === makerbase-net-mods.service ===
   * **copies ''/boot/wpa_supplicant-wlan0.conf'' (if existing) into ''/etc/wpa_supplicant/''**   * **copies ''/boot/wpa_supplicant-wlan0.conf'' (if existing) into ''/etc/wpa_supplicant/''**
   * Files: [[makerbase-net-mods-files]]   * Files: [[makerbase-net-mods-files]]
 +  * Unofficial package: {{ :wiki:makerbase-net-mods-service.deb |}}
 +  * Probably useless, you can configure wifi on the screen
 === makerbase-soft-shutdown.service === === makerbase-soft-shutdown.service ===
   * **looks disabled**   * **looks disabled**
   * does something with the "supper" capacitor   * does something with the "supper" capacitor
   * Files: [[makerbase-soft-shutdown-files]]   * Files: [[makerbase-soft-shutdown-files]]
 +  * Unofficial package: {{ :wiki:makerbase-soft-shutdown-service.deb |}}
 +  * Useless
 === makerbase-timezone-monitor.service === === makerbase-timezone-monitor.service ===
   * **Fetches time via NTP every 3 seconds** (spamming syslog)   * **Fetches time via NTP every 3 seconds** (spamming syslog)
   * Update timezone to that from ''/home/mks/target_timezone.txt''   * Update timezone to that from ''/home/mks/target_timezone.txt''
   * Files: [[makerbase-timezone-monitor-files]]   * Files: [[makerbase-timezone-monitor-files]]
 +  * Unofficial package: {{ :wiki:makerbase-timezone-monitor-service.deb |}}
   * requires ''/home/mks/target_timezone.txt''   * requires ''/home/mks/target_timezone.txt''
 +  * Probably useless, works fine without
 === makerbase-wlan0.service === === makerbase-wlan0.service ===
-  * **configures wifi**+  * **configures wpa_supplicant**
   * Files: [[makerbase-wlan0-files]]   * Files: [[makerbase-wlan0-files]]
 +  * Unofficial package: {{ :wiki:makerbase-wlan0-service.deb |}}
 +  * Probably useless, works fine without
  
 +----
 +
 +=== power loss recovery (plr) ===
 +  * **resumes print after power failure**
 +  * origin: https://github.com/The--Captain/plr-klipper
 +  * Used files:
 +    * {{ wiki:plr.cfg|~/printer_data/config/plr.cfg }}
 +    * {{ wiki:plr.sh|~/plr.sh }}
 +    * {{ wiki:clear_plr.sh|~/clear_plr.sh }}
 +  * Unofficial package: {{ :wiki:plr-klipper.deb |}}
 +  * Included in Sovol's default printer.cfg, thus it's recommended
  
 ---- ----
Line 96: Line 189:
  
 === power loss recovery (plr) === === power loss recovery (plr) ===
-++++remove power loss recovery |+
     - Make a backup of printer.cfg!     - Make a backup of printer.cfg!
     - Edit printer.cfg, find and remove the 3 paragraphs shown below.     - Edit printer.cfg, find and remove the 3 paragraphs shown below.
Line 128: Line 221:
      
 </code> </code>
-+++++ 
 +---- 
 +Back to [[start]]
sovol_mods.1708253977.txt.gz · Last modified: 2024/02/18 11:59 by torte