Gentoo Archives: gentoo-user

From: Dongliang Mu <mudongliangabcd@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Inquiry about gentoo kernel configuration
Date: Sun, 11 Jul 2021 13:12:19
Message-Id: CAD-N9QWfE9TtGZ0FmevEGYsj4w93wkPzjBN+DsRgGnESdUe8KA@mail.gmail.com
In Reply to: Re: [gentoo-user] Inquiry about gentoo kernel configuration by Ramon Fischer
1 On Sun, Jul 11, 2021 at 1:23 AM Ramon Fischer <Ramon_Fischer@×××××××.de> wrote:
2 >
3 > In addition to this:
4 >
5 > I did some further research about this, since I actually never thought
6 > about getting the Kernel sources without having an installed Gentoo system:
7 >
8 > You may take a look at one of the HTTP mirrors[1], preferably one in
9 > your country and navigate to "/releases/<cpu_architecture>/". There you
10 > will find a Live DVD image - "livedvd-amd64-multilib-20160704.iso" for
11 > example - from which you could boot from; either virtually in VirtualBox
12 > or other virtualisation solutions or directly from hardware.
13 >
14 > Click on "Login" to login and get the Kernel sources from
15 > "/usr/src/linux/.config".
16
17 Thanks for your effort. But it seems such livecd is not maintained
18 anymore. The latest version is 20170118 [1], right?
19
20 [1] http://mirrors.kernel.org/gentoo/releases/amd64/20170118/
21
22 >
23 > -Ramon
24 >
25 > [1] https://www.gentoo.org/downloads/mirrors/
26 >
27 > On 10/07/2021 14:24, William Kenworthy wrote:
28 > > On 10/7/21 7:40 pm, Ramon Fischer wrote:
29 > >> Hello Dongliang,
30 > >>
31 > >> you could retrieve kernel configuration files from a "Minimal
32 > >> Installation CD"[1] of Gentoo. Mount it and look for
33 > >> "/boot/gentoo-config".
34 > >>
35 > >> But I guess, you want a untouched version, don't you?
36 > >>
37 > >> -Ramon
38 > > Hi, to expand on this - Gentoo doesn't really have a standardised kernel
39 > > config - the nearest to that is the above install CD, or the default
40 > > generic catchall "genkernel" one - most people seem to manually
41 > > configurate and tune/customise a .config and then copy it from system to
42 > > system. There are a few bin(ary) kernels in portage/sys-kernel/* that
43 > > might work for you but I have never tried them.
44 > >
45 > > You can boot almost any linux live media on your target hardware and
46 > > extract the config (sysrescuecd is a good one) and use their sources, or
47 > > build the kernel using their config on top of Gentoo's vanilla-sources,
48 > > or gentoo-sources.
49 > >
50 > > Or grab another distros boot directory (containing the kernel, initrd
51 > > and config files), the matching /lib/modules directory and boot that
52 > > instead of building your own (I do this often on uboot based arm systems
53 > > and raspberry pi's.)
54 > >
55 > > Or ask on the list if someone has a config that matches your target
56 > > (occasionally it comes up).
57 > >
58 > > BillK
59 > >
60 > >
61 > >
62 > >
63 > >> [1] https://www.gentoo.org/downloads/
64 > >>
65 > >> On 10/07/2021 11:15, Dongliang Mu wrote:
66 > >>> Hi Gentoo users,
67 > >>>
68 > >>> I am a newbie to Gentoo. For Debian, I can get configuration files
69 > >>> from Debian packages. I wonder if possible to get the kernel
70 > >>> configuration files of Gentoo.
71 > >>>
72 > >>> If this question is invalid, please let me know.
73 > >>>
74 > >>> [1]
75 > >>> http://ftp.debian.org/debian/pool/main/l/linux/linux-config-5.10_5.10.46-1_amd64.deb
76 > >>>
77 > >>> --
78 > >>> My best regards to you.
79 > >>>
80 > >>> No System Is Safe!
81 > >>> Dongliang Mu
82 > >>>
83 >
84 > --
85 > GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF
86 >
87 >

Replies

Subject Author
Re: [gentoo-user] Inquiry about gentoo kernel configuration Ramon Fischer <Ramon_Fischer@×××××××.de>