mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-03-02 11:42:27 +00:00
n810: Add the CAL BME PMM extractor script to preinit.
SVN-Revision: 25381
This commit is contained in:
parent
09655bf0e4
commit
c9d7844645
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
do_extract_cal_bme_pmm() {
|
||||||
|
[ -e /lib/firmware/n810-cal-bme-pmm.fw ] && return 0
|
||||||
|
|
||||||
|
[ -x /usr/bin/calvaria ] || { echo "CAL-BME extract: calvaria not found"; return 1; }
|
||||||
|
|
||||||
|
/usr/bin/calvaria -p -n bme -i last /dev/mtdblock1 >/lib/firmware/n810-cal-bme-pmm.fw || {
|
||||||
|
echo "CAL-BME extract: Failed to extract blob"
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
boot_hook_add preinit_mount_root do_extract_cal_bme_pmm
|
Loading…
Reference in New Issue
Block a user