LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-19-2017, 04:13 PM   #1
philopwalgrep
LQ Newbie
 
Registered: Sep 2017
Posts: 3

Rep: Reputation: Disabled
Smile problem inststalling kernel


Hello,

I am trying to compile a kernel for the first time.
I downloaded the latest version and untard it in /usr/src
Then i did: make menuconfig, make, make modules, mmake modules_install and make install.
But i got this in return
Code:
bash-4.3# make install
sh ./arch/x86/boot/install.sh 4.14.0-rc1 arch/x86/boot/bzImage \
        System.map "/boot"
CONFIG_MODULES=y
I again don't know what version: 4.14.0-rc1 is
/sbin/installkernel: line 31: return: can only `return' from a function or sourced script
bash-4.3#
I dont know much stuff about compiling and google wasnt really helpfull either so thats why i registered here to make a post.
Does anyone know what the problem is or where i have to look to see whats going wrong?
 
Old 09-19-2017, 06:44 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,967
Blog Entries: 13

Rep: Reputation: Disabled
There could be numerous places where things went wrong and btw, I'm not a kernel expert and I've never had to install a new kernel.

There are thousands of ways to configure a kernel. W/O experience with configuring a kernel you should start with a solid base config and modify it.

If the compilation gives an 'error' check the configuration. Most Compile Errors are usually caused by fault .conffile.

I would follow this guide.
http://www.berkes.ca/guides/linux_kernel.html
 
Old 09-20-2017, 03:43 AM   #3
philopwalgrep
LQ Newbie
 
Registered: Sep 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Smile

thanks for the link!
really helpfull
 
Old 09-20-2017, 11:50 AM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,967
Blog Entries: 13

Rep: Reputation: Disabled
You're Welcome:-

Good luck-
 
Old 09-21-2017, 04:04 AM   #5
!!!
Member
 
Registered: Jan 2017
Posts: 636

Rep: Reputation: 245Reputation: 245Reputation: 245
Welcome to LQ!!! Did you get it resolved?

How about 4.13.3 instead of 'today's rc=release candidate!?
Or pkg from your distro; what distro & version?

You could have a look at that script, around line 31

Try https://kernelnewbies.org/KernelBuild
(that prior link was 12 years old)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Problem Kernel Panic error 3.3.6 ZEN kernel Debian 6 Squeeze? Vita Linux - Kernel 10 05-25-2012 08:27 PM
[SOLVED] lilo says my 2.6 kernel image is to large&new problem kernel will not boot smeezekitty Linux - Newbie 3 10-13-2009 09:41 PM
compiling kernel problem --- Kernel panic: unable to mount root fs ........ anthonymts123 Linux - General 5 07-31-2006 03:29 AM
Need help inststalling Lineak...............PLEASE........ :-( Theoutdoorsman Linux - Software 8 04-11-2004 03:35 AM
Linux Kernel Problem -- Kernel panic: CPU context corrupt crcooney Linux - Distributions 0 01-15-2004 09:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:50 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration