Using kernel-configs/config-generic-6.1.56.x64 to build kernel results in 32Bit kernel ???
by babydr from LinuxQuestions.org on (#6FD0W)
Searching my local rsync of current for the kernel config files ...
Code:
# find /home/archive/slackware-15_X/ -name "config-*-6.1.56*"
/home/archive/slackware-15_X/source/k/kernel-configs/config-huge-6.1.56
/home/archive/slackware-15_X/source/k/kernel-configs/config-huge-6.1.56.x64
/home/archive/slackware-15_X/source/k/kernel-configs/config-generic-6.1.56.x64
/home/archive/slackware-15_X/source/k/kernel-configs/config-generic-6.1.56
/home/archive/slackware-15_X/source/k/kernel-configs/config-generic-smp-6.1.56-smp
/home/archive/slackware-15_X/source/k/kernel-configs/config-huge-smp-6.1.56-smpDoing a grep of the selected .x64 config reveals BOTH CONFIG_X86_64 & CONFIG_X86 set to Yes .
Code:
/usr/src/linux# grep X86 .config | head
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_X86_64_SMP=y
CONFIG_X86_FEATURE_NAMES=y
CONFIG_X86_X2APIC=y
CONFIG_X86_MPPARSE=y
CONFIG_X86_CPU_RESCTRL=y
# CONFIG_X86_EXTENDED_PLATFORM is not set
CONFIG_X86_INTEL_LPSS=y
CONFIG_X86_AMD_PLATFORM_DEVICE=yCode:
# diff .config /home/archive/slackware-15_X/source/k/kernel-configs/config-huge-6.1.56.x64
#
After compiling the kernel with out installing it , searching for the resultant bzImage file in this case files ones a link to the other .
Code:/usr/src/linux# find . -name bzImage -ls
40043190 12020 -rw-r--r-- 1 root root 12304544 Oct 7 19:03 ./arch/x86/boot/bzImage
40255138 0 lrwxrwxrwx 1 root root 22 Oct 7 19:03 ./arch/x86_64/boot/bzImage -> ../../x86/boot/bzImagedoing a file check on them reveals ...
Code:
/usr/src/linux# file ./arch/x86_64/boot/bzImage ./arch/x86/boot/bzImage
./arch/x86_64/boot/bzImage: symbolic link to ../../x86/boot/bzImage
./arch/x86/boot/bzImage: Linux kernel x86 boot executable bzImage, version 6.1.56 (root@slackware64Current.baby-dragons.com) #1 SMP PREEMPT_DYNAMIC Sat Oct 7 19:02:43 AKDT 2023, RO-rootFS, swap_dev 0XB, Normal VGAPlease help me figure out HOW TO KNOW which of the config files to use to make a X86_64 kernel is ?
This used to be so flippin easy a few years back . Course being just under 70 may be my recollection isn't .
Tia , JimL
Code:
# find /home/archive/slackware-15_X/ -name "config-*-6.1.56*"
/home/archive/slackware-15_X/source/k/kernel-configs/config-huge-6.1.56
/home/archive/slackware-15_X/source/k/kernel-configs/config-huge-6.1.56.x64
/home/archive/slackware-15_X/source/k/kernel-configs/config-generic-6.1.56.x64
/home/archive/slackware-15_X/source/k/kernel-configs/config-generic-6.1.56
/home/archive/slackware-15_X/source/k/kernel-configs/config-generic-smp-6.1.56-smp
/home/archive/slackware-15_X/source/k/kernel-configs/config-huge-smp-6.1.56-smpDoing a grep of the selected .x64 config reveals BOTH CONFIG_X86_64 & CONFIG_X86 set to Yes .
Code:
/usr/src/linux# grep X86 .config | head
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_X86_64_SMP=y
CONFIG_X86_FEATURE_NAMES=y
CONFIG_X86_X2APIC=y
CONFIG_X86_MPPARSE=y
CONFIG_X86_CPU_RESCTRL=y
# CONFIG_X86_EXTENDED_PLATFORM is not set
CONFIG_X86_INTEL_LPSS=y
CONFIG_X86_AMD_PLATFORM_DEVICE=yCode:
# diff .config /home/archive/slackware-15_X/source/k/kernel-configs/config-huge-6.1.56.x64
#
After compiling the kernel with out installing it , searching for the resultant bzImage file in this case files ones a link to the other .
Code:/usr/src/linux# find . -name bzImage -ls
40043190 12020 -rw-r--r-- 1 root root 12304544 Oct 7 19:03 ./arch/x86/boot/bzImage
40255138 0 lrwxrwxrwx 1 root root 22 Oct 7 19:03 ./arch/x86_64/boot/bzImage -> ../../x86/boot/bzImagedoing a file check on them reveals ...
Code:
/usr/src/linux# file ./arch/x86_64/boot/bzImage ./arch/x86/boot/bzImage
./arch/x86_64/boot/bzImage: symbolic link to ../../x86/boot/bzImage
./arch/x86/boot/bzImage: Linux kernel x86 boot executable bzImage, version 6.1.56 (root@slackware64Current.baby-dragons.com) #1 SMP PREEMPT_DYNAMIC Sat Oct 7 19:02:43 AKDT 2023, RO-rootFS, swap_dev 0XB, Normal VGAPlease help me figure out HOW TO KNOW which of the config files to use to make a X86_64 kernel is ?
This used to be so flippin easy a few years back . Course being just under 70 may be my recollection isn't .
Tia , JimL