강좌 & 팁
하다가 에러가 나기도 하지만 한번 쭉 한번 해 봅니다.
다운로드 사이트
https://community.freescale.com/docs/DOC-95560
인스톨전에 설치할 패키지
https://community.freescale.com/docs/DOC-1442
boggle70@boggle70-P55-US3L:L3.0.35_4.1.0_130816_source$ ll
drwxrwxr-x 4 boggle70 boggle70 4096 2월 11 20:48 ./
drwxrwxr-x 4 boggle70 boggle70 4096 2월 11 14:18 ../
-rwxrwxr-x 1 boggle70 boggle70 25284 8월 16 16:27 EULA*
-rwxrwxr-x 1 boggle70 boggle70 3704 8월 16 16:19 install*
-rwxrwxr-x 1 boggle70 boggle70 463609 8월 16 16:19 ltib.tar.gz*
-rwxrwxr-x 1 boggle70 boggle70 5634 8월 16 16:18 package_manifest.txt*
drwxrwxr-x 2 boggle70 boggle70 49152 8월 16 16:19 pkgs/
-rwxrwxr-x 1 boggle70 boggle70 99015693 8월 16 16:27 redboot_201003.zip*
-rwxrwxr-x 1 boggle70 boggle70 50024 8월 16 16:19 tftp.zip*
설치를 진행 합니다.
설치 경로를 묻는데 현재 위치 말고 아무거나 디렉토리를 하나 만들어주었더니 그 밑에 하나 만드는군요
설치를 시작하면 라인선스 문의를 합니다.
그냥 쭉 예스로 진행합니다.
boggle70@boggle70-P55-US3L:L3.0.35_4.1.0_130816_source$ ./install
You are about to install the LTIB (GNU/Linux Target Image Builder)
Before installing LTIB, you must read and accept the EULA
(End User License Agreement) which will be presented next.
Do you want to continue ? Y|n
y
Hit enter to continue:
FREESCALE SEMICONDUCTOR SOFTWARE LICENSE AGREEMENT
..............................................
..............................................
..............................................
I have read and accept the EULA (yes|no):
yes
..............................................
..............................................
..............................................
Installation complete, your ltib installation has been placed in
/staff1/staff/anytest/imx6_ltib/L3.0.35_4.1.0_130816_source/ltib/ltib, to complete the installation:
cd /staff1/staff/anytest/imx6_ltib/L3.0.35_4.1.0_130816_source/ltib/ltib
./ltib
boggle70@boggle70-P55-US3L:L3.0.35_4.1.0_130816_source$ ll
합계 97304
drwxrwxr-x 4 boggle70 boggle70 4096 2월 11 20:48 ./
drwxrwxr-x 4 boggle70 boggle70 4096 2월 11 14:18 ../
-rwxrwxr-x 1 boggle70 boggle70 25284 8월 16 16:27 EULA*
-rwxrwxr-x 1 boggle70 boggle70 3704 8월 16 16:19 install*
drwxrwxr-x 3 boggle70 boggle70 4096 2월 11 20:48 ltib/
-rwxrwxr-x 1 boggle70 boggle70 463609 8월 16 16:19 ltib.tar.gz*
-rwxrwxr-x 1 boggle70 boggle70 5634 8월 16 16:18 package_manifest.txt*
drwxrwxr-x 2 boggle70 boggle70 49152 8월 16 16:19 pkgs/
-rwxrwxr-x 1 boggle70 boggle70 99015693 8월 16 16:27 redboot_201003.zip*
-rwxrwxr-x 1 boggle70 boggle70 50024 8월 16 16:19 tftp.zip*
설치는 된 것 같고....
빌드를 한번 해봅니다.
boggle70@boggle70-P55-US3L:L3.0.35_4.1.0_130816_source$ cd ltib/ltib/
boggle70@boggle70-P55-US3L:ltib$ ll
합계 240
drwxrwxrwx 7 boggle70 boggle70 4096 2월 11 20:49 ./
drwxrwxr-x 3 boggle70 boggle70 4096 2월 11 20:48 ../
-rw-r--r-- 1 boggle70 boggle70 12288 2월 11 20:50 .README.swp
-rwxrwxrwx 1 boggle70 boggle70 399 7월 22 2013 .gitignore*
-rwxrwxrwx 1 boggle70 boggle70 2757 7월 22 2013 .ltibrc*
-rwxrwxrwx 1 boggle70 boggle70 17989 7월 22 2013 COPYING*
-rwxrwxrwx 1 boggle70 boggle70 952 7월 22 2013 README*
drwxrwxrwx 2 boggle70 boggle70 4096 2월 11 20:57 bin/
drwxrwxrwx 6 boggle70 boggle70 4096 7월 22 2013 config/
drwxrwxrwx 3 boggle70 boggle70 4096 7월 22 2013 dist/
drwxrwxrwx 2 boggle70 boggle70 4096 2월 11 20:50 doc/
-rwxrwxrwx 1 boggle70 boggle70 41 8월 15 22:43 hash*
-rwxrwxrwx 1 boggle70 boggle70 106077 7월 22 2013 ltib*
drwxr-xr-x 2 boggle70 boggle70 65536 2월 11 20:49 pkgs/
boggle70@boggle70-P55-US3L:ltib$ ./ltib --configure
ltib cannot be run because one or more of the host packages needed to run it
are either missing or out of date or not in ltib's standard path. Please
install/upgrade these packages on your host. If you have your own utilities
in non-standard paths, please add an entry into the .ltibrc file for example:
%path_std
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/my/own/exes
Package Minimum ver Installed info
------- ----------- ---------------
zlib 0 not installed
Died at ./ltib line 1409.
traceback:
main::host_checks:1409
main:554
Started: Tue Feb 11 20:52:51 2014
Ended: Tue Feb 11 20:52:51 2014
Elapsed: 0 seconds
Build Failed
Exiting on error or interrupt
와 같이 에러가 나네요
찾아 보니 아래와 같은게 있습니다.
https://community.freescale.com/thread/302017
--- original/bin/Ltibutils.pm 2012-08-15 12:04:53.728901999 -0500
+++ ltib/bin/Ltibutils.pm 2012-08-15 12:12:01.916901781 -0500
@@ -562,7 +562,7 @@
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/libm.so' || -f '/usr/lib32/libm.so' || -f '/usr/lib/x86_64-linux-gnu/libm.so' || -f '/usr/lib/i386-linux-gnu/libm.so' },
+ 'glibc-devel' => sub { -f '/usr/lib/libm.so' || -f '/usr/lib64/libm.so' || -f '/usr/lib32/libm.so' || -f '/usr/lib/x86_64-linux-gnu/libm.so' || -f '/usr/lib/i386-linux-gnu/libm.so' || -f '/usr/lib64/libz.so' },
'glibc-headers' => sub { -f '/usr/include/stdio.h' },
'libstdc++' => sub {
return system_nb(<<TXT) == 0;
@@ -585,6 +585,7 @@
zlib => sub { my @f = (glob('/usr/lib/libz.so*'),
glob('/lib/libz.so*'),
glob('/lib64/libz.so*'),
+ glob('/lib/i386-linux-gnu/libz.so*'),
glob('/usr/lib/i386-linux-gnu/libz.so*'),
glob('/usr/lib32/libz.so*'),
glob('/usr/lib/x86_64-linux-gnu/libz.so*') ); @f > 1 ? 1 : 0 },
zlib 경로를 하나 추가해 준 것이죠.
계속 진행하기에는 너무 길어지네요...
하나씩 디버깅을 하면 다음주에 이어 봅니다.