First question: For the installation process requires Super permissions, and LTIB installation is not allowed to use root user installation, so only modify/etc/sudoers file,
sudo visudo
Add username all=nopasswd on the last line:/usr/bin/rpm,/opt/freescale/ltib/usr/bin/rpm
What needs to be added I was getting the process is:
At the beginning I added username all= (all) to the last line
Execute./ltib
Automatically prompts you to add the content of my course is username all=nopasswd:/usr/bin/rpm,/opt/freescale/ltib/usr/bin/rpm
Execute sudo visudo again to modify the last line of content.
The second rpm-build problem: My solution is not the same as the one described below, Rpmbuild is installed, but my reason is because I use sudo apt-get install rpm The default installation of the RPM version is too high is rpm4.7. Finally, I downloaded the rpm_4.4.2.3-1_i386.deb, because there were a lot of dependencies on the installation package, I downloaded a total of
Librpm4.4_4.4.2.3-1_i386.deb
Libbeecrypt6_4.1.2-7_i386.deb
Libneon27_0.28.2-6.1_i386.deb
Libcomerr2_1.41.3-1_i386.deb
Related Download the Deb package address: Http://www.debian.org/distrib/packages
Problems encountered in the future installation of the following article solutions are resolved.
Following from: http://blog.chinaunix.net/u2/70351/showart_2005242.html Howto Install ltib in Fedora
Author:misty (Qibing (a) yahoo.com.cn)
This document is a description of how to install the Freescale provided LTIB installation package on the Fedora 10 system. Ltib (Linux Target Imagine build) is a tool that can develop and configure BSP for different platforms. Freescale for different platforms (including Powerpc,coldfire,arm, etc.) to provide different ltib, so that users can easily transplant uboot, porting the Linux kernel, and the production of file systems, the use of Ltib only need to make a simple configuration, Can help us finish the rest of the work. Preparation Work first to Freescale's website download the BSP package of its own platform, downloading the address is:
Http://www.freescale.com/webapp/sps/site/overview.jsp?code=CW_BSP |
I downloaded the mpc8349ea_mds_k26_20061221-ltib.iso, which is the BSP for the Mpc8349ea Development Board.
Install LtibAfter downloading the ISO file for BSP, mount the ISO file,
The following hypothetical conditions: Mpc8349ea_mds_k26_20061221-ltib.iso in the/home/qibing/directory, installation Ltib to the/home/qibing/ppc/directory, "#" to indicate that the current is operating with root permissions; $ "indicates that the current operation is with normal user rights; #cd/home/qibing #mount-O loop mpc8349ea_mds_k26_20061221-ltib.iso/mnt $CD/mnt $./intall Note: When prompted to enter the Ltib installation path, enter/HOME/QIBING/PPC $CD/HOME/QIBING/PPC $CD Ltib |
The following will be installed Ltib, but in the Fedora 10 when the following is a lot of problems, I walked through this process to the identity of the first to come up with the problem, and solve these problems, so the following installation process is smooth. If you run./ltib will encounter two problems:
1. Ltib installation is a normal user right, but some operations require root user privileges. Follow the prompts to do the following:
#/usr/sbin/visudo then add the following at the end of the file: Qibing all = nopasswd:/bin/rpm,/opt/freescale/ltib/usr/bin/rpm Note: Visudo is actually editing a file/etc/sudoers file |
2. Prompt for missing Rpm-build package.
The $rpm-qrpm-build command to view the Rpm-build package has been installed, which may be a problem with LTIB or other functions, the solution is (excerpt from the Forum):
From the directory where you type './ltib ' type ' gedit ltib ' If you have a Gnome install. I ' m not sure what the KDE Editor are, or use VI if you want edit in the console text mode. Search for "Pre_install_deps". This is the table, "Check_basic_deps" refers to. Look for a line that contains "Rpm-buld 0". Comment out the line by adding ' # ' to the ' left ' of the line. Save and you should is good to go. |
If you continue to run./LTIB installation, then there will be problems, my own error log file lost, this is an online excerpt:
CP./INITSCAN.C scan.c Touch. Bootstrap Gcc-c-I.-I-g-o CCL.C Gcc-c-I . -I-g-o dfa.c gcc-c-i.-g-o ecs.c Gcc-c-i-i.-g-o GEN.C Gcc-c-i-i.-g-o MAIN.C Gcc-c-I.- I.-g-o MISC.C Gcc-c-I-I.-g-o NFA.C Bison-y-D./PARSE.Y Make: * * * * parse.c segmentation Error: Bad exit status from/home/nabendu/ltib-mpc8349emds-20061221/tmp/rpm-tmp.81449 (%build) RPM Build Errors: Bad exit status from/home/nabendu/ltib-mpc8349emds-20061221/tmp/rpm-tmp.81449 (%build) Builds time for flex:13 Seconds Failed building Flex died at./ltib Line 1395. Started:fri 00:56:58 2008 Ended:fri May 01:29:53 2008 elapsed:1975 seconds These packages FAI Led to builds: Flex Build Failed |
The solution is to modify the "Dist/lfs-5.1/bison/bison.spec" file and modify make Cflags=-o0 in the%build section before running./ltib. And then run./ltib. Then you will encounter the following problems,
+ umask 022 + Cd/opt/freescale/ltib/usr/src/rpm/build + CD MTD + make-c Util make:entering directory '/opt/freescale/ltib/usr/src/rpm/build/mtd/util ' Gcc-i.. /include-o2-wall-g-c-o FTL_FORMAT.O ftl_format.c-g-WP,-MD,.FTL_FORMAT.C.DEP In file included from/usr/include/endian.h:61, from/usr/include/sys/types.h:217, From ftl_format.c:38: .. /include/bits/byteswap.h:21:3: Error: #error "Never use <bits/byteswap.h> directly; Include <byteswap.h> instead. " Make: * * * [FTL_FORMAT.O] Error 1 make:leaving directory '/opt/freescale/ltib/usr/src/rpm/build/mtd/util ' Error:bad exit status from/home/qibing/ppc/ltib-mpc8349emds-20061221/tmp/rpm-tmp.88474 (%build) RPM Build Errors: Bad exit status from/home/qibing/ppc/ltib-mpc8349emds-20061221/tmp/rpm-tmp.88474 (%build) Build time for mtd-utils:0 seconds Failed Building Mtd-utils died at./ltib Line 1395. Started:thu 23 22:06:36 2009 Ended:thu 23 22:06:37 2009 Elapsed:1 seconds These packages failed to build: Mtd-utils Build Failed |
The solution is: Modify the "/opt/freescale/pkgs/mtd-utils-20060302-cf-byteswap_h-1.patch" file, the following is an excerpt from the online forum solution:
Hi I had the same problem under Ubuntu 9.04. I solved it by modifying the lines, the "/opt/freescale/pkgs/mtd-utils-20060302-cf-byteswap_h-1.patch" fil E. + #if!defined _byteswap_h &&!defined _netinet_in_h +# error "Never use <bits/byteswap.h> directly; Include <byteswap.h> instead. "+ #endif By +//#if!defined _byteswap_h &&!defined _netinet_in_h +//# error "Never use <bits/byteswap.h> directly; Include <byteswap.h> instead. "+//#endif (very cheap solution, but ... it works:-)) |
Then delete the "/OPT/FREESCALE/LTIB/USR/SRC/RPM/BUILD/MTD" directory, and then run./ltib, last installed successfully ^_^. using Ltib
Appendix
1. Error resolution during installation see the link below http://forums.freescale.com/freescale/board/message?board.id=CWCFCOMM&thread.id=2044 &view=by_date_ascending&page=1
2.