u-boot standalone program issue

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

u-boot standalone program issue

1,136 Views
edwinkaus
Contributor III

Hi.,

I am working on iMX6 sabre SD board, I am trying to run an standalone hello_world.bin(which is already compiled with u-boot source code) over u-boot code.The binary file is getting loaded to RAM successfully , but when I give 'GO' command its giving a "data abort error",

Only thing I modified "CONFIG_STANDALONE_LOAD_ADDR" to 0x10000000 in arch/arm/config.mk file.

Can anyone help me to come out from this issue.

Here I am attaching the LOG.

=> fatload mmc 1:2 0x10000000 hello_world.bin
578 bytes read in 15 ms (37.1 KiB/s)
=>
=>
=> go 0x10000000
## Starting application at 0x10000000 ...
data abort
pc : [<10000008>] lr : [<4ff6970f>]
reloc pc : [<d789a008>] lr : [<1780370f>]
sp : 4f565d48 ip : 0000001c fp : 00000002
r10: 4ffc43fc r9 : 4f565ea0 r8 : 4f86d1a8
r7 : 4ff696e5 r6 : 00000002 r5 : 10000000 r4 : 4f86d1ac
r3 : 10000000 r2 : 4f86d1ac r1 : 4f86d1ac r0 : 00000001
Flags: nzCv IRQs off FIQs off Mode SVC_32
Code:

Labels (2)
Tags (1)
0 Kudos
3 Replies

792 Views
igorpadykov
NXP Employee
NXP Employee

Hi Edwin

reason for abort may be that program first instruction (usually located at start: label)

is not compiled at 0x10000000 address. So at this address is located wrong instruction.

In uboot one can read data at that address and compare it with linker listing file.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

792 Views
edwinkaus
Contributor III

Hi igorpadykov.,

Thank you for your valuable response.

By referring some threads I have modified  "CONFIG_STANDALONE_LOAD_ADDR" to 0x10000000 in u-boot root folder/Arch/arc/config.mk file & u-boot root folder/include/configs/mx6_common.h files. As per my understanding the standalone example make file will consider the above define only. I also cross checked the address by looking at Hex file(hello_world.srec) generated along with hello_world binary file(hello_world.bin).

since one week I stuck with this issue , Can you please help me to come out from this issue, Where should I modify standalone load address, or Is there any step i am missing.

Thank you.,.,

0 Kudos

792 Views
igorpadykov
NXP Employee
NXP Employee

Hi Edwin

 

one can look on https://community.nxp.com/thread/359068 
Wandboard Discussion Forums • View topic - Basic Application from scratch 
example in uboot..examples/standalone/ hello_world.c

 

Best regards
igor

0 Kudos