Failed to load bnx2x firmware

2018-06-11 Diskussionsfäden Jean-mathieu CHANTREIN
Hello. 

I use fai-make-nfsroot -k -N to install non-free packages defined in the 
NONFREE section of /etc/fai/NFSROOT. 

This section contains: 
PACKAGES install-norec NONFREE 
firmware-bnx2 firmware-bnx2x firmware-realtek 
firmware-misc-nonfree 

But when I install a client with broadcom network interface, I have an error: 

dracut:/# ip link set eth0 up 
[...] bnx2x :01:00.0: firmware: failed to load bnx2x/bnx2x-e2-7.13.1.0.fw 
(-2) 
[...] bnx2x :01:00.0: Direct firmware load for bnx2x/bnx2x-e2-7.13.1.0.fw 
failed with error -2 
[...] bnx2x: [bnx2x_func_hw_init:6003(eth0)]Error loading firmware 
[...] bnx2x: [bnx2x_nic_load:2727(eth0)](eth0)HW init failed, aborting 
RTNETLINK answers: No such file or directory 

I try to add : add_drivers+="bnx2" in /srv/fai/nfsroot/etc/dracut.conf but 
without success. 

Anyone has already encountered a similar problem ? 

Regards. 

Jean-Mathieu 


Re: Failed to load bnx2x firmware

2018-06-11 Diskussionsfäden Thomas Lange
> On Mon, 11 Jun 2018 17:29:47 +0200 (CEST), Jean-mathieu CHANTREIN 
>  said:

> I use fai-make-nfsroot -k -N to install non-free packages defined in the 
NONFREE section of /etc/fai/NFSROOT.

> dracut:/# ip link set eth0 up
> [...] bnx2x :01:00.0: firmware: failed to load 
bnx2x/bnx2x-e2-7.13.1.0.fw (-2)
> [...] bnx2x :01:00.0: Direct firmware load for 
bnx2x/bnx2x-e2-7.13.1.0.fw failed with error -2
> [...] bnx2x: [bnx2x_func_hw_init:6003(eth0)]Error loading firmware
> [...] bnx2x: [bnx2x_nic_load:2727(eth0)](eth0)HW init failed, aborting
> RTNETLINK answers: No such file or directory

I've create a new nfsroot using fai-make-nfsroot -fvN (without -k) and
got an initrd inside the nfsroot which contains the bnx2x firmware.
I think you have to recreate the initrd after adding the packages to
your nfsroot, which fai-make-nfsroot -kN does not do.

# chroot /srv/fai/nfsroot bash
# dpkg-reconfigure dracut

then check the initrd while being inside the chroot
# lsinitrd /boot/initrd.img-4.9.0-6-amd64 |grep bnx
# exit


Do not forget to copy the new initrd into your tftp directory.
-- 
regards Thomas