From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kei Kebreau Subject: Re: flashrom package needs update Date: Sat, 20 Aug 2016 19:36:38 -0400 Message-ID: <87fupzui61.fsf@openmailbox.org> References: <87wpjdckvv.fsf@we.make.ritual.n0.is> <87pop55hzb.fsf@we.make.ritual.n0.is> <874m6g2lsx.fsf@openmailbox.org> <87h9afvoeu.fsf@we.make.ritual.n0.is> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbFpD-0001Uf-Tw for guix-devel@gnu.org; Sat, 20 Aug 2016 19:37:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bbFp8-0003zU-Lr for guix-devel@gnu.org; Sat, 20 Aug 2016 19:37:14 -0400 Received: from mail2.openmailbox.org ([62.4.1.33]:43894) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbFp8-0003zO-9R for guix-devel@gnu.org; Sat, 20 Aug 2016 19:37:10 -0400 In-Reply-To: <87h9afvoeu.fsf@we.make.ritual.n0.is> (ng0@we.make.ritual.n0.is's message of "Sat, 20 Aug 2016 08:24:09 +0000") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: ng0 Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain ng0 writes: > Kei Kebreau writes: > >> [ Unknown signature status ] >> >> ng0 writes: >> >>> ng0 writes: >>> >>>> Someone should update flashrom to 0.9.9. (https://www.flashrom.org/Flashrom/0.9.9) >>>> I tried and do not understand enough of flashrom to update the patch we need. >>> >>> Additionally we need to check what's different about GuixSD that this >>> happens: >>> >>> root@shadowwalker /home/ng0# flashrom -p internal -w libreboot_latest_stable.rom >>> flashrom v0.9.7-r1711 on Linux 4.7.0-gnu (x86_64) >>> flashrom is free software, get the source code at http://www.flashrom.org >>> >>> Calibrating delay loop... OK. >>> Error accessing high tables, 0x100000 bytes at 0x000000007dad6000 >>> /dev/mem mmap failed: Operation not permitted >>> Failed getting access to coreboot high tables. >>> ======================================================================== >>> WARNING! You seem to be running flashrom on an unsupported laptop. >>> Laptops, notebooks and netbooks are difficult to support and we >>> recommend to use the vendor flashing utility. The embedded controller >>> (EC) in these machines often interacts badly with flashing. >>> See the manpage and http://www.flashrom.org/Laptops for details. >>> >>> If flash is shared with the EC, erase is guaranteed to brick your laptop >>> and write may brick your laptop. >>> Read and probe may irritate your EC and cause fan failure, backlight >>> failure and sudden poweroff. >>> You have been warned. >>> ======================================================================== >>> Aborting. >>> Error: Programmer initialization failed. >>> >>> >>> >>> I value that GuixSD seems to be more protective than any other system in >>> that regard where I could just become root and run flashrom, but maybe >>> we need to make an exception for flashrom and similar software. >>> Booting into ubuntu-live and running a statically linked binary of >>> flashrom just made me flash libreboot stable. I want to do this from >>> within GuixSD. >> >> This is mentioned in Libreboot's documentation (top of the page here: >> https://libreboot.org/docs/install/index.html). The GuixSD Linux-libre >> kernel is configured with CONFIG_STRICT_DEVMEM enabled, which I presume >> Libreboot uses for software-based flashing. >> >> If you add linux to the list "use-package-modules" in your system >> configuration and add (kernel-arguments '("iomem=relaxed")) to your >> "operating-system" configuration, the flashing utility will work correctly. > > Oh, interesting. Thanks for the explanation. Do you think we should add > a pointer to this somewhere in the documentation, or add a link pointing > to this email thread? > I feel like this needs to be explained or be visible somewhere at our > side. > I agree. It should probably be mentioned in the "System Configuration" section of the manual. I would take me some time to write it up, as my schedule is just starting to calm itself and I have no experience with texinfo, so if someone else picked it up before me, I wouldn't complain. > I think I want to keep this feature, and reconfigure the system only for > updating libre/coreboot. > I agree here, too. > Thanks You're welcome! :-) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXuOmHAAoJEOal7jwZRnoNtYIQAMR3GZnEnpMcF4ItI38E4d16 fgEyrel1cb01hwTTD8E5K0GtR31Zzbgd/SE8XruhDPExEhZ5zZWjpynATdanrnAA /dg/Ba3BbvEPVIM4AwGzD3lynqa4Ra7A3iIbFks1eLonvRrbPg97HFgTeJ2hjtsT I1R4KK3qMH8K5yntq8ZrcXohhSi/8TWxVuRzEXpO7GHAVlCXydn/mXEFtp54P0d5 jBSmmUyhmjwXxkAGWxZ91kR+i8JX2yXzRvmT4TH3qnqfcnuJLxhwB0kif2DLk7mi qU5bYHq9q0sg/r7avj/5V36/9ZUPXVVgiCZwrjUGbPtc4CgMN5Q+tT34r/QzgNgN SaVK4GagxDwIYSgtI2p0Ts2h2y55T87JSLz/i6yzV/JtNqeccVZ35gPDsfbO+/ZR 5rOntiodhJyuXNMJZr532k3jDdtClhT+n8a+0A6Czb7amj6SoD6laegHQiCElEm2 BExafDEW49z6OPHtQ3cy2k+eyNatrwP6KZvY5BSdf6TtQKr88Z4TxbSksAEpAGqe 3NwLz+HQeDozQNg5UlbFqRDdQMA2ZD42j83aSZC4RWGDPdgyAvc8bckq3VFeHVrT XWejfPj0yC//kck/JOWon4H5MaU+IXr63XDjFYk+Wp3gxRC10IBAE/cLumMQ15hq 4dJmNWEjTBa3bi7rtndn =wJAS -----END PGP SIGNATURE----- --=-=-=--