DragonBoard410c - linaro-buster-alip-dragonboard-410c-359.img.gz download failed

Hi,

We are trying to download
[linaro-buster-alip-dragonboard-410c-359.img.gz] file from the
link (http://releases.linaro.org/96boards/dragonboard410c/linaro/debian/latest/linaro-buster-alip-dragonboard-410c-359.img.gz)
and always it is failing and showing message ‘Failed - Network error’, at the same time we are able to download other files from network.

Can you please suggest to downoad linaro-buster-alip-dragonboard-410c-359.img.gz file successfully.

Thanks in advance.

Regards,
Suguna

Hi,

Even i am facing same issue, since week i am trying to download the same and getting error after 70-80% completes. Even tried in different networks, wired, wireless. Every time its same error.
Attached screenshot FYR.

Please advise.
LinaroDownloadError

Is it still broken? I am able to download this without problem although I noticed that the load balancer has routed me to a different mirror.

BTW if you can try to capture the logs of wget --verbose http://releases.linaro.org/96boards/dragonboard410c/linaro/debian/latest/linaro-buster-alip-dragonboard-410c-359.img.gz since might be easier to see any problems with text logging at the point of failure.

No problem for me neither, could it be linked to a kind of ‘timeout’ issue? what is your bitrate?

Hi,

Please find below error log while downloading the same.
LOG:

malleswari@malleswari-ThinkCentre-E73:~/Downloads$ wget --verbose http://releases.linaro.org/96boards/dragonboard410c/linaro/debian/latest/linaro-buster-alip-dragonboard-410c-359.img.gz
–2018-11-21 16:40:47-- http://releases.linaro.org/96boards/dragonboard410c/linaro/debian/latest/linaro-buster-alip-dragonboard-410c-359.img.gz
Resolving releases.linaro.org (releases.linaro.org)… 64.28.99.46
Connecting to releases.linaro.org (releases.linaro.org)|64.28.99.46|:80… connected.
HTTP request sent, awaiting response… 302 Found
Location: http://publishing-ie-linaro-org.s3.amazonaws.com/releases/96boards/dragonboard410c/linaro/debian/latest/linaro-buster-alip-dragonboard-410c-359.img.gz?Signature=kSYA3DuPcKAb1yjpuHZ4u%2BGMGo0%3D&Expires=1542798738&AWSAccessKeyId=AKIAIELXV2RYNAHFUP7A [following]
–2018-11-21 16:40:48-- http://publishing-ie-linaro-org.s3.amazonaws.com/releases/96boards/dragonboard410c/linaro/debian/latest/linaro-buster-alip-dragonboard-410c-359.img.gz?Signature=kSYA3DuPcKAb1yjpuHZ4u%2BGMGo0%3D&Expires=1542798738&AWSAccessKeyId=AKIAIELXV2RYNAHFUP7A
Resolving publishing-ie-linaro-org.s3.amazonaws.com (publishing-ie-linaro-org.s3.amazonaws.com)… 52.218.16.249
Connecting to publishing-ie-linaro-org.s3.amazonaws.com (publishing-ie-linaro-org.s3.amazonaws.com)|52.218.16.249|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 1170712083 (1.1G) [other]
Saving to: ‘linaro-buster-alip-dragonboard-410c-359.img.gz’

71% [===========================================================================> ] 83,43,02,312 951KB/s in 27m 18s

2018-11-21 17:08:06 (497 KB/s) - Read error at byte 834302312/1170712083 (Connection reset by peer). Retrying.

–2018-11-21 17:08:07-- (try: 2) http://publishing-ie-linaro-org.s3.amazonaws.com/releases/96boards/dragonboard410c/linaro/debian/latest/linaro-buster-alip-dragonboard-410c-359.img.gz?Signature=kSYA3DuPcKAb1yjpuHZ4u%2BGMGo0%3D&Expires=1542798738&AWSAccessKeyId=AKIAIELXV2RYNAHFUP7A
Connecting to publishing-ie-linaro-org.s3.amazonaws.com (publishing-ie-linaro-org.s3.amazonaws.com)|52.218.16.249|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: unspecified [text/html]
Saving to: ‘linaro-buster-alip-dragonboard-410c-359.img.gz’

[ <=>                                                                                                        ] 940         --.-K/s   in 0s      

2018-11-21 17:08:08 (222 MB/s) - ‘linaro-buster-alip-dragonboard-410c-359.img.gz’ saved [834302312]

Can you please suggest to downoad linaro-buster-alip-dragonboard-410c-359.img.gz file successfully.

Regards,
Suguna

Hi Danielt,

Today morning also I tried to download the same file and the broken is observed at ‘834303248’ file size.

Please kindly resolve the issue ASAP.

Thanks In advance.

Error Log:

Connecting to publishing-ap-linaro-org.s3.amazonaws.com (publishing-ap-linaro-org.s3.amazonaws.com)|52.219.32.188|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 1170712083 (1.1G) [other]
Saving to: ‘linaro-buster-alip-dragonboard-410c-359.img.gz.1’

71% [===========================================================================> ] 83,43,03,248 727KB/s in 7m 1s

2018-11-22 10:00:51 (1.89 MB/s) - Read error at byte 834303248/1170712083 (Connection reset by peer). Retrying.

–2018-11-22 10:00:52-- (try: 2) http://publishing-ap-linaro-org.s3.amazonaws.com/releases/96boards/dragonboard410c/linaro/debian/latest/linaro-buster-alip-dragonboard-410c-359.img.gz?Signature=6nrNz8dYFRSNziBGGSyctMpf1do%3D&Expires=1542860720&AWSAccessKeyId=AKIAIELXV2RYNAHFUP7A
Connecting to publishing-ap-linaro-org.s3.amazonaws.com (publishing-ap-linaro-org.s3.amazonaws.com)|52.219.32.188|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: unspecified [text/html]
Saving to: ‘linaro-buster-alip-dragonboard-410c-359.img.gz.1’

[ <=>                                                                                                        ] 940         --.-K/s   in 0s      

2018-11-22 10:00:52 (332 MB/s) - ‘linaro-buster-alip-dragonboard-410c-359.img.gz.1’ saved [834303248]

Regards,
Suguna

1 Like

Hi @suguna

In at least one case you have ended up connecting to the same content server I tested (publishing-ie-linaro-org.s3.amazonaws.com) without any issue. So I can see if there is any useful logs on our side but I suspect this might be a problem beyond the perimeter of our servers.

Is there any scope that some kind of “fair use” policy at your ISP is kicking in and throttling the traffic to the point it disconnects (I noticed that the retry fails almost completely which is consistent with throttling)? If that were there case then simply waiting until the throttling relaxes and running wget with --continue would help.

Hi Danielt,

Thanks for your response.

I ran wget with --continue option still facing the same issue.
If problem from our ISP side it should not broke always at the same file size with same error message.
Connecting to publishing-ap-linaro-org.s3.amazonaws.com (publishing-ap-linaro-org.s3.amazonaws.com)|52.219.32.164|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 1170712083 (1.1G) [other]
Saving to: ‘linaro-buster-alip-dragonboard-410c-359.img.gz’

71% [===========================================================================> ] 83,43,03,248 1.61MB/s in 6m 28s

2018-11-22 14:54:27 (2.05 MB/s) - Read error at byte 834303248/1170712083 (Connection reset by peer). Retrying.

–2018-11-22 14:54:28-- (try: 2) http://publishing-ap-linaro-org.s3.amazonaws.com/releases/96boards/dragonboard410c/linaro/debian/latest/linaro-buster-alip-dragonboard-410c-359.img.gz?Signature=6DWr0w0Npm7NVWdRmXhHyIogOpk%3D&Expires=1542878369&AWSAccessKeyId=AKIAIELXV2RYNAHFUP7A
Connecting to publishing-ap-linaro-org.s3.amazonaws.com (publishing-ap-linaro-org.s3.amazonaws.com)|52.219.32.164|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: unspecified [text/html]
Saving to: ‘linaro-buster-alip-dragonboard-410c-359.img.gz’

[ <=>                                                                                                        ] 940         --.-K/s   in 0s      

2018-11-22 14:54:28 (327 MB/s) - ‘linaro-buster-alip-dragonboard-410c-359.img.gz’ saved [834303248]

Can you please help us to resolve the issue or else please provide any other url to download the same file.

Thanks in Advace for you support.

Regards,
Suguna.

I agree its odd that it triggers at a specific file offset however it would also be pretty rare to discover problems with Amazon S3 storage that are not related to your network environment (including the intermediate machines between you and Amazon). Especially so given it is working for others.,

A suggestions made by one of our networking guys is to double check there is not a TCP windowing bug in some of the intermediate equipment between you and the server:
http://scie.nti.st/2008/3/14/amazon-s3-and-connection-reset-by-peer/

Hi Danielt,

Thanks,

Now image is successfully downloaded with wget (–continue option) and same rootfs is booting successfully on our DragonBoard410c board.

My next question is how to get the ‘linaro-buster-alip-dragonboard-410c-359.img’ rootfs source code.

Can you please suggest the steps to get the rootfs source code.

Thanks in advance for your support.

Suguna.

For source code you just use the normal Debian tools such as apt-src. If these are run on the target the apt config means you should pick up the correct mix of debian.org and obs.linaro.org source packages.

Hi Danielt,

We tried apt-src and it is working fine.

Query regarding re-build the ext4 rootfs image (linaro-buster-alip-dragonboard-410c-359.img)

  1. We extracted raw image from linaro-buster-alip-dragonboard-410c-359.img file with the below command.
    “simg2img linaro-buster-alip-dragonboard-410c-359.img linaro-buster-alip-dragonboard-410c-359.img.raw”
  2. and also extracted rootfs with below command
    sudo mount -o loop linaro-buster-alip-dragonboard-410c-359.img.raw rootfs

Can you please suggest how to re-build the ext4 image from extracted rootfs.

Thanks in advance for your support.

Suguna.

I’m not sure I understand the question. You have read/write mounted the raw image on rootfs so you should be able to make any changes that you want in-place. After that you just umount and repack it using ext2simg.

Hi Danielt,

We tried below command to Build the image with ext2simg but we observed the image size is very lower than ‘linaro-buster-alip-dragonboard-410c-359.img’
’ ext2simg linaro-buster-alip-dragonboard-410c-359.img.raw test.img’
ls -la test.img linaro-buster-alip-dragonboard-410c-359.img linaro-buster-alip-dragonboard-410c-359.img.raw
-rw-rw-r-- 1 vision vision 2963305092 Nov 26 14:08 linaro-buster-alip-dragonboard-410c-359.img
-rw-rw-r-- 1 vision vision 3221225472 Dec 11 11:31 linaro-buster-alip-dragonboard-410c-359.img.raw
-rw-r–r-- 1 vision vision 1394527284 Dec 11 12:28 test.img

Can you please suggest the procedure to extract and repack the ‘root file system’ from 'linaro-buster-alip-dragonboard-410c-359.img’

Thanks in Advance for your support.

Suguna

If ext2simg doesn’t work correctly it is possible to use img2simg instead.

Hi Danielt,

Thanks for your support.

It is working fine with img2simg.

Suguna.

Hi Danielt,

We connected serial console to DragonBoard410c board and able to see the debug messages on console (port opened with 115200 baudrate).

While booting we observed that only rootfs debugs are readable, above bootloader (lk) and kernel debugs are looking like junk as below.

������ ɥ��������Y���ѽ�����������������Y5)m����Ź������u�������������������5)m����Ź������u����� ɥ��������Y���ѽ���������������Y5)m����Ź������u�������������������5)m����Ź������u����� ɥ��������Y���ѽ�����������������Y5)m����Ź������u�������������������5)m����Ź������u����� ɥ��������Y���ѽ���������������Y5)m����Ź������u�������������������5)m����Ź������u����� ɥ��������Y���ѽ�����������������Y5)m����Ź������u�������������������5)m����Ź������u����� ɥ��������Y���ѽ�����������������Y5)m����Ź������u�������������������5)m����Ź������u����� ɥ��������Y���ѽ�����������������Y5)m����Ź������u�������������������5)m����Ź������u����� ɥ��������Y���ѽ�����������������Y5)m����Ź������u�����������������ɕ�ձ�ѽɵ�յ��5)m����Ź������u����� ɥ��������Y���ѽ�����������������Y5)m����Ź������u�����������������ɕ�ձ�ѽɵ�յ��5)m����Ź������u����� ɥ��������Y���ѽ�����������������Y5)m����Ź������u������������������ɕ�ձ�ѽɵ�յ��5)m����Ź������u������ ɥ��������Y���ѽ�����������������Y5)m����Ź������u������������������ɕ�ձ�ѽɵ�յ��5)m����Ź������u������ ɥ��������Y���ѽ�����������������Y5)m����Ź������u������������������ɕ�ձ�ѽɵ�յ��5)m����Ź������u������ ɥ��������Y���ѽ�����������������Y5)m����Ź������u������������������ɕ�ձ�ѽɵ�յ��5)m����Ź������u������ ɥ��������Y���ѽ�����������������Y5)m����Ź������u������������������ɕ�ձ�ѽɵ�յ��5)m����Ź������u������ ɥ��������Y���ѽ�����������������Y5)m����Ź������u������������������ɕ�ձ�ѽɵ�յ��5)m����Ź������u������ ɥ��������Y���ѽ�����������������Y5)m����Ź������u������������������ɕ�ձ�ѽɵ�յ��5)m����Ź������u������ ɥ��������Y���ѽ�����������������Y5)m����Ź������u������������������ɕ�ձ�ѽɵ�յ��5)m����Ź������u������ ɥ��������Y���ѽ�����������������Y5)m����Ź������u������������������ɕ�ձ�ѽɵ�յ��5)m����Ź������u������ ɥ��������Y���ѽ�����������������Y5)m����Ź������u���������ɑ��с���ɕ�́����5)m����Ź������u��������遵�������ŁM�����ݹ�������5)m����Ź������u�������������遵�������ŁM��������ѥѥ���Łѹ���5� 5)m����Ź������u�������������遵�������ŁM��������ѥѥ���Ɂѹ���5� 5)m����Ź������u������������遵�������ŁM��������ѥѥ���́ѹ���5� 5)m����Ź������u������������Ł�Ɂ�́�с�Ձ�ﻑ�݁�������%�Ź��5)m����ɹ������u��Չ�ŵ��Ź���UM}��ɍ��遹��Չ���չ�5)m����ɹ������u��Չ�ŵ��Ź���Ł���с��ѕ�ѕ��[ 2.097496] Freeing unused kernel memory: 1152K
Loading, please wait…
starting version 236

Can you please suggest how to get readable debugs for bootloader (lk) and kernel as well.

Thanks in Advance for your support.

Suguna.

This is unexpected. It looks like the hand over to userspace has causes the UART timing to be configured. This does not usually happen (or rather it probably does but since bootloader is configured for 115200 baud the difference cannot usually be observed).

Could you attempt SD card recovery, capturing the serial trace from the point the SD card starts to boot, through to the point the DB410C has been re-imaged and boots?

Hi Danielt,

Not observed junk after re-image and boot.
But from the next boot onward junk is observed.
Please find attached data.

Can you please suggest for solution.

Thanks in Advance for your support.

Suguna.

I was really expecting you to log the output on the serial port throughout the process and share it using a pastebin or github gist.

There is seldom enough information in screenshots and there are hard to work from.