LTIB build errors i.MX6Q

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LTIB build errors i.MX6Q

跳至解决方案
3,959 次查看
jeffreycoffman
Contributor III

Hi,

I've installed installed LTIB on a Ubuntu 9.04 host following the host setup instructions to the letter.  I've run ./ltib -m config and picked the Platform "Freescale iMX reference boards".    Selected iMX6 for the platform and mx6q_sabreauto for the uboot.  Pretty much exactly like the instruction indicate.  When I run ./ltib I get a build error failed to build u-boot as follows:

Processing platform: Freescale iMX6x Based Boards

===================================================

using config/platform/imx/.config

Processing: fake-provides

===========================

Processing: u-boot

====================

Build path taken because: directory build, no prebuilt rpm,

scbuild/scdeploy already unpacked package

Processing: u-boot

====================

Build path taken because: directory build, build key set, no prebuilt rpm,

rpmbuild --dbpath /home/jcoffman/freescale/ltib/rootfs//var/lib/rpm --target arm --define '_unpackaged_files_terminate_build 0' --define '_target_cpu arm' --define '__strip strip' --define '_topdir /home/jcoffman/freescale/ltib/rpm' --define '_prefix /usr' --define '_tmppath /home/jcoffman/freescale/ltib/tmp' --define '_rpmdir /home/jcoffman/freescale/ltib/rpm/RPMS'  --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bc --short-circuit  /home/jcoffman/freescale/ltib/tmp/u-boot.spec

Building target platforms: arm

Building for target arm

Executing(%build): /bin/sh -e /home/jcoffman/freescale/ltib/tmp/rpm-tmp.69421

+ umask 022

+ cd /home/jcoffman/freescale/ltib/rpm/BUILD

+ cd u-boot-2009.08

+ : mx6q_sabreauto_config

+ eval echo

+ echo

+ PKG_U_BOOT_PATH_PRECONFIG=

+ SRC_DIR=/home/jcoffman/freescale/ltib/rpm/BUILD/u-boot-2009.08

+ BUILD_DIR=/home/jcoffman/freescale/ltib/rpm/BUILD/u-boot-2009.08

+ [ /home/jcoffman/freescale/ltib/rpm/BUILD/u-boot-2009.08 != /home/jcoffman/freescale/ltib/rpm/BUILD/u-boot-2009.08 ]

+ cd /home/jcoffman/freescale/ltib/rpm/BUILD/u-boot-2009.08

+ [ -n  ]

+ make HOSTCC=ccache /usr/bin/gcc -B/usr/bin/ CROSS_COMPILE=arm-none-linux-gnueabi- O=/home/jcoffman/freescale/ltib/rpm/BUILD/u-boot-2009.08 mx6q_sabreauto_config

make: *** No rule to make target `mx6q_sabreauto_config'.  Stop.

error: Bad exit status from /home/jcoffman/freescale/ltib/tmp/rpm-tmp.69421 (%build)

RPM build errors:

    Bad exit status from /home/jcoffman/freescale/ltib/tmp/rpm-tmp.69421 (%build)

Build time for u-boot: 0 seconds

Failed building u-boot

f_buildrpms() returned an error, exiting

traceback:

main:560

Started: Tue Jan 29 20:03:16 2013

Ended:   Tue Jan 29 20:03:16 2013

Elapsed: 0 seconds

These packages failed to build:

u-boot

Build Failed


标签 (1)
0 项奖励
回复
1 解答
2,548 次查看
LeonardoSandova
Specialist I

Jeffrey,

those steps you made are the correct ones. LTIB uses /opt/freescale folder by default (you can change this, check the ltib script) to store all downloaded packages, patches, checksums, toolchain, etc, in order words, is the workplace for LTIB, so do not chose to install ltib there. It is safer to install it somewhere in your home directory.

Also, as a step 5, I would add

5. select the u-boot board on the ltib menuconfig screen.

Leo

在原帖中查看解决方案

0 项奖励
回复
6 回复数
2,548 次查看
LeonardoSandova
Specialist I

Hi Jeffrey,

seems that the U-boot configuration file is not found, so the make command fails building it. It the past, I had some similar problem and what I did is to reinstall ltib. So please reinstall it. Before doing this:

1. have you done any modifications to U-boot code?

2. can you try building the pks individually $./ltib -m scbuild -p u-boot

3. can you check that the config file is indeed present $ find ltib/rpm/BUILD/u-boot-2009.08 -name *_config

Also, that host OS is pretty old :smileyhappy: . is there a reason you are using that particular version?

Leo

0 项奖励
回复
2,548 次查看
jeffreycoffman
Contributor III

9.04 is what Freescale recommends in their documentation, they state very clearly to use 9.04.  Otherwise I would not have used it.  I have not modified anything this is just a vanilla build straight from their source package. I haven't tried building just the pkg individually, but i will.  Also the configs don't seem to be there, like the patching process for the platform did not work correctly, although I got no errors during the installation of LTIB.

I'm not sure I trust the instructions in Freescale's docs package. 

Thanks

0 项奖励
回复
2,548 次查看
LeonardoSandova
Specialist I

FSL recommends a set of OS, specially Ubuntu 9 and 10. Documents are correct; all embedded instructions into the documents have been tested exhaustively.

Can you please try to reinstall LTIB again? of course, use another destination folder. Let me know the result.

Leo

0 项奖励
回复
2,548 次查看
jeffreycoffman
Contributor III

I tried a reinstall in a different destination, /opt/freescale.  I chown'd /opt/freescale to be my default user and the first thing I noticed is after running install and then ./ltib it seems that ltib installs everything under /opt/freescale as root.  It then cannot save the platform config file because of permission issues.  I have to ctrl-c and chown it back again and then run ltib again.  Note I have added the line to the sudoer file as specified in the documentation so not sure why this happens.  Anyhow once I do this it appears to work, ltib then lets me save the imx6 platform config and goes on applying zillions of patches which i would expect and the kernel seems to build fine.

I guess I'm concerned somewhere my install got messed up and I'd like to figure out why.  I followed the host setup to the letter.

Basically I followed the following steps.

1.  install all the host setup stuff as specified in the document (didn't have any issues here everything seemed to work)

2.  install tlib from source package

3.  run./ltib

4.  select imx6 platform and min profile

0 项奖励
回复
2,549 次查看
LeonardoSandova
Specialist I

Jeffrey,

those steps you made are the correct ones. LTIB uses /opt/freescale folder by default (you can change this, check the ltib script) to store all downloaded packages, patches, checksums, toolchain, etc, in order words, is the workplace for LTIB, so do not chose to install ltib there. It is safer to install it somewhere in your home directory.

Also, as a step 5, I would add

5. select the u-boot board on the ltib menuconfig screen.

Leo

0 项奖励
回复
2,548 次查看
jeffreycoffman
Contributor III

Seems to have worked.  Thanks for the quick response.

Jeff

0 项奖励
回复