LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Kernel compilation don't work (https://www.linuxquestions.org/questions/linux-newbie-8/kernel-compilation-dont-work-4175531778/)

amarquessbr 01-21-2015 05:16 PM

Kernel compilation don't work
 
I have a own compilation of 3.16.2 kernel working fine in my pavilion 14, it is working fine, but the "Ralink corp. RT3290" driver for bluetooth dont is configured, so, I try to compile a new stabtle version, first the 3.16.3 and now the 3.18.3, but it do not boot, what I have to do to get it work?

thank's

peace

jpollard 01-21-2015 10:29 PM

Depends on what went wrong.

We will need a lot more information before diagnosis. What distribution, what platform, what boot procedure, did you update the boot, did you install the kernel, what error messages?

amarquessbr 01-22-2015 05:23 AM

1 Attachment(s)
Quote:

Originally Posted by jpollard (Post 5304841)
Depends on what went wrong.

We will need a lot more information before diagnosis. What distribution, what platform, what boot procedure, did you update the boot, did you install the kernel, what error messages?

First of all, thank you for reply!
Ok...

- The Distribution is Centos 7.
- The platform is a hp pavilion 14 - core i5, x86_64
- The boot procedure is grub2
- Yes, I update the grub with "grub2-install /dev/sda"
- Yes, I got the kernel 3.18.3 from the "kernel.org" website, unpack the tar file normally with root privileges and then configure using "# make menuconfig", because others bad experience with others versions of kernel: "3.16.3", "3.18.3" the last, I do not configure anything, e.g, just save the configuration and then exit, and then I use "# make && make modules_install && make install", after conclude, I update the boot with the grub2-install command.
- The message when I try to boot with the new compiled kernel is:
"[ 0.747342] sound hdaudioC0D0: No codec parser is avalaible
[ 0.751454] sound hdaudioC1D0: No codec parser is avalaible

Entering emergency mode. Exit the Sell to continue
Type "journalctl" to view system logs. ..."

so i type exit in the prompt, the appear:

"systemd-fsk[1971]: /sbin/fsk.xfs: XFS file system. ..."

but my atual kernel in this machine is the 3.16.2 with I have compiled it normally using the same way with I try to compile these kernel version which have problem.

the image attached is my terminal when the compilation is concluded

thank's

jpollard 01-22-2015 11:41 AM

What was in the logs? Were the kernel parameters specified in the configuration file the same/similar to the one used by the working kernel?

The codec messages are just warnings - and likely you were getting them with the working kernel too, but I can't tell (someone more familiar with audio configurations might).

It looks (but again I can't tell for sure with systemd) that systemd is hung.

amarquessbr 01-22-2015 12:28 PM

Hi Friend

am pissed with this, because I don't understand why work with a version and not with another, and also because I don't remember what config I made with the 3.16.2 version. No problems, the 3.16.2 is work fine here, the problem is: when the system got a automatic update, the kernel downloaded by it is the 3.10.xxx, and the bluethooth which is not installed and the mouseweel do not work, and it is the reason which I try to compile a more actualized version, so what I need to know specifically is to know what driver I need to choose in the "config screen" to make my hp pavilion 14 work with all your drivers or if have another RHEL based distro which is really actualized by they repositories or maybe I wait for the rpmfusion to public they repositories to the el7 version, if it will be actualize.

peace!

propofol 01-22-2015 01:19 PM

Did you copy the config file from the working version? If not maybe try getting a old config file from /boot or /proc followed by 'make oldconfig'.

amarquessbr 01-22-2015 01:28 PM

Hi @propofol

Ho! So, if I type "make oldconfig" is to get a config file from my running kernel?
I did not know that, ok I will try it

thank you!

peace!

joe_2000 01-22-2015 01:40 PM

Quote:

Originally Posted by amarquessbr (Post 5305139)
Hi @propofol

Ho! So, if I type "make oldconfig" is to get a config file from my running kernel?
I did not know that, ok I will try it

thank you!

peace!

You should first copy the .config of your running kernel into the kernel source directory. You can probably find it in /boot. Make sure that when you copy it to the kernel source dir it's named .config.
Then it will only ask you questions reqarding things that have changed. The default choice is typically fine.
I would recommend to first try an get the kernel compiled and running that you want to use.
Then start tinkering with settings to get additional drivers running.
Go step by step.

amarquessbr 01-22-2015 07:21 PM

1 Attachment(s)
thank's for all
special thank for @joe_2000, your tip make this shit work, (hahaha):)!!!


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