Build uImage error on i.mx53 QSB

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

Build uImage error on i.mx53 QSB

2,821 Views
WeiWeiBo
Contributor II

Hi everyone

I had installed ubuntu10.10 on VMware, and downloaded the android source code "Freescale-iMX53-QSB-Android 2.3-Version 4.2" from the Adeneo website "http://www.adeneo-embedded.com/".

Follow the user guide build prerequistes "http://source.android.com/source/initializing.html"
***Java 6: for Gingerbread and newer
$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk


***32-bit (experimental)
$ sudo apt-get install git-core gnupg flex bison gperf build-essential \ zip curl zlib1g-dev libc6-dev libncurses5-dev x11proto-core-dev \ libx11-dev libreadline6-dev libgl1-mesa-dev tofrodos python-markdown \ libxml2-utils xsltproc

ABOVE was what i did about the prerequistes.
Afterward I followed the user-guide below the appendix (file name: Release Notes r4.2.pdf).  And I unpacked the tar.gz file:
$tar zxvf i.MX53-QSB-Android-Release4.2.tar.gz
$ cd i.MX53-QSB-Android-Release4.2/scripts

Subsequently, I ran the script “download_android.sh” download the android source from repository

$./download_android.sh

After downloading, I got two additional folders: "src","install" under "i.MX53-QSB-Android-Release4.2

---------------------------------------------------------------------------------------------------------------------------------------------

$./build_android.sh --board=imx53_qsb --build-choice=uboot --lunchtype=eng  

I got the u-boot.bin successfully. 

Then I would like to add USB driver before building uImage, so I changed into

$cd i.MX53-QSB-Android-Release4.2/src/kernel-imx

$make menuconfig 

After that, I can add the USB driver as shown in the attached file. (file name: USB driver.jpg)

Finally, I saved the .config and return to the console.

---------------------------------------------------------------------------------------------------------------------------------------------

Now, here is the problem. 

$cd  i.MX53-QSB-Android-Release4.2/scripts

$./build_android.sh --board=imx53_qsb --build-choice=kernel --lunch-type=eng

The error message is shown as attached (file name: compile error.doc)

ps. In the attached file, the black part is under normal operation, but the red part shown on the last page is the compile error. (p. 29)


Would anyone be so kind to guide me how to solve the problem.

Really thx!!!!

Labels (1)
6 Replies

1,414 Views
WeiWeiBo
Contributor II

Hi Remi

I took more time try to next step

found some problem

$make ARCH=arm menuconfig

the command is right for me

but I try to see the .config file found the "ARM SYSTEM" is still VERSATILE which is shown as attached(file name:config_versatile.doc) p.6

I think it's not suitable for my arm system

so I still manually modify the default .config file to add the driver that I want 

really sorry replied you early the wrong answer

0 Kudos

1,414 Views
WeiWeiBo
Contributor II

It's work,

really thx Remi



Remi Lorriaux said:

try: make ARCH=arm menuconfig

0 Kudos

1,414 Views
rlorriaux
Contributor I

try: make ARCH=arm menuconfig

0 Kudos

1,414 Views
WeiWeiBo
Contributor II

Hi Remi

seems I found problem

1.

I check the .config without doing 

$make menuconfig

under kernel-imx folder

I used the command  directly  to build uImage under "scripts" folder

$./build_android.sh --board=imx53_qsb --build-choice=kernel --lunch-type=eng

after finished the build 

the .config (this file under kernel-imx folder) is shown as attached(file name: config_original.doc)

I could find the ARM system correctly on page.6

2.

Then I check the .config doing

$make menuconfig

under kernel-imx folder and "Save an Alternate Configuration File" without change any setting is shown as attached (file name:save config.jpg)

The .config is shown as attached(file name: config_new)

I found they are different, the config_new seem not suitable for i.MX53QSB

So, I need to modify .config file by myself add the module that I wanted.

thx

Remi Lorriaux said:

From what I can tell, you must have changed the default configuration for the iMX53 and you are building for the Versatile board. You should start again with a clean build (or better use the defconfig for the mx5).

0 Kudos

1,414 Views
WeiWeiBo
Contributor II

Thx Remi Lorriaux

I got the same error message is shown as attached (file name: compile error.doc)

when just into

$make menuconfig 

I did nothing ,  afterward just save the .config return console

$cd  i.MX53-QSB-Android-Release4.2/scripts

$./build_android.sh --board=imx53_qsb --build-choice=kernel --lunch-type=eng


whenever I choose 

14. Freescale MXC/iMX-based (ARCH_MXC) (NEW)

OR

16. Freescale i.MXS family soc (ARCH_MXS) (NEW)

shown as attached (file name: compile error.doc (p. 2)

also show the same compile error

-------------------------------------------------------------------------------------------------------------

arm-eabi-ld: internal error in relocate_special_relocatable, at /home/jingyu/projects/gcc/android-toolchainsrc/build/../binutils/binutils-2.19/gold/arm.cc:9524

make[1]: *** [arch/arm/kernel/traps.o] Error 1

make: *** [arch/arm/kernel] Error 2

victor@ubuntu:~/Freescale-iMX53-QSB-Android2.3-Version4.2/i.MX53-QSB-Android-Gingerbread-Release4.2/scripts$ 

-----------------------------------------------------------------------------------------------------------------------

Did I miss any cross-compile toolchain setting FROM the error message?

THX  


0 Kudos

1,414 Views
rlorriaux
Contributor I

From what I can tell, you must have changed the default configuration for the iMX53 and you are building for the Versatile board. You should start again with a clean build (or better use the defconfig for the mx5).

0 Kudos