CIG WF-660A : Add WF-660a support [patch 3]

Fixed caldata.bin can NOT be generated with EMMC issue.
This commit is contained in:
Ken
2023-03-01 08:28:36 +08:00
committed by John Crispin
parent 5fec90d4ca
commit 9997af10a5

View File

@@ -70,6 +70,9 @@ caldata_extract() {
local mtd
mtd=$(find_mtd_chardev $part)
if [ -z "$mtd" ]; then
mtd=/dev/$(echo $(find_mmc_part $part) | sed 's/^.\{5\}//')
fi
[ -n "$mtd" ] || caldata_die "no mtd device found for partition $part"
dd if=$mtd of=/lib/firmware/$FIRMWARE iflag=skip_bytes bs=$count skip=$offset count=1 2>/dev/null || \