1
0
mirror of https://github.com/rancher/os-kernel.git synced 2025-09-23 02:58:01 +00:00

Merge pull request #50 from rancher/update-firmware

Update firmware
This commit is contained in:
Sven Dowideit
2017-05-15 14:13:21 +10:00
committed by GitHub
4 changed files with 51 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
# #
# Automatically generated file; DO NOT EDIT. # Automatically generated file; DO NOT EDIT.
# Linux/x86 4.9.21 Kernel Configuration # Linux/x86 4.9.28 Kernel Configuration
# #
CONFIG_64BIT=y CONFIG_64BIT=y
CONFIG_X86_64=y CONFIG_X86_64=y
@@ -939,7 +939,6 @@ CONFIG_TCP_CONG_DCTCP=m
CONFIG_TCP_CONG_CDG=m CONFIG_TCP_CONG_CDG=m
CONFIG_TCP_CONG_BBR=m CONFIG_TCP_CONG_BBR=m
CONFIG_DEFAULT_CUBIC=y CONFIG_DEFAULT_CUBIC=y
# CONFIG_DEFAULT_BBR is not set
# CONFIG_DEFAULT_RENO is not set # CONFIG_DEFAULT_RENO is not set
CONFIG_DEFAULT_TCP_CONG="cubic" CONFIG_DEFAULT_TCP_CONG="cubic"
CONFIG_TCP_MD5SIG=y CONFIG_TCP_MD5SIG=y

View File

@@ -3,6 +3,8 @@ set -e
cd $(dirname $0)/.. cd $(dirname $0)/..
./scripts/test-firmware
if ! ./scripts/download; then if ! ./scripts/download; then
echo "blah" echo "blah"
exit 1 exit 1

View File

@@ -14,24 +14,24 @@ myri10ge_rss_ethp_z8e.dat
ql2500_fw.bin ql2500_fw.bin
ct2fw-3.2.5.1.bin ct2fw-3.2.5.1.bin
ql2300_fw.bin ql2300_fw.bin
rtl_nic/rtl8168f-2.fw rtl_nic/rtl8168f-1.fw
rtl_nic/rtl8168e-3.fw rtl_nic/rtl8168e-3.fw
rtl_nic/rtl8105e-1.fw rtl_nic/rtl8105e-1.fw
rtl_nic/rtl8168e-2.fw rtl_nic/rtl8168e-3.fw
rtl_nic/rtl8168h-2.fw rtl_nic/rtl8168h-2.fw
rtl_nic/rtl8106e-2.fw rtl_nic/rtl8106e-2.fw
rtl_nic/rtl8168d-1.fw rtl_nic/rtl8168d-2.fw
rtl_nic/rtl8168h-1.fw rtl_nic/rtl8168h-2.fw
rtl_nic/rtl8168g-2.fw rtl_nic/rtl8168g-3.fw
rtl_nic/rtl8107e-2.fw rtl_nic/rtl8107e-2.fw
rtl_nic/rtl8411-2.fw rtl_nic/rtl8411-2.fw
rtl_nic/rtl8107e-1.fw rtl_nic/rtl8107e-2.fw
rtl_nic/rtl8106e-1.fw rtl_nic/rtl8106e-2.fw
rtl_nic/rtl8411-1.fw rtl_nic/rtl8411-2.fw
rtl_nic/rtl8168d-2.fw rtl_nic/rtl8168d-2.fw
rtl_nic/rtl8402-1.fw rtl_nic/rtl8402-1.fw
rtl_nic/rtl8168f-1.fw rtl_nic/rtl8168f-1.fw
rtl_nic/rtl8168e-1.fw rtl_nic/rtl8168e-3.fw
rtl_nic/rtl8168g-3.fw rtl_nic/rtl8168g-3.fw
e100/d101s_ucode.bin e100/d101s_ucode.bin
e100/d101m_ucode.bin e100/d101m_ucode.bin
@@ -51,6 +51,6 @@ tigon/tg3.bin
acenic/tg1.bin acenic/tg1.bin
acenic/tg2.bin acenic/tg2.bin
myri10ge_ethp_z8e.dat myri10ge_ethp_z8e.dat
bnx2x/bnx2x-e1-7.10.51.0.fw bnx2x/bnx2x-e1-7.13.1.0.fw
bnx2x/bnx2x-e2-7.10.51.0.fw bnx2x/bnx2x-e2-7.13.1.0.fw
bnx2x/bnx2x-e1h-7.10.51.0.fw bnx2x/bnx2x-e1h-7.13.1.0.fw

36
scripts/test-firmware Executable file
View File

@@ -0,0 +1,36 @@
#!/bin/bash
set -e
cd $(dirname $0)/..
FIRMWARE=$(readlink -f scripts/firmware)
echo "FIRMWARE test: $FIRMWARE"
if [ ! -e linux-firmware ]; then
git clone git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
fi
cd linux-firmware
for i in $(<$FIRMWARE); do
if [ -e $i ]; then
glob=$(echo $i | sed 's/^\(.*\)-\([^-]*\)\.\([^.]*\)/\1-*.\3/')
#echo Found $i, trying $glob
latest=$(ls $glob | xargs -n1 -I{} -- git log -1 --format="%ai {}" {} | sort | tail -n1 | cut -d " " -f4)
if [ "$latest" != "$i" ]; then
echo "ERROR: Firmware $i in $FIRMWARE is not the latest - update to $latest"
STOP="1"
echo $latest >> new-firmware
else
echo $i >> new-firmware
fi
else
echo WARNING: Firmware listed in $FIRMWARE Not found $i
fi
done
if [ "$STOP" != "" ]; then
echo "Update the $FIRMWARE file:"
cat new-firmware
exit 1
fi