From owner-freebsd-hackers@freebsd.org Thu Nov 19 11:16:30 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 72ADEA33F32 for ; Thu, 19 Nov 2015 11:16:30 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id DC07F1D4D for ; Thu, 19 Nov 2015 11:16:29 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id 12f9212a for ; Thu, 19 Nov 2015 12:09:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:subject:message-id:mime-version:content-type :content-transfer-encoding; s=mail; bh=hbahL0jO9Ysqf63YDJQj0LtGD /8=; b=UYAC9TNgJSRPyQPjKZQdK7EPgxfGs5qCO9hO+OwzNl8x3QRYwgJO9eyoa ALAuGTUAa7jN3aGNdAI8T77xV/IYRciqwt55xHUGmFg6oDqKUwBj1hWWncQuNK0f x3eiLJuO8zjdvFmtMj5dwKWNev3dkhVceyyfQ8FPB+HDpooIrs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:subject:message-id:mime-version:content-type :content-transfer-encoding; q=dns; s=mail; b=tuA8H5TUs0kaf7I+BQt J/yY2YaMlsTVxeKerow3et2JvI+J3yICPLUqAPf70DRNUPY4o1QWSz5P2VfISjfb dfVprFOLDUg08pBJ6qUyZBh/jFV86YEo83Isz4BHJOfZB6iNHtn3vFFnI0XY4yA0 3kx0V06vnRuC2tbD2wHNfYfw= Received: from atlantis.staff.bocal.org (163.5.250.153 [163.5.250.153]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 41396805 TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO for ; Thu, 19 Nov 2015 12:09:46 +0100 (CET) Date: Thu, 19 Nov 2015 12:09:45 +0100 From: Emmanuel Vadot To: freebsd-hackers@freebsd.org Subject: boot1.efi and ConsoleControl on HP 840G1/G2 Message-Id: <20151119120945.71d0cb068006398d3a556559@bidouilliste.com> X-Mailer: Sylpheed 3.4.3 (GTK+ 2.24.28; amd64-portbld-freebsd10.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Thu, 19 Nov 2015 11:16:30 -0000 Hello Hackers, After hours I've found why I couldn't use properly FreeBSD on my HP 840G1/G2 laptop. What is happening right now with -current is that the kernel framebuffer is garbage (https://www.bidouilliste.com/images/efi/IMG_2650.JPG). The problem is that boot1.efi calls ConsoleControl which, from my findings, is not in the UEFI specs but was only in the EDK implementation. This should not be a problem as LocateProtocol should return != EFI_SUCCESS but on my laptops (and probably others) this is not the case. After removing the ConsoleControl related lines and recompiling boot1.efi I can now boot FreeBSD. I'm pretty sure that this would not be a problem on other machine (with the patch I can still boot correctly FreeBSD on my Samsung 870Z laptop) but I would prefer that other people test it. I've opened a bug on bugzilla (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204674) if some people want to try the patch. Cheers, -- Emmanuel Vadot