From owner-freebsd-current@freebsd.org Fri Mar 3 16:16:01 2017 Return-Path: Delivered-To: freebsd-current@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 758F7CF6074 for ; Fri, 3 Mar 2017 16:16:01 +0000 (UTC) (envelope-from alex.deiter@gmail.com) Received: from mail-lf0-x242.google.com (mail-lf0-x242.google.com [IPv6:2a00:1450:4010:c07::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E65731B32; Fri, 3 Mar 2017 16:16:00 +0000 (UTC) (envelope-from alex.deiter@gmail.com) Received: by mail-lf0-x242.google.com with SMTP id r36so8410235lfi.0; Fri, 03 Mar 2017 08:16:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=hHBVwFaIpSKnu021mQ66d5hdQnZJY7dFWtbrMnsG3tQ=; b=AD1uveKNbLvg0slw9MpksHInaG/lTw0PyhsI6onEjB6dkZkBCGP85SinzgpCHu8Yl/ vjJ9uJR83MJYflHeCLokrNerehfmzaLf50LB0du8GJiyogH1wcY/RsEqMq8vTdKVvapz z/b695ROF3zsd2vDSrYN+XIr3yLO7U2QLbmhFgm8alcUI4XyOWrD9ivUbbNhj87lhyMV Gg7J2d2+yFTJ4VynQFwJgG1SpwAlpZvLXlWvaHpsw/6VVgknciyLkKXPpzWy6tOOWVXw 4/anHrluC8xfAx/MdofvLn5DSsA4mj3Tj7e1FDuBfBecNOWVOjHWHS2SebKp58QiLABx P+KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=hHBVwFaIpSKnu021mQ66d5hdQnZJY7dFWtbrMnsG3tQ=; b=c6Vh5fVTiJX6CaIyDR4s1mIoRrqMSf3YcaIQn8CUqUjJqfomx8lSNhDdQ+caMj2BDs 6V8nPIR4er196woXYDM0t+hwyzsPoDHiur4q4iBEmBUkcZu4hKz1dNu0EzFxA0IVa8YD WeYlWM51rfriHJ8hRngcjs/YWTK08mD7NLLMsIpVrzcseceP9C4zhTzfkZkXjrwcqNAa RQWtPmfxLThZfUbEa3qMHemp7/vZbml5XCtU6zKUI2BI6Gg9shVlkfqavyCAbwoxI+NW cyOyfbNriOTeuiXWIQrCr2XRxRyrj4mq1poZVW37VD6eYk1GcqXXk9evDrs4xFKOXjqx J04A== X-Gm-Message-State: AMke39nycIz8oYQ6zIQ+OccHjIaW9y2P/ny5vx/2/ggudmbyeuGOOAQoqZGj5OpbdWkWXg== X-Received: by 10.25.165.201 with SMTP id o192mr1228029lfe.84.1488557758654; Fri, 03 Mar 2017 08:15:58 -0800 (PST) Received: from tiamat.deiter.ru ([109.167.157.231]) by smtp.gmail.com with ESMTPSA id o80sm2356485lff.25.2017.03.03.08.15.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Mar 2017 08:15:57 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: Boot failure - svn up from this morning From: Alex Deiter In-Reply-To: Date: Fri, 3 Mar 2017 19:15:56 +0300 Cc: Chris H , freebsd-current , "dexuan@freebsd.org" , "marcel@freebsd.org" , "kib@freebsd.org" , Sepherosa Ziehau Content-Transfer-Encoding: quoted-printable Message-Id: References: <4D3C46D7-3EBF-47AE-BFFE-37ECEA4721FD@gmail.com> To: Dexuan Cui X-Mailer: Apple Mail (2.3259) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Fri, 03 Mar 2017 16:16:01 -0000 Hello Dexuan, Thank you for the patch! I=E2=80=99ll test it and let you know the result. Thank you! Alex Deiter alex.deiter@gmail.com > On 3 Mar 2017, at 14:49, Dexuan Cui wrote: >=20 >> From: Alex Deiter >> Sent: Friday, March 3, 2017 17:22 >>=20 >> Hello, >> The same issue with FreeBSD 12.0-CURRENT-r314563: >> elf64_loadimage: could not read symbols - skipped! >>=20 >> I suspect regression after: >>=20 >> Revision 314547 - Directory Listing >> Modified Thu Mar 2 07:25:50 2017 UTC (25 hours, 54 minutes ago) by = dexuan >> loader.efi: reduce the size of the staging area if necessary >=20 > Yes, I believe the issue is caused by the patch, which is supposed to = PR 211746: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211746 >=20 > Sorry for causing the issue to you, but I suspect the patch reveals a = bug in your > host's firmware: the memory map reported by the host's firmware may be > incorrect. >=20 > Can you please try the patch to dump the memory map? > = https://github.com/dcui/freebsd/commit/6094aac8ac9bddb24e3ac45493ac020c940= 29ce8.patch >=20 > And the patch will allow your host to boot. > Note: there is a 10-second pause every time 5 lines are printed. This = is to make > sure we have enough time to take a screenshot or photo. :-) >=20 > About how to apply the patch and build/install it: > 'wget' the above patch, and 'cd' into your = FREEBSD_SOURCE_ROOT/sys/boot/ and run > "patch -p3 < the_patch_name". If you have run 'make buildworld", just = run 'make' in the > sys/boot/ directory and copy the new loader.efi into the boot folder, = e.g. in my side, I > use > cp -iv /usr/obj/root/bsd.git/sys/boot/efi/loader/loader.efi = /boot/loader.efi >=20 > Thanks, > -- Dexuan