Linux BSP for the M54455 Eval Board

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

Linux BSP for the M54455 Eval Board

6,037 Views
Gkahn
Contributor I
Hi
I'm having a small problem getting the BSP for the M54455 Eval board to build.
I have the default packages as provided by Freescale and even cracked open
a /opt/freescale directory to install into. The problem appears to be that the
rpmbuild routing (which is reading the spec file from the dist directory) cannot
find the source files in the pkgs directory. I have altered paths in the ltib script
but nothing seems to work. I have verified that the package(s) in question are
in the pkgs directory.

I am a native Linux user, but this is the first time I've worked with ltib. I will keep
working on this, but I would greatly appreciate any help or insight you could provide.

Thank You.

------------- log file ---------------------------------
Installing host support packages.

This only needs to be done once per host, but may take up to
an hour to complete ...

If an error occurs, a log file with the full output may be found in:
/opt/freescale/ltib/host_config.log

Exiting on error or interrupt
Please see >> /opt/freescale/ltib/host_config.log for details

Processing platform: Native Linux support
===========================================
using

Processing: rpm-fs
====================
/usr/bin/rpmbuild --dbpath /tmp/rpm-user/rpmdb --define '_unpackaged_files_terminate_build 0' --define '_target_cpu i686' --define '__strip strip' --define '_topdir /tmp/rpm-user' --define '_prefix /opt/freescale/ltib/usr' --define '_tmppath /tmp' --define '_mandir /opt/freescale/ltib/usr/share/man' --define '_sysconfdir /opt/freescale/ltib/etc' --define '_localstatedir /var' -bb  --clean --rmsource  /opt/freescale/ltib/dist/lfs-5.1/rpm/rpm-fs.spec
error: File ./rpm-4.0.4.tar.gz: No such file or directory
Build time for rpm-fs: 0 seconds

Failed building rpm-fs
Died at ltib line 1999.

Started: Fri Oct 12 15:39:51 2007
Ended:   Fri Oct 12 15:39:52 2007
Elapsed: 1 seconds

These packages failed to build:
rpm-fs
Build Failed


Labels (1)
0 Kudos
Reply
9 Replies

1,293 Views
DavidS
NXP Employee
NXP Employee
Hi Gkahn,
I've installed LTIB many times and have also removed and re-installed many times so have a success and failures.  Luckily more success than failures.
After I mount the iso as root and cd to the mnt directory, make sure you are non-root for the rest of the install process.
Next I use all of the defaults except for the install directory.  I change it to "/home/user" and do not install it to the "/opt" directory.
Once the install script completes, cd to your "/home/user/ltib-mcf5445x-20071001" directory.
Make sure as non-root to run "./ltib" all by itself.
After hopefully the success run of it just this first time, run "./ltib -c" to get the default setup to run/build.
If I mess up I just delete the LTIB and /opt/freescale directories and start over.
Hopefully this works/helps.
I've used FC5 and openSUSE10.1 recently.
Regards,
David
0 Kudos
Reply

1,293 Views
Gkahn
Contributor I
Thanks for your reply David,
I'm a little worried now, I've tried all the steps you mentioned
without any success. I'm using Fedora 7, but tried FC5 with
the same results.
When your build failed, did you get a similar error??
I'll clean out everything and start fresh again.

Thanks again.

Gkahn
0 Kudos
Reply

1,293 Views
DavidS
NXP Employee
NXP Employee
Hi Gkahn,
The team that build/integrate and test the LTIB try to do it on multiple distributions: RH7/9, FC4-6, and maybe another that doesn't come to mind.  As mentioned I've done it on openSUSE10.1.
FC7 is too new for them to have tested with yet.
I haven't seen the specific error you mention.
Sorry you have the issue but please let me know how the delete and re-install goes.
I'm using VMware Workstation so if I have too I can download FC7 and give it a try but I'll wait to see if you have success.
Regards,
David
0 Kudos
Reply

1,293 Views
Gkahn
Contributor I
David,
Well I scraped the install again and tried reinstalling and building under Fedora 7. No luck, same results.
I scraped again and reinstalled, this time I built under F5. Except for a problem with the temp directory,
it seems to be building. So there seems to be an issue with Fedora 7 or something in my environment.
I'm hoping that once I get through the first build, I can use my native Fedora 7 environment to do the
subsequent work, if not, I still have a path forward. Perhaps it's time to dig out that old FC5 Live-CD.

Thanks again for your help.
Gkahn.
0 Kudos
Reply

1,293 Views
mnorman
NXP Employee
NXP Employee
Can you post your host_config.log file from a fresh install from the ISO (as is, as a normal user)?

-mnorman
0 Kudos
Reply

1,293 Views
Gkahn
Contributor I
I reinstalled into a clean directory but there doesn't appear to be any file with this name,
anywhere in the install branch. In fact, no file of this  name exists anywhere on my
machine. Do I need to set an option or environmental to get this file???

Thanks.

Gkahn
0 Kudos
Reply

1,293 Views
DavidS
NXP Employee
NXP Employee
Hi Gkahn,
It would be in the same directory as the "ltib" perl script and it gets generated when you first run the ./ltib without any parameters and is named "host_config.log".
So in summary, as root you mount the iso.  As a user you run the "./install" and follow the instructions and mostly use the default settings BUT be careful for where it ask you to install ltib.  It defaults to the mount point.  I usually point it to my user log in directory (ex: /home/david).
After the install process has happened, change directory to your install location (ex: /home/david/ltib-mcf547x_8x-20070107) and make sure that the first thing you do is run " ./ltib" without any parameters.
While ltib is running for the first time, it creates the "host_config.log".file.  So from another terminal window I change directory to the ltib root directory (ex: /home/david/ltib-mcf547x_8x-20070107) and execute a "tail host_config.log" a few time to see that additional information is be added and that the "./ltib" is running.  This first run of ./ltib can take 10 minutes or so.
After the initial run you should have a complete "host_config.log". file.  I've attached mine as reference named "host_config..zip".
After the initial run of ltib has occured then you run "./ltib -c" to go thru the build process.  I usually selected to config the kernel and leave kernel source code but otherwise do not touch anything else just to see that all is running OK.
Regards,
David
PS
In the root directory of the mounted iso, open the START_HERE.htm web page as it has great help within it.
0 Kudos
Reply

1,293 Views
Gkahn
Contributor I
Well, did a clean install and ran ltib.....
this time it seems to have completed. I don't know
what the exact difference is but I have installed a
couple updates since I first tried this. I'll include the
host_config.log file but I think it's working now.
I'll try it again in a real work directory.

Gkahn

P.S. sorry for the delay, I'm bouncing between a few
different projects.

++++++++++++++++++++++++++++++++++++++++++++++++++++


Updating lpp from local packages
Use of uninitialized value in scalar assignment at ./ltib line 1363.

Processing platform: Host support packages
============================================
using test2/ltib-mcf5445x-20071001/config/platform/host/ltib.preconfig

Processing: fake-provides
===========================

Processing: mkspooflinks
==========================

Processing: bison
===================

Processing: flex
==================

Processing: texinfo
=====================

Processing: autoconf
======================

Processing: libtool
=====================

Processing: lkc
=================

Processing: wget
==================

Processing: uclinux-cksum
===========================

Processing: genext2fs
=======================

Processing: genromfs
======================

Processing: u-boot-tools
==========================

Processing: mtd-utils
=======================

Processing: pkgconfig
=======================

Processing: dtc
=================

Processing: cramfs
====================

Processing: distcc
====================

Processing: unifdef
=====================

0 Kudos
Reply

1,293 Views
dantebbs
Contributor I

rm -R /tmp/rpm-dan

 

allowed me to continue, thanks arnoox!

0 Kudos
Reply