embeded/ARM2015. 1. 12. 10:42

플랫폼

Ubuntu 14.04 LTS

ltib 13.2.1 (cvs)


Package                Minimum ver   Installed info

-------                -----------   ---------------

glibc-devel            0             not installed

zlib                   0             not installed

zlib-devel             0             not installed

ncurses-devel          0             not installed

m4                     0             not installed

bison                  0             not installed


$ sudo apt-get install libncurses-dev bison zlibc zlib1g-dev

[링크 : http://ubuntuforums.org/showthread.php?t=1632027]



32비트의 경우 아래의 내용으로

$ vi ltib/bin/Ltibutils.pm

 559 $app_checks = {

 560     binutils         => 'ar --version 2>/dev/null',

 561     'gcc-c++'        => 'g++ --version 2>/dev/null',

 562     glibc            => 'ldd --version 2>/dev/null',

 563     'glibc-devel'    => sub { -f '/usr/lib/i386-linux-gnu/libm.so' || -f '/usr/lib/i386-linux-gnu/libz.so'},

 564     'glibc-headers'  => sub { -f '/usr/include/stdio.h' },

 565     'libstdc++' => sub {

 566             return system_nb(<<TXT) == 0;

 567 echo '#include <iostream>

 568 int main() { std::cout << "test"; }' | g++ -x c++ - -o /dev/null

 569 TXT

 570                        },

 571     lkc              => 'mconf -h 2>/dev/null',

 572     ncurses          => 'tic -V 2>/dev/null',

 573     'ncurses-devel'  => sub { -f '/usr/include/ncurses.h' },

 574     'rpm-build'      => sub { `rpmbuild --version 2>/dev/null` },

 575     sudo             => 'sudo -V 2>/dev/null',

 576     tcl              => "echo 'puts \$tcl_patchLevel' | tclsh",

 577     texinfo          => sub {

 578                        warn  "WARNING: you may also need to install:"

 579                             ." tetex-fonts, dialog and textex\n"

 580                          unless  -f '/usr/share/texmf/tex/texinfo/texinfo.tex';

 581                         `makeinfo --version 2>/dev/null`;

 582                     },

 583     zlib         => sub { my @f = (glob('/usr/lib/libz.so*'),

 584                                    glob('/lib/libz.so*'),

 585                                    glob('/lib/i386-linux-gnu/libz.so*')  ); @f > 1 ? 1 : 0 },

 586     'zlib-devel' => sub { -f '/usr/include/zlib.h' },

 587 }; 


[링크 : http://markdingst.blogspot.kr/2011/06/ltib-1105-miss-zlib-under-ubuntu-1104.html]


64비트는 링크의 내용으로

[링크 : https://community.freescale.com/thread/311978]




으아악 막혔다!!! ㅠㅠ

rpmdb: --force-debian: unknown option
Died at ./ltib line 2340.
traceback:
 main::setup_rpmdb:2340
  main::check_rpm_setup:2403
   main::host_checks:1423
    main:542


Started: Mon Jan 12 00:37:29 2015
Ended:   Mon Jan 12 00:37:30 2015
Elapsed: 1 seconds


Build Failed



$ vi ltib

2341 set -e

2342 $cf->{sudo} $cf->{rpm} --root $cf->{rpmroot} --dbpath $cf->{rpmdb} --initdb ||

2343 $cf->{sudo}       rpm   --root $cf->{rpmroot} --dbpath $cf->{rpmdb} --initdb

2344 TXT

2345     } elsif($do_rebuild) {

2346         system_nb(<<TXT) == 0 or die;

2347 set -e

2348 $cf->{sudo} $cf->{rpm} --root $cf->{rpmroot} --dbpath $cf->{rpmdb} --define '_tmppath $cf->{tmppath}' --rebuilddb

2349 $cf->{sudo}        rpm --root $cf->{rpmroot} --dbpath $cf->{rpmdb} --define '_tmppath $cf->{tmppath}' --rebuilddb

2350 TXT 


[링크 : http://cvs.savannah.gnu.org/viewvc/ltib/ltib?root=ltib&r1=1.76&r2=1.77]

 [링크 : https://community.freescale.com/thread/263568]


Processing: lkc

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

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


Cowardly refusing to clobber existing directory:

 /opt/freescale/ltib/usr/src/rpm/BUILD/lkc-1.4

Remove this by hand if you really want to rebuild this package from scratch


Died at ./ltib line 1380.

traceback:

 main::build_host_rpms:1380

  main::host_checks:1435

   main:542


[링크 : https://community.freescale.com/message/271839#271839]




----


$ sudo apt-get install libncurses-dev bison perl libwww-perl alien cvs

$ cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/ltib co -P ltib

$ cd ltib

$ wget https://community.freescale.com/servlet/JiveServlet/downloadBody/93455-102-3-2835/patch-ltib-ubuntu12.04.sh

$ chmod +x patch-ltib-ubuntu12.04.sh

$ ./patch-ltib-ubuntu12.04.sh


$ sudo visudo

interm ALL = NOPASSWD: /usr/bin/rpm, /opt/ltib/usr/bin/rpm


$ ./ltib 


wget-ssl에서 실패 -_-

[링크 : https://community.freescale.com/thread/324608]

[링크 : https://lists.gnu.org/archive/html/bug-wget/2011-08/msg00041.html]

--without-ssl  삭제


[링크 : http://ltib.org/resources-download#ref_2]

[링크 : https://community.freescale.com/docs/DOC-93455]



우분투 하위버전은 지원하긴 하는데.. 왜케 안되는거야 -_-

x86 Linux

    Redhat: 7.3, 8.0, 9.0, Enterprise release 4

    Fedora Core: 1, 2, 3, 4, 5, 8

    Debian: 3.1r0 (stable), unstable, 4.0

    Suse: 8.2, 9.1, 9.2, 10.0, 10.2, 10.3

    Ubuntu 6.10, 7.04, 7.10, 8.04


[링크 : http://ltib.org/documentation-LtibFaq]


-- 2015.02.10 추가

[링크 : https://importgeek.wordpress.com/2014/05/13/i-mx28-ltib-on-ubuntu-13-04/]


패치

[링크 : https://turbosree.wordpress.com/tag/freescale-ltib-on-ubuntu-12-04/]

    [링크 : https://community.freescale.com/docs/DOC-93455]

    [링크 : https://community.freescale.com/.../93454-102-3-2834/ubuntu-ltib-patch.tgz]

[링크: https://community.freescale.com/thread/308138]

    [링크 : https://community.freescale.com/.../download/271839-220893/438-CreateUbuntu1110ltib110901.docx]


---

2015.04.13

$cf->{rpm} = "rpm" 을 $cf->{rpm} = "rpm --force-debian"$cf->{rpm} = "rpm" 을 $cf->{rpm} = "rpm --force-debian"

[링크 : http://poongbek.blogspot.kr/2011/06/ltib.html]

'embeded > ARM' 카테고리의 다른 글

NEON enabled?  (0) 2015.01.28
armel / armhf  (0) 2015.01.26
i.mx283 부팅모드  (0) 2015.01.09
freescale imx283 boot error code  (0) 2015.01.07
Unknown HZ value! (91) Assume 100.  (0) 2015.01.05
Posted by 구차니