mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
BananaPi BPI-M4-Zero: Add KASLR Support
Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
This commit is contained in:
committed by
c0rnelius
parent
b3912bb03a
commit
e408731b30
@@ -20,6 +20,7 @@
|
||||
|
||||
chosen {
|
||||
stdout-path = "serial0:115200n8";
|
||||
kaslr-seed = <0xfeedbeef 0xc0def00d>;
|
||||
};
|
||||
|
||||
connector {
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
chosen {
|
||||
stdout-path = "serial0:115200n8";
|
||||
kaslr-seed = <0xfeedbeef 0xc0def00d>;
|
||||
};
|
||||
|
||||
connector {
|
||||
|
||||
@@ -338,3 +338,36 @@ index 00000000000..d0442ca9692
|
||||
--
|
||||
2.43.0
|
||||
|
||||
From 99cf1c27b0e94fee704f683ba0f338b239de6bdf Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Yavitz <pyavitz@gmail.com>
|
||||
Date: Sun, 3 Aug 2025 09:13:29 -0400
|
||||
Subject: [PATCH] Enable KASLR
|
||||
|
||||
Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
|
||||
---
|
||||
configs/bananapi_m4zero_defconfig | 2 ++
|
||||
1 files changed, 2 insertions(+)
|
||||
|
||||
diff --git a/configs/bananapi_m4zero_defconfig b/configs/bananapi_m4zero_defconfig
|
||||
index 6d70efd1a50..0c41226db49 100644
|
||||
--- a/configs/bananapi_m4zero_defconfig
|
||||
+++ b/configs/bananapi_m4zero_defconfig
|
||||
@@ -17,6 +17,7 @@ CONFIG_DRAM_CLK=792
|
||||
CONFIG_MMC_SUNXI_SLOT_EXTRA=2
|
||||
CONFIG_R_I2C_ENABLE=y
|
||||
# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
|
||||
+CONFIG_CMD_KASLRSEED=y
|
||||
CONFIG_SPL_I2C=y
|
||||
CONFIG_SPL_SYS_I2C_LEGACY=y
|
||||
CONFIG_SYS_I2C_MVTWSI=y
|
||||
@@ -25,6 +26,7 @@ CONFIG_SYS_I2C_SPEED=400000
|
||||
CONFIG_SUN8I_EMAC=y
|
||||
CONFIG_SUPPORT_EMMC_BOOT=y
|
||||
CONFIG_AXP313_POWER=y
|
||||
+CONFIG_DM_RNG=y
|
||||
CONFIG_USB_EHCI_HCD=y
|
||||
CONFIG_USB_OHCI_HCD=y
|
||||
CONFIG_USB_MUSB_GADGET=y
|
||||
--
|
||||
2.43.0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user