From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753567AbbJBRhP (ORCPT ); Fri, 2 Oct 2015 13:37:15 -0400 Received: from mail.skyhub.de ([78.46.96.112]:46225 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753030AbbJBRhK (ORCPT ); Fri, 2 Oct 2015 13:37:10 -0400 Date: Fri, 2 Oct 2015 19:37:04 +0200 From: Borislav Petkov To: "Kweh, Hock Leong" Cc: Matt Fleming , Greg Kroah-Hartman , Ong Boon Leong , LKML , linux-efi@vger.kernel.org, Sam Protsenko , Peter Jones , Andy Lutomirski , Roy Franz , James Bottomley , Linux FS Devel , Fleming Matt Subject: Re: [PATCH v6 0/2] Enable capsule loader interface for efi firmware updating Message-ID: <20151002173704.GD16538@pd.tnic> References: <1443733554-22743-1-git-send-email-hock.leong.kweh@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1443733554-22743-1-git-send-email-hock.leong.kweh@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 02, 2015 at 05:05:52AM +0800, Kweh, Hock Leong wrote: > From: "Kweh, Hock Leong" > > Dear maintainers & communities, > > This patchset is created on top of Matt's patchset: > 1.)https://lkml.org/lkml/2014/10/7/390 > "[PATCH 1/2] efi: Move efi_status_to_err() to efi.h" > 2.)https://lkml.org/lkml/2014/10/7/391 > "[PATCH 2/2] efi: Capsule update support" > > It expose a misc char interface for user to upload the capsule binary and > calling efi_capsule_update() API to pass the binary to EFI firmware. > > The steps to update efi firmware are: > 1.) cat firmware.cap > /dev/efi_capsule_loader > 2.) reboot > > Any failed upload error message will be returned while doing "cat" through > Write() function call. > > Tested the code with Intel Quark Galileo platform. What does the error case look like? A standard glibc message about write(2) failing? -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply.