SCFW Testing

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
2,659件の閲覧回数
vzeric
Contributor III

Greetings,

I am using iMX8QM MEK.
I have built flash.bin file using imx-mkimage running the command
make SOC=iMX8QM flash_scfw_test
I copied scfw_tests.bin and scfw_tcm.bin in imx-mkimage/iMX8QM which I got running
make qm R=B0 B=mek T=all
Also, I have copied mx8qmb0-ahab-container.img from firmaware/seco to imx-mkimage/iMX8QM
There is no problems during the build, but I cannnot flash the board using Universal Update Utility.
After runnning uuu -V -b emmc flash.bin process goes to 100% and stucks here forever. Also I am not sure how am I supposed to run SCFW test?

Best regards,
Vanja

ラベル(1)
0 件の賞賛
1 解決策
2,644件の閲覧回数
BiyongSUN
NXP Employee
NXP Employee

Because flash board needs u-boot fastboot. The scfw test flash.bin has no u-boot. So you need a regular flash.bin as arg0 and scfw test flash.bin as arg1

uuu [-d -m -v] -b[run] <emmc|emmc_all|fat_write|nand|qspi|sd|sd_all|spl> arg...
Run Built-in scripts
emmc burn boot loader to eMMC boot partition
arg0: _flash.bin bootloader
arg1: _image[Optional] image burn to emmc, default is the same as bootloader

元の投稿で解決策を見る

10 返答(返信)
2,538件の閲覧回数
vzeric
Contributor III

New problem that I am facing, but I am not sure that's my mistake:
When I try to build SCFW Tests with option T=all, I am getting error that m_text sector is overflowed by 2000+ bytes

Edit:

region `m_text' overflowed by 2752 bytes

0 件の賞賛
2,492件の閲覧回数
BiyongSUN
NXP Employee
NXP Employee

It is not your problem.

option all is too big. 

2,584件の閲覧回数
vzeric
Contributor III

Hi, me again. I managed to write the image to the emmc and I have enabled SCU Debug Monitor, and I built "dsc" test for now, but when I run the board everything looks good, but I cannot see the output of the "dsc" test. Am I supposed to run ti somehow or it should be run automatically with or without output? I can't see if it passes or fails.

0 件の賞賛
2,581件の閲覧回数
BiyongSUN
NXP Employee
NXP Employee

Please  try add T=dsc  during compile the scfw.  

 

BTW, you don't need to flash to emmc to do the test. 

just uuu  flash.bin   is enough. 

2,578件の閲覧回数
vzeric
Contributor III

Yes, I added T=dsc.
I tested, uuu flash.bin passes, and where can I see the output?

0 件の賞賛
2,560件の閲覧回数
BiyongSUN
NXP Employee
NXP Employee

Have you use the M=1 to enable the scfw debug monitor?

Do you have debug uart for scfw on hardware? 

0 件の賞賛
2,555件の閲覧回数
vzeric
Contributor III

Yes, I have compiled with option M=1 and I have enabled SCU Debug Monitor and moved SW4 to position ON to enable UART

Command:
make qm R=B0 D=1 M=1 B=mek U=2 T=dsc

after that imx-mkimage runs:
make SOC=iMX8QM flash_spl

0 件の賞賛
2,547件の閲覧回数
vzeric
Contributor III

I run clean build, and I got output on SCU Debug Monitor. Thank you for you time.
Best regards.

0 件の賞賛
2,645件の閲覧回数
BiyongSUN
NXP Employee
NXP Employee

Because flash board needs u-boot fastboot. The scfw test flash.bin has no u-boot. So you need a regular flash.bin as arg0 and scfw test flash.bin as arg1

uuu [-d -m -v] -b[run] <emmc|emmc_all|fat_write|nand|qspi|sd|sd_all|spl> arg...
Run Built-in scripts
emmc burn boot loader to eMMC boot partition
arg0: _flash.bin bootloader
arg1: _image[Optional] image burn to emmc, default is the same as bootloader

2,651件の閲覧回数
vzeric
Contributor III

Actually I need to add flash.bin to OCRAM at 0x00100000

 

0 件の賞賛