LTIB build failure:No network connection available

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

LTIB build failure:No network connection available

2,453 Views
prathameshghane
Contributor II

Hi developers,

I am building the kernel for imx6-SABRE-AI board using the steps given in the Linux user manual.

I selected X11 profile, since I want the enlightenment enabled.So I selected the profile as follows:

./ltib --profile=config/profile/x11.profile

But at various points, I get errors saying Network Connection not available.,

e.g.in case of libid3tag, I get following error.Apart from that, there are other places as well where I get the same error.

Processing: libid3tag
=======================
Build path taken because: no prebuilt rpm,
Testing network connectivity

No network download connection available

Can't get: libid3tag-0.15.1b.tar.gz at ./ltib line 802.


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


Started: Fri Dec  6 15:26:19 2013
Ended:   Fri Dec  6 15:26:40 2013
Elapsed: 21 seconds

These packages failed to build:
libid3tag

Build Failed

I am working from behind the corporate proxy and I have added http_proxy variable in the .ltibrc file ,so network doesn't seem to be the actual problem.

How can I overcome this error??

Regards,

Prathamesh

Labels (2)
0 Kudos
14 Replies

1,149 Views
lily_zhang
NXP Employee
NXP Employee

This error means your default LTIB package doesn't inlcude libid3tag-0.15.1b.tar.gz. You can download from web and then copy it into your ltib source package.

0 Kudos

1,149 Views
prathameshghane
Contributor II

I even tried manually downloading the package, and placing it in /opt/freescale/pkgs
directory, but it still searches for the tar file on the network.

Do I also need to copy the md5sum file for the tar file??

Regards,

Prathamesh

0 Kudos

1,149 Views
lily_zhang
NXP Employee
NXP Employee

Yes, Please

0 Kudos

1,149 Views
prathameshghane
Contributor II

still giving the same error...:(

0 Kudos

1,149 Views
lily_zhang
NXP Employee
NXP Employee

I did 3 experiments:

1.  No libid3tag-0.15.1b.tar.gz in /opt/freescale/pkgs/. To run the following command, the result is as follows: the package will be downloaded from network and then unzip

./ltib -m prep -p libid3tag

Processing: libid3tag
=======================
Build path taken because: build key set, no prebuilt rpm,
Testing network connectivity
OK PPP:
OK GPP:

Try libid3tag-0.15.1b.tar.gz.md5 from the PPP
Try libid3tag-0.15.1b.tar.gz from the PPP

.....

rpmbuild --dbpath /home/xxx/ltib/rootfs//var/lib/rpm --target arm --define '_unpackaged_files_terminate_build 0' --define '_target_cpu arm' --define '__strip strip' --define '_topdir /home/xxx/ltib/rpm' --define '_prefix /usr' --define '_tmppath /home/xxx/ltib/tmp' --define '_rpmdir /home/xxx/ltib/rpm/RPMS'  --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bp  /home/xxx/ltib/dist/lfs-5.1/libid3tag/libid3tag.spec

Building target platforms: arm

Building for target arm

Executing(%prep): /bin/sh -e /home/xxx6/ltib/tmp/rpm-tmp.63216

+ umask 022

+ cd /home/r58066/ltib/rpm/BUILD

+ cd /home/r58066/ltib/rpm/BUILD

+ rm -rf libid3tag-0.15.1b

+ /bin/gzip -dc /home/xxx/ltib/rpm/SOURCES/libid3tag-0.15.1b.tar.gz

2. cp libid3tag-0.15.1b.tar.gz /opt/freescale/pkgs/, To run the following command, the source code will be got from local automatically - won't connect nextowrk

./ltib -m prep -p libid3tag

Processing: libid3tag
=======================
Build path taken because: build key set, no prebuilt rpm,

rpmbuild --dbpath /home/xxx/ltib/rootfs//var/lib/rpm --target arm --define '_unpackaged_files_terminate_build 0' --define '_target_cpu arm' --define '__strip strip' --define '_topdir /home/xxx/ltib/rpm' --define '_prefix /usr' --define '_tmppath /home/xxx/ltib/tmp' --define '_rpmdir /home/r58066/ltib/rpm/RPMS'  --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bp  /home/xxx/ltib/dist/lfs-5.1/libid3tag/libid3tag.spec
Building target platforms: arm
Building for target arm
Executing(%prep): /bin/sh -e /home/xxx/ltib/tmp/rpm-tmp.37483
+ umask 022
+ cd /home/r58066/ltib/rpm/BUILD
+ cd /home/r58066/ltib/rpm/BUILD
+ rm -rf libid3tag-0.15.1b
+ /bin/gzip -dc /home/r58066/ltib/rpm/SOURCES/libid3tag-0.15.1b.tar.gz
+ tar -xvvf -
drwxrwxrwx 1000/1000         0 2004-02-17 10:58 libid3tag-0.15.1b/
-rw-rw-r-- 1000/1000      3421 2004-01-23 17:41 libid3tag-0.15.1b/README

3. Rename libid3tag-0.15.1b.tar.gz as libid3tag-0.15.1b.tar.gz.bak in /opt/freescale/pkgs/. To run "./ltib -m prep -p libid3tag", it will get the codes from network again.

So i think you can double check md5 file and ensure the packages under /opt/freescale/pkgs/ are right. md5 file i used is:

e5808ad997ba32c498803822078748c3  libid3tag-0.15.1b.tar.gz

0 Kudos

1,149 Views
prathameshghane
Contributor II

Hi,

I tried all 3 solutions provided by you.

I got the same error as above.

Then, I thought the error could be because I am behind the corporate proxy.

I checked %http_proxy variable in .ltibrc file.

It has following value:

http://<username>:<password>@<proxyserver.com>:8080

(This setting works fine for other downloads etc. from office computer.)

Then, I set %ppp_proxy and gpp_proxy equal to 1.

And, now I get the following error.

Processing: libid3tag
=======================
Build path taken because: no prebuilt rpm,
Try libid3tag-0.15.1b.tar.gz from the PPP
Error parsing proxy URL http://<username>:<password>@<proxyserver.com>:8080: Bad port number.
Try libid3tag-0.15.1b.tar.gz from the GPP
Error parsing proxy URL https://<username>:<password>@<proxyserver.com>:8080: Bad port number.
Can't get: libid3tag-0.15.1b.tar.gz at ./ltib line 802.

Is, there a specific way I have to enter proxy server setting?

Thanks and Regards,

Prathamesh

0 Kudos

1,149 Views
lily_zhang
NXP Employee
NXP Employee

I didn't use proxy in LTIB before. From your description, i did't see the issue. There was one discussion under http://lists.gnu.org/archive/html/ltib/2011-07/msg00015.html for LTIB proxy. Hope it's helpful for you.

0 Kudos

1,149 Views
prathameshghane
Contributor II

Hi,

I came across following posts on the community which suggest that gpp,ppp links in the default .ltibrc file are dead.

https://community.freescale.com/thread/308163

https://community.freescale.com/thread/308278

In response to such cases, community seems to have provided the required packages and md5sums as attachments.

Can this be done in my case as well? Can you please provide me with readymade libid3tag-0.15.1b.tar.gz and md5sum files?

0 Kudos

1,149 Views
lily_zhang
NXP Employee
NXP Employee

See attachment.

Just one reminder: If these packages are not included into FSL default release packages, that means these packages won't be used and tested into FSL default BSP.

0 Kudos

1,149 Views
prathameshghane
Contributor II

Thanks a lot for the prompt support. That worked.

But, now as I go further with the build, it needs another package called "libamd",and again tries to fetch it from the ppp/gpp and fails..!!

And I am again faced with the same error as mentioned in the previous post.

Processing: libmad

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

Build path taken because: no prebuilt rpm,

Try libmad-0.15.1b.tar.gz from the PPP

Error parsing proxy URL http://<username>:<password>@<proxyserver.com>:8080: Bad port number.

Try  libmad-0.15.1b.tar.gz from the GPP

Error parsing proxy URL https://<username>:<password>@<proxyserver.com>:8080: Bad port number.

Can't get:  libmad-0.15.1b.tar.gz at ./ltib line 802.

The problem lies with the proxy it seems. Plz let me know the correct way to set the proxy setting ALONG WITH USERNAME AND PASSWORD.

Regards,

Prathamesh

0 Kudos

1,149 Views
lily_zhang
NXP Employee
NXP Employee

Hello, Prathamsh:

As i mentioned, if any package is not in default LTIB package, it means FSL doesn't use and support it. If you continue building with X11 profile, you will meet similar issue again and again because this profile is not supported by default BSP.

If GPP is out of support now and you still want to try some buildings, what you can do is to find package from Google. For example, You can find lilibmad-0.15.1b.tar.gz from http://www.linuxfromscratch.org/blfs/view/6.3/multimedia/libmad.html. You can download it to /opt/freescale/pkgs/ folder. And then run "md5sum" to generate the md5 for this package.

0 Kudos

1,149 Views
prathameshghane
Contributor II

Ok, so X11 profile is not tested and supported?!!

In that case, I am ready to move to FSL minimum profile, All I need is Enlightenment drivers support in the kernel(for which I chose X11 profile). So is there a way to achieve it using the generic profile?


0 Kudos

1,149 Views
lily_zhang
NXP Employee
NXP Employee

You can refer to Linux BSP use guide "i.MX_6Dual6Quad_SABRE-SD_Linux_User's_Guide.pdf" to know what profiles can be used.

For example:

Select platform to Freescale i.MX reference boards and exit, saving the changes.

At the next menu, select platform type as imx6q and package profile. Exit and save

the new configuration. Only the profiles of Min profile, FSL gnome release

packages, and mfg firmware profile pass build tests.

NOTE

You can use the ./ltib -m selectype command to change the

profile after the first selection

1,149 Views
prathameshghane
Contributor II

Ok. I think I should start a new thread regarding proxy, GPP and PPP. Thanks anyways :smileyhappy:!!

0 Kudos