I try check my system to Identify what not is included , see :
NOTES:
* check have .ko with name lirc or similary :
root@OpenWrt:~# find / 2> /dev/null | grep lirc
/boot/overlays/lirc-rpi.dtbo
* check module is possible load (is exist) :
root@OpenWrt:~# modprobe lirc-rpi
failed to find a module named lirc-rpi
* check gpio is working :
root@OpenWrt:~# cat /sys/kernel/debug/gpio
GPIOs 0-53, platform/20200000.gpio, pinctrl-bcm2835:
gpio-16 ( |? ) out lo
*check modules is load by default :
root@OpenWrt:~# lsmod
crc_ccitt 1067 1 ppp_async
evdev 10147 0
fat 46182 1 vfat
hid 89680 2 usbhid,hid_generic
hid_generic 656 0
ip6_tables 9237 3 ip6table_raw,ip6table_mangle,ip6table_filter
ip6t_REJECT 1100 2
ip6table_filter 766 1
ip6table_mangle 1150 0
ip6table_raw 728 0
ip_tables 9367 4 iptable_nat,iptable_raw,iptable_mangle,iptable_filter
ipt_MASQUERADE 786 0
ipt_REJECT 1002 2
iptable_filter 828 1
iptable_mangle 956 0
iptable_nat 1073 1
iptable_raw 790 0
nf_conntrack 57167 9 nf_nat_ipv4,nf_conntrack_ipv6,nf_conntrack_ipv4,xt_state,xt_conntrack,xt_CT,nf_nat_masquerade_ipv4,nf_nat,nf_conntrack_rtcache
nf_conntrack_ipv4 6245 4
nf_conntrack_ipv6 6692 3
nf_conntrack_rtcache 2674 0
nf_defrag_ipv4 1020 1 nf_conntrack_ipv4
nf_defrag_ipv6 9401 1 nf_conntrack_ipv6
nf_log_common 2511 2 nf_log_ipv4,nf_log_ipv6
nf_log_ipv4 3318 0
nf_log_ipv6 3703 0
nf_nat 10428 4 nf_nat_ipv4,xt_nat,nf_nat_redirect,nf_nat_masquerade_ipv4
nf_nat_ipv4 4126 1 iptable_nat
nf_nat_masquerade_ipv4 1581 1 ipt_MASQUERADE
nf_nat_redirect 987 1 xt_REDIRECT
nf_reject_ipv4 2019 1 ipt_REJECT
nf_reject_ipv6 2312 1 ip6t_REJECT
nls_cp437 4546 1
nls_iso8859_1 3010 1
ppp_async 7053 0
ppp_generic 21065 3 pppoe,ppp_async,pppox
pppoe 8375 0
pppox 1351 1 pppoe
slhc 4635 1 ppp_generic
snd 34458 9 snd_bcm2835,snd_compress,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_rawmidi,snd_seq_device,snd_hwdep
snd_bcm2835 16964 0
snd_compress 6870 0
snd_hwdep 4781 0
snd_mixer_oss 10961 1 snd_pcm_oss
snd_pcm 58557 3 snd_bcm2835,snd_pcm_dmaengine,snd_pcm_oss
snd_pcm_dmaengine 2758 0
snd_pcm_oss 31369 0
snd_rawmidi 14965 0
snd_seq_device 2312 1 snd_rawmidi
snd_timer 15245 0
soundcore 3853 1 snd
usbhid 24184 0
vfat 8274 1
x_tables 10587 25 ipt_REJECT,ipt_MASQUERADE,xt_time,xt_tcpudp,xt_state,xt_nat,xt_multiport,xt_mark,xt_mac,xt_limit,xt_conntrack,xt_comment,xt_TCPMSS,xt_REDIRECT,xt_LOG,xt_CT,iptable_raw,iptable_mangle,iptable_filter,ip_tables,ip6t_REJECT,ip6table_raw,ip6table_mangle,ip6table_filter,ip6_tables
xt_CT 2805 0
xt_LOG 931 0
xt_REDIRECT 885 0
xt_TCPMSS 2824 0
xt_comment 587 28
xt_conntrack 2648 6
xt_limit 1257 2
xt_mac 711 0
xt_mark 800 0
xt_multiport 1396 0
xt_nat 1405 0
xt_state 873 0
xt_tcpudp 1880 4
xt_time 1766 0