From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Trent Piepho Date: Tue, 7 May 2019 17:59:36 +0000 Message-ID: <1557251975.31309.83.camel@impinj.com> References: <20190506174409.GA23081@lenoch> <20190507073128.GA649@lenoch> <20190507154902.GA30791@lenoch> In-Reply-To: <20190507154902.GA30791@lenoch> Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-ID: <707933458A769949B18DFDFBE38F24A8@namprd06.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [RAUC] Failed to mount seed slot To: "ladis@linux-mips.org" , "rauc@pengutronix.de" Cc: "ejo@pengutronix.de" , "jlu@pengutronix.de" List-ID: T24gVHVlLCAyMDE5LTA1LTA3IGF0IDE3OjQ5ICswMjAwLCBMYWRpc2xhdiBNaWNobCB3cm90ZToN Cj4gT24gVHVlLCBNYXkgMDcsIDIwMTkgYXQgMDk6MzE6MjhBTSArMDIwMCwgTGFkaXNsYXYgTWlj aGwgd3JvdGU6DQo+ID4gT24gTW9uLCBNYXkgMDYsIDIwMTkgYXQgMDc6NDQ6MDlQTSArMDIwMCwg TGFkaXNsYXYgTWljaGwgd3JvdGU6DQo+ID4gPiBbc2xvdC5yb290ZnMuMF0NCj4gPiA+IGRldmlj ZT0vZGV2L3ViaTBfMA0KPiA+ID4gdHlwZT11Ymlmcw0KPiA+ID4gYm9vdG5hbWU9c3lzdGVtMA0K PiA+ID4gDQo+ID4gPiBOb3cgc3lzdGVtIGlzIGJvb3RlZCB3aXRoIHJvb3RmcyBtb3VudGVkIHJl YWQgb25seSB3aGljaCBtYWtlcyBtb3VudGluZyBzZWVkDQo+ID4gPiBzbG90IGZhaWw6DQo+ID4g PiByYXVjWzg3MV06IE1vdW50aW5nIC9kZXYvdWJpMF8wIHRvIHVzZSBhcyBzZWVkDQo+ID4gPiBy YXVjWzg3MV06IGxhdW5jaGluZyBzdWJwcm9jZXNzOiBtb3VudCAtdCB1YmlmcyAvZGV2L3ViaTBf MCAvcnV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