Thread (8 messages) 8 messages, 6 authors, 2017-01-31

How do you generate the config file?

From: Abel <hidden>
Date: 2017-01-30 22:06:29

Possibly related (same subject, not in this thread)

I'd start saying that you should open a new thread for this issue, but,
doesn't matter...

What's that greg kroah repo you're talking about?

rc3+ looks like it's the kernel version you've already built, which is
likely the default configured kernel that doesn't work for you.
Try to boot the most recent generic kernel, they come with your linux
distro and they should work.
To change the default kernel that boots, search for help/tutorials about
grub configuration in Internet.



Saludos,

*                                                        Abel.*

On 30 January 2017 at 22:51, srishti sharma [off-list ref] wrote:
After cloning greg kroah hartman's repository from the tutorial , I am
not able to boot into any kernel by default and have to choose from
advanced ubuntu options  from the grub menu . In the advanced ubuntu
options I see generic kernels ,and one rc3+ kernel . I think that's
the one I need to boot in . Am I wrong ? Also when I am trying to boot
in the rc3+ kernel my computer gets stuck and I am unable to boot .
What do I do ? Please help me .

On Mon, Jan 30, 2017 at 9:34 AM, Pranay Srivastava [off-list ref]
wrote:
quoted
On Mon, Jan 30, 2017 at 6:04 AM, Abel [off-list ref] wrote:
quoted
Yes, similar procedure I've followed.
I didn't forget step 4. I actually always did `sudo make
install_modules`. I'm not sure what's going on.
quoted
quoted
Maybe it has sth to do with Ubuntu, that's why specifically mention I
was using Ubuntu.
quoted
quoted
Maybe I can try with some other distro. Probably Manjaro has better
support for latest kernel releases.
quoted
quoted
It's late here. I'll keep trying and let you know in case I figure out
sth.
quoted
Ok so probably some modules got missed while building your custom kernel.
Perhaps you can zcat /boot/config-$(uname -r)
and store it as .config to your custom
kernel source location?

Then probably try and remove what you don't need? and see if it works.
quoted
On Jan 30, 2017 1:27 AM, "Guru Das S" [off-list ref] wrote:

On 29 January 2017 at 16:19, Abel [off-list ref] wrote:
quoted
I've posted a mail with the screenshot (waiting for moderation) when
I try
quoted
quoted
quoted
to boot from make defconfig built kernel. Basically the kernel
doesn't boot
quoted
quoted
quoted
because "Missing modules (cat /proc/modules; ls /dev " it says...It's
the
quoted
quoted
quoted
same screen that appeared when I tried using make oldconfig pressing
enter
quoted
quoted
quoted
for default values.

I tried using make localmodconfig but It again asks for many config
params
quoted
quoted
quoted
that I don't know anything about.

Saludos,

                                                       Abel.
Hi Abel,

The procedure I followed in order to compile, install and boot my
custom compiled kernel is:

1. Copy .config from existing distribution to kernel tree.

2. Run make localmodconfig (I also got a bunch of prompts for
parameters I had no idea about. I just pressed down Enter till the
stream of options stopped flowing!)

3. Run make -j<N> where N is a good number for your system.

4. Run make modules_install

5. Run make install (This ran update-grub for me at the end, though,
which was convenient)

That's it. I was able to boot into this newly compiled kernel via
grub's selection menu upon rebooting. I think you may have missed
doing Step 4 above.


Guru Das Srinagesh.

quoted
On 30 January 2017 at 01:11, Abel [off-list ref] wrote:
quoted
Hi.

I just built using make defconfig and it, again, doesn't boot.
Instead it
quoted
quoted
quoted
quoted
displays the error that I've described before (sorry I forgot to
attach the
quoted
quoted
quoted
quoted
screenshot, I attach it here).

As I already stated, neither /boot/${uname -r} nor make oldconfig
work for
quoted
quoted
quoted
quoted
me, they both show the screen above.

Saludos,

                                                       Abel.

On 30 January 2017 at 01:08, Guru Das S [off-list ref] wrote:
quoted
On 29 January 2017 at 15:32, ??? [off-list ref] wrote:
quoted
Hello,
    If you want to reuse the config of current kernel, you can use
`make oldconfig` to generate config file.

--
My best regards to you.

     No System Is Safe!
     Dongliang Mu

2017-01-29 18:24 GMT-05:00 Ozgur Karatas [off-list ref]:
quoted
Hello,

you can get .config files in two ways, firstly get the existing
.config file
and compile to kernel.

$ cp /boot/config-x.x.x /bla/linux/.config

Second, use the generate command:

$ make defconfig

Regards,

~Ozgur

30.01.2017, 01:18, "Abel" [off-list ref]:

Hi!

Where do you get the config file from? or do you generate it
yourself?
quoted
quoted
quoted
quoted
quoted
quoted
quoted
I'm using xUbuntu 16.04 in a VM inside VMWare, following the
instructions
described in kernelnewbies wiki. (By the way, the download links
to
quoted
quoted
quoted
quoted
quoted
quoted
quoted
the iso
images of Ubuntu don't work for me)

If I copy the latest config file in /boot, kernel 4.4.0, it
starts to
quoted
quoted
quoted
quoted
quoted
quoted
quoted
ask me
many config parameters that I don't know what to answer. I tried
to
quoted
quoted
quoted
quoted
quoted
quoted
quoted
press
always <enter> to set up the default parameters, but after
compiling I
quoted
quoted
quoted
quoted
quoted
quoted
quoted
get
an error trying to boot from that kernel (see atachment).

I tried with make menuconfig and that seems to work, but it
takes too
quoted
quoted
quoted
quoted
quoted
quoted
quoted
long
because it builds and includes many many drivers modules.
Yeah, I know I could navigate through the ncurses window and
select
quoted
quoted
quoted
quoted
quoted
quoted
quoted
the
stuff I want and deselect what I don't want, but I'd rather
prefer
quoted
quoted
quoted
quoted
quoted
quoted
quoted
just a
simple config file that builds and works and don't waste time in
understanding all the stuff that it's in there.

So, isn't there a way to get a simple config file just to develop
kernel
stuff for an Ubuntu image?
I've even gone to the kernel ppa sources for Ubuntu:
http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9.5/; but it
only
quoted
quoted
quoted
quoted
quoted
quoted
quoted
provides
a patch using the debian config files (which don't come from git
sources of
course).

I just want a config file, copy it to the kernel root code and
compile.

Greetings,

                                                       Abel


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Hi Abel,

To add to what Ozgur said, you may first copy the existing .config
file that comes along with your Linux distribution to your kernel
tree, and then use:

$ make localmodconfig

instead of defconfig. A quick Google search should tell you the
differences between the two - and from what I've read,
localmodconfig
quoted
quoted
quoted
quoted
quoted
is preferred to defconfig.

Hope this helps.


Guru Das Srinagesh.


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


--
        ---P.K.S

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20170130/5e47d27e/attachment-0001.html 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help