Managed Ethernet switch on the Clusterboard
#5
(07-22-2021, 06:09 PM)renze Wrote: This might be usefull information: https://github.com/libc0607/Realtek_switch_hacking
(Translated: https://github-com.translate.goog/libc06...=ajax,elem)

I've seen that GitHub repository quite a while ago, and the information available there is very useful.  I've also stumbled upon the source code of a Realtek "unmanaged switch" SDK (as Realtek called it), but that SDK unfortunately didn't contain the source code and the "magic blob" that's apparently required to turn RTL8370N into a managed switch, by enabling the built-in 8051 CPU, etc.

(07-23-2021, 05:34 PM)renze Wrote: I've dumped the contents of the EEPROM chip attached to the RTL8370N on the Clusterboard (using a SoPine on the Clusterboard itself Smile ).

The EEPROM appears to contain a series of register writes which the chip executes directly after starting from reset state. I've parsed the register writes that are executed into a table and I've documented what I did here: https://github.com/renzenicolai/uboot-pi...t%20switch

I suspect that configuring VLANs could be as easy as adding extra register writes to the EEPROM and resetting the ethernet switch chip.

This is very interesting!  However, please keep in mind that my original idea wasn't to create a "hacky" solution that configures VLANs through external register writes and "hacky" stuff like that.  Please, don't get me wrong, that's perfectly fine for some use cases, but my original idea was to create a feature-complete open-source firmware for RTL8370N, which would run on the built-in 8051 and be capable of accepting SSH connections and presenting a command-line interface that would allow all features of RTL8370N to be managed, port statistics to be collected, etc.
  Reply


Messages In This Thread
RE: Managed Ethernet switch on the Clusterboard - by dsimic - 07-28-2021, 03:54 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Selling Clusterboard + 4 sopine xblack86 7 6,075 09-26-2022, 03:09 AM
Last Post: poVoq
  clusterboard availability? linear 1 1,701 07-17-2022, 06:44 AM
Last Post: poVoq
  RTL8370 Ethernet Switch Register Values inx 6 6,991 12-31-2021, 07:17 AM
Last Post: inx
  Clusterboard not getting IP address after network fix Norlark 14 13,015 08-30-2021, 05:00 PM
Last Post: poVoq
  When would be the Clusterboard back on stock? __kzl__ 5 5,414 08-16-2021, 03:52 AM
Last Post: poVoq
  Schematics for customising the Clusterboard TechDragon 0 2,134 05-25-2021, 10:28 AM
Last Post: TechDragon
Information Clusterboard Guide AZClusterboard 9 23,668 04-06-2021, 06:32 AM
Last Post: poVoq
Brick Clusterboard CAD drawings TeaPack 1 3,895 03-31-2021, 01:38 PM
Last Post: Pine
  New Clusterboard Setup wargfn 5 7,503 01-01-2021, 10:10 AM
Last Post: poVoq
  Clusterboard does not even turn on? poVoq 3 6,333 08-15-2020, 07:31 AM
Last Post: poVoq

Forum Jump:


Users browsing this thread: 2 Guest(s)