Enabling POST in U-Boot to perform RAM test and pass result to application

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

Enabling POST in U-Boot to perform RAM test and pass result to application

3,912 Views
srikanth_vemula
Contributor II

Hi,

I'm trying to enable POST to perform RAM test as part of U-Boot on iMx8mq-evk platform by defining "CONFIG_POST" in my config file. But I'm getting  "#error "_POST_WORD_ADDR currently not implemented for this platform!" . 

Is it really the POST is not implemented on this platform? or I'm missing something else?

If the POST is not implemented yet, then how can I perform RAM test as part of U-Boot? I need to use it's result in my end application after the kernel boots up.

Request your inputs on the above as this is first time for me to work on U-Boot.

Regards,

Srikanth Vemula. 

0 Kudos
Reply
3 Replies

3,905 Views
igorpadykov
NXP Employee
NXP Employee

Hi srikanth_vemula

 

I am afraid POST U-Boot is not supported on i.MX8MQ platform, for memory test

one can try mtest:  

https://www.denx.de/wiki/view/DULG/UBootCmdGroupMemory

 

Best regards
igor

 

 

0 Kudos
Reply

3,893 Views
srikanth_vemula
Contributor II

Hi igor,

Thank you for the quick response.

I didn't go for mtest, as it may corrupt the memory regions occupied by the u-boot. 

copied a caution note from the link :

This command may crash the system when the tested memory range includes areas that are needed for the operation of the U-Boot firmware (like exception vector code, or U-Boot's internal program code, stack or heap memory areas).

As per my requirement, I need to perform the test in production software. Hence, thought of performing POST as it runs the RAM test from ROM. As you confirmed that POST is not implemented on iMx8, can you please suggest any other method for testing RAM? If not, then worst case, I need to proceed with mtest only. In that case, can you please suggest how can I find safe memory locations of RAM to perform test?

And a method to pass on the result to Application software? Thought of creating a file in UBoot boot script and write the result and then finally store the file into EMMC. So that, UBoot performs the RAM test before loading kernel and the result can be read by the end application from the file after the kernel loads up. Please advice on it's feasibility.

Thanks in advance.

Regards,

Srikanth Vemula.

0 Kudos
Reply

3,885 Views
igorpadykov
NXP Employee
NXP Employee

Hi Srikanth

 

for uboot memory usage one can look at web:

https://stackoverflow.com/questions/35336940/understand-u-boot-memory-footprint

and post question on uboot mail list, as this is general uboot question :

https://lists.denx.de/listinfo/u-boot

 

Best regards
igor

0 Kudos
Reply