ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] problem installing ltib under FC9


From: Geoffrey M. Garner
Subject: Re: [Ltib] problem installing ltib under FC9
Date: Wed, 23 Jul 2008 18:23:13 -0400


Hi Stuart,
 
Thank you for your suggestions.  First, your advice on echoing "0" to /selinux/enforce worked.  After doing this,
the install script ran to completion; after copying the pkgs directory it indicated that I should run the ltib script and then terminated normally.
 
The second problem, still occurs when I run the ltib script.  I looked in bin/Ltibutils.pm, and found that there are no checks that look in /usr/lib/lib64.  My copy of libm.so is in /usr/lib64, and not
in /usr/lib.   I also have a libm.so.6 and a libm-2.8.so in /lib (but not in /usr/lib).  Can I simply change the lines in Ltibutils.prn to reference /usr/lib64 (or /lib, but then change the check to /lib/libm.so* (this would be similar to the check for libz.so; the check is for /usr/lib/libz.so* or /lib/libz.so* ).  Finally, how do I check if I have 32 bit compatibility mode installed?
 
I can send the source for Ltibutils.pm if that would be helpful, as well as ltib (but I'm asking first because the former is 946 lines and the latter over 2500 lines; I'm new to this list and I don't know the policy regarding sending large files to the list).
 
Thanks.
 
Best regards,
 
Geoff
----- Original Message -----
Sent: Wednesday, July 23, 2008 4:06 AM
Subject: Re: [Ltib] problem installing ltib under FC9

Hi Geoff,

For ISO releases from Freescale you should contact Freescale support by following theses steps:

   * go to http://www.freescale.com
   * click on "Support / Technical support"
   * click on "Submit a Service Request"
   * register to get a user name and password.
   * login in with your user name and password
   * on the "New Service Request" page:
      * category = Technical Request
      * topic = Linux BSP
      * Click on "Continue"
   * fill out the information for the service request
   * click on the "Submit" button at the bottom of the page.

Here are some ideas though:

To avoid the selinux issues you can edit /etc/sysconfig/selinux and set:
SELINUX=permissive and then reboot.  If you don't want to re-boot (or permanently change)
you can at runtime as root type: echo "0" >/selinux/enforce

Note: in later versions of ltib (including the one on Savannah CVS) the installer
has in it:

print "Copying packages to $tdir/$tag/pkgs\n";
system("$echo cp -dR $isodir/pkgs $tdir/$tag") == 0 or die;

Which avoids the problem.  I see you looked for a later version and there isn't one.
It's probably worth asking Freescale if they'd release this platform (8313) to the
Savannah site, that way you'd get all the updates to the tool.

LTIB (more specifically the toolchains) will not support native 64 bit only mode.  You need
to make sure you have the 32 bit compatibility support installed (this might be the source
of the error in check_basic_deps()).  If it's not then it's likely that this part of the code has
been change.  I just looked in bin/Ltibutils.pm and this check is now (-f '/usr/lib/libm.so' || -f '/usr/lib64/libz.so')

$app_checks = {
    binutils         => 'ar --version 2>/dev/null',
    'gcc-c++'        => 'g++ --version 2>/dev/null',
    glibc            => 'ldd --version 2>/dev/null',
    'glibc-devel'    => sub { -f '/usr/lib/libm.so' || -f '/usr/lib64/libz.so'},    'glibc-headers'  => sub { -f '/usr/include/stdio.h' },

You can either change this, or it might be simpler just to comment out the entry in the 'pre_install_deps' section
of the ltib script.

Regards, Stuart


On Tue, 2008-07-22 at 23:11 -0400, Geoffrey M. Garner wrote:
Dear All,
I've been attempting to install the LTIB package for the MPC8313E board under Fedora Core 9 (the machine uses an Athlon 64 FX-55).  The installation has failed; I'm sending this email to find out if anyone else has seen this problem and might have a possible solution.
I attempted the installation from the BSP CD; the date of the CD is 8/31/2007 (770-76480 Rev A).  The installation directory is /opt/freescale/ltib.  I gave my use account ownership of /opt, to ensure that it would have permissions to create subdirectories and copy files (the install script will not run from root).
The first issue occurs in the install script (the file 'install' in the root directory of the CD), on line 116 of the script.  The script attempts to copy the directory 'pkgs' from the cd to the installation directory (/opt/freescale/ltib/ltib-mpc8313erdb-20070824) using 'cp -a '.  This fails; I get the message that I don't have the necessary permissions.  At first I didn't understand this, as my user id owns /opt.  However, it appears this occurs because SELinux (used in FC9) does not allow cp -a to be used in this manner.  'cp -a' is equivalent to 'cp -cdpR' according the man page for cp, and the -c argument preserves the file contexts.  This apparently prevents the copying (I am not sufficiently familiar with SELinux to know why).  In any case, I was able to manually copy the files using 'cp -dpR', i.e., removing the '-c' argument.  I then attempted to continue running the install script manually (i.e., typing each line from the command line, using the correct paths); this is because I could not change the install file on the cd (unless I were to burn a new cd).
The next issue occurred on line 125 of the install script; this attempts to execute the file 'ltib' that is in the /opt/freescale/ltib/ltib-mpc8313erdb-20070824 directory.  This fails on line 1208, with the error that the glibc-devel package is either not installed or out of date.  However, I do actually have glibc-devel installed (the x86_64 version) -- version 2.8-3.  Line 1208 of the ltib script is the function check_basic_deps(), which is defined on lines 1823 through 1870 of the ltib script.  Near the beginning of the script ltib is a list of the packages needed, and glibc-devel is the third (the first 2 are glibc and glibc-headers -- also x86_64 versions).  Assuming the dependencies are checked in the order of this list, those 2 packages are found.
I also went to the freescale web site and downloaded an iso for the 8313 BSP, in the event that this might be a later version.  However, it seems to be the same as what is on the CD.
Any suggestions on how to install ltib under Fedora Core 9 would be greatly appreciated.
Thanks.
Geoff Garner
_______________________________________________
LTIB home page: http://bitshrine.org

Ltib mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/ltib

reply via email to

[Prev in Thread] Current Thread [Next in Thread]