Lines Matching full:update
6 # The script to generate splited image and update.hdr for TFTP image upgrade.
8 # 2. Use FIT mechanism to record image pieces information in update.hdr: order, hash, signature, et…
9 # 3. The TFTP client download update.hdr and verify it (if need)
10 # 4. The TFTP client download => verify => flash image pieces accorrding to update.hdr.
35 echo " --force-update: enable force upgrade"
65 --force-update)
176 cat > update.its << EOF
197 };" >> update.its
210 };" >> update.its
220 cat >> update.its << EOF
227 force-update = <${ARG_FORCE_UPDATE}>;
248 cp update.its key.its
252 ./mkimage -f update.its -k keys/ -K key.dtb -E -p ${HDR_SIZE} -r update.itb -v ${ARG_VERSION}
253 ./fit_check_sign -f update.itb -k key.dtb
256 ./mkimage -f update.its -E -p ${HDR_SIZE} update.itb -v ${ARG_VERSION}
259 fdtdump update.itb > update.hdr.dts
261 # validate update.hdr
263 NUM=`grep "${LAST_IMG}" update.hdr.dts | wc -l`
270 # Remove binary from update.itb
271 BYTE=`sed -n "/totalsize:/p" update.hdr.dts | awk '{ print $4 }' | tr -d '(' | tr -d ')'`
272 dd if=update.itb of=update.hdr bs=${BYTE} count=1
275 openssl dgst -sha256 -binary -out update.hash update.hdr
276 cat update.hash >> update.hdr
281 mv -f *${SUFFIX} update.hdr ${OUTPUT_DIR}