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.

Error : No lease, failing

Other Parts Discussed in Thread: UNIFLASH

Hi Team,

am using beagle bone black board  and 3.12 kernel .my task is to load the all images into emmc using uniflash tool,

when i run uniflash tool 10 times but 1 time it fail ,add the delay in ether.c file and boot arguments but problem not solved,

Log :

Sending discover...
Sending discover...
Sending discover...
No lease, failing
done.
Mon Feb 17 19:03:00 UTC 2014
Collected errors:
 * opkg_conf_load: Could not create lock file /var/lib/opkg/lock: No such file or directory.
INIT: Entering runlevel: 5
Starting syslogd/klogd: done
****************************************************
****************************************************

Sitara Flash Fetcher Script - 07/28/2014

udhcpc (v1.20.2) started
Sending discover...
Sending discover...
Sending discover...
No lease, failing
Getting flasher script from server: 192.168.2.1
tftp: sendto: Network is unreachable
Unable to fetch debrick script! Exiting...
Stopping Bootlog daemon: bootlogd.

how can i solve this problem ??

Regards,

Naven.

  • Naven,

    The host PC is not providing a DHCP address. Can you capture a trace of the traffic with Wireshark?

    Is it the 10th time exactly, or randomly 1 of 10 times will fail?
  • Hi RonB,

    Thanks for reply .....

    its fail randomly .

    how can i solve this problem ??

     its urgent requirement for production.

    Regards,

    Naven

  • Naveen,

    As requested by Ron could you please provide the wireshark logs as well ? You can download from the following link:

    https://www.wireshark.org/download.html

    Best Regards,
    Shiv

  • Naveen,

    Can you also provide the full logs of a failure or two? I am trying to determine whether USB is being used or not? Some things indicate that the board is attempting to use CPSW Ethernet and NOT USB. If Ethernet is not plugged in, obviously, this will fail. So, we need to figure out why USB is not being used as the interface. Or, if it is, why it is failing. Full logs will help me see this. The wireshark capture will help us see what is actually going on on the interface.

  • Failure log :
    -------------
    udhcpc (v1.20.2) started
    Sending discover...
    Sending discover...
    Sending discover...
    No lease, failing
    done.
    Collected errors:
    * opkg_conf_load: Could not create lock file /var/lib/opkg/lock: No such file or directory.
    INIT: Entering runlevel: 5
    Starting syslogd/klogd: done
    ****************************************************
    ****************************************************

    Sitara Flash Fetcher Script - 07/28/2014

    udhcpc (v1.20.2) started
    Sending discover...
    Sending discover...
    Sending discover...
    No lease, failing
    Getting flasher script from server: 192.168.2.1
    tftp: sendto: Network is unreachable
    Unable to fetch debrick script! Exiting...
    Stopping Bootlog daemon: bootlogd.

    Failure log 2 :
    ---------------------
    udhcpc (v1.20.2) started
    Sending discover...
    Sending discover...
    Sending discover...
    No lease, failing
    done.
    Collected errors:
    * opkg_conf_load: Could not create lock file /var/lib/opkg/lock: No such file or directory.
    INIT: Entering runlevel: 5
    Starting syslogd/klogd: done
    ****************************************************
    ****************************************************

    Sitara Flash Fetcher Script - 07/28/2014

    udhcpc (v1.20.2) started
    Sending discover...
    Sending discover...
    Sending discover...
    No lease, failing
    Getting flasher script from server: 192.168.2.1
    tftp: sendto: Network is unreachable
    Unable to fetch debrick script! Exiting...
    Stopping Bootlog daemon: bootlogd.


    Pass log :
    ----------------
    Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
    bootlogd.
    Configuring network interfaces... [ 6.236937] net eth0: initializing cpsw version 1.12 (0)
    [ 6.244714] net eth0: phy found : id is : 0x7c0f1
    [ 6.256249] 8021q: adding VLAN 0 to HW filter on device eth0
    udhcpc (v1.20.2) started
    Sending discover...
    Sending discover...
    Sending discover...
    No lease, failing
    done.
    Mon Feb 17 19:03:00 UTC 2014
    Collected errors:
    * opkg_conf_load: Could not create lock file /var/lib/opkg/lock: No such file or directory.
    INIT: Entering runlevel: 5
    Starting syslogd/klogd: done
    ****************************************************
    ****************************************************

    Sitara Flash Fetcher Script - 07/28/2014

    udhcpc (v1.20.2) started
    Sending discover...
    Sending discover...
    Sending discover...
    Sending select for 192.168.2.25...
    Lease of 192.168.2.25 obtained, lease time 600
    Getting flasher script from server: 192.168.2.1

    ********************************************
    Sitara Flash Fetcher is complete. Executing flasher.sh.

    Calling Script=flasher.sh with SERVER_IP=192.168.2.1
    ****************************************************
    ****************************************************

    Sitara Example Flashing Script - 02/11/2014

    ifup: interface usb0 already configured
    Getting files from server: 192.168.2.1
    real 0m 0.39s
    user 0m 0.01s
    sys 0m 0.02s
    1024+0 records in
    1024+0 records out
  • Hi RonB,

    i run test capture wireshark when failure condition ,

    please check attachment .

    fail.txt

  • Naveen,

    I'm sorry, the fail.txt file above doesn't seem to be a valid Wireshark capture file as I can't play it back in Wireshark. Could you try again? You have to stop the running capture, and then do a file save. That should give a capture file.

    From what I can see above and some testing today, the "ifup usb0" which triggers udhcpc to get an address is failing. I can't tell why, though. That's what I hoped to see from the trace.

    In your passing case, it looks like ethernet is up (over ethernet, not USB). Is that the case? What interfaces are connected when things work? Is it the same when things don't work?

    I have seen where Uniflash on Windows misses packets because Windows is off doing something else. If that is the case, simply running udhcpc again might do the trick.
  • Hi RonB,

    i send once agian wireshark file with zip can you check once .

    and plan to check same test in linux pc ,but problem is i install uniflash tool in linux pc,

    but problem is coustem board is not detecting in linux pc and how to configure ip address

    please share details .

    fail_filter.tar

    Regards,

    Naveen

  • Naveen,

    OK, that file works but unfortunately doesn't show anything useful. There is not BOOTP, DHCP, or TFTP traffic in that trace, that I can see.

    Can you please share more info. about your setup? This process works best on a private network where the Host PC is directly connected to the board being flashed, either directly with a cable or through a switch. In your trace, there's a lot of other traffic. It could be because you captured all interfaces...

    As for information to set up Linux Host networking with an AM335x board, please see here.