pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/57076: Add efivar port to NetBSD



The following reply was made to PR pkg/57076; it has been noted by GNATS.

From: Sergii Dmytruk <sergii.dmytruk%3mdeb.com@localhost>
To: Taylor R Campbell <riastradh%NetBSD.org@localhost>
Cc: gnats-bugs%NetBSD.org@localhost
Subject: Re: pkg/57076: Add efivar port to NetBSD
Date: Thu, 27 Oct 2022 21:47:19 +0300

 On Thu, Oct 27, 2022 at 05:41:25PM +0000, Taylor R Campbell wrote:
 > We have /dev/efi on amd64 and aarch64 (and maybe 32-bit arm? I forget)
 > -- it will be in NetBSD 10.
 
 Oh, got it now, 9.3 isn't a standalone release, it's an update.
 
 > The patch for EFIIOC_GET_TABLE is attached if you'd like to give it a
 > try -- it knows about the EFI system resources table and that's it.
 
 I don't know any other table that's of any use in user space.  I get EIO
 on ioctl(EFIIOC_GET_TABLE), don't see the patch returning it explicitly,
 but in here:
 
 >+	/*
 >+	 * Copy out as much as we can into the user's allocated buffer.
 >+	 */
 >+	return copyout(ioc->buf, ptr, MIN(ioc->buf_len, len));
 
 It looks like first two parameters must be swapped.  However, I still
 get EIO after doing this.
 
 > (Memory is fuzzy now but I think fwupd might require access to that
 > table and no others.)
 
 Yes, that's correct.
 
 > A good start for efivar would be to package it up in pkgsrc, maybe as
 > sysutils/efivar.  Would you like to give that a try?
 
 That's essentially what this report is about.  Docs say "push to
 pkgsrc-wip then send bug report to move to pkgsrc", the port is already
 in pkgsrc-wip.
 


Home | Main Index | Thread Index | Old Index