How to enable OpenVFD Service for tx box running armbian (Amlogic, Rockchip,...)
- Download kernel headers for armbian from https://users.armbian.com/balbes150/arm-64/deb/. For other tv box types please contact Rom authors.
- Install kernel headers with dpkg -i
- Git clone https://github.com/arthur-liberman/linux_openvfd
- Edit Makefile content as my Makefile
- Run sudo ln -sf /boot/System.map-$(uname -r) /lib/modules/$(uname -r)/build/System.map
- Run make -j 4 within linux_openvfd/driver folder
- Run sudo depmod -a (Optional)
- Run sudo make modules_install
- Verify if our openvfd module is successfully installed/loaded by lsmod. If not, run sudo modprobe openvfd.
- Run make OpenVFDService within linux_openvfd. Add executable priviledge by running chmod +x
- Modify your device tree source by adding openvfd item:
openvfd {
compatible = "open,vfd";
dev_name = "openvfd";
status = "okay";
};
\ - Place your vfd.conf into /storage/.config folder.
- Create openvfd.service as mine.
- Start openvfd.service
- Enable openvfd.service for autorestart after reboot.