LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-06-2015, 09:42 PM   #1
caveman86
Member
 
Registered: Nov 2014
Location: Adelaide, South Australia
Distribution: Slackware 14.1 x64, LFS 7.6 x64
Posts: 83

Rep: Reputation: 8
Building a kernel from source


Hello everyone I am severely frustrated as I have built kernels in other distributions such as Slackware and Fedora but never had such greif as I am having with Ubuntu... Story goes I decided I will install Ubuntu 14.04 x64 anyhow as I am trying it out one of the things I like to do is build my own kernel from scratch from source code from Kernel.org anyhow im configuring and building my kernel no worries but when it comes to boot time I select my new kernel from the boot menu and it just hangs then drops down to a shell no errors nothing. I followed the information here and am still stuck some help would be greatly appreciated as this is really frustrating me otherwise my Ubuntu experience is quite enjoyable. Thanks in advance
 
Old 01-06-2015, 10:40 PM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
You should use Ubuntu kernel sources. I use generic kernels from kernel.org when I am building LFS/CLFS.
 
1 members found this post helpful.
Old 01-07-2015, 03:31 AM   #3
caveman86
Member
 
Registered: Nov 2014
Location: Adelaide, South Australia
Distribution: Slackware 14.1 x64, LFS 7.6 x64
Posts: 83

Original Poster
Rep: Reputation: 8
I like to build my own kernels as I tend to get much better performance on my other distro's and I save a heap of RAM for example with a generica kernel and the Mate desktop environment with slackware 14.1 x64 on a generic kernel I use around 600Mb of ram with a custom built kernel I use only 250 Mb of ram its why I don't use generic kernels as I mentioned I get better performance especially out of my older machines never had this trouble with Slackware or Fedora anyhow I may be onto the problem I am compiling a kernel now I will report back if I have fixed the issue and what caused it
 
Old 01-07-2015, 06:42 AM   #4
caveman86
Member
 
Registered: Nov 2014
Location: Adelaide, South Australia
Distribution: Slackware 14.1 x64, LFS 7.6 x64
Posts: 83

Original Poster
Rep: Reputation: 8
Here is a image that might shed some light on the subject I never had this issue with Slackware or even FreeBSD I thought i'd give Ubuntu a whirl but it uses way too much resources and is quite sluggish so I thought I will do what I do with all my other Linux Os's is compile a kernel and that is where I get most of my performance gain just in that but anyhow hope this may give someone a clue that I can't work out

http://i76.photobucket.com/albums/j1...ps202584bf.png

Last edited by caveman86; 01-07-2015 at 06:48 AM.
 
Old 01-07-2015, 06:52 AM   #5
caveman86
Member
 
Registered: Nov 2014
Location: Adelaide, South Australia
Distribution: Slackware 14.1 x64, LFS 7.6 x64
Posts: 83

Original Poster
Rep: Reputation: 8
I just want to show this is my Slackware 14.1 x64 system with the mate Desktop environment on idle this is really good even when I was running with KDE i was getting around 300Mb idle so with Ubuntu I should get rougly the same with just the kernel built the way I like it
http://i76.photobucket.com/albums/j1...pseb8d91a7.png
 
Old 01-07-2015, 08:36 AM   #6
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
Do you still have old generic kernel/initramfs at /boot directory and menuentry in Grub menu for this old kernel?
If so you could compare this old menuentry and new one for possible difference.

And where did you get your .config?
 
Old 01-07-2015, 10:05 PM   #7
caveman86
Member
 
Registered: Nov 2014
Location: Adelaide, South Australia
Distribution: Slackware 14.1 x64, LFS 7.6 x64
Posts: 83

Original Poster
Rep: Reputation: 8
I got my .config from the generic installed kernel I did the same mods as I did when I did make xconfig as I do when I make my Slackware kernels I even tried a default .config that come with the stock kernel from kernel.org and no luck it is really frustrating I have been a bit busy and am still researching and trying to work out where it is going wrong I am careful not to exclude sata or even scsi and ide drivers I will go through and compare I didn't think of comparing I must of accidently un checked a driver as I noticed on the bootup of the single user mode kernel it stops just after usb devices that is where it stops not that it will be much help I will keep hacking away and will see if i can provide some more info it is really frustrating that is for sure
 
Old 01-07-2015, 10:07 PM   #8
caveman86
Member
 
Registered: Nov 2014
Location: Adelaide, South Australia
Distribution: Slackware 14.1 x64, LFS 7.6 x64
Posts: 83

Original Poster
Rep: Reputation: 8
Actually wondering if I could use my .config from my Slackware kernel that works fine if that might work? as that is working perfect and that is how I got my system running so efficient on resources ?
 
Old 01-07-2015, 10:12 PM   #9
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

since you are having trouble I suggest you start with the config from a standard Ubuntu kernel for your system, the kernel source from the Ubuntu linux-source package and to use the make-kpkg method. Once you have established that you can get to work you might consider using the upstream source from kernel.org. I'm not sure how heavily Ubuntu patches their kernels and what if anything in their userland depends on those patches.

Evo2.
 
Old 01-08-2015, 01:17 AM   #10
caveman86
Member
 
Registered: Nov 2014
Location: Adelaide, South Australia
Distribution: Slackware 14.1 x64, LFS 7.6 x64
Posts: 83

Original Poster
Rep: Reputation: 8
I think that might be my only option I have been having great success with slackware for a long long time using the upstream kernels I even use rc kernels just for fun and no issue but for some reason it refuses to work for me so I might have to take your advice and give that a go and sit back and work out where my problem has been thank you for the suggestion it has been a frustrating few days I am familiar with Ubuntu butI have been using slackware for many many years and I only play around with Ubuntu as I like to test out other distros or for this case I am installing Ubuntu as it works well with my Android.... All good thanks I will use the standard Ubuntu kernels and work with that for the moment Cheers
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Building an out-of-tree module without building the kernel source lijodevasia Linux - General 2 08-01-2013 12:45 AM
Building a kernel from source. cod_liver_0il Slackware 21 11-01-2012 07:13 AM
Building largesmp kernel from source maxy7710 Linux - Newbie 3 09-08-2009 05:17 AM
Building kernel module from multiple source file in 2.6 kernel yogeshwar_s Programming 1 12-20-2004 09:31 AM
help for building a kernel from source sh4d0w331 Slackware 5 09-28-2004 01:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration