Skip to content

Commit

Permalink
mvebu: add support for SolidRun ClearFog Pro
Browse files Browse the repository at this point in the history
The SolidRun ClearFog Pro is a router based on the SolidRun CN9130 SOM.

Specs:
 - SoC: Quad-Core Cortex-A72 CN9130 SoC
 - RAM: 4GiB DDR4
 - Serial: Micro-USB port on front (FT232R, 115200 8n1)
 - Storage: 8GiB eMMC, microSD card slot, 8MiB SPI NOR flash
 - Ethernet: 7x GbE (1 port dedicated on SoC, 6 port switch with single GbE CPU port)
 - SFP: 1x SFP+
 - USB: 1x USB-A 3.1 Gen 1
 - PCIe: 2x mini PCIe (one slot with USB and SIM card socket)
 - SATA: 1x M.2 Key-B

In addition to the usual connectivity options this device also features
an internal mikroBUS expansion connector.

SATA is currently untested due to lack of a suitable M.2 SSD.

Installation
============

1. Write sdcard sysupgrade image to microSD card using dd or similar
2. Insert microSD card into router and apply power
3. Device boots into OpenWRT
4. (optional) dd sysupgrade image to /dev/mmcblk0 to install to eMMC

Signed-off-by: Tobias Schramm <[email protected]>
  • Loading branch information
TobleMiner authored and chunkeey committed Mar 2, 2024
1 parent 1ed01ef commit 336a531
Show file tree
Hide file tree
Showing 8 changed files with 583 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ marvell,armada7040-db)
marvell,armada8040-clearfog-gt-8k)
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 eth2" "eth0 eth1"
;;
solidrun,clearfog-pro)
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 lan5 lan6 eth0 eth1" "eth2"
;;
*)
ucidef_set_interface_lan "eth0"
;;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ platform_check_image() {
iei,puzzle-m902|\
marvell,armada8040-mcbin-doubleshot|\
marvell,armada8040-mcbin-singleshot|\
marvell,armada8040-clearfog-gt-8k)
marvell,armada8040-clearfog-gt-8k|\
solidrun,clearfog-pro)
legacy_sdcard_check_image "$1"
;;
*)
Expand All @@ -32,7 +33,8 @@ platform_do_upgrade() {
globalscale,mochabin|\
marvell,armada8040-mcbin-doubleshot|\
marvell,armada8040-mcbin-singleshot|\
marvell,armada8040-clearfog-gt-8k)
marvell,armada8040-clearfog-gt-8k|\
solidrun,clearfog-pro)
legacy_sdcard_do_upgrade "$1"
;;
*)
Expand All @@ -47,7 +49,8 @@ platform_copy_config() {
iei,puzzle-m902|\
marvell,armada8040-mcbin-doubleshot|\
marvell,armada8040-mcbin-singleshot|\
marvell,armada8040-clearfog-gt-8k)
marvell,armada8040-clearfog-gt-8k|\
solidrun,clearfog-pro)
legacy_sdcard_copy_config
;;
esac
Expand Down
6 changes: 6 additions & 0 deletions target/linux/mvebu/cortexa72/config-6.1
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ CONFIG_AUDIT_ARCH_COMPAT_GENERIC=y
CONFIG_CC_HAVE_SHADOW_CALL_STACK=y
CONFIG_CC_HAVE_STACKPROTECTOR_SYSREG=y
CONFIG_CPU_LITTLE_ENDIAN=y
CONFIG_CRC_CCITT=y
CONFIG_DMA_DIRECT_REMAP=y
CONFIG_EEPROM_AT24=y
CONFIG_FRAME_POINTER=y
CONFIG_GCC_SUPPORTS_DYNAMIC_FTRACE_WITH_REGS=y
CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y
Expand All @@ -66,6 +68,9 @@ CONFIG_MVEBU_SEI=y
CONFIG_MVPP2=y
CONFIG_MV_XOR_V2=y
CONFIG_NEED_SG_DMA_LENGTH=y
CONFIG_NVMEM_LAYOUTS=y
CONFIG_NVMEM_LAYOUT_ONIE_TLV=y
CONFIG_NVMEM_SYSFS=y
CONFIG_PARTITION_PERCPU=y
CONFIG_PCIEAER=y
CONFIG_PCIEPORTBUS=y
Expand All @@ -74,6 +79,7 @@ CONFIG_PCIE_DW=y
CONFIG_PCIE_DW_HOST=y
# CONFIG_PCI_AARDVARK is not set
CONFIG_PGTABLE_LEVELS=3
CONFIG_PHYLIB_LEDS=y
CONFIG_PHYS_ADDR_T_64BIT=y
CONFIG_PHY_MVEBU_CP110_COMPHY=y
CONFIG_PHY_MVEBU_CP110_UTMI=y
Expand Down
Loading

0 comments on commit 336a531

Please sign in to comment.