I see that there is support for the EdgeRouter X. Would it be possible to get OpenWRT working on the ER-10X?
I'm not planning to use the PoE input but I would like to use the PoE output port. I might be able to work with just the ER-X but it would be nice to have additional ports.
Do you have basic shell skills and a rough understanding of how SoCs work? It takes someone with the device in hand to port it. There isn’t really a “request list” and porting of new devices is often done by enthusiasts, not the core dev team.
I wasn't aware of this particular EdgeRouter. I'm familiar with the code that added support for the EdgeRouter X and the 10X appears to use the same processor. I now have one one order and will update this thread when I've received the unit and done some analysis.
Not the low end ones, which have good OpenWrt support. The Edgerouter Lite was a Cavium dual core MIPS with three GbE PHY's. The Edgerouter X is entirely a MT7621 chip and some memory. The 10X looks like it adds a switch chip as well as using the internal ports on the MT7621.
Since the question was about support for a "new" device, I felt you'd get the attention of those with the skills and knowledge that could help you more easily in the "For Developers" section.
I've received the unit and have created the Wikidevi page. The second 5 ports are driven by a Realtek RTL8367RB switch. Nice feature is the RJ45 Console port. I'm looking at the Ubiquiti source code now and should have further updates this weekend.
Sorry work and personal obligations have been getting in the way recently. I can't even remember where I left off with this, but I hope to have some time over the upcoming holidays to look at it again.
I've got an ER-10X now and started to lookup all the datasheets and the GPL code from Ubiquiti to create a port.
The good news is that it's very much the same as the ER-X but the upper 5 ports are connected to an RTL8367RB which is connected to the MediaTek switch via rgmii (1GBit link speed). That integration looks very dirty in the GPL sources and is based on a rtl8367c driver from RealTek that does not exist in OpenWRT yet.
This is my first port so don't expect an image yet or fast progress but if anyone wants to help feel free to do so. https://github.com/decke/openwrt-er10x
Yes, the RealTek chip itself is quite common and used by a handfull MT7620 based devices but usually instead of the 5 port mediatek. In the ER-10X it is added in addition to the 5 port mediatek and connected via the rgmii link of the nic chip which seems to be unique but absolutely valid when looking at the datasheet of the MT7621AT.
From the software point of view it looks clumsy what they did in the the original firmware but I am not sure if that is because the Ubiquiti guys didn't know better or because the constellation is so special.
No, not much progress since March. Next step would be to build an initramfs image to test if the dts file and other changes are correct. This was broken in openwrt 19.07 because of size restrictions but I found an introduction recently that looks promising:
After a bit of fixing it should be possible to flash openwrt on ER-10X but only with the 5 lower ethernet ports for now because we still need a solution how to support the realtek chip.
I've gotten one of these, Ports 0-4 work, 5-9 not yet. the RTL8367RB drivers are in, but I'm unsure how to alter/create the DTS to create tell the kernel "Hey, this is here".
I've got no practical experience with Device Tree files, since my last device it was embedded in Uboot and I never had to touch it.
Any suggestions/tips on how to enable this? This is the stub I've got so far.
root@OpenWrt:/# uname -a
Linux OpenWrt 5.10.20 #0 SMP Sat Mar 6 19:23:48 2021 mips GNU/Linux
root@OpenWrt:/# cat /var/sysinfo/board_name
ubnt,edgerouter-10x
root@OpenWrt:/#