Lines Matching +full:- +full:ne
5 # SPDX-License-Identifier: GPL-2.0
7 set -e
10 # mkdir -p keys
11 # openssl genpkey -algorithm RSA -out keys/dev.key -pkeyopt rsa_keygen_bits:2048 -pkeyopt rsa_keyge…
12 # openssl req -batch -new -x509 -key keys/dev.key -out keys/dev.crt
13 # openssl rsa -in keys/dev.key -pubout -out keys/dev.pubkey
15 # openssl dgst -sha256 -sign keys/dev.key -sigopt rsa_padding_mode:pss -out sha256-rsa2048.sign fit…
25 echo " $0 -f [itb] -s [sig] -n [num of U-Boot copies] -k [KB of each U-Boot copy]"
31 if [ -z $1 ]; then
36 decimal=`echo $1 |sed 's/[0-9]//g'`
37 if [ ! -z ${decimal} ]; then
46 if [ $# -ne 4 -a $# -ne 8 ]; then
51 while [ $# -gt 0 ]; do
53 -f)
57 -s)
61 -n)
66 -k)
78 if [ ! -f ${ITB} ]; then
84 elif [ ! -f ${SIG} ]; then
89 copies=`strings ${ITB} | grep "signer-version" | wc -l`
90 if [ ${copies} -ne 1 ]; then
95 SIG_SZ=`ls -l ${SIG} | awk '{ print $5 }'`
96 …LEN=`./tools/fit_info -f ${ITB} -n /configurations/conf/signature -p value | sed -n "/LEN:/p" | aw…
97 …OFF=`./tools/fit_info -f ${ITB} -n /configurations/conf/signature -p value | sed -n "/OFF:/p" | aw…
98 …END=`./tools/fit_info -f ${ITB} -n /configurations/conf/signature -p value | sed -n "/END:/p" | aw…
100 if [ -z ${LEN} ]; then
103 strings uboot.img | grep "rollback-index" | wc -l
104 elif [ "${SIG_SZ}" -ne "${LEN}" ]; then
118 if fdtget -l ${ITB_RESIGN} /images/uboot >/dev/null 2>&1 ; then
119 if [ -z ${ITB_MAX_NUM} ]; then
120 ITB_MAX_NUM=`sed -n "/SPL_FIT_IMAGE_MULTIPLE/p" .config | awk -F "=" '{ print $2 }'`
122 if [ -z ${ITB_MAX_KB} ]; then
123 ITB_MAX_KB=`sed -n "/SPL_FIT_IMAGE_KB/p" .config | awk -F "=" '{ print $2 }'`
126 ITB_BS=`ls -l ${ITB} | awk '{ print $5 }'`
127 if [ ${ITB_BS} -gt ${ITB_MAX_BS} ]; then
132 rm -f ${IMG_UBOOT}
136 truncate -s %${ITB_MAX_KB}K ${IMG_UBOOT}
138 echo "Image(re-signed): ${IMG_UBOOT} is ready"
141 echo "Image(re-signed): ${IMG_BOOT} is ready"
144 echo "Image(re-signed): ${IMG_RECOVERY} is ready"
150 rm -f ${ITB}.half1 ${ITB}.half2 ${ITB_RESIGN}