Compare commits
10 Commits
5feb44bc23
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 2ce2866964 | |||
| 471e849523 | |||
| a738e6115c | |||
| 244cb23cd4 | |||
| 803068de38 | |||
| f5b55f4a7e | |||
| 158ec4dca2 | |||
| e50d8b06b8 | |||
| de92eb7b2e | |||
| 75483fa306 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,275 @@
|
|||||||
|
;---------------------------------------------------
|
||||||
|
; Setting load image parameter
|
||||||
|
;---------------------------------------------------
|
||||||
|
ARRAY_NUM = 16
|
||||||
|
strdim IMGNM ARRAY_NUM
|
||||||
|
IMGNM[0] = 'bootparam_sa0.srec'
|
||||||
|
IMGNM[1] = 'icumx_loader.srec'
|
||||||
|
IMGNM[2] = 'cert_header_sa9.srec'
|
||||||
|
IMGNM[3] = 'dummy_fw.srec'
|
||||||
|
IMGNM[4] = 'cr52_loader.srec'
|
||||||
|
IMGNM[5] = 'dummy_fw.srec'
|
||||||
|
IMGNM[6] = 'cr52_loader.srec'
|
||||||
|
IMGNM[7] = 'flag.srec'
|
||||||
|
IMGNM[8] = 'ARM_RCARV4MCR52_basicTemplate.srec'
|
||||||
|
IMGNM[9] = 'ARM_RCARV4MCR52_basicTemplate.srec'
|
||||||
|
IMGNM[10] = 'bl31-grayhawk.srec'
|
||||||
|
IMGNM[11] = 'tee-grayhawk.srec'
|
||||||
|
IMGNM[12] = 'u-boot-elf.srec'
|
||||||
|
IMGNM[13] = 'bl31-grayhawk.srec'
|
||||||
|
IMGNM[14] = 'tee-grayhawk.srec'
|
||||||
|
IMGNM[15] = 'u-boot-elf.srec'
|
||||||
|
|
||||||
|
strdim SAVEADR ARRAY_NUM
|
||||||
|
SAVEADR[0] = '0'
|
||||||
|
SAVEADR[1] = '40000'
|
||||||
|
SAVEADR[2] = '240000'
|
||||||
|
SAVEADR[3] = '280000'
|
||||||
|
SAVEADR[4] = '480000'
|
||||||
|
SAVEADR[5] = '680000'
|
||||||
|
SAVEADR[6] = '880000'
|
||||||
|
SAVEADR[7] = 'A80000'
|
||||||
|
SAVEADR[8] = '32000'
|
||||||
|
SAVEADR[9] = '37000'
|
||||||
|
SAVEADR[10] = '0000'
|
||||||
|
SAVEADR[11] = '0800'
|
||||||
|
SAVEADR[12] = '1000'
|
||||||
|
SAVEADR[13] = '0400'
|
||||||
|
SAVEADR[14] = '0C00'
|
||||||
|
SAVEADR[15] = '1800'
|
||||||
|
|
||||||
|
strdim IMGADR ARRAY_NUM
|
||||||
|
IMGADR[0] = 'EB200000'
|
||||||
|
IMGADR[1] = 'EB210000'
|
||||||
|
IMGADR[2] = 'EB230000'
|
||||||
|
IMGADR[3] = 'EB240000'
|
||||||
|
IMGADR[4] = 'E6300000'
|
||||||
|
IMGADR[5] = 'EB240000'
|
||||||
|
IMGADR[6] = 'E6300000'
|
||||||
|
IMGADR[7] = 'EB23E000'
|
||||||
|
IMGADR[8] = 'E2100000'
|
||||||
|
IMGADR[9] = 'E2100000'
|
||||||
|
IMGADR[10] = '46400000'
|
||||||
|
IMGADR[11] = '44100000'
|
||||||
|
IMGADR[12] = '50000000'
|
||||||
|
IMGADR[13] = '46400000'
|
||||||
|
IMGADR[14] = '44100000'
|
||||||
|
IMGADR[15] = '50000000'
|
||||||
|
|
||||||
|
strdim WRITESEL ARRAY_NUM
|
||||||
|
WRITESEL[0] = 'Flash'
|
||||||
|
WRITESEL[1] = 'Flash'
|
||||||
|
WRITESEL[2] = 'Flash'
|
||||||
|
WRITESEL[3] = 'Flash'
|
||||||
|
WRITESEL[4] = 'Flash'
|
||||||
|
WRITESEL[5] = 'Flash'
|
||||||
|
WRITESEL[6] = 'Flash'
|
||||||
|
WRITESEL[7] = 'Flash'
|
||||||
|
WRITESEL[8] = 'eMMC_USER'
|
||||||
|
WRITESEL[9] = 'eMMC_USER'
|
||||||
|
WRITESEL[10] = 'eMMC_2'
|
||||||
|
WRITESEL[11] = 'eMMC_2'
|
||||||
|
WRITESEL[12] = 'eMMC_2'
|
||||||
|
WRITESEL[13] = 'eMMC_2'
|
||||||
|
WRITESEL[14] = 'eMMC_2'
|
||||||
|
WRITESEL[15] = 'eMMC_2'
|
||||||
|
|
||||||
|
;---------------------------------------------------
|
||||||
|
; Setting FlashWriter parameter
|
||||||
|
;---------------------------------------------------
|
||||||
|
FLASHWRITER_FILE = 'ICUMX_Flash_writer_SCIF_DUMMY_CERT_EB203000_V4M.mot'
|
||||||
|
FLASHWRITER_SPEED = 921600
|
||||||
|
|
||||||
|
;---------------------------------------------------
|
||||||
|
; Select load all images
|
||||||
|
;---------------------------------------------------
|
||||||
|
LOAD_FILES = 'all'
|
||||||
|
|
||||||
|
;---------------------------------------------------
|
||||||
|
; DO NOT EDIT THE FOLLOWING LINES
|
||||||
|
;---------------------------------------------------
|
||||||
|
; Main program
|
||||||
|
;---------------------------------------------------
|
||||||
|
getdir DIR
|
||||||
|
|
||||||
|
call Load_FlashWriter
|
||||||
|
call Load_all_image
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
;---------------------------------------------------
|
||||||
|
; load FlashWriter
|
||||||
|
;---------------------------------------------------
|
||||||
|
:Load_FlashWriter
|
||||||
|
filesearch FLASHWRITER_FILE
|
||||||
|
if result=0 then
|
||||||
|
sprintf 'File "%s" not found' FLASHWRITER_FILE
|
||||||
|
messagebox inputstr 'error'
|
||||||
|
break
|
||||||
|
endif
|
||||||
|
|
||||||
|
setbaud 921600
|
||||||
|
sprintf2 FILE_NAME '%s\%s' DIR FLASHWRITER_FILE
|
||||||
|
sendfile FILE_NAME 1
|
||||||
|
wait '>'
|
||||||
|
|
||||||
|
return
|
||||||
|
|
||||||
|
;---------------------------------------------------
|
||||||
|
; load all images
|
||||||
|
;---------------------------------------------------
|
||||||
|
:Load_All_image
|
||||||
|
|
||||||
|
; file check
|
||||||
|
for i 0 ARRAY_NUM-1
|
||||||
|
filesearch IMGNM[i]
|
||||||
|
if result=0 then
|
||||||
|
sprintf 'File "%s" not found' IMGNM[i]
|
||||||
|
messagebox inputstr 'error'
|
||||||
|
break
|
||||||
|
endif
|
||||||
|
next
|
||||||
|
|
||||||
|
if result=1 then
|
||||||
|
for i 0 ARRAY_NUM-1
|
||||||
|
index = i
|
||||||
|
strcompare WRITESEL[i] 'Flash'
|
||||||
|
if result=0 then
|
||||||
|
call Load_Image
|
||||||
|
endif
|
||||||
|
strcompare WRITESEL[i] 'eMMC'
|
||||||
|
if result=0 then
|
||||||
|
call Load_Image_eMMC
|
||||||
|
endif
|
||||||
|
strcompare WRITESEL[i] 'eMMC_2'
|
||||||
|
if result=0 then
|
||||||
|
call Load_Image_eMMC_2
|
||||||
|
endif
|
||||||
|
strcompare WRITESEL[i] 'eMMC_USER'
|
||||||
|
if result=0 then
|
||||||
|
call Load_Image_eMMC_USER
|
||||||
|
endif
|
||||||
|
next
|
||||||
|
else
|
||||||
|
messagebox "Cancel write all images" "error"
|
||||||
|
endif
|
||||||
|
|
||||||
|
;messagebox "Write Complete" ""
|
||||||
|
return
|
||||||
|
|
||||||
|
;---------------------------------------------------
|
||||||
|
; Load Image To Flash
|
||||||
|
;---------------------------------------------------
|
||||||
|
:Load_Image
|
||||||
|
mpause 10
|
||||||
|
sendln 'xls2'
|
||||||
|
wait ' Select (1)>'
|
||||||
|
mpause 10
|
||||||
|
sendln '1'
|
||||||
|
wait '(Push Y key)'
|
||||||
|
mpause 10
|
||||||
|
send 'y'
|
||||||
|
;wait '(Push Y key)'
|
||||||
|
;mpause 10
|
||||||
|
;send 'y'
|
||||||
|
wait ' Please Input : H'
|
||||||
|
mpause 1
|
||||||
|
sendln IMGADR[index]
|
||||||
|
wait ' Please Input : H'
|
||||||
|
sendln SAVEADR[index]
|
||||||
|
mpause 400
|
||||||
|
wait 'please send ! (Motorola S-record)'
|
||||||
|
mpause 400
|
||||||
|
sprintf2 FILE_NAME '%s\%s' DIR IMGNM[index]
|
||||||
|
sendfile FILE_NAME 1
|
||||||
|
wait 'complete!' 'Clear OK?(y/n)'
|
||||||
|
If result=1 goto proc_end
|
||||||
|
If result=2 goto send_y
|
||||||
|
|
||||||
|
:send_y
|
||||||
|
send 'y'
|
||||||
|
wait '>'
|
||||||
|
|
||||||
|
:proc_end
|
||||||
|
mpause 100
|
||||||
|
return
|
||||||
|
|
||||||
|
;---------------------------------------------------
|
||||||
|
; Load Image To eMMC
|
||||||
|
;---------------------------------------------------
|
||||||
|
:Load_Image_eMMC
|
||||||
|
mpause 10
|
||||||
|
sendln 'em_w'
|
||||||
|
wait '(Push Y key)'
|
||||||
|
mpause 10
|
||||||
|
send 'y'
|
||||||
|
wait ' Select area(0-2)>'
|
||||||
|
mpause 10
|
||||||
|
sendln '1'
|
||||||
|
wait 'Please Input Start Address in sector :'
|
||||||
|
mpause 1
|
||||||
|
sendln SAVEADR[index]
|
||||||
|
wait 'Please Input Program Start Address :'
|
||||||
|
sendln IMGADR[index]
|
||||||
|
mpause 400
|
||||||
|
wait 'please send ! (Motorola S-record)'
|
||||||
|
mpause 400
|
||||||
|
sprintf2 FILE_NAME '%s\%s' DIR IMGNM[index]
|
||||||
|
sendfile FILE_NAME 1
|
||||||
|
wait 'EM_W Complete!'
|
||||||
|
mpause 100
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
|
;---------------------------------------------------
|
||||||
|
; Load Image To eMMC
|
||||||
|
;---------------------------------------------------
|
||||||
|
:Load_Image_eMMC_2
|
||||||
|
mpause 10
|
||||||
|
sendln 'em_w'
|
||||||
|
wait '(Push Y key)'
|
||||||
|
mpause 10
|
||||||
|
send 'y'
|
||||||
|
wait ' Select area(0-2)>'
|
||||||
|
mpause 10
|
||||||
|
sendln '2'
|
||||||
|
wait 'Please Input Start Address in sector :'
|
||||||
|
mpause 1
|
||||||
|
sendln SAVEADR[index]
|
||||||
|
wait 'Please Input Program Start Address :'
|
||||||
|
sendln IMGADR[index]
|
||||||
|
mpause 400
|
||||||
|
wait 'please send ! (Motorola S-record)'
|
||||||
|
mpause 400
|
||||||
|
sprintf2 FILE_NAME '%s\%s' DIR IMGNM[index]
|
||||||
|
sendfile FILE_NAME 1
|
||||||
|
wait 'EM_W Complete!'
|
||||||
|
mpause 100
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
|
;---------------------------------------------------
|
||||||
|
; Load Image To eMMC
|
||||||
|
;---------------------------------------------------
|
||||||
|
:Load_Image_eMMC_USER
|
||||||
|
mpause 10
|
||||||
|
sendln 'em_w'
|
||||||
|
wait '(Push Y key)'
|
||||||
|
mpause 10
|
||||||
|
send 'y'
|
||||||
|
wait ' Select area(0-2)>'
|
||||||
|
mpause 10
|
||||||
|
sendln '0'
|
||||||
|
wait 'Please Input Start Address in sector :'
|
||||||
|
mpause 1
|
||||||
|
sendln SAVEADR[index]
|
||||||
|
wait 'Please Input Program Start Address :'
|
||||||
|
sendln IMGADR[index]
|
||||||
|
mpause 400
|
||||||
|
wait 'please send ! (Motorola S-record)'
|
||||||
|
mpause 400
|
||||||
|
sprintf2 FILE_NAME '%s\%s' DIR IMGNM[index]
|
||||||
|
sendfile FILE_NAME 1
|
||||||
|
wait 'EM_W Complete!'
|
||||||
|
mpause 100
|
||||||
|
return
|
||||||
File diff suppressed because it is too large
Load Diff
2614
Src/0_Tool/FW_Write/Customer/HKL/apcu10a/bl31-grayhawk.srec
Normal file
2614
Src/0_Tool/FW_Write/Customer/HKL/apcu10a/bl31-grayhawk.srec
Normal file
File diff suppressed because it is too large
Load Diff
3139
Src/0_Tool/FW_Write/Customer/HKL/apcu10a/cert_header_sa9.srec
Normal file
3139
Src/0_Tool/FW_Write/Customer/HKL/apcu10a/cert_header_sa9.srec
Normal file
File diff suppressed because it is too large
Load Diff
6155
Src/0_Tool/FW_Write/Customer/HKL/apcu10a/cr52_loader.srec
Normal file
6155
Src/0_Tool/FW_Write/Customer/HKL/apcu10a/cr52_loader.srec
Normal file
File diff suppressed because it is too large
Load Diff
3
Src/0_Tool/FW_Write/Customer/HKL/apcu10a/flag.srec
Normal file
3
Src/0_Tool/FW_Write/Customer/HKL/apcu10a/flag.srec
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
S0220000687474703A2F2F737265636F72642E736F75726365666F7267652E6E65742F1D
|
||||||
|
S306EB23E0000AF3
|
||||||
|
S705EB23E000F9
|
||||||
3288
Src/0_Tool/FW_Write/Customer/HKL/apcu10a/icumx_loader.srec
Normal file
3288
Src/0_Tool/FW_Write/Customer/HKL/apcu10a/icumx_loader.srec
Normal file
File diff suppressed because it is too large
Load Diff
219
Src/0_Tool/FW_Write/Customer/HKL/apcu10a/only_uboot.ttl
Normal file
219
Src/0_Tool/FW_Write/Customer/HKL/apcu10a/only_uboot.ttl
Normal file
@@ -0,0 +1,219 @@
|
|||||||
|
;---------------------------------------------------
|
||||||
|
; Setting load image parameter
|
||||||
|
;---------------------------------------------------
|
||||||
|
ARRAY_NUM = 2
|
||||||
|
strdim IMGNM ARRAY_NUM
|
||||||
|
IMGNM[0] = 'u-boot-elf.srec'
|
||||||
|
IMGNM[1] = 'u-boot-elf.srec'
|
||||||
|
|
||||||
|
strdim SAVEADR ARRAY_NUM
|
||||||
|
SAVEADR[0] = '1000'
|
||||||
|
SAVEADR[1] = '1800'
|
||||||
|
|
||||||
|
strdim IMGADR ARRAY_NUM
|
||||||
|
IMGADR[0] = '50000000'
|
||||||
|
IMGADR[1] = '50000000'
|
||||||
|
|
||||||
|
strdim WRITESEL ARRAY_NUM
|
||||||
|
WRITESEL[0] = 'eMMC_2'
|
||||||
|
WRITESEL[1] = 'eMMC_2'
|
||||||
|
|
||||||
|
;---------------------------------------------------
|
||||||
|
; Setting FlashWriter parameter
|
||||||
|
;---------------------------------------------------
|
||||||
|
FLASHWRITER_FILE = 'ICUMX_Flash_writer_SCIF_DUMMY_CERT_EB203000_V4M.mot'
|
||||||
|
FLASHWRITER_SPEED = 921600
|
||||||
|
|
||||||
|
;---------------------------------------------------
|
||||||
|
; Select load all images
|
||||||
|
;---------------------------------------------------
|
||||||
|
LOAD_FILES = 'all'
|
||||||
|
|
||||||
|
;---------------------------------------------------
|
||||||
|
; DO NOT EDIT THE FOLLOWING LINES
|
||||||
|
;---------------------------------------------------
|
||||||
|
; Main program
|
||||||
|
;---------------------------------------------------
|
||||||
|
getdir DIR
|
||||||
|
|
||||||
|
call Load_FlashWriter
|
||||||
|
call Load_all_image
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
;---------------------------------------------------
|
||||||
|
; load FlashWriter
|
||||||
|
;---------------------------------------------------
|
||||||
|
:Load_FlashWriter
|
||||||
|
filesearch FLASHWRITER_FILE
|
||||||
|
if result=0 then
|
||||||
|
sprintf 'File "%s" not found' FLASHWRITER_FILE
|
||||||
|
messagebox inputstr 'error'
|
||||||
|
break
|
||||||
|
endif
|
||||||
|
|
||||||
|
setbaud 921600
|
||||||
|
sprintf2 FILE_NAME '%s\%s' DIR FLASHWRITER_FILE
|
||||||
|
sendfile FILE_NAME 1
|
||||||
|
wait '>'
|
||||||
|
|
||||||
|
return
|
||||||
|
|
||||||
|
;---------------------------------------------------
|
||||||
|
; load all images
|
||||||
|
;---------------------------------------------------
|
||||||
|
:Load_All_image
|
||||||
|
|
||||||
|
; file check
|
||||||
|
for i 0 ARRAY_NUM-1
|
||||||
|
filesearch IMGNM[i]
|
||||||
|
if result=0 then
|
||||||
|
sprintf 'File "%s" not found' IMGNM[i]
|
||||||
|
messagebox inputstr 'error'
|
||||||
|
break
|
||||||
|
endif
|
||||||
|
next
|
||||||
|
|
||||||
|
if result=1 then
|
||||||
|
for i 0 ARRAY_NUM-1
|
||||||
|
index = i
|
||||||
|
strcompare WRITESEL[i] 'Flash'
|
||||||
|
if result=0 then
|
||||||
|
call Load_Image
|
||||||
|
endif
|
||||||
|
strcompare WRITESEL[i] 'eMMC'
|
||||||
|
if result=0 then
|
||||||
|
call Load_Image_eMMC
|
||||||
|
endif
|
||||||
|
strcompare WRITESEL[i] 'eMMC_2'
|
||||||
|
if result=0 then
|
||||||
|
call Load_Image_eMMC_2
|
||||||
|
endif
|
||||||
|
strcompare WRITESEL[i] 'eMMC_USER'
|
||||||
|
if result=0 then
|
||||||
|
call Load_Image_eMMC_USER
|
||||||
|
endif
|
||||||
|
next
|
||||||
|
else
|
||||||
|
messagebox "Cancel write all images" "error"
|
||||||
|
endif
|
||||||
|
|
||||||
|
;messagebox "Write Complete" ""
|
||||||
|
return
|
||||||
|
|
||||||
|
;---------------------------------------------------
|
||||||
|
; Load Image To Flash
|
||||||
|
;---------------------------------------------------
|
||||||
|
:Load_Image
|
||||||
|
mpause 10
|
||||||
|
sendln 'xls2'
|
||||||
|
wait ' Select (1)>'
|
||||||
|
mpause 10
|
||||||
|
sendln '1'
|
||||||
|
wait '(Push Y key)'
|
||||||
|
mpause 10
|
||||||
|
send 'y'
|
||||||
|
;wait '(Push Y key)'
|
||||||
|
;mpause 10
|
||||||
|
;send 'y'
|
||||||
|
wait ' Please Input : H'
|
||||||
|
mpause 1
|
||||||
|
sendln IMGADR[index]
|
||||||
|
wait ' Please Input : H'
|
||||||
|
sendln SAVEADR[index]
|
||||||
|
mpause 400
|
||||||
|
wait 'please send ! (Motorola S-record)'
|
||||||
|
mpause 400
|
||||||
|
sprintf2 FILE_NAME '%s\%s' DIR IMGNM[index]
|
||||||
|
sendfile FILE_NAME 1
|
||||||
|
wait 'complete!' 'Clear OK?(y/n)'
|
||||||
|
If result=1 goto proc_end
|
||||||
|
If result=2 goto send_y
|
||||||
|
|
||||||
|
:send_y
|
||||||
|
send 'y'
|
||||||
|
wait '>'
|
||||||
|
|
||||||
|
:proc_end
|
||||||
|
mpause 100
|
||||||
|
return
|
||||||
|
|
||||||
|
;---------------------------------------------------
|
||||||
|
; Load Image To eMMC
|
||||||
|
;---------------------------------------------------
|
||||||
|
:Load_Image_eMMC
|
||||||
|
mpause 10
|
||||||
|
sendln 'em_w'
|
||||||
|
wait '(Push Y key)'
|
||||||
|
mpause 10
|
||||||
|
send 'y'
|
||||||
|
wait ' Select area(0-2)>'
|
||||||
|
mpause 10
|
||||||
|
sendln '1'
|
||||||
|
wait 'Please Input Start Address in sector :'
|
||||||
|
mpause 1
|
||||||
|
sendln SAVEADR[index]
|
||||||
|
wait 'Please Input Program Start Address :'
|
||||||
|
sendln IMGADR[index]
|
||||||
|
mpause 400
|
||||||
|
wait 'please send ! (Motorola S-record)'
|
||||||
|
mpause 400
|
||||||
|
sprintf2 FILE_NAME '%s\%s' DIR IMGNM[index]
|
||||||
|
sendfile FILE_NAME 1
|
||||||
|
wait 'EM_W Complete!'
|
||||||
|
mpause 100
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
|
;---------------------------------------------------
|
||||||
|
; Load Image To eMMC
|
||||||
|
;---------------------------------------------------
|
||||||
|
:Load_Image_eMMC_2
|
||||||
|
mpause 10
|
||||||
|
sendln 'em_w'
|
||||||
|
wait '(Push Y key)'
|
||||||
|
mpause 10
|
||||||
|
send 'y'
|
||||||
|
wait ' Select area(0-2)>'
|
||||||
|
mpause 10
|
||||||
|
sendln '2'
|
||||||
|
wait 'Please Input Start Address in sector :'
|
||||||
|
mpause 1
|
||||||
|
sendln SAVEADR[index]
|
||||||
|
wait 'Please Input Program Start Address :'
|
||||||
|
sendln IMGADR[index]
|
||||||
|
mpause 400
|
||||||
|
wait 'please send ! (Motorola S-record)'
|
||||||
|
mpause 400
|
||||||
|
sprintf2 FILE_NAME '%s\%s' DIR IMGNM[index]
|
||||||
|
sendfile FILE_NAME 1
|
||||||
|
wait 'EM_W Complete!'
|
||||||
|
mpause 100
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
|
;---------------------------------------------------
|
||||||
|
; Load Image To eMMC
|
||||||
|
;---------------------------------------------------
|
||||||
|
:Load_Image_eMMC_USER
|
||||||
|
mpause 10
|
||||||
|
sendln 'em_w'
|
||||||
|
wait '(Push Y key)'
|
||||||
|
mpause 10
|
||||||
|
send 'y'
|
||||||
|
wait ' Select area(0-2)>'
|
||||||
|
mpause 10
|
||||||
|
sendln '0'
|
||||||
|
wait 'Please Input Start Address in sector :'
|
||||||
|
mpause 1
|
||||||
|
sendln SAVEADR[index]
|
||||||
|
wait 'Please Input Program Start Address :'
|
||||||
|
sendln IMGADR[index]
|
||||||
|
mpause 400
|
||||||
|
wait 'please send ! (Motorola S-record)'
|
||||||
|
mpause 400
|
||||||
|
sprintf2 FILE_NAME '%s\%s' DIR IMGNM[index]
|
||||||
|
sendfile FILE_NAME 1
|
||||||
|
wait 'EM_W Complete!'
|
||||||
|
mpause 100
|
||||||
|
return
|
||||||
29156
Src/0_Tool/FW_Write/Customer/HKL/apcu10a/tee-grayhawk.srec
Normal file
29156
Src/0_Tool/FW_Write/Customer/HKL/apcu10a/tee-grayhawk.srec
Normal file
File diff suppressed because it is too large
Load Diff
41584
Src/0_Tool/FW_Write/Customer/HKL/apcu10a/u-boot-elf.srec
Normal file
41584
Src/0_Tool/FW_Write/Customer/HKL/apcu10a/u-boot-elf.srec
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,25 @@
|
|||||||
|
;---------------------------------------------------
|
||||||
|
; Main program
|
||||||
|
;---------------------------------------------------
|
||||||
|
getdir DIR
|
||||||
|
|
||||||
|
mpause 10
|
||||||
|
setbaud 921600
|
||||||
|
timeout = 30
|
||||||
|
num = 1
|
||||||
|
do
|
||||||
|
sprintf '--- test : %d ' num
|
||||||
|
dispstr inputstr
|
||||||
|
mpause 500
|
||||||
|
sendln ''
|
||||||
|
mpause 500
|
||||||
|
sendln 'reset'
|
||||||
|
wait 'U-Boot '
|
||||||
|
mpause 100
|
||||||
|
sendln ''
|
||||||
|
mpause 100
|
||||||
|
sendln ''
|
||||||
|
num = num + 1
|
||||||
|
loop until num = 1000;
|
||||||
|
|
||||||
|
end
|
||||||
155
Src/0_Tool/FW_Write/Customer/Mobis/20251016/Flash_IPL_PRK3.ttl
Normal file
155
Src/0_Tool/FW_Write/Customer/Mobis/20251016/Flash_IPL_PRK3.ttl
Normal file
@@ -0,0 +1,155 @@
|
|||||||
|
;---------------------------------------------------
|
||||||
|
; Setting load image parameter
|
||||||
|
;---------------------------------------------------
|
||||||
|
ARRAY_NUM = 1
|
||||||
|
strdim IMGNM ARRAY_NUM
|
||||||
|
IMGNM[0] = 'icumx_loader.srec'
|
||||||
|
|
||||||
|
strdim SAVEADR ARRAY_NUM
|
||||||
|
SAVEADR[0] = '40000'
|
||||||
|
|
||||||
|
strdim IMGADR ARRAY_NUM
|
||||||
|
IMGADR[0] = 'EB210000'
|
||||||
|
|
||||||
|
strdim WRITESEL ARRAY_NUM
|
||||||
|
WRITESEL[0] = 'Flash'
|
||||||
|
|
||||||
|
;---------------------------------------------------
|
||||||
|
; Setting FlashWriter parameter
|
||||||
|
;---------------------------------------------------
|
||||||
|
FLASHWRITER_FILE = 'Flash_writer_PRK3.mot'
|
||||||
|
FLASHWRITER_SPEED = 921600
|
||||||
|
|
||||||
|
;---------------------------------------------------
|
||||||
|
; Select load all images
|
||||||
|
;---------------------------------------------------
|
||||||
|
LOAD_FILES = 'all'
|
||||||
|
|
||||||
|
;---------------------------------------------------
|
||||||
|
; DO NOT EDIT THE FOLLOWING LINES
|
||||||
|
;---------------------------------------------------
|
||||||
|
; Main program
|
||||||
|
;---------------------------------------------------
|
||||||
|
getdir DIR
|
||||||
|
|
||||||
|
call Load_FlashWriter
|
||||||
|
call Load_all_image
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
;---------------------------------------------------
|
||||||
|
; load FlashWriter
|
||||||
|
;---------------------------------------------------
|
||||||
|
:Load_FlashWriter
|
||||||
|
filesearch FLASHWRITER_FILE
|
||||||
|
if result=0 then
|
||||||
|
sprintf 'File "%s" not found' FLASHWRITER_FILE
|
||||||
|
messagebox inputstr 'error'
|
||||||
|
break
|
||||||
|
endif
|
||||||
|
|
||||||
|
setbaud 921600
|
||||||
|
sprintf2 FILE_NAME '%s\%s' DIR FLASHWRITER_FILE
|
||||||
|
sendfile FILE_NAME 1
|
||||||
|
wait '>'
|
||||||
|
|
||||||
|
return
|
||||||
|
|
||||||
|
;---------------------------------------------------
|
||||||
|
; load all images
|
||||||
|
;---------------------------------------------------
|
||||||
|
:Load_All_image
|
||||||
|
|
||||||
|
; file check
|
||||||
|
for i 0 ARRAY_NUM-1
|
||||||
|
filesearch IMGNM[i]
|
||||||
|
if result=0 then
|
||||||
|
sprintf 'File "%s" not found' IMGNM[i]
|
||||||
|
messagebox inputstr 'error'
|
||||||
|
break
|
||||||
|
endif
|
||||||
|
next
|
||||||
|
|
||||||
|
if result=1 then
|
||||||
|
for i 0 ARRAY_NUM-1
|
||||||
|
index = i
|
||||||
|
strcompare WRITESEL[i] 'Flash'
|
||||||
|
if result=0 then
|
||||||
|
call Load_Image
|
||||||
|
endif
|
||||||
|
strcompare WRITESEL[i] 'eMMC'
|
||||||
|
if result=0 then
|
||||||
|
call Load_Image_eMMC
|
||||||
|
endif
|
||||||
|
next
|
||||||
|
else
|
||||||
|
messagebox "Cancel write all images" "error"
|
||||||
|
endif
|
||||||
|
|
||||||
|
;messagebox "Write Complete" ""
|
||||||
|
return
|
||||||
|
|
||||||
|
;---------------------------------------------------
|
||||||
|
; Load Image To Flash
|
||||||
|
;---------------------------------------------------
|
||||||
|
:Load_Image
|
||||||
|
mpause 10
|
||||||
|
sendln 'xls2'
|
||||||
|
;wait ' Select (1-3)>'
|
||||||
|
;mpause 10
|
||||||
|
;sendln '1'
|
||||||
|
;wait '(Push Y key)'
|
||||||
|
;mpause 10
|
||||||
|
;send 'y'
|
||||||
|
;wait '(Push Y key)'
|
||||||
|
;mpause 10
|
||||||
|
;send 'y'
|
||||||
|
wait ' Please Input : H'
|
||||||
|
mpause 1
|
||||||
|
sendln IMGADR[index]
|
||||||
|
wait ' Please Input : H'
|
||||||
|
sendln SAVEADR[index]
|
||||||
|
mpause 400
|
||||||
|
wait 'please send ! (Motorola S-record)'
|
||||||
|
mpause 400
|
||||||
|
sprintf2 FILE_NAME '%s\%s' DIR IMGNM[index]
|
||||||
|
sendfile FILE_NAME 1
|
||||||
|
wait 'complete!' 'Clear OK?(y/n)'
|
||||||
|
If result=1 goto proc_end
|
||||||
|
If result=2 goto send_y
|
||||||
|
|
||||||
|
:send_y
|
||||||
|
send 'y'
|
||||||
|
wait '>'
|
||||||
|
|
||||||
|
:proc_end
|
||||||
|
setbaud 115200
|
||||||
|
mpause 100
|
||||||
|
return
|
||||||
|
|
||||||
|
;---------------------------------------------------
|
||||||
|
; Load Image To eMMC
|
||||||
|
;---------------------------------------------------
|
||||||
|
:Load_Image_eMMC
|
||||||
|
mpause 10
|
||||||
|
sendln 'em_w'
|
||||||
|
;wait '(Push Y key)'
|
||||||
|
;mpause 10
|
||||||
|
;send 'y'
|
||||||
|
wait ' Select area(0-2)>'
|
||||||
|
mpause 10
|
||||||
|
sendln '1'
|
||||||
|
wait 'Please Input Start Address in sector :'
|
||||||
|
mpause 1
|
||||||
|
sendln SAVEADR[index]
|
||||||
|
wait 'Please Input Program Start Address :'
|
||||||
|
sendln IMGADR[index]
|
||||||
|
mpause 400
|
||||||
|
wait 'please send ! (Motorola S-record)'
|
||||||
|
mpause 400
|
||||||
|
sprintf2 FILE_NAME '%s\%s' DIR IMGNM[index]
|
||||||
|
sendfile FILE_NAME 1
|
||||||
|
wait 'EM_W Complete!'
|
||||||
|
setbaud 115200
|
||||||
|
mpause 100
|
||||||
|
return
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user