On 2023-05-20, Michael wrote: > On Saturday, 20 May 2023 07:59:59 BST Philip Webb wrote: >> I'm trying to install Gentoo in my new machine >> & have got to the step of compiling a kernel. >> I used the config file from my present machine, did 'make oldconfig' >> & have then done 'make menuconfig' to include drivers etc. >> >> The 'make' stage goes on for a long time, then crashes doing >> 'UPD drivers/base/firmware_loader/builtin/rtl_nic/rtl8168g-2.fw.gen.S' >> with message "make [5] *** No rule to make target >> 'lib/firmware/rtl_nic/rtl8168g-2.fw' needed by >> 'drivers/base/firmware_loader/ builtin/rtl_nic/rtl8168g-2.fw.gen.o' Stop". >> >> The relevant line in Menuconfig is 'DeviceDrivers > NetworkDeviceSupport > >> EthernetDriverSupport' under 'Realtek devices'. >> I've tried it with 'Realtek8169/8168/...' 'Y' or 'M' or 'N' >> & also with 'Realtek devices' as 'N'. I also tried a 'make clean'. >> The same error goes on happening. >> >> Since I don't have anything by Realtek for networking >> -- sound uses Realtek -- , I can't understand the behaviour above. >> >> Can anyone offer any advice ? > > The compilation complains it is missing the firmware required by a realtek > NIC, probably a setting inherited from the config settings of the old kernel? > > You eventually compiled it with "N". I suspect the order in which you > configured/compiled it plays a role in this error. > > Since you do not have this hardware, set it to "N", then run:
Could this be the manually defined list of firmware blobs to include in the kernel image, and not something automatically pulled in by a driver? I'm not sure what's the quickest way to check, perhaps this works?: grep CONFIG_EXTRA_FIRMWARE /usr/src/linux/.config -- Nuno Silva