Что может быть не так?
# wb-gen-serial -m0 | tee /var/lib/wirenboard/serial.conf
это уже делал
Не получается редактировать через Web интерфейс сеть и wb-homa-adc.conf получаю ошибку:
Error loading the file: Invalid config file
В tail -f /var/log/messages получаю:
Nov 9 05:48:08 wirenboard daemon.info wb-mqtt-confed[2487]: ERROR: Invalid config file /etc/network/interfaces Nov 9 05:48:08 wirenboard daemon.info wb-mqtt-confed[2487]: ERROR: - interfaces.1: Must validate one and only one schema (oneOf) Nov 9 05:48:08 wirenboard daemon.info wb-mqtt-confed[2487]: ERROR: - method: method is required Nov 9 05:48:08 wirenboard daemon.info wb-mqtt-confed[2487]: ERROR: - interfaces.1: Must validate all the schemas (allOf)
и
Nov 9 05:49:11 wirenboard daemon.info wb-mqtt-confed[2487]: ERROR: Invalid config file /etc/wb-homa-adc.conf Nov 9 05:49:11 wirenboard daemon.info wb-mqtt-confed[2487]: ERROR: - iio_channels.1.type: iio_channels.1.type must be one of the following: "ohm_meter" Nov 9 05:49:11 wirenboard daemon.info wb-mqtt-confed[2487]: ERROR: - iio_channels.1: Must validate all the schemas (allOf)
Вот сами файлы
`#/etc/network/interfaces – configuration file for ifup(8), ifdown(8)
#The loopback interface
auto lo
iface lo inet loopback
#Wireless interfaces
allow-hotplug wlan0
#iface wlan0 inet dhcp
#wpa-ssid wifiessid
#wpa-psk wifipassword
#iface wlan0 inet static
#address 192.168.42.1
#netmask 255.255.255.0
auto eth0
iface eth0 inet static
address 192.168.222.251
gateway 192.168.222.252
hostname WirenBoard
hwaddress 00:86:41:cc:dc:6d
mtu 1500
netmask 255.255.255.0
pre-up ifconfig eth0 hw ether cat /var/lib/wirenboard/serial.conf
|| /bin/true
hostname WirenBoard
##The gsm pptp interface
##vvv uncomment block to enable
#auto ppp0
#iface ppp0 inet ppp
##select provider: megafon, mts or beeline below
#provider megafon
#allow-hotplug eth1
#iface eth1 inet dhcp`
и
`{“device_name” : “ADCs”,
“debug” : false,
“iio_channels” : [
{
"id" : "Vin",
"averaging_window": 1,
"poll_interval" : 0,
"channel_number" : 0,
"multiplier" : 3.74,
"decimal_places" : 2
},
{
"type" : "mux",
"averaging_window": 1,
"readings_number": 10,
"min_switch_interval_ms": 200,
"gpios" : [51, 57, 54],
"channels" : [
{
"id" : "A1",
"multiplier" : 0.949,
"mux_channel_number" : 3,
"decimal_places" : 2
},
{
"id" : "A2",
"multiplier" : 0.949,
"mux_channel_number" : 4,
"decimal_places" : 2
},
{
"id" : "A3",
"multiplier" : 0.949,
"mux_channel_number" : 6,
"decimal_places" : 2
},
{
"id" : "A4",
"multiplier" : 4.21,
"mux_channel_number" : 0,
"decimal_places" : 1
},
{
"id" : "A5",
"multiplier" : 4.21,
"mux_channel_number" : 1,
"decimal_places" : 1
},
{
"id" : "R1",
"multiplier" : 0.426,
"mux_channel_number" : 7,
"decimal_places" : 0
// The next 4 lines enable resistance measurement on R1
,"resistance1" : "100kOhm",
"resistance2" : "3570Ohm",
"type" : "ohm_meter",
"current" : 80,
"discharge_channel" : 3
},
{
"id" : "R2",
"multiplier" : 0.426,
"mux_channel_number" : 5,
"decimal_places" : 0
// The next 4 lines enable resistance measurement on R2
,"resistance1" : "100kOhm",
"resistance2" : "3570Ohm",
"type" : "ohm_meter",
"current" : 80,
"discharge_channel" : 3
},
{
"id" : "BAT",
"multiplier" : 0.949,
"mux_channel_number" : 2,
"decimal_places" : 2
}
]
}
]
}`