About Imx28 HAB OTP and Mfgtool

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

About Imx28 HAB OTP and Mfgtool

699 Views
bruce_chen
Contributor I

I am like below step to step to opreation:

     1. According Programming_OTP_Bits.pdf file use keygen tool create new key

                         ./keygen customkey.txt

     2. Copy the customkey.txt key file to firmware project folder, and create new updater_ivt.sb and imx_linux_ivt.sb files

                         elftosb -k customkey.txt -f imx28 -c ./updater_ivt_kone.bd -o updater_ivt_kone.sb

                         elftosb -k customkey.txt -f imx28 -c  ./linux_ivt_kone.bd -o imx28_ivt_kone_linux.sb

     3. According Programming_OTP_Bits.pdf file create bit_setting.txt for imx28, the content like below:

                         *chip-family-mx28*

                         lock_rom0 = true

                         lock_cryptodcp = true

                         lock_cryptodcp_alt = true

     4.According Programming_OTP_Bits.pdf file create OtpInit.sb file

                         ./otp_burner.py -i kone_bit_settings.txt -k customkey.txt  --srk SRK_1_2_3_4_fuse.bin

     5.Copy OtpInit.sb file to BitInit_2.2 folder, and use BitInit.exe tool burn the OtpInit.sb file

                         At windows 7 cmd execute BitInit.exe to burn

     6.Copy updater_ivt_kone.sb and imx28_ivt_kone_linux.sb to Mfgtool profile folder

                         Use Mfgtool programming *sb files

     7.Get like below error code:

                          pastedImage_3.png

I am trying to modify Mfgtool ucl.xml config file, at kobs-ng cmd add -k option and keygen tool create of customer.txt hex string, but get invalid key error

I don't know is my operation step has some question or is bit_setting.txt config has error e.g. some bit not burn or other.......

Thnaks.

Labels (1)
0 Kudos
2 Replies

497 Views
bruce_chen
Contributor I

oh, has any friends reply, Myself reply this question, I am modify the kobs-ng source code, at src/main.c file init_main function, modify the args parameter parsing code. I don't know why kobs-ng can't parsing -k option HEX String and I can't sure modify the kobs-ng code is a best methods, but it's solve my question.

0 Kudos

497 Views
igorpadykov
NXP Employee
NXP Employee

Hi bruce

regarding kobs-ng one can try more new versions, like imx-kobs-5.4

www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-kobs-5.4.tar.gz

Best regards

igor

0 Kudos