Difference between revisions of "Drhuvvyas90-4-4-34-kconfig-versus-bnc2709-kconfig"
m (→^ Kernel Config Files By Sections) |
(→^ Kernel Config Files By Sections) |
||
Line 1,063: | Line 1,063: | ||
| bgcolor="cce0ff" valign="top" | | | bgcolor="cce0ff" valign="top" | | ||
<pre> | <pre> | ||
+ | # | ||
+ | # Kernel Features | ||
+ | # | ||
+ | CONFIG_HAVE_SMP=y | ||
+ | CONFIG_SMP=y | ||
+ | CONFIG_SMP_ON_UP=y | ||
+ | CONFIG_ARM_CPU_TOPOLOGY=y | ||
+ | # CONFIG_SCHED_MC is not set | ||
+ | # CONFIG_SCHED_SMT is not set | ||
+ | CONFIG_HAVE_ARM_ARCH_TIMER=y | ||
+ | # CONFIG_MCPM is not set | ||
+ | # CONFIG_BIG_LITTLE is not set | ||
+ | # CONFIG_VMSPLIT_3G is not set | ||
+ | # CONFIG_VMSPLIT_3G_OPT is not set | ||
+ | CONFIG_VMSPLIT_2G=y | ||
+ | # CONFIG_VMSPLIT_1G is not set | ||
+ | CONFIG_PAGE_OFFSET=0x80000000 | ||
+ | CONFIG_NR_CPUS=4 | ||
+ | # CONFIG_HOTPLUG_CPU is not set | ||
+ | # CONFIG_ARM_PSCI is not set | ||
+ | CONFIG_ARCH_NR_GPIO=0 | ||
+ | # CONFIG_PREEMPT_NONE is not set | ||
+ | CONFIG_PREEMPT_VOLUNTARY=y | ||
+ | # CONFIG_PREEMPT is not set | ||
+ | CONFIG_HZ_FIXED=0 | ||
+ | CONFIG_HZ_100=y | ||
+ | # CONFIG_HZ_200 is not set | ||
+ | # CONFIG_HZ_250 is not set | ||
+ | # CONFIG_HZ_300 is not set | ||
+ | # CONFIG_HZ_500 is not set | ||
+ | # CONFIG_HZ_1000 is not set | ||
+ | CONFIG_HZ=100 | ||
+ | CONFIG_SCHED_HRTICK=y | ||
+ | # CONFIG_THUMB2_KERNEL is not set | ||
+ | CONFIG_AEABI=y | ||
+ | CONFIG_OABI_COMPAT=y | ||
+ | # CONFIG_ARCH_SPARSEMEM_DEFAULT is not set | ||
+ | # CONFIG_ARCH_SELECT_MEMORY_MODEL is not set | ||
+ | CONFIG_HAVE_ARCH_PFN_VALID=y | ||
+ | # CONFIG_HIGHMEM is not set | ||
+ | # CONFIG_CPU_SW_DOMAIN_PAN is not set | ||
+ | CONFIG_HW_PERF_EVENTS=y | ||
+ | CONFIG_ARCH_WANT_GENERAL_HUGETLB=y | ||
+ | # CONFIG_ARM_MODULE_PLTS is not set | ||
+ | CONFIG_FLATMEM=y | ||
+ | CONFIG_FLAT_NODE_MEM_MAP=y | ||
+ | CONFIG_HAVE_MEMBLOCK=y | ||
+ | CONFIG_NO_BOOTMEM=y | ||
+ | CONFIG_MEMORY_ISOLATION=y | ||
+ | # CONFIG_HAVE_BOOTMEM_INFO_NODE is not set | ||
+ | CONFIG_SPLIT_PTLOCK_CPUS=4 | ||
+ | CONFIG_COMPACTION=y | ||
+ | CONFIG_MIGRATION=y | ||
+ | # CONFIG_PHYS_ADDR_T_64BIT is not set | ||
+ | CONFIG_ZONE_DMA_FLAG=0 | ||
+ | # CONFIG_KSM is not set | ||
+ | CONFIG_DEFAULT_MMAP_MIN_ADDR=4096 | ||
+ | CONFIG_CLEANCACHE=y | ||
+ | CONFIG_FRONTSWAP=y | ||
+ | CONFIG_CMA=y | ||
+ | # CONFIG_CMA_DEBUG is not set | ||
+ | # CONFIG_CMA_DEBUGFS is not set | ||
+ | CONFIG_CMA_AREAS=7 | ||
+ | # CONFIG_ZSWAP is not set | ||
+ | # CONFIG_ZPOOL is not set | ||
+ | # CONFIG_ZBUD is not set | ||
+ | CONFIG_ZSMALLOC=m | ||
+ | CONFIG_PGTABLE_MAPPING=y | ||
+ | # CONFIG_ZSMALLOC_STAT is not set | ||
+ | # CONFIG_IDLE_PAGE_TRACKING is not set | ||
+ | CONFIG_FRAME_VECTOR=y | ||
+ | CONFIG_FORCE_MAX_ZONEORDER=11 | ||
+ | CONFIG_ALIGNMENT_TRAP=y | ||
+ | CONFIG_UACCESS_WITH_MEMCPY=y | ||
+ | CONFIG_SECCOMP=y | ||
+ | CONFIG_SWIOTLB=y | ||
+ | CONFIG_IOMMU_HELPER=y | ||
+ | # CONFIG_XEN is not set | ||
</pre> | </pre> | ||
| bgcolor="cce0ff" valign="top" | 3 | | bgcolor="cce0ff" valign="top" | 3 | ||
Line 1,090: | Line 1,168: | ||
| bgcolor="e6e6e6" valign="top" | | | bgcolor="e6e6e6" valign="top" | | ||
<pre> | <pre> | ||
+ | # | ||
+ | # Boot options | ||
+ | # | ||
+ | CONFIG_USE_OF=y | ||
+ | # CONFIG_ATAGS is not set | ||
+ | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
+ | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
+ | # CONFIG_ARM_APPENDED_DTB is not set | ||
+ | CONFIG_CMDLINE="console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait" | ||
+ | # CONFIG_XIP_KERNEL is not set | ||
+ | # CONFIG_CRASH_DUMP is not set | ||
+ | # CONFIG_AUTO_ZRELADDR is not set | ||
</pre> | </pre> | ||
| bgcolor="e6e6e6" valign="top" | 3 | | bgcolor="e6e6e6" valign="top" | 3 | ||
Line 1,104: | Line 1,194: | ||
| bgcolor="cce0ff" valign="top" | | | bgcolor="cce0ff" valign="top" | | ||
<pre> | <pre> | ||
+ | # | ||
+ | # CPU Power Management | ||
+ | # | ||
</pre> | </pre> | ||
| bgcolor="cce0ff" valign="top" | 3 | | bgcolor="cce0ff" valign="top" | 3 | ||
Line 1,119: | Line 1,212: | ||
| bgcolor="e6e6e6" valign="top" | | | bgcolor="e6e6e6" valign="top" | | ||
<pre> | <pre> | ||
+ | # | ||
+ | # CPU Frequency scaling | ||
+ | # | ||
+ | CONFIG_CPU_FREQ=y | ||
+ | CONFIG_CPU_FREQ_GOV_COMMON=y | ||
+ | CONFIG_CPU_FREQ_STAT=m | ||
+ | CONFIG_CPU_FREQ_STAT_DETAILS=y | ||
+ | # CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set | ||
+ | CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE=y | ||
+ | # CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set | ||
+ | # CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set | ||
+ | # CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set | ||
+ | CONFIG_CPU_FREQ_GOV_PERFORMANCE=y | ||
+ | CONFIG_CPU_FREQ_GOV_POWERSAVE=y | ||
+ | CONFIG_CPU_FREQ_GOV_USERSPACE=y | ||
+ | CONFIG_CPU_FREQ_GOV_ONDEMAND=y | ||
+ | CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y | ||
</pre> | </pre> | ||
| bgcolor="e6e6e6" valign="top" | 3 | | bgcolor="e6e6e6" valign="top" | 3 | ||
| bgcolor="e6e6e6" valign="top" | 4 | | bgcolor="e6e6e6" valign="top" | 4 | ||
+ | |||
+ | |||
|- <!-- - - - - - - - - - - -new table row - - - - - - - - - - - - - → | |- <!-- - - - - - - - - - - -new table row - - - - - - - - - - - - - → | ||
− | | bgcolor="cce0ff" valign="top" | | + | | bgcolor="cce0ff" valign="top" |22222 |
<pre> | <pre> | ||
# | # | ||
Line 1,135: | Line 1,247: | ||
| bgcolor="cce0ff" valign="top" | | | bgcolor="cce0ff" valign="top" | | ||
<pre> | <pre> | ||
+ | |||
</pre> | </pre> | ||
| bgcolor="cce0ff" valign="top" | 3 | | bgcolor="cce0ff" valign="top" | 3 | ||
Line 1,154: | Line 1,267: | ||
− | |- <!-- - - - - - - - - - - -new table row - - - - - - - - - - - - - | + | |- <!-- - - - - - - - - - - -new table row - - - - - - - - - - - - - --> |
| bgcolor="cce0ff" valign="top" | | | bgcolor="cce0ff" valign="top" | | ||
<pre> | <pre> |
Revision as of 21:13, 18 December 2017
Linux Kernel Configurations de drhuvvyas90 and bcm2709_defconfig
started 2017-12-17 Sunday
Overview
These notes regard Ted's search for a working Linux kernel configuration to make the kernel run on a Raspberry Pi 2 dev board, and to also run correctly in QEMU 2.10.x target hardware emulator. Instructions for compiling custom kernels for Rpi boards on Raspberry Pi's web site tutorials pages appear out of date, or at least present steps which don't succeed when followed step by step. Ted now comparing a working Rpi kernel's configuration with the one from Raspberry Pi's tutorial. While creating a third configuration which is an incremental synchronizing of bcm2709_defconf kernel configuration, making this "recipe" option by option match drhuvvyas90's 4.4.34 "Jessie" kernel configuration, there are some situation where options may not be available to change, situations including:
- given kernel option in source tree but not adjustable via menuconfig tool
- kernel option is conditionally available on a "parent" option which is differently defined between kernel 4.4.34 and 4.4.50 releases
- kernel option is defined in one of 4.4.34 and 4.4.50 kernel releases but not defined in the other
Table 1 in this notes page holds kernel configuration files broken into their respective sections, where sections are indicated by kernel developers or kernel configuration tool developers by three consecutive comment lines, where middle of these three comments expresses 'section title' and the first and last comments are the comment symbol '#' only. The second table, table 2 in this project notes page contains each original kernel config file in an easily copy-and-paste form. We can't get that when splitting text files by sections into cells of a hypertext mark-up table.
Note: the last line in both kernel configuration files on this page reads "# CONFIG_VIRTUALIZATION is not set".
Note: there is a green block between the two tables, to aid in scrolling based page navigation and give indication when second table is at hand.
^ Kernel Config Files By Sections
Table 1 - Synchronizing kernel configuration drhuvvyas90 4.4.34 and bcm2709_defconfig
|
^ long table marker
Long table marker - scrolling navigation aid * * *
* *
* *
* *
* * |
^ Kernel config files in full
Following table holds complete unbroken copies of Linux kernel configuration files, for easier copy-and-paste use.
Table 2 - kernel configurations from drhuvvyas90 4.4.34 "Jessie" kernel and bcm2709_defconfig
|