Re: svn commit: r307072 - in head/usr.sbin: . efivar

2016-10-13 Thread Warner Losh
All these issues should be fixed. Sorry for the mixup. I'm learning
git and mis-merged trees from two different laptops :(.

Warner

On Wed, Oct 12, 2016 at 6:22 PM, Warner Losh  wrote:
> I'll look into it. It worked just fine for me for all the builds I did
> on many different machines. Ugg.
>
> Warner
>
> On Wed, Oct 12, 2016 at 5:41 PM, Cy Schubert  wrote:
>> In message > om>
>> , Ed Maste writes:
>>> On 12 October 2016 at 12:55, Zbigniew Bodek  wrote:
>>> > Hello Warner,
>>> >
>>> > Did you try to build world for ARMv6 on HEAD? I'm not able to do so and 
>>> > the
>>> > issues seems to be related to this commit (missing efivar.h file).
>>>
>>> Indeed, my tinderbox build failed for arm.arm, arm.armeb, arm.armv6,
>>> arm64.aarch64, pc98.i386, i386.i386 with
>>>
>>> /scratch/tmp/emaste/freebsd/usr.sbin/efivar/efivar.c:31:10: fatal
>>> error: 'efivar.h' file not found
>>> #include 
>>>  ^
>>>
>>> I temporarily unhooked it from the build in r307157.
>>>
>>>
>>
>> I had the same on amd64.
>>
>>
>> --
>> Cheers,
>> Cy Schubert 
>> FreeBSD UNIX:     Web:  http://www.FreeBSD.org
>>
>> The need of the many outweighs the greed of the few.
>>
>>
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r307072 - in head/usr.sbin: . efivar

2016-10-12 Thread Warner Losh
I'll look into it. It worked just fine for me for all the builds I did
on many different machines. Ugg.

Warner

On Wed, Oct 12, 2016 at 5:41 PM, Cy Schubert  wrote:
> In message  om>
> , Ed Maste writes:
>> On 12 October 2016 at 12:55, Zbigniew Bodek  wrote:
>> > Hello Warner,
>> >
>> > Did you try to build world for ARMv6 on HEAD? I'm not able to do so and the
>> > issues seems to be related to this commit (missing efivar.h file).
>>
>> Indeed, my tinderbox build failed for arm.arm, arm.armeb, arm.armv6,
>> arm64.aarch64, pc98.i386, i386.i386 with
>>
>> /scratch/tmp/emaste/freebsd/usr.sbin/efivar/efivar.c:31:10: fatal
>> error: 'efivar.h' file not found
>> #include 
>>  ^
>>
>> I temporarily unhooked it from the build in r307157.
>>
>>
>
> I had the same on amd64.
>
>
> --
> Cheers,
> Cy Schubert 
> FreeBSD UNIX:     Web:  http://www.FreeBSD.org
>
> The need of the many outweighs the greed of the few.
>
>
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r307072 - in head/usr.sbin: . efivar

2016-10-12 Thread Cy Schubert
In message 
, Ed Maste writes:
> On 12 October 2016 at 12:55, Zbigniew Bodek  wrote:
> > Hello Warner,
> >
> > Did you try to build world for ARMv6 on HEAD? I'm not able to do so and the
> > issues seems to be related to this commit (missing efivar.h file).
> 
> Indeed, my tinderbox build failed for arm.arm, arm.armeb, arm.armv6,
> arm64.aarch64, pc98.i386, i386.i386 with
> 
> /scratch/tmp/emaste/freebsd/usr.sbin/efivar/efivar.c:31:10: fatal
> error: 'efivar.h' file not found
> #include 
>  ^
> 
> I temporarily unhooked it from the build in r307157.
> 
> 

I had the same on amd64.


-- 
Cheers,
Cy Schubert 
FreeBSD UNIX:     Web:  http://www.FreeBSD.org

The need of the many outweighs the greed of the few.


___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r307072 - in head/usr.sbin: . efivar

2016-10-12 Thread Ed Maste
On 12 October 2016 at 12:55, Zbigniew Bodek  wrote:
> Hello Warner,
>
> Did you try to build world for ARMv6 on HEAD? I'm not able to do so and the
> issues seems to be related to this commit (missing efivar.h file).

Indeed, my tinderbox build failed for arm.arm, arm.armeb, arm.armv6,
arm64.aarch64, pc98.i386, i386.i386 with

/scratch/tmp/emaste/freebsd/usr.sbin/efivar/efivar.c:31:10: fatal
error: 'efivar.h' file not found
#include 
 ^

I temporarily unhooked it from the build in r307157.
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r307072 - in head/usr.sbin: . efivar

2016-10-12 Thread Zbigniew Bodek
Hello Warner,

Did you try to build world for ARMv6 on HEAD? I'm not able to do so and the
issues seems to be related to this commit (missing efivar.h file).

Kind regards
zbb

2016-10-12 0:31 GMT+02:00 Warner Losh :

> Author: imp
> Date: Tue Oct 11 22:31:45 2016
> New Revision: 307072
> URL: https://svnweb.freebsd.org/changeset/base/307072
>
> Log:
>   Add efivar(1) to manipulate EFI variables. It uses a similar command
>   line interface to the Linux program, as well as adding a number of
>   useful features to make using it in shell scripts easier (since we
>   don't have a filesystem to fall back on interacting with).
>
>   Differential Revision: https://reviews.freebsd.org/D8128
>   Reviewed by: kib@, wblock@, Ganael Laplanche
>
> Added:
>   head/usr.sbin/efivar/
>   head/usr.sbin/efivar/Makefile   (contents, props changed)
>   head/usr.sbin/efivar/efivar.8   (contents, props changed)
>   head/usr.sbin/efivar/efivar.c   (contents, props changed)
> Modified:
>   head/usr.sbin/Makefile
>
> Modified: head/usr.sbin/Makefile
> 
> ==
> --- head/usr.sbin/Makefile  Tue Oct 11 22:30:41 2016(r307071)
> +++ head/usr.sbin/Makefile  Tue Oct 11 22:31:45 2016(r307072)
> @@ -123,6 +123,7 @@ SUBDIR.${MK_BSNMP}+=bsnmpd
>  SUBDIR.${MK_CTM}+= ctm
>  SUBDIR.${MK_DIALOG}+=  tzsetup
>  SUBDIR.${MK_DIALOG}+=  bsdconfig
> +SUBDIR.${MK_EFI}+= efivar
>  SUBDIR.${MK_FLOPPY}+=  fdcontrol
>  SUBDIR.${MK_FLOPPY}+=  fdformat
>  SUBDIR.${MK_FLOPPY}+=  fdread
>
> Added: head/usr.sbin/efivar/Makefile
> 
> ==
> --- /dev/null   00:00:00 1970   (empty, because file is newly added)
> +++ head/usr.sbin/efivar/Makefile   Tue Oct 11 22:31:45 2016
> (r307072)
> @@ -0,0 +1,8 @@
> +# $FreeBSD$
> +
> +PROG=  efivar
> +MAN=   efivar.8
> +
> +LIBADD= efivar
> +
> +.include 
>
> Added: head/usr.sbin/efivar/efivar.8
> 
> ==
> --- /dev/null   00:00:00 1970   (empty, because file is newly added)
> +++ head/usr.sbin/efivar/efivar.8   Tue Oct 11 22:31:45 2016
> (r307072)
> @@ -0,0 +1,164 @@
> +.\" Copyright (c) 2003 Netflix, Inc
> +.\" All rights reserved.
> +.\"
> +.\" Redistribution and use in source and binary forms, with or without
> +.\" modification, are permitted provided that the following conditions
> +.\" are met:
> +.\" 1. Redistributions of source code must retain the above copyright
> +.\"notice, this list of conditions and the following disclaimer.
> +.\" 2. Redistributions in binary form must reproduce the above copyright
> +.\"notice, this list of conditions and the following disclaimer in the
> +.\"documentation and/or other materials provided with the
> distribution.
> +.\"
> +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
> AND
> +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
> +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
> PURPOSE
> +.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
> LIABLE
> +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
> CONSEQUENTIAL
> +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
> GOODS
> +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
> +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
> STRICT
> +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
> WAY
> +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
> +.\" SUCH DAMAGE.
> +.\"
> +.\" $FreeBSD$
> +.\"
> +.Dd September 29, 2016
> +.Dt EFIVAR 8
> +.Os
> +.Sh NAME
> +.Nm efivar
> +.Nd UEFI environemnt variable interaction
> +.Sh SYNOPSIS
> +.Nm
> +.Op Fl abdDHlLNpRtw
> +.Op Fl n Ar name
> +.Op Fl f Ar file
> +.Op Fl -append
> +.Op Fl -ascii
> +.Op Fl -attributes
> +.Op Fl -binary
> +.Op Fl -delete
> +.Op Fl -fromfile Ar file
> +.Op Fl -hex
> +.Op Fl -list-guids
> +.Op Fl -list
> +.Op Fl -name Ar name
> +.Op Fl -no-name
> +.Op Fl -print
> +.Op Fl -print-decimal
> +.Op Fl -raw-guid
> +.Op Fl -write
> +.Ar name Ns Op = Ns Ar value
> +.Sh DESCRIPTION
> +This program manages
> +.Dq Unified Extensible Firmware Interface
> +.Pq UEFI
> +environment variables.
> +UEFI variables have three part: A namespace, a name and a value.
> +The namespace is a GUID that's self assigned by the group defining the
> +variables.
> +The name is a Unicode name for the variable.
> +The value is binary data.
> +All Unicode data is presented to the user as UTF-8.
> +.Pp
> +The following options are available:
> +.Bl -tag -width 20m
> +.It Fl n Ar name Fl -name Ar name
> +Specify the name of the variable to operate on.
> +The
> +.Ar name
> +argument is the GUID of variable, followed by a dash, followed by the
> +UEFI variable name.
> +The GUID may be 

Re: svn commit: r307072 - in head/usr.sbin: . efivar

2016-10-11 Thread Warner Losh
On Tue, Oct 11, 2016 at 5:19 PM, Shawn Webb  wrote:
> On Tue, Oct 11, 2016 at 05:13:24PM -0600, Warner Losh wrote:
>> On Tue, Oct 11, 2016 at 5:11 PM, Shawn Webb  
>> wrote:
>> > On Tue, Oct 11, 2016 at 10:31:46PM +, Warner Losh wrote:
>> >> Author: imp
>> >> Date: Tue Oct 11 22:31:45 2016
>> >> New Revision: 307072
>> >> URL: https://svnweb.freebsd.org/changeset/base/307072
>> >>
>> >> Log:
>> >>   Add efivar(1) to manipulate EFI variables. It uses a similar command
>> >>   line interface to the Linux program, as well as adding a number of
>> >>   useful features to make using it in shell scripts easier (since we
>> >>   don't have a filesystem to fall back on interacting with).
>> >>
>> >>   Differential Revision: https://reviews.freebsd.org/D8128
>> >>   Reviewed by: kib@, wblock@, Ganael Laplanche
>> >>
>> >> Added:
>> >>   head/usr.sbin/efivar/
>> >>   head/usr.sbin/efivar/Makefile   (contents, props changed)
>> >>   head/usr.sbin/efivar/efivar.8   (contents, props changed)
>> >>   head/usr.sbin/efivar/efivar.c   (contents, props changed)
>> >> Modified:
>> >>   head/usr.sbin/Makefile
>> >
>> > The commit log says efivar(1), but the manpage is efivar(8). Maybe 1 is
>> > a typo?
>>
>> (1) is a typo :(
>
> No worries. Thanks for the quick response. I just wanted to make sure
> that it was supposed to be 8 versus the 1 in the log.
>
> Good to see a program like this in base. Good work.

Next up: corrected EFI variable support in the boot loader, and
efibootmgr from Linux in ports...

Warner
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r307072 - in head/usr.sbin: . efivar

2016-10-11 Thread Shawn Webb
On Tue, Oct 11, 2016 at 05:13:24PM -0600, Warner Losh wrote:
> On Tue, Oct 11, 2016 at 5:11 PM, Shawn Webb  
> wrote:
> > On Tue, Oct 11, 2016 at 10:31:46PM +, Warner Losh wrote:
> >> Author: imp
> >> Date: Tue Oct 11 22:31:45 2016
> >> New Revision: 307072
> >> URL: https://svnweb.freebsd.org/changeset/base/307072
> >>
> >> Log:
> >>   Add efivar(1) to manipulate EFI variables. It uses a similar command
> >>   line interface to the Linux program, as well as adding a number of
> >>   useful features to make using it in shell scripts easier (since we
> >>   don't have a filesystem to fall back on interacting with).
> >>
> >>   Differential Revision: https://reviews.freebsd.org/D8128
> >>   Reviewed by: kib@, wblock@, Ganael Laplanche
> >>
> >> Added:
> >>   head/usr.sbin/efivar/
> >>   head/usr.sbin/efivar/Makefile   (contents, props changed)
> >>   head/usr.sbin/efivar/efivar.8   (contents, props changed)
> >>   head/usr.sbin/efivar/efivar.c   (contents, props changed)
> >> Modified:
> >>   head/usr.sbin/Makefile
> >
> > The commit log says efivar(1), but the manpage is efivar(8). Maybe 1 is
> > a typo?
> 
> (1) is a typo :(

No worries. Thanks for the quick response. I just wanted to make sure
that it was supposed to be 8 versus the 1 in the log.

Good to see a program like this in base. Good work.

-- 
Shawn Webb
Cofounder and Security Engineer
HardenedBSD

GPG Key ID:  0x6A84658F52456EEE
GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89  3D9E 6A84 658F 5245 6EEE


signature.asc
Description: PGP signature


Re: svn commit: r307072 - in head/usr.sbin: . efivar

2016-10-11 Thread Warner Losh
On Tue, Oct 11, 2016 at 5:11 PM, Shawn Webb  wrote:
> On Tue, Oct 11, 2016 at 10:31:46PM +, Warner Losh wrote:
>> Author: imp
>> Date: Tue Oct 11 22:31:45 2016
>> New Revision: 307072
>> URL: https://svnweb.freebsd.org/changeset/base/307072
>>
>> Log:
>>   Add efivar(1) to manipulate EFI variables. It uses a similar command
>>   line interface to the Linux program, as well as adding a number of
>>   useful features to make using it in shell scripts easier (since we
>>   don't have a filesystem to fall back on interacting with).
>>
>>   Differential Revision: https://reviews.freebsd.org/D8128
>>   Reviewed by: kib@, wblock@, Ganael Laplanche
>>
>> Added:
>>   head/usr.sbin/efivar/
>>   head/usr.sbin/efivar/Makefile   (contents, props changed)
>>   head/usr.sbin/efivar/efivar.8   (contents, props changed)
>>   head/usr.sbin/efivar/efivar.c   (contents, props changed)
>> Modified:
>>   head/usr.sbin/Makefile
>
> The commit log says efivar(1), but the manpage is efivar(8). Maybe 1 is
> a typo?

(1) is a typo :(

Warner
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r307072 - in head/usr.sbin: . efivar

2016-10-11 Thread Shawn Webb
On Tue, Oct 11, 2016 at 10:31:46PM +, Warner Losh wrote:
> Author: imp
> Date: Tue Oct 11 22:31:45 2016
> New Revision: 307072
> URL: https://svnweb.freebsd.org/changeset/base/307072
> 
> Log:
>   Add efivar(1) to manipulate EFI variables. It uses a similar command
>   line interface to the Linux program, as well as adding a number of
>   useful features to make using it in shell scripts easier (since we
>   don't have a filesystem to fall back on interacting with).
>   
>   Differential Revision: https://reviews.freebsd.org/D8128
>   Reviewed by: kib@, wblock@, Ganael Laplanche
> 
> Added:
>   head/usr.sbin/efivar/
>   head/usr.sbin/efivar/Makefile   (contents, props changed)
>   head/usr.sbin/efivar/efivar.8   (contents, props changed)
>   head/usr.sbin/efivar/efivar.c   (contents, props changed)
> Modified:
>   head/usr.sbin/Makefile

The commit log says efivar(1), but the manpage is efivar(8). Maybe 1 is
a typo?

Thanks,

-- 
Shawn Webb
Cofounder and Security Engineer
HardenedBSD

GPG Key ID:  0x6A84658F52456EEE
GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89  3D9E 6A84 658F 5245 6EEE


signature.asc
Description: PGP signature