Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Librem5
uboot-imx
Commits
eadbd011
Commit
eadbd011
authored
Jul 07, 2020
by
Guido Gunther
Browse files
Add helper to fetch imx firmware
parent
c5ad1cb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian/bin/fetch-imx-firmware
0 → 100755
View file @
eadbd011
#!/bin/bash
set
-e
URL_BASE
=
https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/
FIRMWARE
=
firmware-imx-8.7.bin
function
cleanup
()
{
[
-z
"
${
DLDIR
}
"
]
||
rm
-rf
"
${
DLDIR
}
"
}
trap
cleanup EXIT
if
[
-z
"
$1
"
]
;
then
echo
"No output dir given"
1>&2
exit
1
fi
OUT
=
$1
DLDIR
=
$(
mktemp
-d
)
cd
"
${
DLDIR
}
"
wget
"
${
URL_BASE
}
/
${
FIRMWARE
}
"
chmod
+x
"
${
FIRMWARE
}
"
./
"
${
FIRMWARE
}
"
--auto-accept
cd
-
for
f
in
ddr/synopsys/lpddr4_pmu_train_?d_?mem.bin hdmi/cadence/signed_
*
_imx8m.bin
;
do
cp
-v
${
DLDIR
}
/
$(
basename
"
${
FIRMWARE
}
"
.bin
)
/firmware/
$f
"
${
OUT
}
"
done
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment