Date: Wed, 28 Oct 2015 04:45:42 +0000 (UTC) From: Nomad Esst <noname.esst@yahoo.com> To: "drivers@freebsd.org" <drivers@freebsd.org>, Freebsd Hackers List <freebsd-hackers@freebsd.org> Subject: Anyone from China here Message-ID: <1919029817.753677.1446007542768.JavaMail.yahoo@mail.yahoo.com> References: <1919029817.753677.1446007542768.JavaMail.yahoo@mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi list, is anyone from China here ? From owner-freebsd-hackers@freebsd.org Wed Oct 28 06:34:05 2015 Return-Path: <owner-freebsd-hackers@freebsd.org> Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CFC84A20BAC for <freebsd-hackers@mailman.ysv.freebsd.org>; Wed, 28 Oct 2015 06:34:05 +0000 (UTC) (envelope-from ganael.laplanche@corp.ovh.com) Received: from mo175.mail-out.ovh.net (mo175.mail-out.ovh.net [178.32.228.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 971B71F40 for <freebsd-hackers@freebsd.org>; Wed, 28 Oct 2015 06:34:04 +0000 (UTC) (envelope-from ganael.laplanche@corp.ovh.com) Received: from EX3.OVH.local (corp.ovh.com [5.196.251.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mo175.mail-out.ovh.net (Postfix) with ESMTPS id B9E9DFF8270; Wed, 28 Oct 2015 07:27:24 +0100 (CET) Received: from desk533202.ovh.net (5.196.2.34) by EX3.OVH.local (172.16.7.3) with Microsoft SMTP Server (TLS) id 15.1.225.42; Wed, 28 Oct 2015 07:27:19 +0100 From: Ganael Laplanche <ganael.laplanche@corp.ovh.com> Organization: OVH To: Emmanuel Vadot <manu@bidouilliste.com> Subject: Re: EFI Variables Date: Wed, 28 Oct 2015 07:27:19 +0100 User-Agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; ) CC: <freebsd-hackers@freebsd.org> References: <6ce779725aab266bc85e92f0ee2186b6@megadrive.org> In-Reply-To: <6ce779725aab266bc85e92f0ee2186b6@megadrive.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-ID: <201510280727.19357.ganael.laplanche@corp.ovh.com> X-Originating-IP: [5.196.2.34] X-ClientProxiedBy: cas02.OVH.local (172.16.1.2) To EX3.OVH.local (172.16.7.3) X-Ovh-Tracer-Id: 7695525864503032455 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeekhedrudegucetufdoteggodftvfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecu X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD <freebsd-hackers.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-hackers>, <mailto:freebsd-hackers-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-hackers/> List-Post: <mailto:freebsd-hackers@freebsd.org> List-Help: <mailto:freebsd-hackers-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-hackers>, <mailto:freebsd-hackers-request@freebsd.org?subject=subscribe> X-List-Received-Date: Wed, 28 Oct 2015 06:34:05 -0000 On Tuesday, October 27, 2015 07:24:23 PM Emmanuel Vadot wrote: Hi Emmanuel, > I'm currently hacking around the loader.efi Great :) > I've also added the list and get command to the not working "nvram" > command. I had myself posted a PR to fix that command as well as add a verbose switc= h=20 and the ability to specify a variable name, see : https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D202614 > For the "set" subcommand I think that the best way to handle it is : > "nvram set myvar data" -> This will set the variable myvar to data with > the freebsd guid (if there is any) >=20 > and >=20 > "nvram set myvar guid data" -> This will force the guid to <guid> It can be useful to set variables containing *strings*, but will hardly han= dle=20 binary stuff :/ I am not sure whether it should be the loader's job to set variables... I c= an=20 think of changing the boot order, but it may be difficult to get it right b= y=20 hand and would probably require an upper-level tool, such as efibootmgr on= =20 Linux. > I'll look tomorrow how to access efivars once the kernel is booted so > we can set some from some userland tool (especially the boot related > one). Yes, this is interesting as the current kernel (amd64) does not provide acc= ess=20 to EFI variables at all. 10.x/ia64 provided access to EFI variables through libefi(3) and io(4). It= =20 should be possible to import that code to other archs too, but you'll have = to=20 save the entry point to the Runtime Services Tables and maybe set a Virtual= =20 Address Map too (not sure about that point). Best regards, =2D-=20 Gana=EBl LAPLANCHE <ganael.laplanche@corp.ovh.com>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1919029817.753677.1446007542768.JavaMail.yahoo>