warpme / miniarch

ArchLinux ARM SD card images for quick start with ArchLinux on ARM SBC & TV Boxes
GNU General Public License v2.0
85 stars 7 forks source link

Openvfd on tanix tx6s #39

Closed sunilsankar closed 3 months ago

sunilsankar commented 3 months ago

Is there a way to enable the led on miniarch. Amazing work btw

warpme commented 3 months ago

Well - miniarch uses the same kernel like minimyth2 so openvfd kernel module should work out-of-box... Do you have in dmesg any openvfd entries?

sunilsankar commented 3 months ago

Dont see any module

root@tanix ~]# dmesg |grep -i vfd
[root@tanix ~]#

But I see this

[root@tanix ~]# modinfo openvfd
filename:       /lib/modules/6.9.3/kernel/drivers/misc/openvfd/openvfd.ko
license:        GPL
description:    OpenVFD Driver
author:         Arthur Liberman
depends:
intree:         Y
name:           openvfd
vermagic:       6.9.3 SMP preempt mod_unload aarch64
parm:           vfd_gpio_chip_name:charp
parm:           vfd_gpio_clk:array of uint
parm:           vfd_gpio_dat:array of uint
parm:           vfd_gpio_stb:array of uint
parm:           vfd_gpio0:array of uint
parm:           vfd_gpio1:array of uint
parm:           vfd_gpio2:array of uint
parm:           vfd_gpio3:array of uint
parm:           vfd_gpio_protocol:array of uint
parm:           vfd_chars:array of uint
parm:           vfd_dot_bits:array of uint
parm:           vfd_display_type:array of uint
parm:           vfd_display_auto_power:byte
[root@tanix ~]#
warpme commented 3 months ago

Right. If you do modprobe openvfd then dmesg should show us kernel talks to 7-seg display hw. To use 7-seg display you need userspace app https://github.com/arthur-liberman/linux_openvfd It talks to kernel. In MiniMyth2 i'm building this user-space app: https://github.com/warpme/minimyth2/blob/master/script/utils/openvfd-service/Makefile

sunilsankar commented 3 months ago

Thanks now it works 😄.Is it possible to share the miniarch code base I will include the steps and also the service file

warpme commented 3 months ago

Well - for miniarch code - i'm already doing this: https://github.com/warpme/minimyth2/tree/master/script/miniarch User-space of miniarch is in fact ArchLinux ARM - so i think isn't be best when you will start AUR project for user-space OpenVFD?

sunilsankar commented 3 months ago

Well - for miniarch code - i'm already doing this: https://github.com/warpme/minimyth2/tree/master/script/miniarch User-space of miniarch is in fact ArchLinux ARM - so i think isn't be best when you will start AUR project for user-space OpenVFD?

Agreed