diff --git a/packages/linux-drivers/amlogic/fd628-aml/package.mk b/packages/linux-drivers/amlogic/fd628-aml/package.mk index 2fc79a56cf..78613826d5 100644 --- a/packages/linux-drivers/amlogic/fd628-aml/package.mk +++ b/packages/linux-drivers/amlogic/fd628-aml/package.mk @@ -17,11 +17,11 @@ ################################################################################ PKG_NAME="fd628-aml" -PKG_VERSION="6993a86" -PKG_SHA256="5eb30d485d23c9be427528b3604d564565194f759281677c2b1b66419e6edc15" +PKG_VERSION="4c4cc6e" +PKG_SHA256="c52780595c1e72cbe153011a54f6f3b946e9c77d5e13f4dd48ad70cce7905a43" PKG_ARCH="arm aarch64" PKG_LICENSE="GPL" -PKG_SITE="https://github.com/tanixbox/tx3mini_linux_fd628" +PKG_SITE="https://github.com/arthur-liberman/linux_fd628" PKG_URL="https://github.com/arthur-liberman/linux_fd628/archive/$PKG_VERSION.tar.gz" PKG_SOURCE_DIR="linux_fd628-$PKG_VERSION*" PKG_DEPENDS_TARGET="toolchain linux" diff --git a/packages/linux-drivers/amlogic/fd628-aml/system.d/fd628.service b/packages/linux-drivers/amlogic/fd628-aml/system.d/fd628.service index 7f9ecb8fe0..63fbfb29b1 100644 --- a/packages/linux-drivers/amlogic/fd628-aml/system.d/fd628.service +++ b/packages/linux-drivers/amlogic/fd628-aml/system.d/fd628.service @@ -1,12 +1,15 @@ [Unit] Description=Amlogic FD628 Service -ConditionPathExists=/proc/device-tree/fd628_dev +ConditionPathExists=/proc/device-tree/le-vfd/ +ConditionPathExists=/storage/.config/vfd.conf [Service] Type=oneshot -ExecStart=/usr/sbin/modprobe aml_fd628 -ExecStart=/usr/sbin/FD628Service +EnvironmentFile=/storage/.config/vfd.conf +ExecStart=/bin/sh -c '[ `cat /proc/device-tree/le-vfd/compatible` = "le,vfd" ] && /sbin/modprobe aml_fd628 vfd_gpio_clk=${vfd_gpio_clk} vfd_gpio_dat=${vfd_gpio_dat} vfd_gpio_stb=${vfd_gpio_stb} vfd_chars=${vfd_chars} vfd_dot_bits=${vfd_dot_bits} vfd_display_type=${vfd_display_type} +ExecStart=/bin/sh -c '[ `cat /proc/device-tree/le-vfd/compatible` = "le,vfd" ] && /usr/sbin/FD628Service RemainAfterExit=yes [Install] WantedBy=basic.target +