AnsweredAssumed Answered

problem with build obds project

Question asked by cao ping on Feb 3, 2013
Latest reply on Feb 5, 2013 by cao ping

Hi,everyone

 

now i want to have one test project on my computer to test the imx53 board,  i install the Ubuntu 10.04

according to "README_Ubuntu_VM.pdf",

when i run "cat /proc/version",it displays

 

Linux version 2.6.32-21-generic (buildd@rothera) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #32-Ubuntu SMP

Fri Apr 16 08:10:02 UTC 2010

 

and then i download "I201139_mx53_sbrth_lcb_release" on freescale webside,and

 

coye"I201139_mx53_sbrth_lcb_release" to ubuntu "Desktop",and change I201139_mx53_sbrth_lcb_release's name

into obds,in the path /Desktop/obds,when i run"make TARGET=mx53 BOARD=sbrth_lcb BOARD_VERSION=1",it displays

 

mkdir -p output

mkdir -p output/mx53

mkdir -p /home/lucid/Desktop/obds/output/mx53/lib

mkdir -p /home/lucid/Desktop/obds/output/mx53/bin

make -S -C src dir

make[1]: Entering directory `/home/lucid/Desktop/obds/src'

make -S -C drivers dir

make[2]: Entering directory `/home/lucid/Desktop/obds/src/drivers'

make -S -C usb dir

make[3]: Entering directory `/home/lucid/Desktop/obds/src/drivers/usb'

make -S -C imx_usb dir

make[4]: Entering directory `/home/lucid/Desktop/obds/src/drivers/usb/imx_usb'

arm-none-eabi-ar -rucs /home/lucid/Desktop/obds/output/mx53/lib/libobds.a

/home/lucid/Desktop/obds/output/mx53/obj/imx_usb/usb_h1.o

/home/lucid/Desktop/obds/output/mx53/obj/imx_usb/usb_test.o

make[4]: arm-none-eabi-ar: Command not found

make[4]: *** [all] Error 127

make[4]: Leaving directory `/home/lucid/Desktop/obds/src/drivers/usb/imx_usb'

make[3]: *** [imx_usb] Error 2

make[3]: Leaving directory `/home/lucid/Desktop/obds/src/drivers/usb'

make[2]: *** [usb] Error 2

make[2]: Leaving directory `/home/lucid/Desktop/obds/src/drivers'

make[1]: *** [drivers] Error 2

make[1]: Leaving directory `/home/lucid/Desktop/obds/src'

make: *** [src] Error 2

 

and when i change

CC= arm-none-eabi-gcc

AS = arm-none-eabi-as

AR = arm-none-eabi-ar

LN = arm-none-eabi-ld

into

CC = /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi-gcc

AS = /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi-as

AR = /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi-ar

LN = /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi-ld

 

and run "make TARGET=mx53 BOARD=sbrth_lcb BOARD_VERSION=1",it displays

 

/home/lucid/Desktop/obds/src/init/sys.c:137: warning: its scope is only this definition or declaration,

which is probably not what you want

/home/lucid/Desktop/obds/src/init/sys.c: In function '_write':

/home/lucid/Desktop/obds/src/init/sys.c:183: warning: null argument where non-null required (argument 2)

/home/lucid/Desktop/obds/src/init/sys.c:186: warning: null argument where non-null required (argument 2)

collect2: ld terminated with signal 11 [Segmentation fault]

/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-

linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/bin/ld: BFD (GNU Binutils) 2.20.1.20100303 assertion

fail /work/arm-toolchains/tmp/src/binutils-2.20.1/bfd/elf32-arm.c:12429

make: *** [bin] Error 1

 

how can i compile the project,can anyone use it?


Outcomes