You’re right, instlegato is not working because ping requires an IPv4 address. As a workaround for now, can you go to the instlegato script and remove the following lines?
if ! ping -c 1 -w 1 $TARGET_IP > /dev/null
then
echo "***ERROR: Device address $TARGET_IP seems to be unreachable."
echo
exit 1
fi
This seems to be a very Frequently Asked Question in loads of forums all over the interwebs - but I have yet to see any conclusive answer as to why it happens, or how to “fix” it.
One such thread included a suggestion to stop and restart the interface:
ifdown eth0 && ifup eth0
(except it wasn’t that simple - needed a bit more googling to find a syntax actually acceptable to this target)
So I gave that a try:
root@swi-mdm9x15:~# ifdown eth0 && ifup eth0
ifdown: interface eth0 not configured
udhcpc (v1.20.2) started
Sending discover...
Sending select for 192.168.0.13...
Lease of 192.168.0.13 obtained, lease time 214748364
/etc/udhcpc.d/50default: Adding DNS 192.168.0.1
And there we see an IPv4 address!
That’s good to hear, glad you finally got Legato installed on target
Also, I noticed from your other posts (instlegato: command not found), that you are still using Legato 14.04. Just letting you know that the current documentation (legato.io/legato-docs/14_07/) is for Legato 14.07, so some of the documentation might not be applicable or work for you.
Yes, but I think instlegato will undergo some major changes in the next release. The plan is to remove the instlegato bash script and port this functionality to the target side. This will allow DevStudio to install Legato from other Operating Systems such as Windows.
This instlegato IPv6 bug will still be in 14.07, but we will make sure that both IPv4 and IPv6 addresses will be supported for the next release. Thank you for raising this bug.
The trouble is, as noted here, the upgrade instructions just look like a load of Linux magic spells & incantations to me (the linux noob).
That was why I got stuck when I first received the Dev Kit (before the USB stick), and why I’m using the USB stick now - to try to avoid getting bogged-down in the arcane Linux world of building & installing toolchains, etc.
Can I just download a new USB stick image
In fact, I can’t seem to find the old USB stick image (in case I mess it up) - I thought it was going to be made available to download
Or instructions to “clone” the stick - as a backup
At the moment, the USB stick image is not available for download and the person responsible for it is on vacation. However they will be back next week, so I should be able to get back to you on this subject next week.