From owner-freebsd-hackers@freebsd.org Wed Oct 28 04:52:40 2015 Return-Path: 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 51F9FA1F693 for ; Wed, 28 Oct 2015 04:52:40 +0000 (UTC) (envelope-from noname.esst@yahoo.com) Received: from nm15-vm2.bullet.mail.ne1.yahoo.com (nm15-vm2.bullet.mail.ne1.yahoo.com [98.138.91.91]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 165A9179C for ; Wed, 28 Oct 2015 04:52:39 +0000 (UTC) (envelope-from noname.esst@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1446007543; bh=a78juyGYovwYPmPm/bA3/OASOL53LMCMJDwtfR1dPbU=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=tNltGsTEmXpvGApQKsPU5bTuELnDc4sdroPJ766KiHQ6Jv15IFX+x6WPl9FLGKNDtH/YZqxzxy7aUfAJs4/Um47fvPK2L4j67DgfJje2xXhZivXtRgDKsLvwkBuhwRGXKb28NkSufgGBzL4LZnFi7BqRBsKl6uGW8al0cjBcohjj8VR/fYUMfJCHzSf2fkkAiR2vjKVl/AnsdaSv6FTlbqYjzsj0SsHYxTXLx6KxCWNNkzIlWD2xKksHDq0DKCmNzkGaBfVYdj0SYn+traLNz23C0UD2UdxFCqZoCW8pBcS+IFHBtddYrAdLX63OoeK2FTW3Dimo/ksiq5JaOmRgIw== Received: from [98.138.226.180] by nm15.bullet.mail.ne1.yahoo.com with NNFMP; 28 Oct 2015 04:45:43 -0000 Received: from [98.138.226.161] by tm15.bullet.mail.ne1.yahoo.com with NNFMP; 28 Oct 2015 04:45:43 -0000 Received: from [127.0.0.1] by omp1062.mail.ne1.yahoo.com with NNFMP; 28 Oct 2015 04:45:43 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 503545.67310.bm@omp1062.mail.ne1.yahoo.com X-YMail-OSG: vr2fETQVM1m3BIIyJZgmSsoFxt2adoBVXly4rrkAUTP.nTrJ1xIQ_GwyhJpA5Dm qP7iQTH3ywlWGmCBSooCBWDLkQMBNv2AqMgXsFfNGX.ofsx0J47Qhu2s7laMr8B6shishDoYUpkf es8Q8EC0kQw8oPA5uYcU3t7nmsbznkgk00CRO1nvWr9d7Yj3ZI19o0SC5gsQw86r5wDxHKVVDyj_ h0n2jNX.hyMAah8ojl1W.rbxfIDq1_WWCVfxcwk5UakB.zx317nvydEuShU3BIbiDCjuu7r.eFtk unj1qpG9lyCNAoOKTzrLGbJ4pf9BiRHwMbP0zSti9_V9Vz5iKarvj3wNNSn0ytUV6mSH9yjFMHvf In.9YrzQoHX8hDxHezwnjaSt_xCA5sgRxtfkW00SkLISc6IIK3ESAuXBY5biBVbjocpGkZJtYNp1 uGWURbTX2gYGEbl5JrcKG33DTSeNuukG7zPhLvoXc_ObEEPNTO0Im31fy4HVYQoRe1C76TClqOXH 7J78V5g.nTawOegwBfZw- Received: by 98.138.101.167; Wed, 28 Oct 2015 04:45:43 +0000 Date: Wed, 28 Oct 2015 04:45:42 +0000 (UTC) From: Nomad Esst Reply-To: Nomad Esst To: "drivers@freebsd.org" , Freebsd Hackers List Message-ID: <1919029817.753677.1446007542768.JavaMail.yahoo@mail.yahoo.com> Subject: Anyone from China here MIME-Version: 1.0 References: <1919029817.753677.1446007542768.JavaMail.yahoo@mail.yahoo.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Oct 2015 04:52:40 -0000 Hi list, is anyone from China here ? From owner-freebsd-hackers@freebsd.org Wed Oct 28 06:34:05 2015 Return-Path: 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 ; 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 ; 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 Organization: OVH To: Emmanuel Vadot 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: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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 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