Today I managed to resolve my problems, by 'resolving' I mean disabling WiFi with having Wetek booted fast (as it was before my problem appeared). At first I tried to amending device tree file (.dts), it helped but only partially. I was able to decrease boot time from 7m30s to around 1 minute but still with Load Kernel Modules prompt at boot. I checked using SSH status of systemd-modules-load.service what gave me information about failed modules load. In log there was an important information to me:
I figured out 'dhd' is responsible for WiFi module so I blacklisted this module from load in /etc/modprobe.conf. After all I did reboot and LibreELEC started to boot like a charm. After boot I checked in console using lsmod command if 'dhd' is still listed but it wasn't as expected, systemd-modules-load.service status shown entry with 'dhd' as skipped and whole Load Kernel Module process now has SUCCESS status, not FAILURE as before. I also did scenario where I only disabled 'dhd' module without amending device tree but it hasn't allowed me to get system booted as normal, still I needed to wait around 1 minute to start. So both actions were needed to have it running smoothly.
How to fix the issue:
1. Connect MicroSD card to computer and grab dtb.img file from card.
2. Decompile device tree blob (.dtb) on Linux using 'device-tree-compiler' to device tree source (.dts).
3. Start editing decompiled .dts file. Find 'sdio' section in file and amend 'status' tag value from 'okay' to 'disabled'. Example below:
sdio {
compatible = "amlogic, aml_sd_emmc";
dev_name = "aml_newsd.0";
status = "disabled"; // Change value here from okay to disabled
reg = <0x0 0xd0070000 0x0 0x2000>;
interrupts = <0x0 0xd8 0x1>;
pinctrl-names = "sdio_clk_cmd_pins", "sdio_all_pins";
4. Save changes and compile source file to blob version (.dtb). Make sure you made backup of your original .dtb file. Save compiled version as dtb.img and overwrite it on MicroSD card. Place card back into MicroSD socket in Wetek. Turn on the device.
5. After successful bootup connect to console using SSH protocol and execute following command to make sure if there are failing modules:
6. 'dhd' module should be found as a problematic one. Connect to Wetek using SFTP and go to /etc/modprobe.conf.
7. Create new file disable-wifi-module.conf with content:
8. Save the file, make sure it has CHMOD 644 and reboot Wetek from SSH or just restart it using remote.
9. Now Wetek should start smooth without any delays related to broken WiFi module.
It took me a bit of effort to get this working but I'm happy about the result. In the meantime I even started to look at potential TV boxes to buy. I have seen Amlogic S922X was released some time ago and recently MINIX U22-XJ has been released. Do you think if S922X will be future-proof and worth buying or is it better to get RPi4? In general I'm happy from this Wetek so after resolving issue I had I won't change it in the nearest time but it's good to have knowledge because sometimes there maybe quick sale so then I might upgrade my S905. I have running RPi4 but I'm not able to try running LE because it has own purpose. I'm looking for your reply and I'd like to thank you very much for your help.