From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mickerik.phytec.de ([195.145.39.210]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gSHSo-00020g-5W for barebox@lists.infradead.org; Thu, 29 Nov 2018 08:14:24 +0000 Message-ID: <1543479249.18108.4.camel@phytec.de> From: Teresa Remmet Date: Thu, 29 Nov 2018 09:14:09 +0100 In-Reply-To: <20181116073206.3773odofpb2xxnbl@pengutronix.de> References: <1542295458.2675.12.camel@phytec.de> <20181116073206.3773odofpb2xxnbl@pengutronix.de> Mime-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: Transferring files over tftp To: Sascha Hauer Cc: barebox@lists.infradead.org SGVsbG8gU2FzY2hhLAoKQW0gRnJlaXRhZywgZGVuIDE2LjExLjIwMTgsIDA4OjMyICswMTAwIHNj aHJpZWIgU2FzY2hhIEhhdWVyOgoKLi4uCgo+IAo+IC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tODwtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQo+IC0tLS0tCj4gCj4g RnJvbSBiZjNkZTMzOTFjOTU4YzljNDRmY2ZhNTRiMmMxYTZhMjllNjhhNWE0IE1vbiBTZXAgMTcg MDA6MDA6MDAKPiAyMDAxCj4gRnJvbTogU2FzY2hhIEhhdWVyIDxzLmhhdWVyQHBlbmd1dHJvbml4 LmRlPgo+IERhdGU6IEZyaSwgMTYgTm92IDIwMTggMDg6MjQ6MDYgKzAxMDAKPiBTdWJqZWN0OiBb UEFUQ0hdIGZzOiB0ZnRwOiBNYWtlIGZpbGVzaXplIGEgNjRiaXQgdHlwZQo+IAo+IFNpZ25lZC1v ZmYtYnk6IFNhc2NoYSBIY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