]> git.pld-linux.org Git - projects/rc-scripts.git/commit
handle only firmware add requests
authorElan Ruusamäe <glen@delfi.ee>
Thu, 27 Mar 2014 22:57:00 +0000 (00:57 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 27 Mar 2014 22:57:02 +0000 (00:57 +0200)
commit5a873f5d5eda4af38c2cc889fd6923e654188c17
tree6b28912609b9ce8b23ae99684720b15fac552878
parentcaec3c4068c64ed01aa1531a6192c425e6687d40
handle only firmware add requests

with handling all hotplug events, we ran into some kind of race condition
which resulted only one of the two bnx2 devices to appear working:

[ 16.425932] bnx2: Firmware file "bnx2/bnx2-rv2p-06-6.0.15.fw" is invalid

after inspecting bnx2.c sourcecode, appears that this error is printed only if
firmware file is too short and the firmware itself is and has always been 5696
bytes (in pld packages).

internally in firmware loader, the race appeared as:
+ '[' ! -e /sys/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/0000:03:00.0/firmware/0000:03:00.0/loading ']'
+ '[' -e /lib/firmware/updates/3.4.83-1/bnx2/bnx2-rv2p-06-6.0.15.fw ']'
+ continue
+ '[' -e /lib/firmware/updates/bnx2/bnx2-rv2p-06-6.0.15.fw ']'
+ continue
+ '[' -e /lib/firmware/3.4.83-1/bnx2/bnx2-rv2p-06-6.0.15.fw ']'
+ >/sys/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/0000:03:00.0/firmware/0000:03:00.0/loading
+ echo 1
+ >/sys/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/0000:03:00.0/firmware/0000:03:00.0/data
+ cat /lib/firmware/3.4.83-1/bnx2/bnx2-rv2p-06-6.0.15.fw
/lib/firmware/firmware-loader.sh[29]: cat: <stdout>: No such device
firmware-loader.sh
This page took 0.027403 seconds and 4 git commands to generate.