From 36487dc8a252e4c962ee0ff266ac18ab7b531399 Mon Sep 17 00:00:00 2001 From: Malte Heinzelmann Date: Thu, 27 Jun 2024 14:57:35 +0200 Subject: [PATCH] Fix nametag --- burn_id_manual.sh | 27 +++++++++++++++++++++++++++ components/spi-st77xx | 2 +- main/nametag.c | 7 ++----- resources/boot0.png | Bin 822 -> 348 bytes resources/boot1.png | Bin 946 -> 472 bytes resources/boot2.png | Bin 999 -> 525 bytes resources/boot3.png | Bin 1147 -> 673 bytes resources/boot4.png | Bin 1174 -> 679 bytes resources/boot5.png | Bin 1149 -> 659 bytes resources/boot6.png | Bin 1059 -> 583 bytes 10 files changed, 30 insertions(+), 6 deletions(-) create mode 100755 burn_id_manual.sh diff --git a/burn_id_manual.sh b/burn_id_manual.sh new file mode 100755 index 0000000..9f689bf --- /dev/null +++ b/burn_id_manual.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +# Always fail hard +set -e + +i="$1" + +read -p "Ready to burn $i. Press any key to continue..." + +verify=`espefuse.py dump | grep BLOCK2 | cut -c 56-60 | python -c 'import sys,struct; print(struct.unpack("H", int(sys.argv[1])) + bytes([0]*30)); f.close()' $i + +# Burn fuses +espefuse.py burn_block_data BLOCK2 id.bin --do-not-confirm > /dev/null + +# Verify fuses +verify=`espefuse.py dump | grep BLOCK2 | cut -c 56-60 | python -c 'import sys,struct; print(struct.unpack("W@fk$L91B0G22s2hJwJ+N&z@)|q0Dk=kPXGV_ delta 488 zcmVEX>4Tx04R}tkv&MmKp2MKrq+s79NIy| zAwzYtixqLKRVYG*P%E_RU~=gnG-*jvTpR`0f`dPcRRt?1%Ws@Z4huXp zVq`P(#1Ue#)Wb>-v$CNPPZLK~O{aVz=d#Lqi?dd3u+BaC3qu8cWtr==#*o4ymLNfd zf(9z6!a|I8oqrS)89GmT_(vVTL@tF~6)FfZ0#dn_Vq>1PpHj7uQ`)*#jvb}LN) z000JJOGiWi{{a60|De66laV18HUI~7Nliru=LQoKFE6dslvV%$02y>eSad^gZEa<4 ebO1wgWnpw>WFU8GbZ8()Nlj2!fesh3HYNd=t=hN% diff --git a/resources/boot1.png b/resources/boot1.png index 4a229f7f1b4a7d2201de464de933abd5ee2e772d..016d45039ab531b6b53caac9bcb9a8fac2089c50 100644 GIT binary patch delta 31 kcmdnQeuH^}vM>W@fk$L91B0G22s2hJwJ+N&z_f@F0DnIR#Q*>R delta 488 zcmVEX>4Tx04R}tkv&MmKp2MKrq+s79NIy| zAwzYtixqLKRVYG*P%E_RU~=gnG-*jvTpR`0f`dPcRRt?1%Ws@Z4huXp zVq`P(#1Ue#)Wb>-v$CNPPZLK~O{aVz=d#Lqi?dd3u+BaC3qu8cWtr==#*o4ymLNfd zf(9z6!a|I8oqrS)89GmT_(vVTL@tF~6)FfZ0#dn_Vq>1PpHj7uQ`)*#jvb}LN) z000JJOGiWi{{a60|De66laV18HUI~7Nliru=LQoKFE_rp3;+NC02y>eSad^gZEa<4 ebO1wgWnpw>WFU8GbZ8()Nlj2!fesh3HlhJ%;@V9B diff --git a/resources/boot2.png b/resources/boot2.png index 7e2fd6820b7d94a0ed3a58f86eafe6b8b4897325..db265b582d3637d42cc1b08d7ecddb74ffc9511b 100644 GIT binary patch delta 31 kcmaFP-pevUS(t&dz$3Dlfk96hgc&QA+Lvt>V7kr-0DZ9sEX>4Tx04R}tkv&MmKp2MKrq+s79NIy| zAwzYtixqLKRVYG*P%E_RU~=gnG-*jvTpR`0f`dPcRRt?1%Ws@Z4huXp zVq`P(#1Ue#)Wb>-v$CNPPZLK~O{aVz=d#Lqi?dd3u+BaC3qu8cWtr==#*o4ymLNfd zf(9z6!a|I8oqrS)89GmT_(vVTL@tF~6)FfZ0#dn_Vq>1PpHj7uQ`)*#jvb}LN) z000JJOGiWi{{a60|De66laV18HUI~7Nliru=LQoKFFUsmKq~+M02y>eSad^gZEa<4 ebO1wgWnpw>WFU8GbZ8()Nlj2!fesh3HrD|$=-M9u diff --git a/resources/boot3.png b/resources/boot3.png index cda30f7cf8271ce2b907c357faa99ed4be4e69e7..ae45a9b92ec269ad7d124f673b509a55e0c220a7 100644 GIT binary patch delta 31 kcmey(v5<9wvM>W@fk$L91B0G22s2hJwJ+N&z?97d0D;5@qyPW_ delta 488 zcmVEX>4Tx04R}tkv&MmKp2MKrq+s79NIy| zAwzYtixqLKRVYG*P%E_RU~=gnG-*jvTpR`0f`dPcRRt?1%Ws@Z4huXp zVq`P(#1Ue#)Wb>-v$CNPPZLK~O{aVz=d#Lqi?dd3u+BaC3qu8cWtr==#*o4ymLNfd zf(9z6!a|I8oqrS)89GmT_(vVTL@tF~6)FfZ0#dn_Vq>1PpHj7uQ`)*#jvb}LN) z000JJOGiWi{{a60|De66laV18HUI~7Nliru=LQoKFa^6cQyu^S02y>eSad^gZEa<4 ebO1wgWnpw>WFU8GbZ8()Nlj2!fesh3HfsWZ=h@l- diff --git a/resources/boot4.png b/resources/boot4.png index 3bd43c51b0be4bce779ed20fe3a2f9c67b62a84b..4474a9f13ef65d0ac8b3806a7a28ac0c663456aa 100644 GIT binary patch delta 578 zcmV-I0=@l~38w{+BVGUra7bBm001r{001r{0eGc9b^rhZSxH1eRCwC$-AzivKo|yK zs~$k;F}#2voJR(O`2wYGRZv8vY45VqA&B!wBxF2n&u3k zLg(HBlWzhTlWGJIf7xB;p73*fm2B+w<}1n^>zC`lFKpk#3ftU$-cs6O0SL?@fEN*fyMu~Dh8$k>e?1?gj+BQqgH}*6S8b)% zko#a`uJyO1T5+X1FqsQ`fIzjhz_H|9xpnQwl~6-T`c`B!+fQ8L{+j@-&5)4T|C!jK zRzeMAkvk~&+vffGOKhvPz(BPGAfN@VO}5is{!4gTT0{NETFo(I2tc}(xWQkGki&`+ z4mt+ZFo(Uef3Bd75yo0z04qQsRZFbx6@Wm-FpeGK0x*(TcLy@U94|FERDYtwkoF&c z&Q)8DAF#Fu2xx)nG3Gj~vE!uv)EX>4Tx04R}tkv&MmKp2MKrq+s79NIy| zAwzYtixqLKRVYG*P%E_RU~=gnG-*jvTpR`0f`dPcRRt?1%Ws@Z4huXp zVq`P(#1Ue#)Wb>-v$CNPPZLK~O{aVz=d#Lqi?dd3u+BaC3qu8cWtr==#*o4ymLNfd zf(9z6!a|I8oqrS)89GmT_(vVTL@tF~6)FfZ0#dn_Vq>1PpHj7uQ`)*#jvb}LN) z000JJOGiWi{{a60|De66laV18e*gz`Nliru=LQoKFbXS*PLBWp02y>eSad^gZEa<4 zbO1wgWnpw>WFU8GbZ8()Nlj2!fese{00M4FL_t(|+U?yzYTG~*2H>X60SY-rFHi_Q zLknH!bXj+iZI&&8UMA2B6m?UBs@g)*%sf4LzHez_&BKJB_hu~lW*COy1`R-m-ueiU zh9iFh5I_I|gu9Ji@b&S1vuocy{Hn6X-SdZkUwC{eE9~LE?ER(dN7is@oiE?Ft^4)e z`PaYwuKUk(TBp@@SNQn!sc6ZcpMQj2H+l^nAb8g;Zhq*>HK)$H1`))0NL zan$-pT6IIM4osrg&;bHu?*Ok>WaoBiKQ2QJnap)$2is4K-WwBu#EqPDe^WcuGSonb zh@d=r7#o3sZV5oZ2;7^n(_a49@U*mt`lqL-TgK3+6W9zVy#laQ#tr^nlpI!MIOu;^ zP{TC9vWCVr?kO690V6PQOiM@N?BnRPMz_KN=m6`h_3S`4IO0PM&eh-OFl5~MM0Ra0 zIg>_E(KSH z8hRe(8;r!QzarE7eZ@v#KmY>t#vVuDTD2Ynm0_Rl+V}d_jHD6!bJKeMuDR!F=+?E@ zjLw2>e0O*m5ACZ(590CwP c00OM@2Wu$9F&{Fdw*UYD07*qoM6N<$g2kfrPXGV_ diff --git a/resources/boot5.png b/resources/boot5.png index cab7e023db37b96cbb49e69ec0637b66084478b5..b686c9bd9e135c8f82a608e92b052b4c072be2d7 100644 GIT binary patch delta 557 zcmV+|0@D5c2$KbnBUk_la7bBm001r{001r{0eGc9b^rhZMM*?KRCwC$-N8-6Fc=0< z3Jie6I4pt0xzqK`5=e}L!~!TBP^BnsLK?@vo%p?TaZFJ^`Eycp=(?`E18C5_w*Zq& z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