All of lore.kernel.org
 help / color / mirror / Atom feed
From: akronix5@gmail.com (Abel)
To: kernelnewbies@lists.kernelnewbies.org
Subject: How do you generate the config file?
Date: Mon, 30 Jan 2017 01:19:34 +0100	[thread overview]
Message-ID: <CAHuDkTFvBzU2HsYmnPqbnD6RL+v+3LMC87d6DAN79F4aj-_fyw@mail.gmail.com> (raw)
In-Reply-To: <CAHuDkTFW1j39B_xrZxGUBjWyeMskArz6-vd_z+s2OYBkUy7Q3Q@mail.gmail.com>

I've posted a mail with the screenshot (waiting for moderation) when I try
to boot from make defconfig built kernel. Basically the kernel doesn't boot
because "Missing modules (cat /proc/modules; ls /dev " it says...It's the
same screen that appeared when I tried using make oldconfig pressing enter
for default values.

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

Saludos,

*                                                        Abel.*

On 30 January 2017 at 01:11, Abel <akronix5@gmail.com> wrote:

> Hi.
>
> I just built using make defconfig and it, again, doesn't boot. Instead it
> displays the error that I've described before (sorry I forgot to attach the
> screenshot, I attach it here).
>
> As I already stated, neither /boot/${uname -r} nor make oldconfig work for
> me, they both show the screen above.
>
> Saludos,
>
> *                                                        Abel.*
>
> On 30 January 2017 at 01:08, Guru Das S <gurooodas@gmail.com> wrote:
>
>> On 29 January 2017 at 15:32, ??? <mudongliangabcd@gmail.com> wrote:
>> > 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 <mueddib@goosey.org>:
>> >>
>> >> 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" <akronix5@gmail.com>:
>> >>
>> >> Hi!
>> >>
>> >> Where do you get the config file from? or do you generate it yourself?
>> >>
>> >> 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
>> 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
>> ask me
>> >> many config parameters that I don't know what to answer. I tried to
>> press
>> >> always <enter> to set up the default parameters, but after compiling I
>> 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
>> long
>> >> because it builds and includes many many drivers modules.
>> >> Yeah, I know I could navigate through the ncurses window and select the
>> >> stuff I want and deselect what I don't want, but I'd rather prefer
>> 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
>> 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
>> is preferred to defconfig.
>>
>> Hope this helps.
>>
>>
>> Guru Das Srinagesh.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20170130/619661a3/attachment-0001.html 

  parent reply	other threads:[~2017-01-30  0:19 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-29 23:16 How do you generate the config file? Abel
2017-01-29 23:24 ` Ozgur Karatas
2017-01-29 23:32   ` 慕冬亮
2017-01-30  0:08     ` Guru Das S
     [not found]       ` <CAHuDkTFW1j39B_xrZxGUBjWyeMskArz6-vd_z+s2OYBkUy7Q3Q@mail.gmail.com>
2017-01-30  0:19         ` Abel [this message]
2017-01-30  0:27           ` Guru Das S
2017-01-30  0:34             ` Abel
2017-01-30  4:04               ` Pranay Srivastava
2017-01-30 21:51                 ` srishti sharma
2017-01-30 22:06                   ` Abel
2017-01-31  0:16                   ` Jim Davis
2017-01-30  1:23             ` valdis.kletnieks at vt.edu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHuDkTFvBzU2HsYmnPqbnD6RL+v+3LMC87d6DAN79F4aj-_fyw@mail.gmail.com \
    --to=akronix5@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.