From owner-freebsd-current@FreeBSD.ORG Wed Feb 4 14:14:42 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 683C57E6 for ; Wed, 4 Feb 2015 14:14:42 +0000 (UTC) Received: from smtprelay-h22.telenor.se (smtprelay-h22.telenor.se [195.54.99.197]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DE8F3C76 for ; Wed, 4 Feb 2015 14:14:41 +0000 (UTC) Received: from ipb3.telenor.se (ipb3.telenor.se [195.54.127.166]) by smtprelay-h22.telenor.se (Postfix) with ESMTP id 7254FDF3F for ; Wed, 4 Feb 2015 14:51:01 +0100 (CET) X-SENDER-IP: [85.229.94.62] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2BOBQAjI9JUPD5e5VVagwZSuFBKAYlzhXUCgRJEAQEBAQEBBQEBAQExBzuEDAEBAQECATocKAsjLi0MChSIPgwB1j4BAQEBBgEBAQEBAQEbjyFegxaBEwWNKYwghUiGBoV6giQcgVGBcYE/AQEB X-IPAS-Result: A2BOBQAjI9JUPD5e5VVagwZSuFBKAYlzhXUCgRJEAQEBAQEBBQEBAQExBzuEDAEBAQECATocKAsjLi0MChSIPgwB1j4BAQEBBgEBAQEBAQEbjyFegxaBEwWNKYwghUiGBoV6giQcgVGBcYE/AQEB X-IronPort-AV: E=Sophos;i="5.09,518,1418079600"; d="scan'208";a="814676804" Received: from c-3e5ee555.06-11-73746f31.cust.bredbandsbolaget.se (HELO sigyn.alvermark.net) ([85.229.94.62]) by ipb3.telenor.se with ESMTP; 04 Feb 2015 14:04:12 +0100 Received: from gw.inter-sonic.com ([212.247.8.97] helo=[192.168.171.125]) by sigyn.alvermark.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1YIzcq-000CJD-5G for freebsd-current@freebsd.org; Wed, 04 Feb 2015 14:04:12 +0100 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1085) Subject: UEFI boot fail on higher resolutions (Re: Acer E3-112 and UEFI) From: Jakob Alvermark In-Reply-To: <42818.213.113.68.53.1420039470.squirrel@webmail.alvermark.net> Date: Wed, 4 Feb 2015 14:04:10 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20876.213.113.68.53.1419950410.squirrel@webmail.alvermark.net> <54A2CC2D.3040105@freebsd.org> <42818.213.113.68.53.1420039470.squirrel@webmail.alvermark.net> To: freebsd-current@freebsd.org X-Mailer: Apple Mail (2.1085) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2015 14:14:42 -0000 On 31 dec 2014, at 16:24, Jakob Alvermark wrote: > On Tue, December 30, 2014 17:00, Nathan Whitehorn wrote: >>=20 >=20 >> On 12/30/14 06:40, Jakob Alvermark wrote: >>=20 >>> Hi, >>>=20 >>>=20 >>> Have been playing with this machine for a while now. >>> It is a quad core Pentium N3540 (ValleyView/Bay Trail), 8 GB RAM. It >>> came with a Broadcom WiFi card which I swapped for an Intel which is >>> supported by FreeBSD. Also swapped the hard drive for an SSD. >>>=20 >>> When first trying to boot FreeBSD with UEFI it would not boot. >>> It stops after the loader is trying to start the kernel. >>> My workaround now is using refind, http://www.rodsbooks.com/refind/ >>> to set the screen resolution to 800x600. (Native is 1366x768) Only = then >>> will it boot using UEFI. I tried setting it to 1024x768, then it >>> crashes. If it helps I can get the backtrace. >>=20 >> [Not sure what's going on here] >>=20 A follow up on this: I tried this on my desktop machine (AMD FX-8350, Radeon HD 5450) to see = if it has the issue, and it has! I went on to try it on my desktop machine at work (Core i3-4130, Radeon = HD 4350) and it boots! On the Acer, resolution set to 1024x768: >> FreeBSD EFI boot block Loader path: /boot/loader.efi Consoles: EFI console Image base: 0x7502f000 EFI version: 2.40 EFI Firmware: INSYDE Corp. (rev 21522.39) --- Start @ 0xffffffff802e1000 ... EFI framebuffer information: addr, size 0x80000000, 0x300000 dimensions 1024 x 768 stride 1024 masks 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000 --- kernel trap12 with interrupts disabled Fatal trap 12: page fault while in kernel mode cpuid =3D 0; apic id =3D 00 fault virtual address =3D 0x13 fault code =3D supervisor read data, page not = present instruction pointer =3D 0x20:0xffffffff80a20834 stack pointer =3D 0x28:0xffffffff81604170 frame pointer =3D 0x28:0xffffffff81604290 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 = 0, gran 1 processor eflags =3D resume, IOPL =3D 0 current process =3D 0 () [ thread pid 0 tid 0] Stopped at kvprintf+0xd4: movzbl (%r14),%eax .... On the home desktop resolution 1024x768: >> FreeBSD EFI boot block Loader path: /boot/loader.efi Consoles: EFI console Image base: 0xb08ac000 EFI version: 2.31 EFI Firmware: American Megatrends (rev 4.653) --- Start @ 0xffffffff802e1000 ... EFI framebuffer information: addr, size 0xc0000000, 0x300000 dimensions 1024 x 768 stride 1024 masks 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000 --- kernel trap12 with interrupts disabled Fatal trap 12: page fault while in kernel mode cpuid =3D 0; apic id =3D 00 fault virtual address =3D 0x13 fault code =3D supervisor read data, page not = present instruction pointer =3D 0x20:0xffffffff80a20654 stack pointer =3D 0x28:0xffffffff81603d70 frame pointer =3D 0x28:0xffffffff81603e90 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 = 0, gran 1 processor eflags =3D resume, IOPL =3D 0 current process =3D 0 () [ thread pid 0 tid 0] Stopped at kvprintf+0xd4: movzbl (%r14),%eax ---- On the work desktop: >> FreeBSD EFI boot block Loader path: /boot/loader.efi Consoles: EFI console Image base: 0xbb7aa000 EFI version: 2.31 EFI Firmware: American Megatrends (rev 4.654) --- Start @ 0xffffffff802e1000 ... EFI framebuffer information: addr, size 0xe0000000, 0x300000 dimensions 1024 x 768 stride 1024 masks 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000 And then it boots normally. Does anyone have any clues on what's going on here? (This all typed manually from screenshots taken with my phone, there = might be typos.) Thanks, Jakob