seco-functions: Add module detection for Genio devices
Adds:
- Reading module from fuses disabled for Genio
- < operator for SOC_ID doesn't seem to work here
Fixes sconfig list
from
root@FLASH-N-GO:~# sconfig list
dhcp false
ip 192.168.1.1
mask 255.255.255.0
gateway 192.168.1.100
mac -v-v-v-v-v-vN/A
name xxd: /sys/bus/nvmem/devices/imx-ocotp0/nvmem: No such file or directory
/usr/sbin/sconfig: line 621: arithmetic syntax error
/usr/sbin/sconfig: line 623: arithmetic syntax error
to
root@FLASH-N-GO:~# sconfig list
dhcp false
ip 192.168.1.1
mask 255.255.255.0
gateway 192.168.1.100
mac -v-v-v-v-v-vN/A
name SOM-SMARC-Genio
serial N/A
dhcp2 N/A
ip2 N/A
mask2 N/A
gateway2 N/A
mac2 N/A
serial2 N/A
mac -v-v-v-v-v-vN/A
behaves the same way on mx8mp, likely broken during last refactoring.
MediaTek uses this soc_id for both Genio700 and Genio510. Any ides for better workaround? Any ides for better name?
General TODO: mac-address is stored in u-boot environment on Genio, should probably be read from there.