On 10/7/21 7:40 pm, Ramon Fischer wrote:
> Hello Dongliang,
>
> you could retrieve kernel configuration files from a "Minimal
> Installation CD"[1] of Gentoo. Mount it and look for
> "/boot/gentoo-config".
>
> But I guess, you want a untouched version, don't you?
>
> -Ramon

Hi, to expand on this - Gentoo doesn't really have a standardised kernel
config - the nearest to that is the above install CD, or the default
generic catchall "genkernel" one - most people seem to manually
configurate and tune/customise a .config and then copy it from system to
system.  There are a few bin(ary) kernels in portage/sys-kernel/* that
might work for you but I have never tried them.

You can boot almost any linux live media on your target hardware and
extract the config (sysrescuecd is a good one) and use their sources, or
build the kernel using their config on top of Gentoo's vanilla-sources,
or gentoo-sources.

Or grab another distros boot directory (containing the kernel, initrd
and config files), the matching /lib/modules directory and boot that
instead of building your own (I do this often on uboot based arm systems
and raspberry pi's.)

Or ask on the list if someone has a config that matches your target
(occasionally it comes up).

BillK




> [1] https://www.gentoo.org/downloads/
>
> On 10/07/2021 11:15, Dongliang Mu wrote:
>> Hi Gentoo users,
>>
>> I am a newbie to Gentoo. For Debian, I can get configuration files
>> from Debian packages. I wonder if possible to get the kernel
>> configuration files of Gentoo.
>>
>> If this question is invalid, please let me know.
>>
>> [1]
>> http://ftp.debian.org/debian/pool/main/l/linux/linux-config-5.10_5.10.46-1_amd64.deb
>>
>> -- 
>> My best regards to you.
>>
>>       No System Is Safe!
>>       Dongliang Mu
>>
>

Reply via email to