Hello Thomas. Thanks for your answer.
fai-make-nfsroot -fvN seems to make all the works. I don't need to chroot and reconfigure dracut: command lsinitrd /boot/initrd.img-4.9.0-6-amd64 |grep bnx already show firmware bnx2. I don't need to copy the new initrd in my tftp directory. I guess the script fai-make-nfsroot make the copy itself, md5sum of both of this file ($NFSROOT/boot/.img-4.9.0-6-amd64 and $TFTPROOT/initrd.img-4.9.0-6-amd64) are same and date are almost the same. Nevertheless, I must be add package firmware-bnx2* in $FAI_CONDIR_DIR/package_config/SOME_CLASS in order to be able to use network card on the final client ;-) Best regards. Jean-Mathieu ----- Mail original ----- > De: "Thomas Lange" <la...@informatik.uni-koeln.de> > À: "linux-fai" <linux-fai@uni-koeln.de> > Envoyé: Lundi 11 Juin 2018 17:53:38 > Objet: Re: Failed to load bnx2x firmware >>>>>> On Mon, 11 Jun 2018 17:29:47 +0200 (CEST), Jean-mathieu CHANTREIN >>>>>> <jean-mathieu.chantr...@univ-angers.fr> 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 0000:01:00.0: firmware: failed to load > bnx2x/bnx2x-e2-7.13.1.0.fw > > (-2) > > [...] bnx2x 0000: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