ERROR building u-boot for i.MX6 Sabre SD

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

ERROR building u-boot for i.MX6 Sabre SD

2,468件の閲覧回数
ailtonlopes
Contributor III

Im trying to build the uboot for the board i.MX6 and im getting this error when using the command **make**

> andersenbond@Bond:~/Desktop/IMX6QSD/u-boot$ sudo make

Your GCC is older than 6.0 and will not be supported starting in v2018.01.

> CHK include/config/uboot.release

> CHK include/generated/version_autogenerated.h

> CHK include/generated/timestamp_autogenerated.h

> UPD include/generated/timestamp_autogenerated.h

> CC lib/asm-offsets.s

> **lib/asm-offsets.c:1:0: error: bad value (armv5) for -march= switch**

>**/***

> **^**

>Kbuild:43: recipe for target 'lib/asm-offsets.s' failed

>make[1]: *** [lib/asm-offsets.s] Error 1

>Makefile:1331: recipe for target 'prepare0' failed

>make: *** [prepare0] Error 2

>andersenbond@Bond:~/Desktop/IMX6QSD/u-boot$

I tried to see if there's an extra ***/** in the **lib/asm-offsets.c** file but the file is fine, i didn't make any changes in the repository cloned from GitHub.
I really need to fix this problem and it would help a lot if anyone can help, Thanks in advanced.
Kind Regards.
the image bellow shows the error.

ラベル(2)
タグ(3)
6 返答(返信)

1,147件の閲覧回数
pavandornadula7
Contributor I

hello Lopes,

I have set the compilation path, even after doing so i am getting the same error!! has it got something to do with the gcc version of my ubuntu machine????

Regards,

Pavan

0 件の賞賛

1,147件の閲覧回数
ailtonlopes
Contributor III

Put here the output of your error. 

0 件の賞賛

1,147件の閲覧回数
Rita_Wang
NXP TechSupport
NXP TechSupport

Which version BSP are you using?

1,147件の閲覧回数
ailtonlopes
Contributor III

Sorry for not answering before Rita, I was able to solve the problem by updating the ubuntu on my pc to the last version.
Thanks for the reply
Kind Regards.

0 件の賞賛

1,147件の閲覧回数
pavandornadula7
Contributor I

Hello Lopes,

What was the issue actually?? Even i am stuck here!! Can u kindly help me out 

Regards,

Pavan 

0 件の賞賛

1,147件の閲覧回数
ailtonlopes
Contributor III

hey Pavan, not, that was not the error, the error is that you are forgetting to do export ARCH=arm at the terminal before doing the make, if your arch is different than arm change it to the one for your board. 

Kind regards, 

Ailton Lopes

0 件の賞賛