LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   problem inststalling kernel (https://www.linuxquestions.org/questions/linux-kernel-70/problem-inststalling-kernel-4175614121/)

philopwalgrep 09-19-2017 03:13 PM

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?

Ztcoracat 09-19-2017 05:44 PM

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

philopwalgrep 09-20-2017 02:43 AM

thanks for the link!
really helpfull

Ztcoracat 09-20-2017 10:50 AM

You're Welcome:-

Good luck-;)

!!! 09-21-2017 03:04 AM

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:idea:

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


All times are GMT -5. The time now is 04:31 AM.