Hi, I am trying to build 64bit kernel (linux kernel 2.6.32-60). But, once I boot the image (ISO), uname -a still shows as i686. It does not show as 'X86_64'. My vmlinuz and vmlinuz.o shows 64bit. Any pointers much appreciated. I have followed below steps. 1. make X86_64_defconfig 2. make V=1 (comiler shows that -m64 is getting used). 3. [root@grpRHEL2 linux-2.6.32.60]# file vmlinux vmlinux.o vmlinux: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, not stripped vmlinux.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped 4. bzImage does not say x86_64 boot. root@grpRHEL2 boot]# pwd /root/lin_2/linux-2.6.32.60/arch/x86_64/boot [root@grpRHEL2 boot]# file bzImage bzImage: symbolic link to `../../x86/boot/bzImage' [root@grpRHEL2 boot]# file ../../x86/boot/bzImage ../../x86/boot/bzImage: Linux kernel x86 boot executable bzImage, version 2.6.32.60 (root@grpRHEL2) #1 SM, RO-rootFS, swap_dev 0x3, Normal VGA 5. After boot 'uname -a' , shows this. Linux 2.6.29.6 #1 SMP Mon Mar 25 16:20:30 IST 2013 i686 GNU/Linux
On Thu, May 23, 2013 at 10:16 AM, Giridhara RP (grp) <grp@cisco.com> wrote:
Hi,
I am trying to build 64bit kernel (linux kernel 2.6.32-60). But, once I boot the image (ISO), uname -a still shows as i686. It does not show as 'X86_64'. My vmlinuz and vmlinuz.o shows 64bit. Any pointers much appreciated. I have followed below steps.
1. make X86_64_defconfig 2. make V=1 (comiler shows that -m64 is getting used). 3. [root@grpRHEL2 linux-2.6.32.60]# file vmlinux vmlinux.o vmlinux: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, not stripped vmlinux.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped 4. bzImage does not say x86_64 boot. root@grpRHEL2 boot]# pwd /root/lin_2/linux-2.6.32.60/arch/x86_64/boot [root@grpRHEL2 boot]# file bzImage bzImage: symbolic link to `../../x86/boot/bzImage' [root@grpRHEL2 boot]# file ../../x86/boot/bzImage ../../x86/boot/bzImage: Linux kernel x86 boot executable bzImage, version 2.6.32.60 (root@grpRHEL2) #1 SM, RO-rootFS, swap_dev 0x3, Normal VGA
5. After boot 'uname -a' , shows this. Linux 2.6.29.6 #1 SMP Mon Mar 25 16:20:30 IST 2013 i686 GNU/Linux
Are you sure, you are booting from the newly built 64 bit kernel, because 'uname' is still reporting the older kernel (2.6.29.6 instead of 2.6.32.60). You might have missed updating grub after building the new kernel (version: 2.6.32.60) -Amit
Hi Amit Looks like I copied wrong output in my previous email. Here is the output. Also, what should I do with 'grub'? 5. After boot 'uname -a' , shows this. Linux 2.6.32-60 #1 SMP Mon Mar 25 16:20:30 IST 2013 i686 GNU/Linux -----Original Message----- From: amit mehta [mailto:gmate.amit@gmail.com] Sent: Thursday, May 23, 2013 2:40 PM To: Giridhara RP (grp) Cc: kernelnewbies@kernelnewbies.org Subject: Re: Kernel 64bit On Thu, May 23, 2013 at 10:16 AM, Giridhara RP (grp) <grp@cisco.com> wrote:
Hi,
I am trying to build 64bit kernel (linux kernel 2.6.32-60). But, once I boot the image (ISO), uname -a still shows as i686. It does not show as 'X86_64'. My vmlinuz and vmlinuz.o shows 64bit. Any pointers much appreciated. I have followed below steps.
1. make X86_64_defconfig 2. make V=1 (comiler shows that -m64 is getting used). 3. [root@grpRHEL2 linux-2.6.32.60]# file vmlinux vmlinux.o vmlinux: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, not stripped vmlinux.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped 4. bzImage does not say x86_64 boot. root@grpRHEL2 boot]# pwd /root/lin_2/linux-2.6.32.60/arch/x86_64/boot [root@grpRHEL2 boot]# file bzImage bzImage: symbolic link to `../../x86/boot/bzImage' [root@grpRHEL2 boot]# file ../../x86/boot/bzImage ../../x86/boot/bzImage: Linux kernel x86 boot executable bzImage, version 2.6.32.60 (root@grpRHEL2) #1 SM, RO-rootFS, swap_dev 0x3, Normal VGA
5. After boot 'uname -a' , shows this. Linux 2.6.29.6 #1 SMP Mon Mar 25 16:20:30 IST 2013 i686 GNU/Linux
Are you sure, you are booting from the newly built 64 bit kernel, because 'uname' is still reporting the older kernel (2.6.29.6 instead of 2.6.32.60). You might have missed updating grub after building the new kernel (version: 2.6.32.60) -Amit
On Thu, May 23, 2013 at 2:45 PM, Giridhara RP (grp) <grp@cisco.com> wrote:
Looks like I copied wrong output in my previous email. Here is the output. Also, what should I do with 'grub'?
5. After boot 'uname -a' , shows this. Linux 2.6.32-60 #1 SMP Mon Mar 25 16:20:30 IST 2013 i686 GNU/Linux
Generally, After building a new kernel, I issue 'update-grub' command on my ubuntu box to add proper entries for the newly built kernel in the grub configuration file, but I think 'make install' will take care of this as well. However, as you've confirmed that you've successfully booted from the newly built kernel, which is still being reported as a 32 bit kernel, therefore we can safely reject the case of incorrect and or missing grub entry. Do you see compressed x86_64 bit kernel image(vmlinuz-<version>.x86_64) under /boot ?
I did not see any file (vmlinuz-<version>.x86_64) under /boot. I was only looking at bzImage found under <arch>/boot/ . Am I missing something? [root@grpRHEL2 linux-2.6.32.60]# pwd /root/lin_2/linux-2.6.32.60 [root@grpRHEL2 linux-2.6.32.60]# find . | grep -i vmlinuz [root@grpRHEL2 linux-2.6.32.60]# [root@grpRHEL2 linux-2.6.32.60]# [root@grpRHEL2 linux-2.6.32.60]# file vmlinux vmlinux: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, not stripped [root@grpRHEL2 linux-2.6.32.60]# file vmlinux.o vmlinux.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped [root@grpRHEL2 linux-2.6.32.60]# file arch/x86/boot/bzImage arch/x86/boot/bzImage: Linux kernel x86 boot executable bzImage, version 2.6.32.60 (root@grpRHEL2) #1 SM, RO-rootFS, swap_dev 0x3, Normal VGA [root@grpRHEL2 linux-2.6.32.60]# file arch/x86_64/boot/bzImage arch/x86_64/boot/bzImage: symbolic link to `../../x86/boot/bzImage' -----Original Message----- From: amit mehta [mailto:gmate.amit@gmail.com] Sent: Thursday, May 23, 2013 3:31 PM To: Giridhara RP (grp) Cc: kernelnewbies@kernelnewbies.org Subject: Re: Kernel 64bit On Thu, May 23, 2013 at 2:45 PM, Giridhara RP (grp) <grp@cisco.com> wrote:
Looks like I copied wrong output in my previous email. Here is the output. Also, what should I do with 'grub'?
5. After boot 'uname -a' , shows this. Linux 2.6.32-60 #1 SMP Mon Mar 25 16:20:30 IST 2013 i686 GNU/Linux
Generally, After building a new kernel, I issue 'update-grub' command on my ubuntu box to add proper entries for the newly built kernel in the grub configuration file, but I think 'make install' will take care of this as well. However, as you've confirmed that you've successfully booted from the newly built kernel, which is still being reported as a 32 bit kernel, therefore we can safely reject the case of incorrect and or missing grub entry. Do you see compressed x86_64 bit kernel image(vmlinuz-<version>.x86_64) under /boot ?
On Thu, May 23, 2013 at 5:08 PM, Giridhara RP (grp) <grp@cisco.com> wrote:
I did not see any file (vmlinuz-<version>.x86_64) under /boot. I was only looking at bzImage found under <arch>/boot/ . Am I missing something?
Please don't do top posting :) anyway, try to use: make install Usually it will take care of copying the kernel image to /boot, rename it to vmlinuz-<kernel version> along with the initrd/initramfs, plus it will set the boot loader entry for you :) -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
Hi Mulyadi, Please explain below step which you have mentioned? I have bzImage (64bit) in my x86/boot/. What should I do to create a ISO image. [Usually it will take care of copying the kernel image to /boot, rename it to vmlinuz-<kernel version> along with the initrd/initramfs, plus it will set the boot loader entry for you :)] Thanks Giri
On Fri, May 24, 2013 at 09:45:23AM +0000, Giridhara RP (grp) wrote:
Hi Mulyadi,
Please explain below step which you have mentioned? I have bzImage (64bit) in my x86/boot/. What should I do to create a ISO image.
Are you trying to build a ISO 9660 aka. Compact Disk (aka. CD) image? If so, have a look at ISOLINUX.
[Usually it will take care of copying the kernel image to /boot, rename it to vmlinuz-<kernel version> along with the initrd/initramfs, plus it will set the boot loader entry for you :)]
A good description of what "top-posting" means can be found here: http://www.idallen.com/topposting.html I see you seem to use Microsoft Outlook. That makes formatting emails nicely (to the standard of technical communities which have their roots in UNIX culture) a bit harder. Thanks, Jonathan Neuschäfer
Thanks Jonthan/Santosa, I could make a ISO image with Debian. My kernel was not booting earlier as I was booting wrong image. With new ISO image, still I did not get login prompt yet:(. Debugging the issue.
On Mon, May 27, 2013 at 4:36 PM, Giridhara RP (grp) <grp@cisco.com> wrote:
Thanks Jonthan/Santosa,
I could make a ISO image with Debian. My kernel was not booting earlier as I was booting wrong image. With new ISO image, still I did not get login prompt yet:(. Debugging the issue.
Glad you made it :) good luck -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
Hi :) On Fri, May 24, 2013 at 4:45 PM, Giridhara RP (grp) <grp@cisco.com> wrote:
Hi Mulyadi,
Please explain below step which you have mentioned? I have bzImage (64bit) in my x86/boot/. What should I do to create a ISO image.
ISO image? I thought you are just going to create bootable Linux kernel image? BTW, what I meant is execute: make install in the root of your extracted kernel source -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
On Thu, May 23, 2013 at 3:38 PM, Giridhara RP (grp) <grp@cisco.com> wrote:
I did not see any file (vmlinuz-<version>.x86_64) under /boot. I was only looking at bzImage found under <arch>/boot/ . Am I missing something?
Can you look at the 'running' kernel's config to see if it's indeed the one you compiled (provided you enabled support for it during building - see /proc/config.gz)? Eg something like 'CONFIG_X86_64=y' is set. Is the machine you're building on 64-bit or 32-bit? I hope you used a 64bit compiler for building your kernel. HTH, -mandeep
[root@grpRHEL2 linux-2.6.32.60]# pwd /root/lin_2/linux-2.6.32.60 [root@grpRHEL2 linux-2.6.32.60]# find . | grep -i vmlinuz [root@grpRHEL2 linux-2.6.32.60]# [root@grpRHEL2 linux-2.6.32.60]# [root@grpRHEL2 linux-2.6.32.60]# file vmlinux vmlinux: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, not stripped
[root@grpRHEL2 linux-2.6.32.60]# file vmlinux.o vmlinux.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
[root@grpRHEL2 linux-2.6.32.60]# file arch/x86/boot/bzImage arch/x86/boot/bzImage: Linux kernel x86 boot executable bzImage, version 2.6.32.60 (root@grpRHEL2) #1 SM, RO-rootFS, swap_dev 0x3, Normal VGA [root@grpRHEL2 linux-2.6.32.60]# file arch/x86_64/boot/bzImage arch/x86_64/boot/bzImage: symbolic link to `../../x86/boot/bzImage'
-----Original Message----- From: amit mehta [mailto:gmate.amit@gmail.com] Sent: Thursday, May 23, 2013 3:31 PM To: Giridhara RP (grp) Cc: kernelnewbies@kernelnewbies.org Subject: Re: Kernel 64bit
On Thu, May 23, 2013 at 2:45 PM, Giridhara RP (grp) <grp@cisco.com> wrote:
Looks like I copied wrong output in my previous email. Here is the output. Also, what should I do with 'grub'?
5. After boot 'uname -a' , shows this. Linux 2.6.32-60 #1 SMP Mon Mar 25 16:20:30 IST 2013 i686 GNU/Linux
Generally, After building a new kernel, I issue 'update-grub' command on my ubuntu box to add proper entries for the newly built kernel in the grub configuration file, but I think 'make install' will take care of this as well. However, as you've confirmed that you've successfully booted from the newly built kernel, which is still being reported as a 32 bit kernel, therefore we can safely reject the case of incorrect and or missing grub entry.
Do you see compressed x86_64 bit kernel image(vmlinuz-<version>.x86_64) under /boot ? _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
participants (5)
-
amit mehta -
Giridhara RP (grp) -
Jonathan Neuschäfer -
Mandeep Sandhu -
Mulyadi Santosa