From 38688557771c464010321d12ebab3494d15d30aa Mon Sep 17 00:00:00 2001 From: reinoud Date: Fri, 26 Sep 2014 16:30:32 +0000 Subject: [PATCH] Split the two kernels to include only support for the device it describes --- sys/arch/evbarm/conf/ODROID-U | 23 +++++++++---------- sys/arch/evbarm/conf/ODROID-XU | 40 +++++++++------------------------- 2 files changed, 20 insertions(+), 43 deletions(-) diff --git a/sys/arch/evbarm/conf/ODROID-U b/sys/arch/evbarm/conf/ODROID-U index 7cae94929246..1854ed190c4f 100644 --- a/sys/arch/evbarm/conf/ODROID-U +++ b/sys/arch/evbarm/conf/ODROID-U @@ -1,7 +1,7 @@ # -# $NetBSD: ODROID-U,v 1.15 2014/09/26 15:33:33 reinoud Exp $ +# $NetBSD: ODROID-U,v 1.16 2014/09/26 16:30:32 reinoud Exp $ # -# ODROID-U -- ODROID-U series Exynos Kernel +# ODROID-U -- ODROID-U{2,3} series Exynos4x12(P) based kernel # include "arch/evbarm/conf/std.odroid" @@ -18,19 +18,19 @@ options RTC_OFFSET=0 # hardware clock is this many mins. west of GMT # CPU options options CPU_CORTEX options CPU_CORTEXA9 -options EXYNOS4120 options EXYNOS4212 options EXYNOS4412 options EXYNOS4412P #options MULTIPROCESSOR + options PMAPCOUNTERS options BUSDMA_COUNTERS options EXYNOS_CONSOLE_EARLY -#options UVMHIST -#options UVMHIST_PRINT,KERNHIST_DELAY=0 -#options KERNHIST -#options USBHIST -#options USBHIST_SIZE=100000 +#options UVMHIST +#options UVMHIST_PRINT,KERNHIST_DELAY=0 +#options KERNHIST +#options USBHIST +#options USBHIST_SIZE=100000 options __HAVE_MM_MD_DIRECT_MAPPED_PHYS options PMAP_NEED_ALLOC_POOLPAGE @@ -161,6 +161,7 @@ options OHCI_DEBUG options UHUB_DEBUG options USBVERBOSE + # Valid options for BOOT_ARGS: # single Boot to single user only # kdb Give control to kernel debugger @@ -181,8 +182,8 @@ cpu0 at mainbus? # A9 core devices armperiph0 at mainbus? -arml2cc0 at armperiph? # L2 Cache Controller armgic0 at armperiph? # Interrupt Controller +arml2cc0 at armperiph? # L2 Cache Controller # Exynos SoC exyo0 at mainbus? @@ -215,11 +216,7 @@ ukphy* at mii? phy ? # generic unknown PHYs exyoiic0 at exyo0 iic* at exyoiic? - # serial console connectivity -# UARTS -# sscom0 attached to expansion port -# sscom1 is default serial UART console, enable for low-level console: options SSCOM1CONSOLE, CONSPEED=115200 # include all USB devices diff --git a/sys/arch/evbarm/conf/ODROID-XU b/sys/arch/evbarm/conf/ODROID-XU index 82b76d34514e..020efaaa1b35 100644 --- a/sys/arch/evbarm/conf/ODROID-XU +++ b/sys/arch/evbarm/conf/ODROID-XU @@ -1,7 +1,7 @@ # -# $NetBSD: ODROID-XU,v 1.1 2014/09/26 15:33:58 reinoud Exp $ +# $NetBSD: ODROID-XU,v 1.2 2014/09/26 16:30:32 reinoud Exp $ # -# ODROID -- ODROID series Exynos Kernel +# ODROID-XU -- ODROID-XU Exynos5410 based kernel # include "arch/evbarm/conf/std.odroid" @@ -16,25 +16,18 @@ options RTC_OFFSET=0 # hardware clock is this many mins. west of GMT #options NTP # NTP phase/frequency locked loop # CPU options -#options CPU_CORTEX -#options CPU_CORTEXA9 -#options CPU_CORTEXA7 -#options CPU_CORTEXA15 -#options EXYNOS4120 -#options EXYNOS4212 -#options EXYNOS4412 -#options EXYNOS4412P -options EXYNOS5260 +options CPU_CORTEX +options CPU_CORTEXA7 +options CPU_CORTEXA15 options EXYNOS5410 -options EXYNOS5420 -options EXYNOS5440 -options EXYNOS5422 #options MULTIPROCESSOR + options PMAPCOUNTERS options BUSDMA_COUNTERS options EXYNOS_CONSOLE_EARLY #options UVMHIST -options USBHIST +options USBHIST +options USBHIST_SIZE=100000 #options UVMHIST_PRINT,KERNHIST_DELAY=0 options __HAVE_MM_MD_DIRECT_MAPPED_PHYS options PMAP_NEED_ALLOC_POOLPAGE @@ -148,7 +141,7 @@ options KTRACE # system call tracing, a la ktrace(1) #options PERFCTRS # performance counters options DIAGNOSTIC # internal consistency checks options DEBUG -#options LOCKDEBUG +options LOCKDEBUG #options PMAP_DEBUG # Enable pmap_debug_level code #options IPKDB # remote kernel debugging options VERBOSE_INIT_ARM # verbose bootstraping messages @@ -188,22 +181,12 @@ cpu0 at mainbus? # A9 core devices armperiph0 at mainbus? -ifdef EXYNOS4 -arml2cc0 at armperiph? # L2 Cache Controller -endif armgic0 at armperiph? # Interrupt Controller -#ifdef EXYNOS5 armgtmr0 at armperiph? # Generic Timer -#endif # Exynos SoC exyo0 at mainbus? -# Integrated Samsung devices -ifdef EXYNOS4 -mct0 at exyo0 -endif - # Integrated Samsung UARTs #sscom* at exyo0 port ? # UART ? sscom2 at exyo0 port 2 # UART2 @@ -231,14 +214,11 @@ iic* at exyoiic? # SATA #ahcisata* at exyno0 -#atabus* at ata? +#atabus* at ata? #wd* at atabus? drive ? # serial console connectivity -# UARTS -# sscom0 is default serial UART console, enable for low-level console: -# sscomX attached to expansion port options SSCOM0CONSOLE, CONSPEED=115200 # include all USB devices