This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Wget :: bad address error in Am335x

Hello TI,

           We are trying to use wget to send data to our cloud using wget command. But we get bad address error. Please let us know the reason for the same. 

This URL works fine in normal Ubuntu system using wget command.

command : wget www. some URL.com

error: wget: bad address www. some URL.com

Please suggest.

Regards,

Sanju.

  • Hello Sanju,

    Please check your Internet connection, I get the same error if there is no Ethernet cable connected to my AM335x. You can try to replace the URL with the IP address too, since the URL may not get resolved by your DNS server and lead to this error.

    Best regards,
    Kemal

  • We are able to Ping google.. ping 8.8.8.8 works fine.. But for the URL which we give it not working in wget..

    Also wget is not working for HTTPS . Please suggest.

    Regards,
    Sanju.
  • In AM335x
    ping 8.8.8.8 works,
    but wget http://www.google.com will say
    wget: bad address 'www.google.com'.

    In Ubuntu:
    Note: wget http://www.google.com works fine in Ubuntu

    Please suggest.

    Regards,
    Sanju.
  • The firewall may have blocked this 443 port or if you are behind proxy server it may require additional settings.

    root@am335x-evm:~# export http_proxy=username:password@proxy_host:proxy_port

    If you build separate wget in OE out of busybox, you will be able to get additional debug messages by passing the -d argument.

    MACHINE=am335x-evm bitbake wget

    I've attached one wget buit against the latest processor SDK for reference. You can install it by opkg install command.

    root@am335x-evm:~# opkg install wget_1.17.1-r0_cortexa8hf-neon.ipk

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/354/5228.wget_5F00_1.17.1_2D00_r0_5F00_cortexa8hf_2D00_neon.ipk