From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gtW9E-0005xI-UE for barebox@lists.infradead.org; Tue, 12 Feb 2019 11:22:47 +0000 Date: Tue, 12 Feb 2019 12:22:40 +0100 From: Roland Hieber Message-ID: <20190212112240.sjrrrcdmysdyr3iy@pengutronix.de> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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: Accessing MMC/SD card storage on Raspberry Pi To: =?utf-8?B?VG9tYcW+IMWgb2xj?= Cc: barebox@lists.infradead.org, Moritz Augsburger SGkgVG9tYcW+LAoKT24gTW9uLCBGZWIgMTEsIDIwMTkgYXQgMDQ6MDk6MDlQTSArMDEwMCwgVG9t YcW+IMWgb2xjIHdyb3RlOgo+IERlYXIgYWxsLAo+IAo+IEkndmUgYmVlbiB0cnlpbmcgdG8gc2V0 IHVwIEJhcmVib3ggb24gYSBSYXNwYmVycnkgUGkgQ29tcHV0ZSBNb2R1bGUgMy4gQWZ0ZXIKPiBz b21lIHNtYWxsIGZpeGVzIChzZWUgYmVsb3cpIEkndmUgZ290IDIwMTkuMDEuMCB0byBib290IHRv IGEgY29tbWFuZCBsaW5lIG9uCj4gdGhlIHNlcmlhbCBwb3J0LiBIb3dldmVyIEkgY2FuJ3QgZ2V0 IGFjY2VzcyB0byB0aGUgTU1DIHN0b3JhZ2UgdG8gbG9hZCBhCj4ga2VybmVsICgibm8gL2Rldi9k aXNrMC4wLiB1c2luZyBkZWZhdWx0IGVudiIpCj4gCj4gTG9va2luZyBhdCB0aGUgc291cmNlLCBp dCBzZWVtcyB0aGF0IGEgImJjbTI4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