Jump to content

KrzyPacu

Members
  • Posts

    26
  • Joined

  • Last visited

Everything posted by KrzyPacu

  1. I did so, but openvfd still doesn't work and can't compile.
  2. And how to compile openvfd with this patch? How to apply this patch to openvfd?
  3. Is it enough to remove these entries from the dts file and recompile it to dtb? 3535-3540 openvfd { compatible = "open,vfd"; dev_name = "openvfd"; status = "okay"; phandle = <0x143>; }; 4031 openvfd = "/openvfd"; meson-sm1-x96-air-gbit.dts
  4. But how do I do that? These are the original Armbian .dtb entries. I didn't add anything and I don't know how to remove it.
  5. Here are the actions I take with the dtb file. Maybe I'm doing something wrong here? # cd /home/INSTALKI # git clone https://github.com/jefflessard/tm16xx-display.git # cd tm16xx-display # cp /boot/dtb/amlogic/meson-sm1-x96-air-gbit.dtb original.dtb # make hk1-box.dtb ORIGINAL_DTB=original.dtb # cp release/hk1-box.dtb /boot/dtb/amlogic/meson-sm1-x96-air-gbit.dtb # reboot
  6. In the /proc/device-tree directory I do not see any "tm16xx" entry but there is an "openvfd" entry. Attached is the /proc/device-tree directory and the dmesg output. device-tree.tar.gz dmseg.txt
  7. Yes it worked fine on the other Armbian OS. Unfortunately it still doesn't work. android-vontar-x3.dts
  8. # make -j 4 make -C /lib/modules/6.12.33-current-meson64/build M=/home/INSTALKI/linux_openvfd/driver modules make[1]: Enter the directory '/usr/src/linux-headers-6.12.33-current-meson64' CC [M] /home/INSTALKI/linux_openvfd/driver/protocols/i2c_sw.o CC [M] /home/INSTALKI/linux_openvfd/driver/protocols/i2c_hw.o CC [M] /home/INSTALKI/linux_openvfd/driver/protocols/spi_sw.o CC [M] /home/INSTALKI/linux_openvfd/driver/controllers/dummy.o CC [M] /home/INSTALKI/linux_openvfd/driver/controllers/seg7_ctrl.o /home/INSTALKI/linux_openvfd/driver/controllers/seg7_ctrl.c:11:6: warning: no previous prototype for ‘transpose8rS64’ [-Wmissing-prototypes] 11 | void transpose8rS64(unsigned char* A, unsigned char* B) { | ^~~~~~~~~~~~~~ /home/INSTALKI/linux_openvfd/driver/controllers/seg7_ctrl.c:40:8: warning: no previous prototype for ‘seg7_write_display_data’ [-Wmissing-prototypes] 40 | size_t seg7_write_display_data(const struct vfd_display_data *data, unsigned short *raw_wdata, size_t sz) | ^~~~~~~~~~~~~~~~~~~~~~~ CC [M] /home/INSTALKI/linux_openvfd/driver/controllers/fd628.o CC [M] /home/INSTALKI/linux_openvfd/driver/controllers/fd650.o CC [M] /home/INSTALKI/linux_openvfd/driver/controllers/hd44780.o CC [M] /home/INSTALKI/linux_openvfd/driver/controllers/gfx_mono_ctrl.o CC [M] /home/INSTALKI/linux_openvfd/driver/controllers/ssd1306.o CC [M] /home/INSTALKI/linux_openvfd/driver/controllers/pcd8544.o /home/INSTALKI/linux_openvfd/driver/controllers/gfx_mono_ctrl.c:239:6: warning: no previous prototype for ‘transpose_buffer’ [-Wmissing-prototypes] 239 | void transpose_buffer(unsigned char *buffer, const struct rect *rect) | ^~~~~~~~~~~~~~~~ CC [M] /home/INSTALKI/linux_openvfd/driver/controllers/il3829.o CC [M] /home/INSTALKI/linux_openvfd/driver/openvfd_drv.o /home/INSTALKI/linux_openvfd/driver/openvfd_drv.c:44:7: warning: "CONFIG_AMLOGIC_LEGACY_EARLY_SUSPEND" is not defined, evaluates to 0 [-Wundef] 44 | #elif CONFIG_AMLOGIC_LEGACY_EARLY_SUSPEND | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/INSTALKI/linux_openvfd/driver/openvfd_drv.c: In function ‘register_openvfd_driver’: /home/INSTALKI/linux_openvfd/driver/openvfd_drv.c:400:75: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body] 400 | pr_dbg("%s: Succeeded to add openvfd module \n", __func__); | ^ /home/INSTALKI/linux_openvfd/driver/openvfd_drv.c: At top level: /home/INSTALKI/linux_openvfd/driver/openvfd_drv.c:622:19: warning: no previous prototype for ‘gpiochip_find’ [-Wmissing-prototypes] 622 | struct gpio_chip *gpiochip_find(void *data, | ^~~~~~~~~~~~~ /home/INSTALKI/linux_openvfd/driver/openvfd_drv.c:669:5: warning: no previous prototype for ‘evaluate_pin’ [-Wmissing-prototypes] 669 | int evaluate_pin(const char *name, const unsigned int *vfd_arg, struct vfd_pin *pin, unsigned char enable_skip_evaluation) | ^~~~~~~~~~~~ /home/INSTALKI/linux_openvfd/driver/openvfd_drv.c:752:6: warning: no previous prototype for ‘get_pin_from_dt’ [-Wmissing-prototypes] 752 | void get_pin_from_dt(const char *name, const struct platform_device *pdev, struct vfd_pin *pin) | ^~~~~~~~~~~~~~~ /home/INSTALKI/linux_openvfd/driver/openvfd_drv.c:763:5: warning: no previous prototype for ‘request_pin’ [-Wmissing-prototypes] 763 | int request_pin(const char *name, struct vfd_pin *pin, unsigned char enable_skip) | ^~~~~~~~~~~ /home/INSTALKI/linux_openvfd/driver/openvfd_drv.c:1034:19: error: initialization of ‘void (*)(struct platform_device *)’ from incompatible pointer type ‘int (*)(struct platform_device *)’ [-Werror=incompatible-pointer-types] 1034 | .remove = openvfd_driver_remove, | ^~~~~~~~~~~~~~~~~~~~~ /home/INSTALKI/linux_openvfd/driver/openvfd_drv.c:1034:19: note: (near initialization for ‘openvfd_driver.<anonymous>.remove’) /home/INSTALKI/linux_openvfd/driver/openvfd_drv.c: In function ‘print_param_debug’: /home/INSTALKI/linux_openvfd/driver/openvfd_drv.c:611:1: warning: the frame size of 1040 bytes is larger than 1024 bytes [-Wframe-larger-than=] 611 | } | ^ cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:229: /home/INSTALKI/linux_openvfd/driver/openvfd_drv.o] Error 1 make[2]: *** [/usr/src/linux-headers-6.12.33-current-meson64/Makefile:1945: /home/INSTALKI/linux_openvfd/driver] Error 2 make[1]: *** [Makefile:224: __sub-make] Error 2 make[1]: Leaving the directory '/usr/src/linux-headers-6.12.33-current-meson64' make: *** [Makefile:5: modules] Error 2 I'm trying to compile the "openvfd" driver but the compilation ends with an error. I'm a complete noob at these things and I really want this driver so I'd be very grateful for any help.
  9. I did everything again, as you wrote and it still doesn't work. So it looks like my TVbox has a different LED controller?
  10. # dmesg | grep tm16xx [ 11.231194] tm16xx: loading out-of-tree module taints kernel. [ 11.233242] tm16xx 1-0024: Failed to set brightness: -6 [ 11.236531] tm16xx 1-0024: Failed to initialize display: -6
  11. Will disassembling the TV box help get this display working? The TV box looks like it's glued together, but if that helps, I can open it.
  12. hk1-x3.conf I haven't opened my TV box but I saw a picture and it seems to me that the controller is "FD6551"
  13. Vontar X3 is the same as hk1-x3 and I used the one from hk1-x3. Here are the pictures because I didn't open mine: https://github.com/ophub/amlogic-s9xxx-armbian/issues/1006
  14. # dmesg | grep tm16xx [ 21.189046] tm16xx: loading out-of-tree module taints kernel. [ 21.190997] tm16xx 1-0024: Failed to set brightness: -6 [ 21.194407] tm16xx 1-0024: Failed to initialize display: -6
  15. # modprobe -r tm16xx modprobe: ERROR: ../libkmod/libkmod-module.c:856 kmod_module_remove_module() could not remove 'tm16xx': Device or resource busy # dmesg # modprobe tm16xx # modprobe -r tm16xx modprobe: ERROR: ../libkmod/libkmod-module.c:856 kmod_module_remove_module() could not remove 'tm16xx': Device or resource busy
  16. I managed to install it but the display doesn't work. # display-utils -c cat: /sys/class/leds/display/num_digits: There is no such file or directory # display-utils -a cat: /sys/class/leds/display/num_digits: There is no such file or directory
  17. Nothing helped so I reinstalled the system. Can you tell me now how and what I should install. Up until now I installed the kernel headers via armbian-config. But maybe there is a better way?
  18. I managed to build "meson-sm1-x96-air-gbit.dtb" using the method described by @Jean-Francois Lessard but I haven't added anything to the "extlinux.conf" file yet. Then I issued the command "$ make module" and it seems to me that the compilation went correctly. Then I did "$ sudo make module-install" and here are the errors: $ sudo make module-install make -C /lib/modules/6.12.33-current-meson64/build M= modules_install INSTALL_MOD_PATH=/ make[1]: Enter the directory '/usr/src/linux-headers-6.12.33-current-meson64' SYMLINK //lib/modules/6.12.33/build make[3]: *** No rules to make an object 'modules.order', required by '//lib/modules/6.12.33/modules.order'. Stop. make[2]: *** [/usr/src/linux-headers-6.12.33-current-meson64/Makefile:1853: modules_install] Error 2 make[1]: *** [Makefile:224: __sub-make] Error 2 make[1]: Leaving the directory '/usr/src/linux-headers-6.12.33-current-meson64' make: *** [Makefile:35: module-install] Error 2
  19. $ make meson-sm1-x96-air-gbit_mod.dtb ORIGINAL_DTB=meson-sm1-x96-air-gbit.dtb make: *** No rules for object execution 'meson-sm1-x96-air-gbit_mod.dtb'. Stop. https://github.com/jefflessard/tm16xx-display/blob/main/README.md#configure-the-device-tree I can't do option 1 because I don't have the "/boot/armbianEnv.txt" file . Where do I add the entry "user_overlays=tm16xx"
  20. I am trying to run this driver on Vontar X3 Armbian 25.8.0-trunk.163 bookworm. I stopped at the point "Edit /boot/armbianEnv.txt to load the overlay" because I do not have the armbianEnv.txt file. What should I do next to add the generated file "hk1-x3.dtbo" to my device tree file "meson-sm1-x96-air-gbit.dtb"?
  21. I'm trying to compile an LED display driver: https://github.com/arthur-liberman/linux_openvfd I follow this description: https://github.com/bk3a12/openvfd_enable_for_tx3_mini However, I can't build anything and the whole process ends with errors: sh ./scripts/modules-check.sh /home/user/INSTALKI/linux_openvfd/driver/modules.order make -f ./scripts/Makefile.modpost make[3]: *** No rules to make an object '/home/user/INSTALKI/linux_openvfd/driver/modules.order', required by '/home/user/INSTALKI/linux_openvfd/driver/Module.symvers'. Stop. make[2]: *** [/usr/src/linux-headers-6.12.33-current-meson64/Makefile:1897: modpost] Error 2 make[1]: *** [Makefile:224: __sub-make] Error 2 make[1]: Leaving the directory '/usr/src/linux-headers-6.12.33-current-meson64' make: *** [Makefile:5: modules] Error 2
  22. So I understand that no one will help me because I am not a programmer.
  23. I forgot to write that I use meson-sm1-x96-air-gbit.dtb. Kernel 6.12.31-current-meson64. Please provide a .dtb file with working SPDIF. It may be a different kernel version. If I had any .dtb file with working SPDIF I could modify my file using the "fdtput" command.
  24. Can someone share a ready .dtb file with this patch. I am trying to run SPDIF in Tv-Box Vontar X3 with Amlogic S905x3 processor but I can't compile with this patch.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines