Quote Originally Posted by krishnaprasadk View Post

Now the firmware is read while loading the module and it fails with an error message as below

firmware 0000:05:00.0: firmware_loading_store: vmap() failed
bnx2: Can't load firmware file "bnx2/bnx2-mips-06-4.6.16.fw"
bnx2: probe of 0000:05:00.0 failed with error -2

I am checking bnx2 driver code on why this failure is seen.

Thanks,
Krishnaprasad
Try this improved script ( still not the best ) :-

Code:
#!/bin/sh
[ -z "$FIRMWARE" ] && exit 
echo 1 > /sys/$DEVPATH/loading
cat /lib/firmware/$FIRMWARE > /sys/class/firmware/data
echo 0 > /sys/$DEVPATH/loading
Please, this is not ***NOT*** a kernel bug or something, this is
an ***EXPECTED*** behaviour.

Cheers.