Author Topic: Problem with bnx2 module  (Read 6371 times)

mchiavac

  • Newbie
  • *
  • Posts: 1
Problem with bnx2 module
« on: October 15, 2009, 10:02:36 AM »
Hello,
i start using plop from 4.0 but with all of my servers with bnx2 module, it goes in kernel panic (dell 1950, dell 2950, dell r610, ibm x3550, ibm x3650).
With all other machine with other network cards there seems no problems (tg3 or e1000 module).
It's possibile to update bnx2 module or give me some hints to integrate it in initrd?
From broadcom site the latest drivers are version 1.9.20b_1.50.13  that works great in production with centos 5.3.
Thank you.

P.S. there some way to have plop source to manipulate and recreate customized squashfs file?

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2393
  • a command shell is enough to do amazing things
Re: Problem with bnx2 module
« Reply #1 on: October 15, 2009, 12:42:09 PM »
hi,

It's possibile to update bnx2 module or give me some hints to integrate it in initrd?
P.S. there some way to have plop source to manipulate and recreate customized squashfs file?

yes its possible to update. the bnx2 is compiled into the kernel. you can get the kernel config from /proc/config.gz and create a new kernel.
to add the module, you dont have to edit initrd. you have to unsquashfs lib.sqfs, add it there and then create a new lib.sqfs with mksquashfs.

do you need any help, or should i create a test version with the rc of the kernel 2.26.32?

regards
elmar

lvitya

  • Newbie
  • *
  • Posts: 2
Re: Problem with bnx2 module
« Reply #2 on: August 12, 2013, 09:56:18 AM »
Hi,

I try to boot my server with Plop Linux 4.2.2, but network doesn't work and server prints out error messages:
bnx2: Can't load firmware file "bnx2/bnx2-mips-06-6.2.3.fw

Please, help me. How can I fix this problem? I'm a linux rookie.

Thanks,
Viktor

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2393
  • a command shell is enough to do amazing things
Re: Problem with bnx2 module
« Reply #3 on: August 13, 2013, 22:00:16 PM »
hello,

either you create a new lib.sqfs with bnx2/bnx2-mips-06-6.2.3.fw

or you wait. i spend this month for a new plop linux version build from scratch with the latest version of the programs.

regards
elmar

lvitya

  • Newbie
  • *
  • Posts: 2
Re: Problem with bnx2 module
« Reply #4 on: August 14, 2013, 11:46:49 AM »
i successfully built a whole new lib.sqfs with bnx2 module, but the result is same.
where is the destination directory in lib.sqfs? I tried /firmware/bnx2 or /bnx2, but doesn't work.

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2393
  • a command shell is enough to do amazing things
Re: Problem with bnx2 module
« Reply #5 on: August 14, 2013, 11:51:51 AM »
i forgot to say that you also have to recompile the kernel that the driver is a module.

The_Raven

  • Newbie
  • *
  • Posts: 25
Re: Problem with bnx2 module
« Reply #6 on: May 17, 2018, 14:38:22 PM »
I "hijack" this thread because i have a similar problem.
Loading of bnx2 is not possible because the firmware is missing. I think this is a bug of Plop 4.3.4.
Firmware is located in:
Code: [Select]
/lib/firmware/bnx2/bnx2/But should be in:
Code: [Select]
/lib/firmware/bnx2/After fixing this in lib.sqfs it works!

But my problem is more complex:
I boot from PXE. And then it is not possible to fetch lib.sqfs because the LAN-Card is not coming up.
So 2 things:
1. Maybe you like to fix this bnx2 bug (so all plop-users have the fix)
2. How can i (or we) fix pxe booting?

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2393
  • a command shell is enough to do amazing things
Re: Problem with bnx2 module
« Reply #7 on: May 17, 2018, 20:54:59 PM »
Thanks for the report. It will be fixed in the next Plop Linux release.


PXE:

You have to create a custom initramfs.gz with the firmware in /lib.

Replace your new one with the "syslinux/kernel/initramfs.gz" file.

You can create the initramfs.gz with the files/scripts of the "release tools" of Plop Linux. Tell me if you need help.

Best regards
Elmar

The_Raven

  • Newbie
  • *
  • Posts: 25
Re: Problem with bnx2 module
« Reply #8 on: May 19, 2018, 14:23:45 PM »
Thx for fast response!

This was the first thing i tested, but it has NOT worked.
I think the problem is that in kernel config the bnx2 is loaded as module and not direct in the kernel (bnx2=m but should be bnx2=y).
Can this be?
BTW: During PXE-Boot i don't see a message telling me that firmware is missing.

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2393
  • a command shell is enough to do amazing things
Re: Problem with bnx2 module
« Reply #9 on: May 19, 2018, 14:49:16 PM »
You are right, bnx2 has to be compiled into the kernel which is not done at the moment. Noted, for the next release.

Summarize requirements:
bnx2 builtin the kernel
firmware in initramfs.gz

Do you need a prepared kernel/initramfs.gz?


Best regards
Elmar

The_Raven

  • Newbie
  • *
  • Posts: 25
Re: Problem with bnx2 module
« Reply #10 on: May 22, 2018, 10:28:14 AM »
If it's possible, then yes please a kernel and initramfs. :)
Then i can test it.

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2393
  • a command shell is enough to do amazing things
Re: Problem with bnx2 module
« Reply #11 on: May 23, 2018, 15:21:52 PM »

The_Raven

  • Newbie
  • *
  • Posts: 25
Re: Problem with bnx2 module
« Reply #12 on: May 24, 2018, 10:20:28 AM »
Tested an it works! 8)
Thank you very much for the helping hand.
When do you plan to release the new plop version?

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2393
  • a command shell is enough to do amazing things
Re: Problem with bnx2 module
« Reply #13 on: May 24, 2018, 10:24:31 AM »
Great :)

Release will be in the next days.

But you will still need a custom initramfs.gz, because the firmware folder is not in this file of the official release.

The_Raven

  • Newbie
  • *
  • Posts: 25
Re: Problem with bnx2 module
« Reply #14 on: May 24, 2018, 10:57:52 AM »
Why not? ???

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2393
  • a command shell is enough to do amazing things
Re: Problem with bnx2 module
« Reply #15 on: May 24, 2018, 10:59:08 AM »
I want to keep the initramfs.gz as small as possible.

The_Raven

  • Newbie
  • *
  • Posts: 25
Re: Problem with bnx2 module
« Reply #16 on: June 04, 2018, 10:19:53 AM »
Tested 4.3.5 and it works (with my spezial lib.sqfs including the firmware).
Thank you for the great support!  8)

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2393
  • a command shell is enough to do amazing things
Re: Problem with bnx2 module
« Reply #17 on: June 04, 2018, 10:24:53 AM »
Tested 4.3.5 and it works (with my spezial lib.sqfs including the firmware).

You mean special initramfs.gz, or? The lib.sqfs should work out of the box.

The_Raven

  • Newbie
  • *
  • Posts: 25
Re: Problem with bnx2 module
« Reply #18 on: June 04, 2018, 10:47:18 AM »
Palmface...
Yes of course, special initramfs.gz, not lib.sqfs.
I need also a special usr.sqfs because of missing language, this confused me  ::)