NetBSD Problem Report #51953
From www@NetBSD.org Sun Feb 5 23:33:01 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id DC4B57A269
for <gnats-bugs@gnats.NetBSD.org>; Sun, 5 Feb 2017 23:33:01 +0000 (UTC)
Message-Id: <20170205233300.B91447A28C@mollari.NetBSD.org>
Date: Sun, 5 Feb 2017 23:33:00 +0000 (UTC)
From: premislaus1988@gmail.com
Reply-To: premislaus1988@gmail.com
To: gnats-bugs@NetBSD.org
Subject: NetBSD do not boot on EFI
X-Send-Pr-Version: www-1.0
>Number: 51953
>Category: port-amd64
>Synopsis: NetBSD do not boot on EFI
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: port-amd64-maintainer
>State: closed
>Class: support
>Submitter-Id: net
>Arrival-Date: Sun Feb 05 23:35:00 +0000 2017
>Closed-Date: Thu Apr 27 11:59:20 +0000 2017
>Last-Modified: Thu Apr 27 11:59:20 +0000 2017
>Originator: Przemysław Pintal
>Release: 7.99.59
>Organization:
>Environment:
NetBSD/x86 EFI Boot (x64), Revision 1.0 (from NetBSD 7.99.59)
Memory: 640/2344900 k
This is output of version command from boot prompt (option in bootloader menu).
>Description:
Hello! I downloaded "NetBSD-7.99.59-amd64-uefi-install.img.gz" from ftp://nyftp.netbsd.org/pub/NetBSD-daily/HEAD/201702051230Z/images/ and I can boot to bootloader. No matter which option I will choose, I have always some numbers, like progress of loading image or mounting initial ramdisk, and when it finishes loading, then screen is black with only one symbol: "_". After some time nothing changes.
My spec (this is laptop):
samsung-np355v5c-so5pl
A6-4400M
6GB RAM
500GB HDD
HD7520G+HD7670M-1024MB
I'm booting from pendrive.
But I can enter to boot prompt. I tried to manually boot with: boot hd0b:netbsd, boot hd0b, boot. These commands work, but this issue still occurs. With ls I have list of folders from image. dev normally detects disks.
I tried command efivars. There is some list with guid, variable name and value - I grabbed screen picture with smartphone. Every time use of this command results in a different outcome - random list of variables. In one case does not display anything. Always end in this way: GetNextVariableName failed: Invalid parameter
Best Regards!
Przemysław Pintal
>How-To-Repeat:
Try to boot on computer with EFI.
>Fix:
>Release-Note:
>Audit-Trail:
From: Kimihiro Nonaka <nonakap@gmail.com>
To: "gnats-bugs@netbsd.org" <gnats-bugs@netbsd.org>
Cc: port-amd64-maintainer@netbsd.org,
"gnats-admin@netbsd.org" <gnats-admin@netbsd.org>, "netbsd-bugs@netbsd.org" <netbsd-bugs@netbsd.org>
Subject: Re: port-amd64/51953: NetBSD do not boot on EFI
Date: Tue, 7 Feb 2017 22:16:14 +0900
Hi,
Could you send a result of memmap command.
2017-02-06 8:35 GMT+09:00 <premislaus1988@gmail.com>:
>>Number: 51953
>>Category: port-amd64
>>Synopsis: NetBSD do not boot on EFI
>>Confidential: no
>>Severity: critical
>>Priority: high
>>Responsible: port-amd64-maintainer
>>State: open
>>Class: support
>>Submitter-Id: net
>>Arrival-Date: Sun Feb 05 23:35:00 +0000 2017
>>Originator: Przemysław Pintal
>>Release: 7.99.59
>>Organization:
>>Environment:
> NetBSD/x86 EFI Boot (x64), Revision 1.0 (from NetBSD 7.99.59)
> Memory: 640/2344900 k
>
> This is output of version command from boot prompt (option in bootloader =
menu).
>>Description:
> Hello! I downloaded "NetBSD-7.99.59-amd64-uefi-install.img.gz" from ftp:/=
/nyftp.netbsd.org/pub/NetBSD-daily/HEAD/201702051230Z/images/ and I can boo=
t to bootloader. No matter which option I will choose, I have always some n=
umbers, like progress of loading image or mounting initial ramdisk, and whe=
n it finishes loading, then screen is black with only one symbol: "_". Afte=
r some time nothing changes.
>
> My spec (this is laptop):
>
> samsung-np355v5c-so5pl
> A6-4400M
> 6GB RAM
> 500GB HDD
> HD7520G+HD7670M-1024MB
>
> I'm booting from pendrive.
>
> But I can enter to boot prompt. I tried to manually boot with: boot hd0b:=
netbsd, boot hd0b, boot. These commands work, but this issue still occurs. =
With ls I have list of folders from image. dev normally detects disks.
>
> I tried command efivars. There is some list with guid, variable name and =
value - I grabbed screen picture with smartphone. Every time use of this co=
mmand results in a different outcome - random list of variables. In one cas=
e does not display anything. Always end in this way: GetNextVariableName fa=
iled: Invalid parameter
>
> Best Regards!
>
> Przemysław Pintal
>
>>How-To-Repeat:
> Try to boot on computer with EFI.
>>Fix:
>
From: =?UTF-8?Q?Przemys=C5=82aw_Pintal?= <premislaus1988@gmail.com>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: port-amd64/51953: NetBSD do not boot on EFI
Date: Tue, 7 Feb 2017 17:05:46 +0100
Hi! I uploaded screenshots with memmap and efivar output on Imgur -
http://imgur.com/gallery/6qjsk
efivar -l on Linux:
605dab50-e046-4300-abb6-3dd810dd8b23-MokListRT
8be4df61-93ca-11d2-aa0d-00e098032b8c-BootCurrent
8be4df61-93ca-11d2-aa0d-00e098032b8c-SabiNumHddLBASectors
8be4df61-93ca-11d2-aa0d-00e098032b8c-LangCodes
8be4df61-93ca-11d2-aa0d-00e098032b8c-PlatformLangCodes
8be4df61-93ca-11d2-aa0d-00e098032b8c-ErrOut
8be4df61-93ca-11d2-aa0d-00e098032b8c-ErrOutDev
8be4df61-93ca-11d2-aa0d-00e098032b8c-ConInDev
8be4df61-93ca-11d2-aa0d-00e098032b8c-ConOutDev
01368881-c4ad-4b1d-b631-d57a8ec8db6b-wXconStrucAddress
01368881-c4ad-4b1d-b631-d57a8ec8db6b-XconStrucAddress
c811fa38-42c8-4579-a9bb-60e94eddfb34-USB_POINT
ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-UsbMassDevValid
ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-UsbMassDevNum
0885f288-418c-4be1-a6af-8bad61da08fe-DriverHlthEnable
7459a7d4-6533-4480-bba7-79e25a4443c9-DriverHealthCount
8be4df61-93ca-11d2-aa0d-00e098032b8c-OsIndicationsSupported
8be4df61-93ca-11d2-aa0d-00e098032b8c-ECRev2
8be4df61-93ca-11d2-aa0d-00e098032b8c-ECRev1
4bafc2b4-02dc-4104-b236-d6f1b98d9e84-S3SS
8be4df61-93ca-11d2-aa0d-00e098032b8c-SetupMode
8be4df61-93ca-11d2-aa0d-00e098032b8c-SecureBoot
8be4df61-93ca-11d2-aa0d-00e098032b8c-SignatureSupport
8be4df61-93ca-11d2-aa0d-00e098032b8c-RSCInfoAddresss
80e1202e-2697-4264-9cc9-80762c3e5863-Setup
d1405d16-7afc-4695-bb12-41459d3695a2-NetworkStackVar
8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot000E
8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot000D
8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot000C
8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot0008
8be4df61-93ca-11d2-aa0d-00e098032b8c-BootOrder
8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot0000
c3a4e49f-485f-4fd6-a2ea-2bc87455ad4b-MemContextNv
ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-Setup
8be4df61-93ca-11d2-aa0d-00e098032b8c-OsIndications
a9b5f8d2-cb6d-42c2-bc01-b5ffaae4335e-PBRDevicePath
ba57e015-65b3-4c3c-b274-659192f699e3-BugCheckCode
8be4df61-93ca-11d2-aa0d-00e098032b8c-Timeout
77fa9abd-0359-4d32-bd60-28f4e78f784b-CurrentPolicy
ba57e015-65b3-4c3c-b274-659192f699e3-BugCheckParameter1
ba57e015-65b3-4c3c-b274-659192f699e3-BugCheckProgress
4c19049f-4137-4dd3-9c10-8b97a83ffdfa-MemoryTypeInformation
b1cfc482-4cb2-4cee-9b00-ce2579ec7186-MemoryS3SaveNv
8be4df61-93ca-11d2-aa0d-00e098032b8c-PBRDevicePath
a56074db-65fe-45f7-bd21-2d2bdd8e9652-LegacyGroup
c811fa38-42c8-4579-a9bb-60e94eddfb34-AMITSESetup
fc9e50c7-3e44-4d47-9493-4d78ed15691c-K99_EC_Version
8be4df61-93ca-11d2-aa0d-00e098032b8c-HDDRecoveryFlag
8806c85d-b4fb-4d02-97d2-8597667acc83-SecKbdType
ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-PANNEL_SIZE
af9ffd67-ec10-488a-9dfc-6cbf5ee22c2e-AcpiGlobalVariable
30b98b95-dfa3-4501-a3ce-e38c186384a0-CpuS3Resume
8e3fd961-d300-4773-8777-73c4c9a6022b-BackupAgesaSetup
8e3fd961-d300-4773-8777-73c4c9a6022b-BackupSetup
0a51b41d-de21-43fe-be27-d6dbc9efd104-MemoryS3SaveVolLength
0a51b41d-de21-43fe-be27-d6dbc9efd104-MemoryS3SaveVol
01368881-c4ad-4b1d-b631-d57a8ec8db6b-SecHddBootPolicy
393c4833-402f-4bd5-bf5a-1f5cd8681444-SbNvramVar
8be4df61-93ca-11d2-aa0d-00e098032b8c-MemRestoreCpuId
8be4df61-93ca-11d2-aa0d-00e098032b8c-MemRestoreSerialLength
8be4df61-93ca-11d2-aa0d-00e098032b8c-SpdBypassSerial
8be4df61-93ca-11d2-aa0d-00e098032b8c-SpdBypassData
45cf35f6-0d6e-4d04-856a-0370a5b16f53-DefaultBootOrder
8be4df61-93ca-11d2-aa0d-00e098032b8c-ConIn
8be4df61-93ca-11d2-aa0d-00e098032b8c-ConOut
01368881-c4ad-4b1d-b631-d57a8ec8db6b-ShipmentOS
4c19049f-4137-4dd3-9c10-8b97a83ffdfa-PreviousMemoryTypeInformation
8be4df61-93ca-11d2-aa0d-00e098032b8c-SavedACPIVideoNVSPtr
c3a4e49f-485f-4fd6-a2ea-2bc87455ad4b-MemContext
c3a4e49f-485f-4fd6-a2ea-2bc87455ad4b-MemChecksum
8be4df61-93ca-11d2-aa0d-00e098032b8c-MemCeil.
8be4df61-93ca-11d2-aa0d-00e098032b8c-PK
8be4df61-93ca-11d2-aa0d-00e098032b8c-KEK
d719b2cb-3d3a-4596-a3bc-dad00e67656f-db
d719b2cb-3d3a-4596-a3bc-dad00e67656f-dbx
43387991-1223-7645-b5bb-aa7675c5c8ef-AMIMemInfo
490216c0-076a-44d3-a536-ace05c90e386-NBMemoryLength
f3ed95df-828e-41c7-bca0-16c41965a634-TcgInternalSyncFlag
8be4df61-93ca-11d2-aa0d-00e098032b8c-FPDT_Variable
8e3fd961-d300-4773-8777-73c4c9a6022b-FacsHwSigValue
ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-SetupCpuFeatures
ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-UsbSupport
840f6ac6-6f42-11d4-bce7-0080c73c8881-AmiAgesaSetup
dde1bc72-d45e-4209-ab85-14462d2f5074-HobRomImage
8be4df61-93ca-11d2-aa0d-00e098032b8c-MonotonicCounter
8be4df61-93ca-11d2-aa0d-00e098032b8c-Lang
8be4df61-93ca-11d2-aa0d-00e098032b8c-PlatformLang
ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-OS_Select
cf22fe2b-fc77-492b-a5e2-84b686aa4d36-EcToVar
2cad111c-d4a1-4341-c1f3-753283524c8a-DmiArrayOem
ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-SLP10
ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-NON_OS
23ad6a48-67fd-4a5c-95aa-8cb22780137d-SecPData
4b3082a3-80c6-4d7e-9cd0-583917265df1-DmiVar020002050
4b3082a3-80c6-4d7e-9cd0-583917265df1-DmiVar010001070
4b3082a3-80c6-4d7e-9cd0-583917265df1-DmiVar010001080
4b3082a3-80c6-4d7e-9cd0-583917265df1-DmiArray
4599d26f-1a11-49b8-b91f-858745cff824-StdDefaults
2017-02-07 14:20 GMT+01:00 Kimihiro Nonaka <nonakap@gmail.com>:
> The following reply was made to PR port-amd64/51953; it has been noted by GNATS.
>
> From: Kimihiro Nonaka <nonakap@gmail.com>
> To: "gnats-bugs@netbsd.org" <gnats-bugs@netbsd.org>
> Cc: port-amd64-maintainer@netbsd.org,
> "gnats-admin@netbsd.org" <gnats-admin@netbsd.org>, "netbsd-bugs@netbsd.org" <netbsd-bugs@netbsd.org>
> Subject: Re: port-amd64/51953: NetBSD do not boot on EFI
> Date: Tue, 7 Feb 2017 22:16:14 +0900
>
> Hi,
>
> Could you send a result of memmap command.
From: "NONAKA Kimihiro" <nonaka@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/51953 CVS commit: src/sys/arch/i386/stand
Date: Sat, 11 Feb 2017 10:23:39 +0000
Module Name: src
Committed By: nonaka
Date: Sat Feb 11 10:23:39 UTC 2017
Modified Files:
src/sys/arch/i386/stand/efiboot: efiboot.c efiboot.h
src/sys/arch/i386/stand/efiboot/bootx64: efibootx64.c startprog64.S
src/sys/arch/i386/stand/lib: exec.c
Log Message:
PR/51953: fix unable to boot on some AMD machine.
Delayed the timing to copy the kernel to actual address.
copy routine from common/lib/libc/arch/x86_64/string/bcopy.S
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/i386/stand/efiboot/efiboot.c \
src/sys/arch/i386/stand/efiboot/efiboot.h
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/i386/stand/efiboot/bootx64/efibootx64.c
cvs rdiff -u -r1.2 -r1.3 \
src/sys/arch/i386/stand/efiboot/bootx64/startprog64.S
cvs rdiff -u -r1.64 -r1.65 src/sys/arch/i386/stand/lib/exec.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "NONAKA Kimihiro" <nonaka@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/51953 CVS commit: src/sys/arch/x86
Date: Tue, 14 Feb 2017 13:23:50 +0000
Module Name: src
Committed By: nonaka
Date: Tue Feb 14 13:23:50 UTC 2017
Modified Files:
src/sys/arch/x86/acpi: acpi_machdep.c
src/sys/arch/x86/include: efi.h
src/sys/arch/x86/x86: efi.c x86_machdep.c
Log Message:
x86: make btinfo_memmap from btinfo_efimemmap for to reduce mem_cluster_cnt.
should fix PR/51953.
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/x86/acpi/acpi_machdep.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/x86/include/efi.h
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/x86/x86/efi.c
cvs rdiff -u -r1.87 -r1.88 src/sys/arch/x86/x86/x86_machdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Kimihiro Nonaka <nonakap@gmail.com>
To: "gnats-bugs@netbsd.org" <gnats-bugs@netbsd.org>
Cc: port-amd64-maintainer@netbsd.org,
"gnats-admin@netbsd.org" <gnats-admin@netbsd.org>, "netbsd-bugs@netbsd.org" <netbsd-bugs@netbsd.org>,
premislaus1988@gmail.com
Subject: Re: port-amd64/51953: NetBSD do not boot on EFI
Date: Sat, 4 Mar 2017 16:25:22 +0900
Hi,
2017-02-08 1:10 GMT+09:00 Przemys=C5=82aw Pintal <premislaus1988@gmail.com>=
:
> The following reply was made to PR port-amd64/51953; it has been noted by=
GNATS.
>
> From: =3D?UTF-8?Q?Przemys=3DC5=3D82aw_Pintal?=3D <premislaus1988@gmail.co=
m>
> To: gnats-bugs@netbsd.org
> Cc:
> Subject: Re: port-amd64/51953: NetBSD do not boot on EFI
> Date: Tue, 7 Feb 2017 17:05:46 +0100
>
> Hi! I uploaded screenshots with memmap and efivar output on Imgur -
> http://imgur.com/gallery/6qjsk
>
> efivar -l on Linux:
I've commited some fix and improvement.
Could you try lastest HEAD?
Regards,
--=20
Kimihiro Nonaka
State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 14 Mar 2017 07:38:29 +0000
State-Changed-Why:
please cvs update and try again
From: =?UTF-8?Q?Przemys=C5=82aw_Pintal?= <premislaus1988@gmail.com>
To: gnats-bugs@gnats.netbsd.org
Cc:
Subject: Re: port-amd64/51953: NetBSD do not boot on EFI
Date: Thu, 27 Apr 2017 13:20:05 +0200
Hello! I'm very sorry for long delay to my response. I have new job.
This issue was resolved. Thank you!
State-Changed-From-To: feedback->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Thu, 27 Apr 2017 11:59:20 +0000
State-Changed-Why:
Confirmed fixed. Thanks for the feedback!
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.