From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 48B66138334 for ; Thu, 1 Aug 2019 08:27:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A6A83E07FE; Thu, 1 Aug 2019 08:27:15 +0000 (UTC) Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2439FE07DB for ; Thu, 1 Aug 2019 08:27:14 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id n4so72663613wrs.3 for ; Thu, 01 Aug 2019 01:27:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version; bh=/KgvBGVmgCWWUwnP4Ffr3O7hMZIehiDmBXvdjJHMDw4=; b=U9raNOuziHQcxWq1It9Y6i7Dkam+ypG7/ZUrNUyQyVRUFnm0HbYnj+iazmb9OjJYpm U1gY/F0HeFuwSp1XpEznEXL/u1LNYS4r40RgM5HpVV/PfkMoNFQUjJdDuJYNv1VWQUgo Nkk7R9AJnXfQGF0MROy+mNwjGl6B0eQ1TMlnOtGXDOn+z6sc2yCyi+wOk1nRa61iHxKI eQbsW8TIhzntRmzLPPibAoZXQDHvSz066CJHzmtKGNEHM+MlNC7wAZ5rNZ2Q7B1oWpIO 8VtMYLGgHntlhcLQaJQUyk0eqaOJ9tykRoQi511MQnX176R4xHiso3D6FAsWXDLXDqP/ Mj/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version; bh=/KgvBGVmgCWWUwnP4Ffr3O7hMZIehiDmBXvdjJHMDw4=; b=agOZhIqUF7XnjphT+OQWGVAxW7o6BrUuGXQG6VC9UcaGCnxELkSNcxftVE8OWuXOF6 QzKmXcVme+esRMNUN6zy81Gx0wHv7Y5Xgpd6c7BJtsHAsJlyX6FUKsuy6eB1kDzmOywc 1RPWNLaqG9AWh0uboLWgnN3q8Ud5mykofucnh60cfssw0/8z9HV1EbDbJk9Qn2qJwM+G K9VPiQqlJzlVJpOTn0b1oMWxoRvDtcXTg2jj5RHigojxUU36tENIoyjvDTOQKBngnRcB JfRcbUqQimmRcHxVrkO3GYyPaYKoWYO4yr6TM6hlLUR0/tGSZfYdjphr0bqQDyD781s8 gaxg== X-Gm-Message-State: APjAAAVt9Qo9ZJFKtx/zW4RQJA3AasnLrnsDAdP924w0V1ANKV4G7Hf5 qAyYoI4R4GUvKUzXnRQb8K5J/Sxv X-Google-Smtp-Source: APXvYqzuw0jwiaUnkuVW1eydiO+JJAFjFlvZyxS5TcZiMY9YOOpWnxirgvbGjvsYhUrfBGRp8utMrA== X-Received: by 2002:adf:e947:: with SMTP id m7mr78097574wrn.123.1564648033482; Thu, 01 Aug 2019 01:27:13 -0700 (PDT) Received: from localhost.localnet (230.3.169.217.in-addr.arpa. [217.169.3.230]) by smtp.gmail.com with ESMTPSA id z5sm50826844wmf.48.2019.08.01.01.27.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Aug 2019 01:27:12 -0700 (PDT) From: Mick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] kernel config strangeness Date: Thu, 01 Aug 2019 09:26:58 +0100 Message-ID: <1938119.5RTDJUh4JG@localhost> In-Reply-To: References: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3838989.44dvJyG91p"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Archives-Salt: 0770a0e8-3b90-45f4-bdf5-4072c278ba27 X-Archives-Hash: 3c290c2f776c62a3bd503d1a71b7af18 --nextPart3838989.44dvJyG91p Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" On Wednesday, 31 July 2019 23:31:20 BST Jack wrote: > I just built a new PC, and I'm having a problem getting it to boot with > a custom configured kernel (gentoo-sources-5.2.4.) If I start with a > blank config and work through "make xconfig" the resulting kernel and > initramfs (genkernel) doesn't boot (just hangs after loading > initramfs.) Does it spit out any errors on the console? > So, starting with the config from the running kernel from > the live install medium, running make oldconfig then genkernel, it > boots fine. I assume my problem is removing something important while > trying to remove all the unnecessary options for supporting hardware > I'll never use. > > However, if I start with the .config which workd, and "make xconfig" > and select "Supported processor types" under "Processor type and > features" and then unselect "Support Intel Pprocessors" (I have a > Ryzen) and save the config, it decreases the size of .config from 169K > to under 13K, losing almost every setting in the file. Hmm ... this sound too light for a desktop kernel. I have done the same, stripping out anything not relevant or wanted on my laptop's AMD kernel and this is what I get: $ ls -la /usr/src/linux/.config -rw-r--r-- 1 root root 106014 Jul 31 17:13 /usr/src/linux/.config However, I use menuconfig almost exclusively, but this should not make any difference. Did you diff the old and new .config files? [1] > Even stranger, if I look at "Local version - append to kernel release:" > it still shows the value I had previously set - but that setting > CONFIG_LOCALVERSION is NOT in .config. If I close the tool and start > it again, that setting is now missing and it looks like all settings > have been reset to the clean starting defaults (i.e., many say "(NEW)" > > Am I missing something here, or might this really be a bug in "make > xconfig" ? Have you checked the /usr/src/linux symlink is pointing to the correct kernel sources directory? What you describing is akin to you working on the wrong .config file. > Can anyone else replicate this? While I don't think it's related to my > problem getting a non-booting kernel, it certainly has me confused. > > Thanks for helping me confirm what's left of my sanity. > > Jack I don't have time to replicate it this morning, but in case you're missing some simple step in your procedure, try this: cd /usr/src ls -la check the linux symlink is pointing to the desired kernel sources directory. If not remove it and re-set it either manually, or by using 'eselect kernel'. Then copy the running config to the symlinked linux directory, overwriting the sources' config file with its default settings. zcat /proc/config.gz > /usr/src/linux/.config Now you can go into the linux directory and modify its config: cd linux make xconfig When you're done tweaking things make sure you save your changes before you make clean && make && make modules_install && make install The last bit copies over the kernel for you to /boot if you don't want to do this manually or use your own naming convention. For more details have a look here: https://wiki.gentoo.org/wiki/Kernel/Configuration HTH. -- Regards, Mick --nextPart3838989.44dvJyG91p Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEt7MNaGaS6HvTUrEz6WnU8jC95dcFAl1ColIACgkQ6WnU8jC9 5ddXEBAApy3Kch0Siu0ESbXv06obp7C+LRfF5OdDsy3VmOgkNTLmy0hcVDjYP5RI Z/QVx1Ohwbe780lXs7Fw4VgXj+ZZHl7PnPEBDqsS0ckz1QTZkxfx7U20NOFCKUlQ HKP78bqi86oRNGGzeSsK8FS1l89Ex68GV2J4tC93o5bQ5FcnoJI04jcoOHQCK5pz uhGEFcwJEUgFgjw+qej+ZMgUgOaarF8QmWZacBVH6GscdKUT5PNp2AhtlKzg2Yee YMMDzKOclhXUfBpNPBIbDXZwroTh/w7ic7r6wWcFp3Iafs5DgB3SyoCO2ce5CuLK EF4PAvpswFevhuN5Y1BsRMwEexyXLmofiJS0ypvGy0pbOCmuiicKaLVQFBeipzkx QNfIJrtPIoR2/xPCN7w7DbBCPEODB6BPna/gHykF1UMOj19L2AbIavFLI+mroaWB hEjrrOBpLBZ6QFUTl02dug38o6z9lAEx+IlvlDYcDJWJswwaAi0fxCMtfPdVfmMP WZ7P7c3qK8if/6iJIh5878DpiDs8lAkWdf1piGtp89dDEqzMrfTL3EZV3vpe+Kbi 5NUVoKozf1WjqxkevghY8etd+d4di+IB0XXcOVeUtayXjY7S88rnZFYmReJwIwz8 pyed23SUV4KcSbZYsVYatiz4jnLlKoQxaoVfQHU05D+fQbAjqe4= =kurA -----END PGP SIGNATURE----- --nextPart3838989.44dvJyG91p--