2024-03-23 20:58:53 +00:00
|
|
|
CONFIG_64BIT=y
|
|
|
|
CONFIG_AQUANTIA_PHY=y
|
|
|
|
CONFIG_ARCH_BINFMT_ELF_EXTRA_PHDRS=y
|
|
|
|
CONFIG_ARCH_CORRECT_STACKTRACE_ON_KRETPROBE=y
|
|
|
|
CONFIG_ARCH_DMA_ADDR_T_64BIT=y
|
|
|
|
CONFIG_ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE=y
|
|
|
|
CONFIG_ARCH_MMAP_RND_BITS=18
|
|
|
|
CONFIG_ARCH_MMAP_RND_BITS_MAX=24
|
|
|
|
CONFIG_ARCH_MMAP_RND_BITS_MIN=18
|
|
|
|
CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=11
|
|
|
|
CONFIG_ARCH_PROC_KCORE_TEXT=y
|
|
|
|
CONFIG_ARCH_STACKWALK=y
|
|
|
|
CONFIG_ARCH_WANTS_NO_INSTR=y
|
|
|
|
CONFIG_ARCH_WANTS_THP_SWAP=y
|
|
|
|
CONFIG_ARM64=y
|
|
|
|
CONFIG_ARM64_4K_PAGES=y
|
|
|
|
CONFIG_ARM64_LD_HAS_FIX_ERRATUM_843419=y
|
|
|
|
CONFIG_ARM64_PAGE_SHIFT=12
|
|
|
|
CONFIG_ARM64_PA_BITS=48
|
|
|
|
CONFIG_ARM64_PA_BITS_48=y
|
|
|
|
CONFIG_ARM64_SVE=y
|
|
|
|
# CONFIG_ARM64_TAGGED_ADDR_ABI is not set
|
|
|
|
CONFIG_ARM64_VA_BITS=39
|
|
|
|
CONFIG_ARM64_VA_BITS_39=y
|
|
|
|
CONFIG_ARMADA_37XX_CLK=y
|
|
|
|
CONFIG_ARMADA_AP806_SYSCON=y
|
|
|
|
CONFIG_ARMADA_AP_CPU_CLK=y
|
|
|
|
CONFIG_ARMADA_AP_CP_HELPER=y
|
|
|
|
CONFIG_ARMADA_CP110_SYSCON=y
|
|
|
|
CONFIG_ARM_AMBA=y
|
|
|
|
CONFIG_ARM_ARCH_TIMER=y
|
|
|
|
# CONFIG_ARM_ARCH_TIMER_EVTSTREAM is not set
|
|
|
|
CONFIG_ARM_ARMADA_8K_CPUFREQ=y
|
|
|
|
CONFIG_ARM_GIC_V2M=y
|
|
|
|
CONFIG_ARM_GIC_V3=y
|
|
|
|
CONFIG_ARM_GIC_V3_ITS=y
|
|
|
|
CONFIG_ARM_GIC_V3_ITS_PCI=y
|
|
|
|
# CONFIG_ARM_PL172_MPMC is not set
|
|
|
|
CONFIG_ARM_PSCI_FW=y
|
2024-06-07 13:05:30 +00:00
|
|
|
CONFIG_ARM_SBSA_WATCHDOG=y
|
2024-03-23 20:58:53 +00:00
|
|
|
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
|
|
|
|
CONFIG_GENERIC_CSUM=y
|
|
|
|
CONFIG_GENERIC_IOREMAP=y
|
|
|
|
CONFIG_GENERIC_PINCONF=y
|
|
|
|
CONFIG_HW_RANDOM_OMAP=y
|
|
|
|
CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000
|
|
|
|
CONFIG_LEDS_IEI_WT61P803_PUZZLE=y
|
|
|
|
CONFIG_LEDS_IS31FL319X=y
|
|
|
|
CONFIG_MARVELL_10G_PHY=y
|
|
|
|
CONFIG_MFD_CORE=y
|
|
|
|
CONFIG_MFD_IEI_WT61P803_PUZZLE=y
|
|
|
|
CONFIG_MFD_SYSCON=y
|
|
|
|
CONFIG_MMC_SDHCI_XENON=y
|
|
|
|
CONFIG_MODULES_USE_ELF_RELA=y
|
2023-09-17 20:17:56 +00:00
|
|
|
CONFIG_MIKROTIK=y
|
|
|
|
CONFIG_MIKROTIK_RB_SYSFS=y
|
2024-05-30 05:57:00 +00:00
|
|
|
# CONFIG_MIKROTIK_WLAN_DECOMPRESS_LZ77 is not set
|
2023-09-17 20:17:56 +00:00
|
|
|
CONFIG_MTD_ROUTERBOOT_PARTS=y
|
|
|
|
CONFIG_MTD_SPI_NOR_USE_VARIABLE_ERASE=y
|
2024-03-23 20:58:53 +00:00
|
|
|
CONFIG_MVEBU_GICP=y
|
|
|
|
CONFIG_MVEBU_ICU=y
|
|
|
|
CONFIG_MVEBU_ODMI=y
|
|
|
|
CONFIG_MVEBU_PIC=y
|
|
|
|
CONFIG_MVEBU_SEI=y
|
|
|
|
CONFIG_MVPP2=y
|
|
|
|
CONFIG_MV_XOR_V2=y
|
|
|
|
CONFIG_NEED_SG_DMA_LENGTH=y
|
|
|
|
CONFIG_NVMEM_LAYOUTS=y
|
2024-06-09 10:18:54 +00:00
|
|
|
CONFIG_NVMEM_LAYOUT_MIKROTIK=y
|
2024-03-23 20:58:53 +00:00
|
|
|
CONFIG_NVMEM_LAYOUT_ONIE_TLV=y
|
|
|
|
CONFIG_NVMEM_SYSFS=y
|
2024-06-07 17:43:14 +00:00
|
|
|
CONFIG_NVMEM_U_BOOT_ENV=y
|
2024-03-23 20:58:53 +00:00
|
|
|
CONFIG_PARTITION_PERCPU=y
|
|
|
|
CONFIG_PCIEAER=y
|
|
|
|
CONFIG_PCIEPORTBUS=y
|
|
|
|
CONFIG_PCIE_ARMADA_8K=y
|
|
|
|
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
|
|
|
|
CONFIG_PINCTRL_AC5=y
|
|
|
|
CONFIG_PINCTRL_ARMADA_37XX=y
|
|
|
|
CONFIG_PINCTRL_ARMADA_AP806=y
|
|
|
|
CONFIG_PINCTRL_ARMADA_CP110=y
|
|
|
|
CONFIG_POSIX_CPU_TIMERS_TASK_WORK=y
|
|
|
|
CONFIG_POWER_SUPPLY=y
|
2023-09-18 08:51:19 +00:00
|
|
|
CONFIG_QCA808X_PHY=y
|
2024-03-23 20:58:53 +00:00
|
|
|
CONFIG_QUEUED_RWLOCKS=y
|
|
|
|
CONFIG_QUEUED_SPINLOCKS=y
|
|
|
|
CONFIG_RAS=y
|
|
|
|
# CONFIG_RAVE_SP_CORE is not set
|
|
|
|
CONFIG_REGULATOR_GPIO=y
|
mvebu: add support for RB5009UG+S+IN
This patch adds support for Mikrotik RB5009UG+S+IN.
Specifications:
- SoC: Marvell Armada 7040 (88F7040) - 4 cores, ARMv8 Cortex-A72, 1.4GHz, 64bit
- RAM: 1024MB DDR4
- Flash: 16MB SPI NOR flash, 1024MB NAND
- Ethernet:
* Marvell 88E6393X - Amethyst:
* one 2.5G RJ45 port via Qualcomm QCA8081 PHY
* seven 1G RJ45 ports via built-in PHY-s
* one 10G SFP+ cage
* All ports share the same 10G switch uplink to the CPU
- LED: User, SFP, Hdr1, Hdr2
- Buttons: Reset
- UART: 115200 8n1 on the MikroTik 16 pin header
- USB: One USB3 port
- Power: 24-57 V via
* DC jack
* 802.3af/at PoE on Ethernet 1
* 2-pin terminal on the side
16 Pin header pinout:
1 GND Vcc RX ? GND
#--------------------#
|.-. .-. .-. .-. .-. |
|'-' '-' '-' '-' '-' |
|.-. .-. .-. .-. .-. |
|'-' '-' '-' '-' '-' |
#--------------------#
2 CLK DO /CS TX DI
Do note that the default RouterBoot has disabled UART even when the
required hard-config bit is set to indicate UART support.
Patched RouterBoot must be used if UART is desired.
Also, since ARM64 Linux support does not support in any way appending the
DTB to the kernel image we use mainline U-Boot with added RB5009 support
in order to boot OpenWrt.
MikroTik uses YAFFS to store the boot kernel and we use YAFUT to put U-Boot
as the kernel which RouterBoot then simply boots as an ELF.
Install instructions:
NOTE: In case you are using an existing out of tree version of OpenWrt make
sure to reinstall RouterOS via Netinstall to return the expected partition
layout.
1. Prepare FAT or EXT4 formatted USB drive with OpenWrt initramfs:
* Copy bin/targets/mvebu/cortexa72/openwrt-mvebu-cortexa72-mikrotik_rb5009-initramfs-uImage.itb
to the root of FAT or EXT4 formatted USB drive.
* Plug in the drive to the RB5009 USB port
2. Boot the modified OpenWrt built U-Boot ELF:
u-boot.elf from bin/targets/mvebu/cortexa72/u-boot-rb5009/u-boot.elf
Consult OpenWrt wiki for common instructions on switching to boot from
Ethernet once as well as serving the file:
https://openwrt.org/toh/mikrotik/common
Once U-Boot is booted it will attempt to boot in the following order:
1. NAND
2. USB
3. Network
NAND is expected to fail but USB or Networking need to serve the OpenWrt
initramfs image and after booting it will be accessible from LAN ports
on the default 192.168.1.1 IP with default credentials.
3. Flash modified RouterBoot that enables UART (Optional but recommended):
https://public.robimarko.eu/RB5009/70x0-7.15-uart.fwf
* Copy the file over to the booted OpenWrt initramfs to /tmp
* Run: mtd erase RouterBOOT-primary
* Run: mtd write /tmp/70x0-7.15-uart.fwf RouterBOOT-primary
4. Install U-Boot to boot OpenWrt:
* Copy the u-boot.elf from bin/targets/mvebu/cortexa72/u-boot-rb5009/u-boot.elf
to OpenWrt initramfs to /tmp.
* Run: . /lib/functions.sh
* Run: yafut -d /dev/mtd$(find_mtd_index "YAFFS") -w -i /tmp/u-boot.elf -o kernel -T
This will use yafut to copy the U-Boot as kernel in YAFFS so that RouterBoot boots it.
5. Wipe the NAND UBI partition:
* Run: ubiformat /dev/mtd$(find_mtd_index "ubi") -y
This will prepare the existing RouterOS rootfs partition for OpenWrt.
6. Flash OpenWrt:
* Copy the bin/targets/mvebu/cortexa72/openwrt-mvebu-cortexa72-mikrotik_rb5009-squashfs-sysupgrade.bin
to OpenWrt initramfs to /tmp.
* Run: sysupgrade /tmp/openwrt-mvebu-cortexa72-mikrotik_rb5009-squashfs-sysupgrade.bin
Device will reboot, boot U-Boot and then OpenWrt.
Recovery:
In case you need to reinstall OpenWrt if it crashes after U-Boot, there is
a recovery mechanism in OpenWrt to boot the OpenWrt initramfs.
You need to hold the reset button while U-Boot is booting and then it will
boot the OpenWrt initramfs from:
1. USB
2. Networking
In recovery mode U-Boot will light all of the LED-s except for the switch
ones.
In case you want to return to RouterOS, you can simply do that via
Netinstall like on any other MikroTik board.
Credits also go to Serhii Serhieiev <adron@mstnt.com> who origininally
figured out the RouterBoot modification for UART, the missing 10G MVPP2
support in U-Boot as well as the custom aux loader to boot directly via
RouterBoot.
Link: https://github.com/openwrt/openwrt/pull/15765
Signed-off-by: Robert Marko <robimarko@gmail.com>
2022-02-09 07:45:47 +00:00
|
|
|
CONFIG_REGULATOR_USERSPACE_CONSUMER=y
|
2024-03-23 20:58:53 +00:00
|
|
|
# CONFIG_RODATA_FULL_DEFAULT_ENABLED is not set
|
|
|
|
CONFIG_SENSORS_IEI_WT61P803_PUZZLE_HWMON=y
|
|
|
|
CONFIG_SERIAL_DEV_BUS=y
|
|
|
|
CONFIG_SERIAL_DEV_CTRL_TTYPORT=y
|
|
|
|
CONFIG_SPARSEMEM=y
|
|
|
|
CONFIG_SPARSEMEM_EXTREME=y
|
|
|
|
CONFIG_SPARSEMEM_VMEMMAP=y
|
|
|
|
CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y
|
|
|
|
CONFIG_SWIOTLB=y
|
|
|
|
CONFIG_SYSCTL_EXCEPTION_TRACE=y
|
|
|
|
CONFIG_THREAD_INFO_IN_TASK=y
|
|
|
|
CONFIG_TRACE_IRQFLAGS_NMI_SUPPORT=y
|
|
|
|
CONFIG_UNMAP_KERNEL_AT_EL0=y
|
|
|
|
CONFIG_VMAP_STACK=y
|
|
|
|
CONFIG_ZONE_DMA32=y
|