[openwrt/openwrt] sunxi: disable LPAE on cortexa8

LEDE Commits lede-commits at lists.infradead.org
Sat Apr 10 23:38:19 BST 2021


wigyori pushed a commit to openwrt/openwrt.git, branch openwrt-21.02:
https://git.openwrt.org/226d22dcd39a33b408b3c09aa6a5df6b57a141b6

commit 226d22dcd39a33b408b3c09aa6a5df6b57a141b6
Author: Zoltan HERPAI <wigyori at uid0.hu>
AuthorDate: Sat Apr 10 22:01:24 2021 +0200

    sunxi: disable LPAE on cortexa8
    
    LPAE should be disabled as the Cortex-A8 cores don't support it,
    and the kernel will crash on boot if it's enabled.
    
    Signed-off-by: Zoltan HERPAI <wigyori at uid0.hu>
---
 target/linux/sunxi/cortexa8/config-5.4 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/target/linux/sunxi/cortexa8/config-5.4 b/target/linux/sunxi/cortexa8/config-5.4
index 1beb025ace..8ed44ec575 100644
--- a/target/linux/sunxi/cortexa8/config-5.4
+++ b/target/linux/sunxi/cortexa8/config-5.4
@@ -1,6 +1,7 @@
 CONFIG_ARCH_32BIT_OFF_T=y
 CONFIG_ARCH_HAS_BINFMT_FLAT=y
 CONFIG_ARCH_HAS_TEARDOWN_DMA_OPS=y
+# CONFIG_ARM_LPAE is not set
 CONFIG_BINFMT_FLAT_ARGVP_ENVP_ON_STACK=y
 CONFIG_COMPAT_32BIT_TIME=y
 # CONFIG_MACH_SUN6I is not set
@@ -8,6 +9,7 @@ CONFIG_COMPAT_32BIT_TIME=y
 # CONFIG_MACH_SUN8I is not set
 # CONFIG_MACH_SUN9I is not set
 # CONFIG_PHY_SUN9I_USB is not set
+CONFIG_PGTABLE_LEVELS=2
 # CONFIG_PINCTRL_SUN50I_A64 is not set
 # CONFIG_PINCTRL_SUN50I_A64_R is not set
 # CONFIG_PINCTRL_SUN50I_H5 is not set



More information about the lede-commits mailing list