LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* Re: ubuntu boot problem after compiling new kernel
@ 2011-02-11 23:00 Matt
  2011-02-13 10:05 ` Amirali Shambayati
  0 siblings, 1 reply; 6+ messages in thread
From: Matt @ 2011-02-11 23:00 UTC (permalink / raw)
  To: Amirali Shambayati; +Cc: Linux Kernel, Anca Emanuel, Chris Ball

>Thanks Chris and Anca,

>I tried to compile latest kernel(2.6.37). but I receive an assembly
>error: /include/trace/events/kmem.h:45: undefined reference to
>'.L1747'. I didn't have any error at linux-2.6.18.1 compilation. I
>read somewhere that kernel should be compiled by gcc-3.4 .  Thus I
>used gcc-3.4 to compile. Do you think it's a compiler issue? Should I
>use another gcc version?
>Sorry for asking stupid questions from you experts. I'm a newbie at
>working with kernel.

>Thanks in advance

Hi Amirali,

perhaps for 2.6.18* gcc-3.4* is used

but with 2.6.37 you could use the included gcc-4.4.3 (in Ubuntu 10.04)
and gcc-4.4.4
(according to http://distrowatch.com/table.php?distribution=ubuntu)

that worked fine for me in the past.

I don't know if you have full access to it but:

help.ubuntu.com - which is a sort of wiki for Ubuntu can be very
helpful in those things :)


https://help.ubuntu.com/community/Kernel/Compile

might help


If a pre-built vanilla-kernel is alright for you, you can also use the
ones provided by Ubuntu:

http://lwn.net/Articles/321473/
https://wiki.ubuntu.com/Kernel/MainlineBuilds?action=show&redirect=KernelMainlineBuilds


I hope that's what you're looking for


Regards

Matt

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ubuntu boot problem after compiling new kernel
  2011-02-11 23:00 ubuntu boot problem after compiling new kernel Matt
@ 2011-02-13 10:05 ` Amirali Shambayati
  0 siblings, 0 replies; 6+ messages in thread
From: Amirali Shambayati @ 2011-02-13 10:05 UTC (permalink / raw)
  To: Matt; +Cc: Linux Kernel, Anca Emanuel, Chris Ball

Thanks Matt,

https://help.ubuntu.com/community/Kernel/Compile  worked for me :)

On Sat, Feb 12, 2011 at 2:30 AM, Matt <jackdachef@gmail.com> wrote:
>>Thanks Chris and Anca,
>
>>I tried to compile latest kernel(2.6.37). but I receive an assembly
>>error: /include/trace/events/kmem.h:45: undefined reference to
>>'.L1747'. I didn't have any error at linux-2.6.18.1 compilation. I
>>read somewhere that kernel should be compiled by gcc-3.4 .  Thus I
>>used gcc-3.4 to compile. Do you think it's a compiler issue? Should I
>>use another gcc version?
>>Sorry for asking stupid questions from you experts. I'm a newbie at
>>working with kernel.
>
>>Thanks in advance
>
> Hi Amirali,
>
> perhaps for 2.6.18* gcc-3.4* is used
>
> but with 2.6.37 you could use the included gcc-4.4.3 (in Ubuntu 10.04)
> and gcc-4.4.4
> (according to http://distrowatch.com/table.php?distribution=ubuntu)
>
> that worked fine for me in the past.
>
> I don't know if you have full access to it but:
>
> help.ubuntu.com - which is a sort of wiki for Ubuntu can be very
> helpful in those things :)
>
>
> https://help.ubuntu.com/community/Kernel/Compile
>
> might help
>
>
> If a pre-built vanilla-kernel is alright for you, you can also use the
> ones provided by Ubuntu:
>
> http://lwn.net/Articles/321473/
> https://wiki.ubuntu.com/Kernel/MainlineBuilds?action=show&redirect=KernelMainlineBuilds
>
>
> I hope that's what you're looking for
>
>
> Regards
>
> Matt
>



-- 
Amirali Shambayati
Bachelor Student
Computer Engineering Department
Sharif University of Technology
Tehran, Iran

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ubuntu boot problem after compiling new kernel
  2011-02-10  8:11 ` Anca Emanuel
@ 2011-02-11 16:55   ` Amirali Shambayati
  0 siblings, 0 replies; 6+ messages in thread
From: Amirali Shambayati @ 2011-02-11 16:55 UTC (permalink / raw)
  To: Anca Emanuel; +Cc: linux-kernel

Thanks Chris and Anca,

I tried to compile latest kernel(2.6.37). but I receive an assembly
error: /include/trace/events/kmem.h:45: undefined reference to
'.L1747'. I didn't have any error at linux-2.6.18.1 compilation. I
read somewhere that kernel should be compiled by gcc-3.4 .  Thus I
used gcc-3.4 to compile. Do you think it's a compiler issue? Should I
use another gcc version?
Sorry for asking stupid questions from you experts. I'm a newbie at
working with kernel.

Thanks in advance

On Thu, Feb 10, 2011 at 11:41 AM, Anca Emanuel <anca.emanuel@gmail.com> wrote:
> On Thu, Feb 10, 2011 at 12:00 AM, Amirali Shambayati
> <amirali.shambayati@gmail.com> wrote:
>> Hello all,
>> I compiled a new kernel according to
>> http://www.howtoforge.com/kernel_compilation_ubuntu instructions. The
>> kernel version is 2.6.18.1 and I did it in ubuntu 10.04 installed on
> [snip]
>> Your help is appreciated. It's more than a week that I'm looking for a
>> solution. :-s
>
> Use this tutorial: https://wiki.ubuntu.com/KernelTeam/GitKernelBuild
>



-- 
Amirali Shambayati
Bachelor Student
Computer Engineering Department
Sharif University of Technology
Tehran, Iran

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ubuntu boot problem after compiling new kernel
  2011-02-09 22:00 Amirali Shambayati
  2011-02-09 22:11 ` Chris Ball
@ 2011-02-10  8:11 ` Anca Emanuel
  2011-02-11 16:55   ` Amirali Shambayati
  1 sibling, 1 reply; 6+ messages in thread
From: Anca Emanuel @ 2011-02-10  8:11 UTC (permalink / raw)
  To: Amirali Shambayati; +Cc: linux-kernel

On Thu, Feb 10, 2011 at 12:00 AM, Amirali Shambayati
<amirali.shambayati@gmail.com> wrote:
> Hello all,
> I compiled a new kernel according to
> http://www.howtoforge.com/kernel_compilation_ubuntu instructions. The
> kernel version is 2.6.18.1 and I did it in ubuntu 10.04 installed on
[snip]
> Your help is appreciated. It's more than a week that I'm looking for a
> solution. :-s

Use this tutorial: https://wiki.ubuntu.com/KernelTeam/GitKernelBuild

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ubuntu boot problem after compiling new kernel
  2011-02-09 22:00 Amirali Shambayati
@ 2011-02-09 22:11 ` Chris Ball
  2011-02-10  8:11 ` Anca Emanuel
  1 sibling, 0 replies; 6+ messages in thread
From: Chris Ball @ 2011-02-09 22:11 UTC (permalink / raw)
  To: Amirali Shambayati; +Cc: linux-kernel

Hi,

On Thu, Feb 10, 2011 at 01:30:56AM +0330, Amirali Shambayati wrote:
> Hello all,
> I compiled a new kernel according to
> http://www.howtoforge.com/kernel_compilation_ubuntu instructions. The
> kernel version is 2.6.18.1 and I did it in ubuntu 10.04 installed on
> Virtualbox. But by choosing this kernel at grub, it gives this error:
> 
> libudev: udev_monitor_new_from_netlink: error getting socket: Invalid argument

2.6.18.1 is more than 4 years old.  Ubuntu 10.04 requires 2.6.32 or higher.
You need to use a newer kernel.

-- 
Chris Ball   <cjb@laptop.org>   <http://printf.net/>
One Laptop Per Child

^ permalink raw reply	[flat|nested] 6+ messages in thread

* ubuntu boot problem after compiling new kernel
@ 2011-02-09 22:00 Amirali Shambayati
  2011-02-09 22:11 ` Chris Ball
  2011-02-10  8:11 ` Anca Emanuel
  0 siblings, 2 replies; 6+ messages in thread
From: Amirali Shambayati @ 2011-02-09 22:00 UTC (permalink / raw)
  To: linux-kernel

Hello all,
I compiled a new kernel according to
http://www.howtoforge.com/kernel_compilation_ubuntu instructions. The
kernel version is 2.6.18.1 and I did it in ubuntu 10.04 installed on
Virtualbox. But by choosing this kernel at grub, it gives this error:

libudev: udev_monitor_new_from_netlink: error getting socket: Invalid argument
Segmentation fault
Gave up waiting for root device. common problems:
-Boot args (cat /proc/cmdline)
    -check rootdelay=(did the system wait long enough?)
    -check root=(did the system wait for the right device?)
-Missing modules (cat /proc/modules:  ls /dev)
ALERT! /dev/sda1 does not exist. Dropping to a shell!

I googled it and I looked for solution in many forums. I found some
solutions, but none of them worked for me :(
Such as checking if root device in grub is right for this kernel...
adding rootdelay=...  to kernel line ... update-initramfs, adding
all_generic_ide to kernel line,...

My main kernel version is 2.6.32.21

Your help is appreciated. It's more than a week that I'm looking for a
solution. :-s


-- 
Amirali Shambayati
Bachelor Student
Computer Engineering Department
Sharif University of Technology
Tehran, Iran

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-02-13 10:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-11 23:00 ubuntu boot problem after compiling new kernel Matt
2011-02-13 10:05 ` Amirali Shambayati
  -- strict thread matches above, loose matches on Subject: below --
2011-02-09 22:00 Amirali Shambayati
2011-02-09 22:11 ` Chris Ball
2011-02-10  8:11 ` Anca Emanuel
2011-02-11 16:55   ` Amirali Shambayati

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).