From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mickerik.phytec.de ([195.145.39.210]) by casper.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gP6Mh-0005Wi-M0 for barebox@lists.infradead.org; Tue, 20 Nov 2018 13:46:57 +0000 Message-ID: <1542721602.2913.11.camel@phytec.de> From: Teresa Remmet Date: Tue, 20 Nov 2018 14:46:42 +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 aHJpZWIgU2FzY2hhIEhhdWVyOgo+IEhpIFRlcmVzYSwKPiAKPiBPbiBUaHUsIE5vdiAxNSwgMjAx OCBhdCAwNDoyNDoxOFBNICswMTAwLCBUZXJlc2EgUmVtbWV0IHdyb3RlOgo+ID4gCj4gPiBIZWxs bywKPiA+IAo+ID4gSSBhbSBmYWNpbmcgdGZ0cCBpc3N1ZXMgd2hlbiB0cnlpbmcgdG8gdHJhbnNm ZXIgZmlsZXMgPiAyR0IuIFRoaXMKPiA+IGVuZHMgdXAgaW4gYSBjcmFzaDoKPiA+IAo+ID7CoAo+ ID4gCi4uLgo+ID4gCj4gPiBDYXVzaW5nIHRoaXMgc2VlbXMgdG8gYmUgY29tbWl0Ogo+ID4gCj4g PiBjb21taXQgZTNlNTVmYTNhYTY5OGJiOTJmYTQzNjJhMzZlMTAyNzQ5YzEzYzEyNAo+ID4gQXV0 aG9yOiBTYXNjaGE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