MX6Q-SDP LTIB ISSUE

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

MX6Q-SDP LTIB ISSUE

Jump to solution
7,603 Views
vidyasagar
Contributor III

Hi All,

I am using MX6Q-SDP evaluation kit for development purpose. I am unable to get Linux BSP package through LTIB. I follows i.MX_6Dual6Quad_Sabre-AI_Linux_User's_Guide.pdf, but when run the command ./ltib -m config get error zlib not installed.

However, I installed zlib  "dpkg --get-selections | grep zlib*"  returns

clisp-module-zlib                               install
gambas2-gb-compress-bzlib2             install
gambas2-gb-compress-zlib                install
gauche-zlib                                      install
libcompress-raw-zlib-perl                  install
libjzlib-java                                      install
zlib-bin                                            install
zlib-gst                                           install
zlib1g                                             install
zlib1g-dbg                                       install
zlib1g-dev                                       install
zlibc                                               install

And this is the log of ./ltib -m config

Veriton-Series:~/freescale/source/ltib$ ./ltib -m config

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

Exiting on error or interrupt

My host machine is ubuntu12.04, followed Setting_Up_LTIB_host.pdf instruction for setting of host machine but not getting.

Please help me to solve this issue.

Thanks,

Vidya

Labels (3)
1 Solution
4,024 Views
gonfer
Contributor V

Please, disable SSL by adding “--without-ssl” to the configure line in the *.spec  file.

So:

1- In the file /ltib/dist/lfs-5.1/wget/wget.spec, at line “./configure”, add “--without-ssl

2- once again, remove /opt/freescale/ltib/usr/src/rpm/BUILD/wget-1.9.1

3- run again ./ltib

View solution in original post

27 Replies
3,335 Views
Yuri
NXP Employee
NXP Employee

You may just comment (#) line


zlib                   0             not installed

0 Kudos
Reply
3,335 Views
vidyasagar
Contributor III

Hi Yuri,

Since i have  L3.0.35_4.1.0_130816_source file so copied required files in /opt/freescale/pkgs/

All files are:

1). m4-1.4.16.tar.gz
     m4-1.4.16.tar.gz.md5

2).bison-2.6.tar.gz.md5
    bison-2.6.tar.gz

flex, autoconfig, autolib, automake, lkc .

And finally got error, log is below:

Processing: distcc
====================i

Processing: ccache
====================

Processing: m4
================

Processing: bison
===================

Processing: flex
==================

Processing: texinfo
=====================

Processing: autoconf
======================

Processing: automake
======================

Processing: libtool
=====================

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

Processing: wget
==================
Build path taken because: directory build, no prebuilt rpm,

Cowardly refusing to clobber existing directory:
/opt/freescale/ltib/usr/src/rpm/BUILD/wget-1.9.1
Remove this by hand if you really want to rebuild this package from scratch

Died at ./ltib line 1392.
traceback:
main::build_host_rpms:1392
  main::host_checks:1447
   main:554

What is the issue now could you suggest me to solve this issue.

Thanks,

Vidya

0 Kudos
Reply
3,335 Views
gonfer
Contributor V

just remove /opt/freescale/ltib/usr/src/rpm/BUILD/wget-1.9.1 and try again.

0 Kudos
Reply
3,335 Views
vidyasagar
Contributor III

Hi Fernandez,

Thanks for quick reply.

I deleted wget-1.9.1 then ran ./ltib -m config, But i got same error again, Please quest attached log file.

Please help to solve this issue.

Thanks,

Vidya

0 Kudos
Reply
3,335 Views
gonfer
Contributor V
0 Kudos
Reply
3,335 Views
vidyasagar
Contributor III

Hi Fernandez,

I installed today morning itself onpenssl, followed by same link, so openssl is not problem now.

I use ubuntu12.04 host machine i configured each and every thing as mentioned in pdf given by free scale, now where is the issue i am not able to find out, please help me.

Thanks,

Vidya

0 Kudos
Reply
4,025 Views
gonfer
Contributor V

Please, disable SSL by adding “--without-ssl” to the configure line in the *.spec  file.

So:

1- In the file /ltib/dist/lfs-5.1/wget/wget.spec, at line “./configure”, add “--without-ssl

2- once again, remove /opt/freescale/ltib/usr/src/rpm/BUILD/wget-1.9.1

3- run again ./ltib

3,335 Views
vidyasagar
Contributor III

Hi Fernandez,

Thanks for helpful reply.

Today, i got menuconfig menu, changed for i.MX6 board.

but when i ran ./ltib command then got error regarding busybox

collect2: ld returned 1 exit status

make: *** [busybox_unstripped] Error 1

error: Bad exit status from /home/eldaas-dev/freescale/source/ltib/tmp/rpm-tmp.75361 (%build)

RPM build errors:

    Bad exit status from /home/eldaas-dev/freescale/source/ltib/tmp/rpm-tmp.75361 (%build)

Build time for busybox: 4 seconds

Failed building busybox

f_buildrpms() returned an error, exiting

traceback:

main:572

Started: Thu Apr 24 18:11:40 2014

Ended:   Thu Apr 24 18:11:45 2014

Elapsed: 5 seconds

These packages failed to build:

busybox

Build Failed

Please help to solve this issue.

Thanks,

vidya

0 Kudos
Reply
3,335 Views
gonfer
Contributor V
3,335 Views
vidyasagar
Contributor III

Hi Fernandez,

I got everything now, thanks for help.

Thanks,

Vidya

0 Kudos
Reply
3,334 Views
gonfer
Contributor V

Glad to hear your news !!

Regards,

Gonzalo.

0 Kudos
Reply
3,334 Views
vidyasagar
Contributor III

Hi Fernandez,

Now i am trying to boot Linux BSP by use of SD card, follows "i.MX_6Dual6Quad_SABRE-SD_Linux_User's_Guide.pdf" and copied loader, uImage and rootfs in SD through MFG tools,

on u-boot console set environment

setenv loadaddr 0x10800000

setenv bootargs_lcd video=mxcfb0:dev=ldb,LDB-XGA,if=RGB666

setenv bootargs_base 'setenv bootargs console=ttymxc0,115200

setenv bootargs_mmc setenv bootargs ip=192.168.1.104 root=/dev/mmcblk0p1 rootwait rw

setenv bootcmd_mmc run bootargs_base bootargs_mmc;

mmc dev 2;

mmc read 0x10800000 0x800 0x2000;

setenv bootcmd run bootcmd_mmc

saveenv

run bootcmd

bootm

then kernel is loading but after sometime stopping

This is my pri command output on board :

MX6Q SABRESD U-Boot > pri

bootdelay=3

baudrate=115200

ipaddr=192.168.1.103

serverip=192.168.1.101

netmask=255.255.255.0

rd_loadaddr=(0x1300000)

netdev=eth0

ethprime=FEC0

uboot=u-boot.bin

kernel=uImage

nfsroot=/opt/eldk/arm

bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp

bootcmd_net=run bootargs_base bootargs_nfs; tftpboot ${loadaddr} ${kernel}; bootm

ethact=FEC0

bootargs=root=/dev/mmcblk0p1 rootwait rw

loadaddr=0x10800000

bootargs_lcd=video=mxcfb0:dev=ldb,LDB-XGA,if=RGB666

bootargs_base=setenv bootargs console=ttymxc0,115200

bootargs_mmc=setenv bootargs ip=192.168.1.104 root=/dev/mmcblk0p1 rootwait rw

bootcmd_mmc=run bootargs_base bootargs_mmc

bootcmd=run bootcmd_mmc

stdin=serial

stdout=serial

stderr=serial

Environment size: 744/8188 bytes

MX6Q SABRESD U-Boot >

but kernel stops booting

log is below:

MX6Q SABRESD U-Boot > bootm

## Booting kernel from Legacy Image at 10800000 ...

   Image Name:   Linux-3.0.35-2666-gbdde708

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    3866444 Bytes =  3.7 MB

   Load Address: 10008000

   Entry Point:  10008000

   Verifying Checksum ... OK

   Loading Kernel Image ... OK

OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Linux version 3.0.35-2666-gbdde708 (r65388@shlinux3) (gcc version 4.6.2 20110630 (prerelease) (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) ) #1 SMP PR3

CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d

CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache

Machine: Freescale i.MX 6Quad/DualLite/Solo Sabre-SD Board

Ignoring unrecognised tag 0x54410008

Memory policy: ECC disabled, Data cache writealloc

CPU identified as i.MX6Q, silicon rev 1.2

PERCPU: Embedded 7 pages/cpu @8c008000 s5440 r8192 d15040 u32768

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 194560

Kernel command line: ip=192.168.1.104 root=/dev/mmcblk0p1 rootwait rw

PID hash table entries: 4096 (order: 2, 16384 bytes)

Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)

Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)

Memory: 512MB 256MB = 768MB total

Memory: 765764k/765764k available, 282812k reserved, 0K highmem

Virtual kernel memory layout:

    vector  : 0xffff0000 - 0xffff1000   (   4 kB)

    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)

    DMA     : 0xf4600000 - 0xffe00000   ( 184 MB)

    vmalloc : 0xc0800000 - 0xf2000000   ( 792 MB)

    lowmem  : 0x80000000 - 0xc0000000   (1024 MB)

    pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)

    modules : 0x7f000000 - 0x7fe00000   (  14 MB)

      .init : 0x80008000 - 0x8003c000   ( 208 kB)

      .text : 0x8003c000 - 0x80a8f8f4   (10575 kB)

      .data : 0x80a90000 - 0x80af3e40   ( 400 kB)

       .bss : 0x80af3e64 - 0x80b41d8c   ( 312 kB)

SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1

Preemptible hierarchical RCU implementation.

NR_IRQS:624

MXC GPIO hardware

sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655ms

arm_max_freq=1GHz

MXC_Early serial console at MMIO 0x2020000 (options '115200')

bootconsole [ttymxc0] enabled

Console: colour dummy device 80x30

console [tty0] enabled, bootconsole disabled



Please help me to solve this issue.

Thanks,

Vidya

0 Kudos
Reply
3,334 Views
gonfer
Contributor V

Hi Vidya,

I think you haven't set up properly your U-Boot environment - your kernel command line is just:

Kernel command line: ip=192.168.1.104 root=/dev/mmcblk0p1 rootwait rw

For instance, in your setup this line is wrong:

setenv bootargs_mmc setenv bootargs ip=192.168.1.104 root=/dev/mmcblk0p1 rootwait rw


It should be something like:

setenv bootargs_mmc 'setenv bootargs ${bootargs} ip=192.168.1.104 root=/dev/mmcblk0p1 rootwait rw'


In this way, when U-Boot runs bootcmd:

bootcmd_mmc=run bootargs_base bootargs_mmc

bootcmd=run bootcmd_mmc

the value of bootargs will be (bootargs_base + bootargs_mmc):

console=ttymxc0,115200 ip=192.168.1.104 root=/dev/mmcblk0p1 rootwait rw


I think you will have a similar issue regarding bootargs_lcd (although you are not using it).


Please, check carefully the documentation and your U-Boot environment, specially for 'typos'


Regards,

Gonzalo

3,334 Views
vidyasagar
Contributor III

Hi Gonzalo,

Thanks for reply,

I set environment on u-boot console as like

> setenv bootargs ' console=ttymxc0,115200 ip=dhcp root=/dev/mmcblk1p1 rootwait'
> setenv bootcmd 'mmc dev 2; mmc read ${loadaddr} 0x800 0x2100; bootm'
> saveenv

> boot

Kernel up but on LCD Linux icons do not come only four penguins come i tried to set

HannStar LVDS

on U-boot console by using the environment

setenv bootargs_mmc 'setenv bootargs ${bootargs} root=/dev/mmcblk1p1 rootwait rw video=mxcfb0:dev=ldb,LDB-XGA,if=RGB666'

but did not get LCD.

Second, in boot log  shows

Mounting filesystems

cp: write error: No space left on device

why this error shows do not understand.

I attached log file please check ones.

Please suggest me how to solve this issue.

Thanks,

Vidya

0 Kudos
Reply
3,334 Views
gonfer
Contributor V

Hi Vidya,

you say you have setup U-Boot environment for HannStar LVDS

setenv bootargs_mmc 'setenv bootargs ${bootargs} root=/dev/mmcblk1p1 rootwait rw video=mxcfb0:dev=ldb,LDB-XGA,if=RGB666'

and I thinks this should be OK for LVDS0 connection, but your log shows:

Kernel command line: console=ttymxc0,115200 ip=dhcp root=/dev/mmcblk1p1 rootwait

and that's not ok. Please, check again your U-Boot settings.

What rootfs are you trying to run?

Regarding "cp: write error: No space left on device", that's comming from user space. I think it probably comes from /etc/rc.d/init.d/filesystems, but I cannot help you on that; I don't have any board to try to see what's going on. You could try to add some "echo" statements to trace that message.

Regards,

Gonzalo.

P.S. Although the default is to mount the root device as read-write on boot, I would add rw to your kernel command line.

0 Kudos
Reply
3,334 Views
vidyasagar
Contributor III

Hi Gonzalo,

I got LCD screen successfully, thanks for your suggestion.

As i am porting "L3.0.35_4.1.0_130816_source"  and Linux "version 3.0.35-2666-gbdde708 " on i.MX6 processor, but not clear about which Linux flavour it is.

If i want to get Red Hat Linux flavour, what need to change in file system and kernel.

is any BSP is available with Linux Red Hat flavour, if available please suggest me.

Thanks,

Vidya 

0 Kudos
Reply
3,334 Views
vidyasagar
Contributor III

Hi Gonzalo,

I am compiling libmpeg2 but getting error, can you help me to solve this issue.

Log is below

Making all in libmpeg2
make[1]: Entering directory `/home/eldaas-dev/freescale/source/ltib/rpm/BUILD/mpeg2dec-0.4.1/libmpeg2'
Making all in convert
make[2]: Entering directory `/home/eldaas-dev/freescale/source/ltib/rpm/BUILD/mpeg2dec-0.4.1/libmpeg2/convert'
/bin/sh ../../libtool --tag=CC --mode=link gcc -Wall -g  -O3 -fomit-frame-pointer -fno-common -prefer-non-pic    -o libmpeg2convert.la -rpath /usr/lib -no-undefined rgb.lo uyvy.lo libmpeg2convertarch.la
gcc -shared  .libs/rgb.o .libs/uyvy.o -Wl,--whole-archive ./.libs/libmpeg2convertarch.a -Wl,--no-whole-archive   -Wl,-soname -Wl,libmpeg2convert.so.0 -o .libs/libmpeg2convert.so.0.0.0
/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/ld: .libs/rgb.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
.libs/rgb.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libmpeg2convert.la] Error 1
make[2]: Leaving directory `/home/eldaas-dev/freescale/source/ltib/rpm/BUILD/mpeg2dec-0.4.1/libmpeg2/convert'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/eldaas-dev/freescale/source/ltib/rpm/BUILD/mpeg2dec-0.4.1/libmpeg2'
make: *** [all-recursive] Error 1
error: Bad exit status from /home/eldaas-dev/freescale/source/ltib/tmp/rpm-tmp.20628 (%build)


RPM build errors:
    Bad exit status from /home/eldaas-dev/freescale/source/ltib/tmp/rpm-tmp.20628 (%build)
Build time for libmpeg2: 9 seconds

Failed building libmpeg2


f_buildrpms() returned an error, exiting
traceback:
main:572


Started: Thu May 15 17:56:44 2014
Ended:   Thu May 15 17:57:21 2014
Elapsed: 37 seconds

These packages failed to build:
libmpeg2

Build Failed

Exiting on error or interrupt

Thanks,

Vidya

0 Kudos
Reply
3,334 Views
gonfer
Contributor V

You have a solution here https://community.freescale.com/thread/307521

Regards,

Gonzalo

0 Kudos
Reply
3,335 Views
justin_jiang
NXP Employee
NXP Employee

1) install patch-ltib-ubuntu12.04.sh from (https://community.freescale.com/docs/DOC-93455).

2) create a soft link under /usr/include.

     sudo ln -s i386-linux-gun/sys sys

3) install additional packages.

     sudo aptitude -y install asciidoc texlive-latex-base dblatex xutils-dev

     sudo apt-get install texinfo

4) modify ltib/dist/lfs-5.1/base_libs/base_libs.spec.

     ...

     perl -w -e '

     # @ARGV = grep { `file $_` =~ m,ASCII C program text, } @ARGV;

     # exit (0) unless @ARGV;

0 Kudos
Reply
3,335 Views
vidyasagar
Contributor III

Hi Jiang,

Thanks for reply.

I did same as you said

1)  ./L3.0.35_4.1.0_130816_source/install

got ltib directory then

2) cd ltib

installed install patch-ltib-ubuntu12.04.sh from (https://community.freescale.com/docs/DOC-93455).

./patch-ltib-ubuntu12.04.sh

--2014-04-15 19:00:36--  https://community.freescale.com/servlet/JiveServlet/downloadBody/93454-102-3-2834/ubuntu-ltib-patch....

Resolving community.freescale.com (community.freescale.com)... 204.93.78.236

Connecting to community.freescale.com (community.freescale.com)|204.93.78.236|:443... connected.

HTTP request sent, awaiting response... 200 OK

Length: 3364 (3.3K) [application/gzip]

Saving to: `ubuntu-ltib-patch.tgz'

100%[===============================================================================================================================>] 3,364       10.6K/s   in 0.3s   

2014-04-15 19:00:38 (10.6 KB/s) - `ubuntu-ltib-patch.tgz' saved [3364/3364]

ubuntu-ltib-patch/

ubuntu-ltib-patch/zlib.patch

ubuntu-ltib-patch/sparse-0.4-fixlabel.patch

ubuntu-ltib-patch/lkc-1.4-lib.patch

ubuntu-ltib-patch/mux_server.spec

ubuntu-ltib-patch/sparse-0.4-fixlabel.patch.md5

ubuntu-ltib-patch/install-patches.sh

ubuntu-ltib-patch/lkc.spec

ubuntu-ltib-patch/sparse.spec

ubuntu-ltib-patch/lkc-1.4-lib.patch.md5

cp lkc-1.4-lib.patch /opt/freescale/pkgs

cp lkc-1.4-lib.patch.md5 /opt/freescale/pkgs

cp sparse-0.4-fixlabel.patch /opt/freescale/pkgs

cp sparse-0.4-fixlabel.patch.md5 /opt/freescale/pkgs

Patching Spec Files

Done

patching file bin/Ltibutils.pm

eldaas-dev@eldaasdev-Veriton-Series:~/freescale/source/ltib$

3) cd /usr/include/

sudo ln -s i386-linux-gun/sys sys

4) installed

additional packages.

     sudo aptitude -y install asciidoc texlive-latex-base dblatex xutils-dev

     sudo apt-get install texinfo

5)

modified ltib/dist/lfs-5.1/base_libs/base_libs.spec.

     ...

     perl -w -e '

     # @ARGV = grep { `file $_` =~ m,ASCII C program text, } @ARGV;

     # exit (0) unless @ARGV;

and

6).  ./ltib -m config

eldaas-dev@eldaasdev-Veriton-Series:~/freescale/source/ltib$ ./ltib -m config

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/eldaas-dev/freescale/source/ltib/host_config.log

Exiting on error or interrupt

Please see >> /home/eldaas-dev/freescale/source/ltib/host_config.log for details

Please find error log below from (log_config.log).

Build time for rpm-fs: 130 seconds

sudo rpm --force-debian --root / --dbpath /tmp/rpm-eldaas-dev/rpmdb -e --allmatches --nodeps --define '_tmppath /home/eldaas-dev/freescale/source/ltib/tmp' rpm-fs 2>/dev/null

sudo rpm --force-debian --root / --dbpath /tmp/rpm-eldaas-dev/rpmdb --ignorearch -ivh --force --nodeps --excludedocs --define '_tmppath /home/eldaas-dev/freescale/source/ltib/tmp' /tmp/rpm-eldaas-dev/RPMS/i686/rpm-fs-4.0.4-1.i686.rpm

Preparing...                ##################################################

rpm-fs                      ##################################################

sudo /opt/freescale/ltib/usr/bin/rpm --root / --dbpath /opt/freescale/ltib/var/lib/rpm -Uv --justdb --notriggers --noscripts --nodeps /tmp/rpm-eldaas-dev/RPMS/i686/rpm-fs-4.0.4-1.i686.rpm

error: failed to stat /home/eldaas-dev/.gvfs: Permission denied

Preparing packages for installation...

Processing platform: Host support packages

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

using /home/eldaas-dev/freescale/source/ltib/config/platform/host/ltib.preconfig

Processing: fake-provides

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

Build path taken because: no prebuilt rpm,

Please reply asap why i am getting this error.

Thanks,

Vidya

0 Kudos
Reply