* Kernel 64bit
@ 2013-05-23 4:46 Giridhara RP (grp)
2013-05-23 9:10 ` amit mehta
0 siblings, 1 reply; 12+ messages in thread
From: Giridhara RP (grp) @ 2013-05-23 4:46 UTC (permalink / raw)
To: kernelnewbies
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 at 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 at grpRHEL2 boot]# pwd
/root/lin_2/linux-2.6.32.60/arch/x86_64/boot
[root at grpRHEL2 boot]# file bzImage
bzImage: symbolic link to `../../x86/boot/bzImage'
[root at grpRHEL2 boot]# file ../../x86/boot/bzImage
../../x86/boot/bzImage: Linux kernel x86 boot executable bzImage, version 2.6.32.60 (root at 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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Kernel 64bit
2013-05-23 4:46 Kernel 64bit Giridhara RP (grp)
@ 2013-05-23 9:10 ` amit mehta
2013-05-23 9:15 ` Giridhara RP (grp)
0 siblings, 1 reply; 12+ messages in thread
From: amit mehta @ 2013-05-23 9:10 UTC (permalink / raw)
To: kernelnewbies
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 at 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 at grpRHEL2 boot]# pwd
> /root/lin_2/linux-2.6.32.60/arch/x86_64/boot
> [root at grpRHEL2 boot]# file bzImage
> bzImage: symbolic link to `../../x86/boot/bzImage'
> [root at grpRHEL2 boot]# file ../../x86/boot/bzImage
> ../../x86/boot/bzImage: Linux kernel x86 boot executable bzImage, version 2.6.32.60 (root at 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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Kernel 64bit
2013-05-23 9:10 ` amit mehta
@ 2013-05-23 9:15 ` Giridhara RP (grp)
2013-05-23 10:01 ` amit mehta
0 siblings, 1 reply; 12+ messages in thread
From: Giridhara RP (grp) @ 2013-05-23 9:15 UTC (permalink / raw)
To: kernelnewbies
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 at gmail.com]
Sent: Thursday, May 23, 2013 2:40 PM
To: Giridhara RP (grp)
Cc: kernelnewbies at 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 at 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 at grpRHEL2 boot]# pwd
> /root/lin_2/linux-2.6.32.60/arch/x86_64/boot
> [root at grpRHEL2 boot]# file bzImage
> bzImage: symbolic link to `../../x86/boot/bzImage'
> [root at grpRHEL2 boot]# file ../../x86/boot/bzImage
> ../../x86/boot/bzImage: Linux kernel x86 boot executable bzImage,
> version 2.6.32.60 (root at 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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Kernel 64bit
2013-05-23 9:15 ` Giridhara RP (grp)
@ 2013-05-23 10:01 ` amit mehta
2013-05-23 10:08 ` Giridhara RP (grp)
0 siblings, 1 reply; 12+ messages in thread
From: amit mehta @ 2013-05-23 10:01 UTC (permalink / raw)
To: kernelnewbies
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 ?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Kernel 64bit
2013-05-23 10:01 ` amit mehta
@ 2013-05-23 10:08 ` Giridhara RP (grp)
2013-05-24 6:44 ` Mulyadi Santosa
2013-05-24 6:53 ` Mandeep Sandhu
0 siblings, 2 replies; 12+ messages in thread
From: Giridhara RP (grp) @ 2013-05-23 10:08 UTC (permalink / raw)
To: kernelnewbies
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 at grpRHEL2 linux-2.6.32.60]# pwd
/root/lin_2/linux-2.6.32.60
[root at grpRHEL2 linux-2.6.32.60]# find . | grep -i vmlinuz
[root at grpRHEL2 linux-2.6.32.60]#
[root at grpRHEL2 linux-2.6.32.60]#
[root at grpRHEL2 linux-2.6.32.60]# file vmlinux
vmlinux: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, not stripped
[root at grpRHEL2 linux-2.6.32.60]# file vmlinux.o
vmlinux.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
[root at 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 at grpRHEL2) #1 SM, RO-rootFS, swap_dev 0x3, Normal VGA
[root at 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 at gmail.com]
Sent: Thursday, May 23, 2013 3:31 PM
To: Giridhara RP (grp)
Cc: kernelnewbies at 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 ?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Kernel 64bit
2013-05-23 10:08 ` Giridhara RP (grp)
@ 2013-05-24 6:44 ` Mulyadi Santosa
2013-05-24 9:45 ` Giridhara RP (grp)
2013-05-24 6:53 ` Mandeep Sandhu
1 sibling, 1 reply; 12+ messages in thread
From: Mulyadi Santosa @ 2013-05-24 6:44 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Kernel 64bit
2013-05-23 10:08 ` Giridhara RP (grp)
2013-05-24 6:44 ` Mulyadi Santosa
@ 2013-05-24 6:53 ` Mandeep Sandhu
1 sibling, 0 replies; 12+ messages in thread
From: Mandeep Sandhu @ 2013-05-24 6:53 UTC (permalink / raw)
To: kernelnewbies
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 at grpRHEL2 linux-2.6.32.60]# pwd
> /root/lin_2/linux-2.6.32.60
> [root at grpRHEL2 linux-2.6.32.60]# find . | grep -i vmlinuz
> [root at grpRHEL2 linux-2.6.32.60]#
> [root at grpRHEL2 linux-2.6.32.60]#
> [root at grpRHEL2 linux-2.6.32.60]# file vmlinux
> vmlinux: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically
> linked, not stripped
>
> [root at grpRHEL2 linux-2.6.32.60]# file vmlinux.o
> vmlinux.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not
> stripped
>
> [root at 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 at grpRHEL2) #1 SM, RO-rootFS, swap_dev 0x3, Normal VGA
> [root at 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 at gmail.com]
> Sent: Thursday, May 23, 2013 3:31 PM
> To: Giridhara RP (grp)
> Cc: kernelnewbies at 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 at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130524/27500c9b/attachment.html
^ permalink raw reply [flat|nested] 12+ messages in thread
* Kernel 64bit
2013-05-24 6:44 ` Mulyadi Santosa
@ 2013-05-24 9:45 ` Giridhara RP (grp)
2013-05-26 0:01 ` Jonathan Neuschäfer
2013-05-27 3:25 ` Mulyadi Santosa
0 siblings, 2 replies; 12+ messages in thread
From: Giridhara RP (grp) @ 2013-05-24 9:45 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Kernel 64bit
2013-05-24 9:45 ` Giridhara RP (grp)
@ 2013-05-26 0:01 ` Jonathan Neuschäfer
2013-05-27 9:36 ` Giridhara RP (grp)
2013-05-27 3:25 ` Mulyadi Santosa
1 sibling, 1 reply; 12+ messages in thread
From: Jonathan Neuschäfer @ 2013-05-26 0:01 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Kernel 64bit
2013-05-24 9:45 ` Giridhara RP (grp)
2013-05-26 0:01 ` Jonathan Neuschäfer
@ 2013-05-27 3:25 ` Mulyadi Santosa
1 sibling, 0 replies; 12+ messages in thread
From: Mulyadi Santosa @ 2013-05-27 3:25 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Kernel 64bit
2013-05-26 0:01 ` Jonathan Neuschäfer
@ 2013-05-27 9:36 ` Giridhara RP (grp)
2013-05-28 6:51 ` Mulyadi Santosa
0 siblings, 1 reply; 12+ messages in thread
From: Giridhara RP (grp) @ 2013-05-27 9:36 UTC (permalink / raw)
To: kernelnewbies
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.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Kernel 64bit
2013-05-27 9:36 ` Giridhara RP (grp)
@ 2013-05-28 6:51 ` Mulyadi Santosa
0 siblings, 0 replies; 12+ messages in thread
From: Mulyadi Santosa @ 2013-05-28 6:51 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2013-05-28 6:51 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-23 4:46 Kernel 64bit Giridhara RP (grp)
2013-05-23 9:10 ` amit mehta
2013-05-23 9:15 ` Giridhara RP (grp)
2013-05-23 10:01 ` amit mehta
2013-05-23 10:08 ` Giridhara RP (grp)
2013-05-24 6:44 ` Mulyadi Santosa
2013-05-24 9:45 ` Giridhara RP (grp)
2013-05-26 0:01 ` Jonathan Neuschäfer
2013-05-27 9:36 ` Giridhara RP (grp)
2013-05-28 6:51 ` Mulyadi Santosa
2013-05-27 3:25 ` Mulyadi Santosa
2013-05-24 6:53 ` Mandeep Sandhu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.