From 25c2a4130147f175071acbdade3face6932e5303 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 5 Jan 2022 18:32:57 +0100 Subject: Initial experimentation --- patches/.keep | 0 patches/kernel.patch | 95 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 95 insertions(+) create mode 100644 patches/.keep create mode 100644 patches/kernel.patch (limited to 'patches') diff --git a/patches/.keep b/patches/.keep new file mode 100644 index 0000000..e69de29 diff --git a/patches/kernel.patch b/patches/kernel.patch new file mode 100644 index 0000000..97ec767 --- /dev/null +++ b/patches/kernel.patch @@ -0,0 +1,95 @@ +diff --git a/target/linux/ath79/config-5.10 b/target/linux/ath79/config-5.10 +index c95c073563..0962f97093 100644 +--- a/target/linux/ath79/config-5.10 ++++ b/target/linux/ath79/config-5.10 +@@ -35,10 +35,24 @@ CONFIG_CPU_R4K_CACHE_TLB=y + CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y + CONFIG_CPU_SUPPORTS_HIGHMEM=y + CONFIG_CPU_SUPPORTS_MSA=y +-# CONFIG_CRYPTO_CHACHA_MIPS is not set ++CONFIG_CRYPTO_ADIANTUM=y ++CONFIG_CRYPTO_AEGIS128=y ++CONFIG_CRYPTO_ARCH_HAVE_LIB_CHACHA=y ++CONFIG_CRYPTO_BLAKE2S=y ++CONFIG_CRYPTO_CHACHA20=y ++CONFIG_CRYPTO_CHACHA20POLY1305=y ++CONFIG_CRYPTO_CHACHA_MIPS=y ++CONFIG_CRYPTO_ECB=y ++CONFIG_CRYPTO_GF128MUL=y ++CONFIG_CRYPTO_LIB_BLAKE2S_GENERIC=y ++CONFIG_CRYPTO_LIB_CHACHA_GENERIC=y ++CONFIG_CRYPTO_LIB_POLY1305_GENERIC=y + CONFIG_CRYPTO_LIB_POLY1305_RSIZE=2 +-# CONFIG_CRYPTO_POLY1305_MIPS is not set ++CONFIG_CRYPTO_NHPOLY1305=y ++CONFIG_CRYPTO_NULL2=y ++CONFIG_CRYPTO_POLY1305=y + CONFIG_CRYPTO_RNG2=y ++CONFIG_CRYPTO_XTS=y + CONFIG_CSRC_R4K=y + CONFIG_DMA_NONCOHERENT=y + CONFIG_DTC=y +@@ -86,7 +100,6 @@ CONFIG_IRQ_DOMAIN=y + CONFIG_IRQ_FORCED_THREADING=y + CONFIG_IRQ_MIPS_CPU=y + CONFIG_IRQ_WORK=y +-# CONFIG_KERNEL_ZSTD is not set + CONFIG_LEDS_GPIO=y + # CONFIG_LEDS_RESET is not set + CONFIG_LIBFDT=y +@@ -95,6 +108,7 @@ CONFIG_LOCK_DEBUGGING_SUPPORT=y + CONFIG_MDIO_BITBANG=y + CONFIG_MDIO_BUS=y + CONFIG_MDIO_DEVICE=y ++CONFIG_MDIO_DEVRES=y + CONFIG_MDIO_GPIO=y + CONFIG_MEMFD_CREATE=y + # CONFIG_MFD_RB4XX_CPLD is not set +@@ -110,7 +124,6 @@ CONFIG_MIPS_CLOCK_VSYSCALL=y + # CONFIG_MIPS_CMDLINE_FROM_BOOTLOADER is not set + CONFIG_MIPS_CMDLINE_FROM_DTB=y + # CONFIG_MIPS_ELF_APPENDED_DTB is not set +-# CONFIG_MIPS_GENERIC_KERNEL is not set + CONFIG_MIPS_L1_CACHE_SHIFT=5 + CONFIG_MIPS_LD_CAN_LINK_VDSO=y + # CONFIG_MIPS_NO_APPENDED_DTB is not set +diff --git a/target/linux/ath79/dts/qca9563_ubnt_unifiac.dtsi b/target/linux/ath79/dts/qca9563_ubnt_unifiac.dtsi +index 2e407c3486..967a96262e 100644 +--- a/target/linux/ath79/dts/qca9563_ubnt_unifiac.dtsi ++++ b/target/linux/ath79/dts/qca9563_ubnt_unifiac.dtsi +@@ -65,21 +65,14 @@ + partition@60000 { + label = "u-boot-env"; + reg = <0x060000 0x010000>; +- read-only; + }; + + partition@70000 { + label = "firmware"; +- reg = <0x070000 0x790000>; ++ reg = <0x070000 0xf20000>; + compatible = "denx,uimage"; + }; + +- partition@800000 { +- label = "kernel1"; +- reg = <0x800000 0x790000>; +- read-only; +- }; +- + partition@f90000 { + label = "bs"; + reg = <0xf90000 0x020000>; +diff --git a/target/linux/ath79/image/generic-ubnt.mk b/target/linux/ath79/image/generic-ubnt.mk +index 3888e1652b..01f3deb32b 100644 +--- a/target/linux/ath79/image/generic-ubnt.mk ++++ b/target/linux/ath79/image/generic-ubnt.mk +@@ -417,7 +417,7 @@ TARGET_DEVICES += ubnt_unifi + define Device/ubnt_unifiac + DEVICE_VENDOR := Ubiquiti + SOC := qca9563 +- IMAGE_SIZE := 7744k ++ IMAGE_SIZE := 15488k + DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct + endef + -- cgit v1.2.3