Re: efivars

2021-09-23 Thread Ruben Safir
FWIW ttps://uefi.org/sites/default/files/resources/UEFI_Spec_2_9_2021_03_18.pdf On 9/23/21 6:28 AM, FMDF wrote: > On Thu, 23 Sep 2021, 11:57 Ruben Safir, > wrote: > > > Why does it need the bootloader to do any of that.  > > > You still don't want to

Re: efivars

2021-09-23 Thread Ruben Safir
On 9/23/21 6:28 AM, FMDF wrote: > ut that it still needs the UEFI runtime services. My webserver runs without efi - for example. sudo ls -al /sys/firmware/efi/efivars ls: cannot access /sys/firmware/efi/efivars: No such file or directory -- So many immigrant groups have swept through our t

Re: efivars

2021-09-23 Thread Greg KH
On Thu, Sep 23, 2021 at 08:24:10AM -0400, Ruben Safir wrote: > On 9/23/21 3:27 AM, FMDF wrote: > > but it still needs to use UEFI at runtime. > no if it is on a bios system If you are using the old "BIOS" interface, there are still places where that BIOS takes over control from the CPU and does

Re: efivars

2021-09-23 Thread Ruben Safir
On 9/23/21 6:28 AM, FMDF wrote: > but that it still needs the UEFI runtime services. I No, it doesn't. It can run a BIOS system or on hardware that has no UEFI at all. How do you think it has worked for the last 25 years. -- So many immigrant groups have swept through our town that

Re: efivars

2021-09-23 Thread Ruben Safir
On 9/23/21 3:27 AM, FMDF wrote: > but it still needs to use UEFI at runtime. no if it is on a bios system -- So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998 http://www.mrbrklyn.com DRM

Re: efivars

2021-09-23 Thread FMDF
On Thu, 23 Sep 2021, 11:57 Ruben Safir, wrote: > > Why does it need the bootloader to do any of that. You still don't want to listen: the OS does not need to use bootloaders to do the things that Greg and I listed. It needs UEFI runtime services; please don't be lazy and read Wikipedia

Re: efivars

2021-09-23 Thread Greg KH
On Thu, Sep 23, 2021 at 05:56:43AM -0400, Ruben Safir wrote: > On Wed, Sep 22, 2021 at 06:07:49PM +0200, Greg KH wrote: > > If you don't like this, wonderful, use a system based on a different > > type of bootloader. But in the end, they end up all having to do the > > same thing somehow :) > >

Re: efivars

2021-09-23 Thread Ruben Safir
rote: > > > > What is this for? > > > > > > > > efivarfs on /sys/firmware/efi/efivars type efivarfs > > > > > > > > why would the OS need to know anything about the UEFI > > > > boot loader once it is up and running? > > > > > > Becaus

Re: efivars

2021-09-23 Thread Greg KH
On Thu, Sep 23, 2021 at 05:38:27AM -0400, Ruben Safir wrote: > > Instead the OS needs UEFI runtime services to talk to the platform > > firmware. > > What is that? The kernel is on the Metal. It is talking directly to > the hardware. No it is not. It is turtles all the way down, sorry. > >

Re: efivars

2021-09-23 Thread Greg KH
On Thu, Sep 23, 2021 at 05:17:41AM -0400, Ruben Safir wrote: > On Thu, Sep 23, 2021 at 09:13:02AM +0200, Bjørn Mork wrote: > > Ruben Safir writes: > > > > > OS's shouldn't need anything from a boot loader. > > > > Why do you need a bootloader then? > > To boot and that is it. It is a hardware

Re: efivars

2021-09-23 Thread Ruben Safir
On Thu, Sep 23, 2021 at 09:11:32AM +0200, FMDF wrote: > On Wed, 22 Sep 2021, 08:22 Ruben Safir, wrote: > > > What is this for? > > > > efivarfs on /sys/firmware/efi/efivars type efivarfs > > > > why would the OS need to know anything about the UEFI >

Re: efivars

2021-09-23 Thread Ruben Safir
On Thu, Sep 23, 2021 at 09:13:02AM +0200, Bjørn Mork wrote: > Ruben Safir writes: > > > OS's shouldn't need anything from a boot loader. > > Why do you need a bootloader then? To boot and that is it. It is a hardware specific ibinary boot chain that finds the kernal on the hard drive and says

Re: efivars

2021-09-23 Thread Greg KH
On Thu, Sep 23, 2021 at 04:41:28AM -0400, Ruben Safir wrote: > On Thu, Sep 23, 2021 at 09:32:00AM +0200, Bjørn Mork wrote: > > Ruben Safir writes: > > > > > I really just want to know what efi varriables exist and why we have a > > > sys file for them > > > > The "why" question is answered

Re: efivars

2021-09-23 Thread Ruben Safir
On Thu, Sep 23, 2021 at 09:32:00AM +0200, Bjørn Mork wrote: > Ruben Safir writes: > > > I really just want to know what efi varriables exist and why we have a > > sys file for them > > The "why" question is answered here: > https://www.kernel.org/doc/Documentation/filesystems/efivarfs.rst

Re: efivars

2021-09-23 Thread Ruben Safir
t is all this garbage? > > > > ~$ sudo ls /sys/firmware/efi/efivars/ |wc > > 211 211 11511 > > Put the keyboard down, and back away slowly, before somebody gets hurt. > Don't be a jackass > ___ > Kernelnewbies

Re: efivars

2021-09-23 Thread Valdis Klētnieks
On Wed, 22 Sep 2021 22:07:28 -0400, Ruben Safir said: > Aside from that, I really just want to know what efi varriables exist On Thu, 23 Sep 2021 00:01:20 -0400, Ruben Safir said: > What is all this garbage? > > ~$ sudo ls /sys/firmware/efi/efivars/ |wc > 211 211 11511 P

Re: efivars

2021-09-23 Thread Bjørn Mork
Ruben Safir writes: > I really just want to know what efi varriables exist and why we have a > sys file for them The "why" question is answered here: https://www.kernel.org/doc/Documentation/filesystems/efivarfs.rst The "what" question doesn't have a short answer. If you don't want the long

Re: efivars

2021-09-23 Thread FMDF
On Thu, 23 Sep 2021, 09:22 FMDF, wrote: > On Thu, 23 Sep 2021, 09:11 FMDF, wrote: > >> On Wed, 22 Sep 2021, 08:22 Ruben Safir, wrote: >> >>> What is this for? >>> >>> efivarfs on /sys/firmware/efi/efivars type efivarfs >>> >>>

Re: efivars

2021-09-23 Thread FMDF
On Thu, 23 Sep 2021, 09:11 FMDF, wrote: > On Wed, 22 Sep 2021, 08:22 Ruben Safir, wrote: > >> What is this for? >> >> efivarfs on /sys/firmware/efi/efivars type efivarfs >> >> why would the OS need to know anything about the UEFI >> boot loader onc

Re: efivars

2021-09-23 Thread Bjørn Mork
Ruben Safir writes: > OS's shouldn't need anything from a boot loader. Why do you need a bootloader then? I'd suggest playing with embedded devices for a while. Their boot chain is usually much simpler than on PC hardware. There you can really get a feeling of how easy and decoupled stuff

Re: efivars

2021-09-23 Thread FMDF
On Wed, 22 Sep 2021, 08:22 Ruben Safir, wrote: > What is this for? > > efivarfs on /sys/firmware/efi/efivars type efivarfs > > why would the OS need to know anything about the UEFI > boot loader once it is up and running? > I think you are still making confusion: UEFI

Re: efivars

2021-09-23 Thread Dave Stevens
On Wed, 22 Sep 2021 22:02:43 -0400 Ruben Safir wrote: > Being so tracked is for FARM ANIMALS and extermination camps, on the way -- Sometimes I wonder whether the world is being run by smart people who are putting us on or by imbeciles who really believe it. Mark Twain

Re: efivars

2021-09-22 Thread Greg KH
On Wed, Sep 22, 2021 at 10:02:43PM -0400, Ruben Safir wrote: > On 9/22/21 1:04 PM, Valdis Klētnieks wrote: > > You might want to read Documentation/x86/boot.rst and think about what the > > OS > > is expecting to get passed from the boot loader, and then think about how > > you > > would deal

Re: efivars

2021-09-22 Thread Ruben Safir
rote: > > > > What is this for? > > > > > > > > efivarfs on /sys/firmware/efi/efivars type efivarfs > > > > > > > > why would the OS need to know anything about the UEFI > > > > boot loader once it is up and running? > > > > > > Becaus

Re: efivars

2021-09-22 Thread Ruben Safir
On 9/22/21 1:04 PM, Valdis Klētnieks wrote: > You might want to read Documentation/x86/boot.rst and think about what the OS > is expecting to get passed from the boot loader, Aside from that, I really just want to know what efi varriables exist and why we have a sys file for them, not a

Re: efivars

2021-09-22 Thread Ruben Safir
On 9/22/21 1:04 PM, Valdis Klētnieks wrote: > You might want to read Documentation/x86/boot.rst and think about what the OS > is expecting to get passed from the boot loader, and then think about how you > would deal with the situation if that information wasn't passed along. Link? FWIW, it

Re: efivars

2021-09-22 Thread Ruben Safir
On 9/22/21 1:04 PM, Valdis Klētnieks wrote: > And that's just the *documented* ones. So, as you were saying? Why does it depend on variables from EFI? -- So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world

Re: efivars

2021-09-22 Thread Valdis Klētnieks
On Wed, 22 Sep 2021 11:58:55 -0400, Ruben Safir said: > OS's shouldn't need anything from a boot loader. That ties the OS to > the bootloader completely without need. You might want to read Documentation/x86/boot.rst and think about what the OS is expecting to get passed from the boot loader,

Re: efivars

2021-09-22 Thread Greg KH
On Wed, Sep 22, 2021 at 11:58:55AM -0400, Ruben Safir wrote: > On 9/22/21 2:35 AM, Greg KH wrote: > > Because there are lots of needed system information that the OS, and > > userspace, needs to get from UEFI after the system has booted. > > OS's shouldn't need anything from a boot loader. That

Re: efivars

2021-09-22 Thread Greg KH
On Wed, Sep 22, 2021 at 11:47:42AM -0400, Ruben Safir wrote: > On Wed, Sep 22, 2021 at 08:35:15AM +0200, Greg KH wrote: > > On Wed, Sep 22, 2021 at 02:22:22AM -0400, Ruben Safir wrote: > > > What is this for? > > > > > > efivarfs on /sys/firmware/efi/efivars

Re: efivars

2021-09-22 Thread Ruben Safir
On 9/22/21 2:35 AM, Greg KH wrote: > Because there are lots of needed system information that the OS, and > userspace, needs to get from UEFI after the system has booted. OS's shouldn't need anything from a boot loader. That ties the OS to the bootloader completely without need. -- So many

Re: efivars

2021-09-22 Thread Ruben Safir
On 9/22/21 4:41 AM, FMDF wrote: > What is this for? > > efivarfs on /sys/firmware/efi/efivars type efivarfs > > why would the OS need to know anything about the UEFI > boot loader once it is up and running? > > > Not from the boot loader, but the

Re: efivars

2021-09-22 Thread Ruben Safir
On Wed, Sep 22, 2021 at 08:35:15AM +0200, Greg KH wrote: > On Wed, Sep 22, 2021 at 02:22:22AM -0400, Ruben Safir wrote: > > What is this for? > > > > efivarfs on /sys/firmware/efi/efivars type efivarfs > > > > why would the OS need to know anything about the UE

Re: efivars

2021-09-22 Thread Greg KH
On Wed, Sep 22, 2021 at 02:22:22AM -0400, Ruben Safir wrote: > What is this for? > > efivarfs on /sys/firmware/efi/efivars type efivarfs > > why would the OS need to know anything about the UEFI > boot loader once it is up and running? Because there are lots of needed

efivars

2021-09-22 Thread Ruben Safir
What is this for? efivarfs on /sys/firmware/efi/efivars type efivarfs why would the OS need to know anything about the UEFI boot loader once it is up and running? -- So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions

Re: Modify efivars permisson denied

2017-03-07 Thread Lucas Tanure
17 at 2:20 PM, Markus Böhme <markus.boe...@mailbox.org> > wrote: >> On 03/05/2017 10:45 AM, Lucas Tanure wrote: >>> Ok, But How is the right way to change this efivars ? >>> build a kernel with some define or config ? Use a specific tool for that ? >>

Re: Modify efivars permisson denied

2017-03-06 Thread Lucas Tanure
Hi, I didn't tried this yet. I will try today. Thanks! On Sun, Mar 5, 2017 at 2:20 PM, Markus Böhme <markus.boe...@mailbox.org> wrote: > On 03/05/2017 10:45 AM, Lucas Tanure wrote: >> Ok, But How is the right way to change this efivars ? >> build a kernel with some d

Re: Modify efivars permisson denied

2017-03-06 Thread Markus Böhme
On 03/05/2017 10:45 AM, Lucas Tanure wrote: > Ok, But How is the right way to change this efivars ? > build a kernel with some define or config ? Use a specific tool for that ? > Documentation/filesystems/efivars.txt recommends to remove the immutable flag using chattr -i file if

Re: Modify efivars permisson denied

2017-03-05 Thread Lucas Tanure
Ok, But How is the right way to change this efivars ? build a kernel with some define or config ? Use a specific tool for that ? thanks On Sat, Mar 4, 2017 at 9:31 PM, Markus Böhme <markus.boe...@mailbox.org> wrote: > Hello Lucas! > > On 03/04/2017 09:24 PM, Lucas Tanure wrote:

Re: Modify efivars permisson denied

2017-03-04 Thread Markus Böhme
Hello Lucas! On 03/04/2017 09:24 PM, Lucas Tanure wrote: > I would like to modify efivars at /sys/firmware/efi/efivars/. > But I can't modify it using root. > > The file : > -rw-r--r-- 1 root root 31 Mar 4 19:04 > /sys/firmware/efi/efivars/OilSetup-88d1911c-ab4a-4335

Modify efivars permisson denied

2017-03-04 Thread Lucas Tanure
Hi, I would like to modify efivars at /sys/firmware/efi/efivars/. But I can't modify it using root. The file : -rw-r--r-- 1 root root 31 Mar 4 19:04 /sys/firmware/efi/efivars/OilSetup-88d1911c-ab4a-4335-9e9a-26be9081acc3 the mount point : efivarfs on /sys/firmware/efi/efivars type efivarfs (rw