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: make clean && make && make install modules_install .... <whatever options you normally use here>. Meanwhile, check if you have the firmware file it asks for, which would have been installed as part of 'sys-kernel/linux-firmware': $ ls -la /lib/firmware/rtl_nic/rtl8168g-2.fw -rw-r--r-- 1 root root 4896 May 18 16:15 /lib/firmware/rtl_nic/rtl8168g-2.fw $ qfile /lib/firmware/rtl_nic/rtl8168g-2.fw sys-kernel/linux-firmware: /lib/firmware/rtl_nic/rtl8168g-2.fw When you update world after you have compiled your new kernel, linux-firmware will be installed and the missing file will be available anyway - although no longer needed or used by the kernel.
signature.asc
Description: This is a digitally signed message part.