liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 1c4412a1f45a59113ea32b78e8b06957e03a127c
parent dbc16edf965d9d3dc46e064982566ddfc6b401c2
Author: Daniel Barlow <dan@telent.net>
Date:   Sat,  7 Oct 2023 22:51:03 +0100

rt3200: enable serial console

Diffstat:
Mdevices/belkin-rt3200/default.nix | 34+++++++++++++++++++++++++++++++---
1 file changed, 31 insertions(+), 3 deletions(-)

diff --git a/devices/belkin-rt3200/default.nix b/devices/belkin-rt3200/default.nix @@ -24,7 +24,7 @@ }; }; - module = {pkgs, config, ... }: { + module = {pkgs, config, lib, ... }: { imports = [ ../../modules/arch/aarch64.nix ]; kernel = { src = pkgs.pkgsBuildBuild.fetchurl { @@ -39,10 +39,25 @@ PCI = "y"; ARCH_MEDIATEK = "y"; # ARM_MEDIATEK_CPUFREQ = "y"; + + + # needed for "Cannot find regmap for /infracfg@10000000" + MFD_SYSCON = "y"; + MTK_INFRACFG = "y"; + + MTK_PMIC_WRAP = "y"; + MTK_EFUSE="y"; + # MTK_HSDMA="y"; + MTK_SCPSYS="y"; + MTK_SCPSYS_PM_DOMAINS="y"; + # MTK_THERMAL="y"; + MTK_TIMER="y"; + COMMON_CLK_MT7622 = "y"; COMMON_CLK_MT7622_ETHSYS = "y"; COMMON_CLK_MT7622_HIFSYS = "y"; COMMON_CLK_MT7622_AUDSYS = "y"; + PM_CLK="y"; REGMAP_MMIO = "y"; CLKSRC_MMIO = "y"; @@ -75,10 +90,23 @@ PSTORE_CONSOLE = "y"; PSTORE_DEFLATE_COMPRESS = "n"; - SERIAL_AMBA_PL011 = "y"; - SERIAL_AMBA_PL011_CONSOLE = "y"; + SERIAL_8250 = "y"; + SERIAL_8250_CONSOLE = "y"; + SERIAL_8250_MT6577="y"; + # SERIAL_8250_NR_UARTS="3"; + # SERIAL_8250_RUNTIME_UARTS="3"; + SERIAL_OF_PLATFORM="y"; + + + # probably don't need these + # SERIAL_AMBA_PL011 = "y"; + # SERIAL_AMBA_PL011_CONSOLE = "y"; }; }; + boot.commandLine = [ + "console=ttyS0,115200" + ]; + hardware = let openwrt = pkgs.openwrt;