From e322c85d905a2362b70d5738158ee45d6c79c659 Mon Sep 17 00:00:00 2001 From: nemetho Date: Sun, 10 Dec 2017 12:43:26 +0100 Subject: [PATCH] compile a kernel - added some info --- kernel/config_helper/config_tuning.txt | 40 ++++++++++++++++++++++++++++++++++ kernel/config_helper/kernel_config.txt | 2 ++ 2 files changed, 42 insertions(+) create mode 100644 kernel/config_helper/config_tuning.txt diff --git a/kernel/config_helper/config_tuning.txt b/kernel/config_helper/config_tuning.txt new file mode 100644 index 0000000..e3d374a --- /dev/null +++ b/kernel/config_helper/config_tuning.txt @@ -0,0 +1,40 @@ +#configure the kernel using menu system +make menuconfig +### +#you may turn off some features and options +### +#turn off "General setup" - "Embedded system" - no embedded +#turn off "General setup" - "Configure standard kernel features (expert users)" - no expert user setting +#turn off "Kernel hacking"/* - (turn off "Kernel hacking"/* ... "Memory Debugging"/KASan) +#turn off "Security options"/* - + +#On x86_64 the following modifications should be done +#(serial driver - don't compile) +#set "Device Drivers" / "Character devices" / "Serial drivers" / +# / "8250/16550 and compatible serial support" - to "*" (compile into kernel image) +# CONFIG_SERIAL_8250=y +# ((CONFIG_SERIAL_8250_CONSOLE=y | # CONFIG_SERIAL_8250_FSL is not set | CONFIG_SERIAL_CORE=y)) + +#(not proper platform or architecture - will not run) +#set "Processor type and features" / "Enable 5-levels page tables support" - to "off" +#set "Processor type and features" / "Support for extended (non-PC) x86 platforms" - to "off" +# ((# CONFIG_X86_EXTENDED_PLATFORM is not set)) +# turn some platform off +# "ScaleMP vSMP" ((# CONFIG_X86_VSMP is not set)) +# "Goldfish (Virtual Platform)" ((# CONFIG_X86_GOLDFISH is not set)) +# "Intel MID platform support" ((# CONFIG_X86_INTEL_MID is not set)) + +#may set "Processor type and features" / there are many settings + +#(ugly test case files missing messages - unit tests) +#set "Device Drivers" / "Device Tree and Open Firmware support" / "Device Tree runtime unit tests" - to "off" +# ((CONFIG_OF=y | # CONFIG_OF_UNITTEST is not set)) + +#(for "desktop os" optimization) +#set "Processor type and features" / "Preemption model" - to "Low Latency Desktop" + +#(config of number of cpus (max)) +#CONFIG_NR_CPUS=64 + +#(gcc can compile code with stack protection) +#may set "General setup" - "Stack protector ..." eg.: Strong diff --git a/kernel/config_helper/kernel_config.txt b/kernel/config_helper/kernel_config.txt index d4d4ecf..46a4d89 100644 --- a/kernel/config_helper/kernel_config.txt +++ b/kernel/config_helper/kernel_config.txt @@ -26,3 +26,5 @@ sh kernel_config_helper.sh #clear drivers sh kconfig_clear_drivers.sh + +#see config_tuning.txt for further settings (can compile a working kernel (x86_64)) -- 2.11.4.GIT