Skip to content
Snippets Groups Projects
Commit c9d78446 authored by Michael Büsch's avatar Michael Büsch
Browse files

n810: Add the CAL BME PMM extractor script to preinit.

SVN-Revision: 25381
parent 09655bf0
No related branches found
No related tags found
No related merge requests found
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment