Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 09-19-2017, 03:13 PM   #1
LQ Newbie
Registered: Sep 2017
Posts: 4

Rep: Reputation: Disabled
Smile problem inststalling kernel


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
bash-4.3# make install
sh ./arch/x86/boot/ 4.14.0-rc1 arch/x86/boot/bzImage \ "/boot"
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
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, 05:44 PM   #2
LQ Guru
Registered: Dec 2011
Distribution: Slackware
Posts: 8,223
Blog Entries: 14

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.
Old 09-20-2017, 02:43 AM   #3
LQ Newbie
Registered: Sep 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled

thanks for the link!
really helpfull
Old 09-20-2017, 10:50 AM   #4
LQ Guru
Registered: Dec 2011
Distribution: Slackware
Posts: 8,223
Blog Entries: 14

Rep: Reputation: Disabled
You're Welcome:-

Good luck-
Old 09-21-2017, 03:04 AM   #5
Registered: Jan 2017
Posts: 666

Rep: Reputation: 288Reputation: 288Reputation: 288
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

(that prior link was 12 years old)


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 07: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 08:41 PM
compiling kernel problem --- Kernel panic: unable to mount root fs ........ anthonymts123 Linux - General 5 07-31-2006 02:29 AM
Need help inststalling Lineak...............PLEASE........ :-( Theoutdoorsman Linux - Software 8 04-11-2004 02:35 AM
Linux Kernel Problem -- Kernel panic: CPU context corrupt crcooney Linux - Distributions 0 01-15-2004 08:48 AM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:11 PM.

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