Bug#803159: linux: Enable DT support for armel/orion5x arch
Patch appended, to avoid any misunderstanding.
- 0001 is both OK for sid and jessie
- 0002 is only necessary for sid, or other 4.x kernel series (e.g.
jessie-backport)
Thank you!
Cheers,
Roger
From ecc1733be537bf5c2583b50a0664b583cf294b37 Mon Sep 17 00:00:00 2001
From: Roger Shimizu <rogershimizu@gmail.com>
Date: Tue, 27 Oct 2015 22:28:43 +0900
Subject: [PATCH 1/2] [armel/orion5x] enable DT support
Signed-off-by: Roger Shimizu <rogershimizu@gmail.com>
---
debian/config/armel/config.orion5x | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/debian/config/armel/config.orion5x b/debian/config/armel/config.orion5x
index a7f4888..1e4703f 100644
--- a/debian/config/armel/config.orion5x
+++ b/debian/config/armel/config.orion5x
@@ -8,6 +8,8 @@ CONFIG_PCI=y
CONFIG_UACCESS_WITH_MEMCPY=y
CONFIG_ZBOOT_ROM_TEXT=0x0
CONFIG_ZBOOT_ROM_BSS=0x0
+CONFIG_ARM_APPENDED_DTB=y
+CONFIG_ARM_ATAG_DTB_COMPAT=y
CONFIG_CMDLINE=""
# CONFIG_XIP_KERNEL is not set
CONFIG_ATAGS_PROC=y
@@ -23,6 +25,7 @@ CONFIG_VFP=y
##
CONFIG_MACH_DB88F5281=y
CONFIG_MACH_RD88F5182=y
+CONFIG_MACH_RD88F5182_DT=y
CONFIG_MACH_KUROBOX_PRO=y
CONFIG_MACH_DNS323=y
CONFIG_MACH_TS209=y
@@ -264,6 +267,7 @@ CONFIG_MTD=y
# CONFIG_MTD_REDBOOT_PARTS is not set
CONFIG_MTD_CMDLINE_PARTS=y
# CONFIG_MTD_AFS_PARTS is not set
+CONFIG_MTD_OF_PARTS=y
CONFIG_MTD_BLOCK=y
CONFIG_FTL=m
CONFIG_NFTL=m
@@ -318,6 +322,7 @@ CONFIG_MTD_CFI_STAA=m
## file: drivers/mtd/maps/Kconfig
##
# CONFIG_MTD_COMPLEX_MAPPINGS is not set
+CONFIG_MTD_PHYSMAP_OF=y
# CONFIG_MTD_IMPA7 is not set
# CONFIG_MTD_INTEL_VR_NOR is not set
# CONFIG_MTD_PLATRAM is not set
@@ -487,6 +492,11 @@ CONFIG_RTC_DRV_S35390A=y
# CONFIG_SSB is not set
##
+## file: drivers/tty/serial/Kconfig
+##
+CONFIG_SERIAL_OF_PLATFORM=y
+
+##
## file: drivers/tty/serial/8250/Kconfig
##
CONFIG_SERIAL_8250=y
--
2.1.4
From d2f7318266850e3dd87ea9b045031a3871b8a055 Mon Sep 17 00:00:00 2001
From: Roger Shimizu <rogershimizu@gmail.com>
Date: Sat, 7 Nov 2015 11:35:57 +0900
Subject: [PATCH 2/2] [armel/orion5x] Enable DEBUG_LL_UART_8250, to replace
DEBUG_ICEDCC, which is default since Linux 4.0 and hangs booting on
armel/orion5x
Signed-off-by: Roger Shimizu <rogershimizu@gmail.com>
---
debian/config/armel/config.orion5x | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/debian/config/armel/config.orion5x b/debian/config/armel/config.orion5x
index 1e4703f..00404b9 100644
--- a/debian/config/armel/config.orion5x
+++ b/debian/config/armel/config.orion5x
@@ -16,6 +16,13 @@ CONFIG_ATAGS_PROC=y
CONFIG_VFP=y
##
+## file: arch/arm/Kconfig.debug
+##
+## choice: Kernel low-level debugging port
+CONFIG_DEBUG_LL_UART_8250=y
+## end choice
+
+##
## file: arch/arm/mach-imx/Kconfig
##
# CONFIG_ARCH_MXC is not set
--
2.1.4
Reply to: