Add support for Datto L8, E24v3, E48 switches

@hmartin I’m pretty sure you should set the alias for the Open Mesh version of the E48 to S48v2 although I’ve not yet seen an S48 not labeled v2 if there is another version it may be different hardware. The S24v2 has 4 SFP ports vs the 2 SFP+ ports on the S24v3.

This would be a different device then, not an alternate model name. Unless someone has the hardware and can provide more details there is nothing I can do for now.

Booting from the Datto firmware into OpenWrt with a warm reboot enables fan control in OpenWrt with PWM values below 255. So, we are missing a GPIO somewhere that allows for fan control via PWM.

Probably we are missing another input to an XOR-style gate somewhere, so if PWM < 255 both inputs are interpreted as 0 and the fans do not run.

I’m not sure what it is though. I cold booted OpenWrt and ran:

for i in $(seq 1 32); do echo $i > /sys/class/gpio/chip0/export || echo $i; done
ash: write error: Resource busy
13
ash: write error: Resource busy
14
ash: write error: Resource busy
17
ash: write error: Resource busy
18
ash: write error: Resource busy
19
ash: write error: Invalid argument
24
ash: write error: Invalid argument
25
ash: write error: Invalid argument
26
ash: write error: Invalid argument
27
ash: write error: Invalid argument
28
ash: write error: Invalid argument
29
ash: write error: Invalid argument
30
ash: write error: Invalid argument
31
ash: write error: Invalid argument
32
for i in $(seq 1 36); do echo $i > /sys/class/gpio/chip1/export || echo $i; done
ash: write error: Resource busy
2
ash: write error: Resource busy
4
for i in $(ls -1d /sys/class/gpio/gpio5*); do echo $i; cat $i/value; done

Saved the output.

Then I booted the stock Datto firmware (follow instructions above to get a root shell), ran /sqfs/bin/diag with ext-gpio set dev 0 pin 0 0 to reset the SOC (reboot doesn’t work), then tftpbooted the OpenWrt initramfs image and dump GPIOs again using the same command as above. Diffed the two, and they’re exactly the same. Except after warm-rebooting from the Datto firmware, there is PWM control of the fans in OpenWrt. I don’t understand :confused:

1 Like

There are a couple of switches with 8214FC, e.g. the GS1920-24HP. When the PR was created, the PHY wasn't fully supported but nowadays, it works.

Perhaps https://git.openwrt.org/openwrt/openwrt/commit/?id=0bab65dfa7c8ab27d0b2c76126e4d1114a92aa10 would be helpful.

I tend to either just look at the debug output of the vendor firmware, or worst case trace them with a continuity probe. Don't have one of those breakout board, sadly.