2. ubuntu 9.10, ltib fail for MPC8379E

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

2. ubuntu 9.10, ltib fail for MPC8379E

5,744 Views
xbrown93
Contributor I

Thank you, Reky!!

 

previously problem was solved. (sudo chmod 777 /opt)

 

but there are some errors in running ltib.

 

1. below error messages are still displayed.

error: cannot open Name index using db3 - No such file or directory (2)
error: cannot open Name index using db3 - No such file or directory (2)

 

there are no directory named 'db3' in "ltib-mpc837xerdb-20081113/dist/lfs-5.1/",

but 'db3x' directory is exist.

 

2. directory is wrong?

sudo: /opt/freescale/ltib/usr/bin/rpm: command not found

 

3. conf?

jylee@jylee-desktop:~/ltib-mpc837xerdb-20081113-small$ ./ltib --preconfig config/platform/mpc837xerdb/defconfig-min-fs-8379e --batch

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:
/home/jylee/ltib-mpc837xerdb-20081113-small/host_config.log

[sudo] password for jylee:
+ [ -n config/platform/mpc837xerdb/defconfig-min-fs-8379e ]
+ cp config/platform/mpc837xerdb/defconfig-min-fs-8379e config/platform/mpc837xerdb/.config
+ chmod +w config/platform/mpc837xerdb/.config
+ [ ! -f config/platform/mpc837xerdb/.config -a -f config/platform/mpc837xerdb/defconfig ]
+ [ -n  ]
+ cd config/platform/mpc837xerdb
+ yes
+ conf main.lkc .config
sh: conf: not found
Died at ./ltib line 2778.
traceback:
 main::run_plat_config:2778
  main::ltib_config:2753
   main::smileytongue:re_build_checks:1380
    main:545


Started: Thu Dec 17 19:43:25 2009
Ended:   Thu Dec 17 20:30:46 2009
Elapsed: 2841 seconds


Build Failed

Exiting on error or interrupt
jylee@jylee-desktop:~/ltib-mpc837xerdb-20081113-small$

 

that messages show 'conf' is not found.

in 'host_config.log' file,


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

+ cd /opt/freescale/ltib/usr/src/rpm/BUILD
+ cd lkc-1.4
+ rm -rf /opt/freescale/ltib/usr/src/rpm/BUILDROOT/lkc-1.4-10.i386
+ mkdir -p /opt/freescale/ltib/usr/src/rpm/BUILDROOT/lkc-1.4-10.i386//opt/freescale/rootfs/i686//opt/freescale/ltib/usr/bin
+ cp -a conf mconf /opt/freescale/ltib/usr/src/rpm/BUILDROOT/lkc-1.4-10.i386//opt/freescale/rootfs/i686//opt/freescale/ltib/usr/bin
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip
+ /usr/lib/rpm/brp-strip-static-archive
+ /usr/lib/rpm/brp-strip-comment-note
Processing files: lkc-1.4-10.i686
unknown, 0: Warning: using regular magic file `/etc/magic'
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.3) libc.so.6(GLIBC_2.3.4) libc.so.6(GLIBC_2.4) libc.so.6(GLIBC_2.7) libncurses.so.5
Checking for unpackaged file(s): /usr/lib/rpm/check-files /opt/freescale/ltib/usr/src/rpm/BUILDROOT/lkc-1.4-10.i386
Wrote: /opt/freescale/ltib/usr/src/rpm/RPMS/i686/lkc-1.4-10.i686.rpm
Executing(%clean): /bin/sh -e /home/jylee/ltib-mpc837xerdb-20081113-small/tmp/rpm-tmp.TxQWHK
+ umask 022
+ cd /opt/freescale/ltib/usr/src/rpm/BUILD
+ cd lkc-1.4
+ rm -rf /opt/freescale/ltib/usr/src/rpm/BUILDROOT/lkc-1.4-10.i386
+ exit 0
Executing(--clean): /bin/sh -e /home/jylee/ltib-mpc837xerdb-20081113-small/tmp/rpm-tmp.3LeyJD
+ umask 022
+ cd /opt/freescale/ltib/usr/src/rpm/BUILD
+ rm -rf lkc-1.4
+ exit 0
Build time for lkc: 7 seconds

 

 

in lkc processing, 'conf', 'mconf' are made and copy to

'/opt/freescale/ltib/usr/src/rpm/BUILDROOT/lkc-1.4-10.i386//opt/freescale/rootfs/i686//opt/freescale/ltib/usr/bin'

, not to

'/opt/freescale/ltib/usr/bin'

 

and remove the directory

'rm -rf /opt/freescale/ltib/usr/src/rpm/BUILDROOT/lkc-1.4-10.i386'

 

so there are no 'conf', 'mconf' file exist.

 

I think it was wrong.

 

please, let me how to solve these problems.

 

host_config.log.txt

Message Edited by t.dowe on 2009-11-18 11:03 AM
0 Kudos
2 Replies

501 Views
Markus800
Contributor I

Hi,

 

I have successfully installed the ltib-system on Ubuntu 9.10 64-bit. The key for me was the:

"sudo: /opt/freescale/ltib/usr/bin/rpm: command not found". Look a bit earlier in the log were the first call to use rpm is done to install the newly build rpm-fs-package. That is the only call to the host native (ubuntu installed rpm) and that one comes protected. In order for the Ubuntu RPM to agree to install a rpm-package the --force-debian option need to be used. I created a patch to the ltib file that adds this switch only for the rpm-fs package and only on Ubuntu (Attached to this reply). Apply the patch standing in the same folder as the ltib-file and run 'patch -i ltib.patch'

 

Also if you earlier did have ccache installed, delete the ~/.ccache-foler berfore starting to install ltib.

 

Hope it helps!

 

ltib.patch

Message Edited by t.dowe on 2009-12-02 11:20 AM
0 Kudos

501 Views
xbrown93
Contributor I

ubuntu 9.10 includes rpm which version is 4.7.0-xxxx.

 

but LTIB is not support that version yet.

 

0 Kudos