WIP ecs4100
authorStijn Tintel <[email protected]>
Thu, 4 Apr 2024 15:12:35 +0000 (18:12 +0300)
committerStijn Tintel <[email protected]>
Mon, 12 May 2025 13:14:57 +0000 (16:14 +0300)
commite7323f0140d38ba3551107d26abf7cc98a2574b5
treec4bf1b5ed1e52d1f63c5e6bb5dd4c772bec18958
parentd5d512cf14869f176ad5a0b9b979a90e78a163f9
WIP

* reduce u-boot-env parition to 128k
* add "para" partition which contains the label MAC address
  analog to TP-Link SG2452P v4 and few others
* add "empty" partition in between u-boot-env and para partitions
* use nvmem-layout for MAC address
* fix indentation in DTS
* replace edgecore,reboot with gpio-restart and use active-low
* remove adt7470@2f node, the adt7470 driver has no OF support
* remove chosen node, it is not needed
* remove ext-io@e4 node, we don't have a rtl8390-eio driver
* remove gpio-fan node, the fan is connected to and adt7470
* use EXTERNAL_PHY macro for phy 0-7
* add leds node with the gpio-leds driver
* enable uart1 for Nuvoton M0516 (PoE)
* fix PoE UCI defaults
* set phy-mode for PHY at address 48-51 to qsgmii
* add reset-gpios to mdio node
* add to DEVICE_PACKAGES:
  * kmod-eeprom-at24
  * kmod-hwmon-adt7470
  * kmod-hwmon-lm75
  * kmod-thermal
  * realtek-poe
* switch rtl8231 driver

Notes:

Initramfs of this size boots fine when loading to address 0x8f000000
   Data Size:    8113317 Bytes = 7.7 MB

Having adt7470 and lm75 seems to cause random SFP unplug/plug events.
Unloading these modules stops that behaviour.

mtd_get_mac_ascii: partition u-boot-env2 not found!
mtd_get_mac_ascii: partition u-boot-env2 not found!
Cannot parse config file '/etc/fw_env.config': No such file or directory
Failed to find NVMEM device
target/linux/realtek/dts/rtl8392_edgecore_ecs4100-12ph.dts
target/linux/realtek/image/rtl839x.mk