From owner-freebsd-current@freebsd.org Thu Aug 9 09:26:45 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 212D8105E088 for ; Thu, 9 Aug 2018 09:26:45 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: from mail-wm0-x235.google.com (mail-wm0-x235.google.com [IPv6:2a00:1450:400c:c09::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 851A389755 for ; Thu, 9 Aug 2018 09:26:44 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: by mail-wm0-x235.google.com with SMTP id n11-v6so5669220wmc.2 for ; Thu, 09 Aug 2018 02:26:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sjpac41t3EkcCFawOfnpyoaCQl6U4BDaGF+JmWtyQo8=; b=YrS2W8Vy7/cbiqKQdi8cn7hCmCTKrgNoRpPYltSxQJjll4VxpLBI5QXskMNqGz5rvg uwN/1/D81xJ5/lP9snrqB+uCLq7Gl3kGYoeYPFJaSo+S+BPxx1RnOkvjyYY8BGJ97JeI tIPQfTkYRSsYVeh0/QB9XXMvu6ybnHApaOY7SzTcSJh4CX9xZMbQuN+Wsjb+NpcGQrVw MSAslEOGQY+hAvFJAe/C9P1USUINzaRb9DlaWpxsvuPeFirYtF8Jz12C4Go3ahdtMrfW CBJeMw7orvX2jphnx6cgrZotzaMXy+Z/DOQ6ChzZYpdvdXzDTw7ukh0PLVXo0Z5MlaQW lvwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sjpac41t3EkcCFawOfnpyoaCQl6U4BDaGF+JmWtyQo8=; b=X0W/fcAf4CWbIzgo8u+dZLhFpXUSkA+ush9s36jyTwkSvXfOFVS8TGjyAjgavmUbKQ DH/8ezMPQE2c2E23f/adyNT+PK+3M/T0IM+zfH+7nezz/SmrLXzN9Uvdmg+zogiT5KvW yoCboRSnw4ARfEW+zV4WTdNtrySTdeNzrXzpS0yKKu2kzXJOB376wb2HgNow0IhOlRQF V8J0xeJLMX9IBh7LxfjdxC5X5jx9cEQGCWLZAHsRnZlwCm+duT/ZTp6/gJYgSZgSUbmH uWevZ3D2//RC0f2nGHm1LnpBbAwBtJIPFUN2TV7W53KTE3jlLvwkFaliYY9d7GqKhxl+ Yj7A== X-Gm-Message-State: AOUpUlHEzlikYP5PSkjmvKjmH+FOdQEhhCPBwLB7L5oBnPX+5TKBrlWX AYqVBIvU+L85egxaByeUPNAk6ecbfZvBktYc80ClsQ== X-Google-Smtp-Source: AA+uWPw3321UT5gNN8O3V1hfXEfdEuvrcnBSDiCJbK8V99obmOQgPT3Rv7xnM06nuocESsu0bCo6POKsSKUYc0+OoKg= X-Received: by 2002:a1c:6709:: with SMTP id b9-v6mr1098263wmc.68.1533806803498; Thu, 09 Aug 2018 02:26:43 -0700 (PDT) MIME-Version: 1.0 References: <20180809082904.GI1884@kib.kiev.ua> In-Reply-To: <20180809082904.GI1884@kib.kiev.ua> From: Johannes Lundberg Date: Thu, 9 Aug 2018 10:26:06 +0100 Message-ID: Subject: Re: Early kernel boot log? To: Konstantin Belousov Cc: freebsd-current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 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: Thu, 09 Aug 2018 09:26:45 -0000 On Thu, Aug 9, 2018 at 9:29 AM Konstantin Belousov wrote: > On Thu, Aug 09, 2018 at 08:54:31AM +0100, Johannes Lundberg wrote: > > Hi > > > > So I believe the reason I'm not seeing and printf output in dmesg is that > > it is too early in some functions. > > For example > > machdep.s > > getmemsize() > > add_efi_map_entries() > > etc > > > > However, these functions do contain debug printf statements so if they're > > logging to somewhere, where/how can I see this? > > > > I also tried booting in bhyve too see if I could get any output via > serial > > console but nothing there either. > Disable efi console, only leaving comconsole around, then set > debug.late_console=0 > in loader. > Thanks for the tip. I found the comment in machdep.c that explains this now. However, running in bhyve with console="comconsole" (not needed in bhyve I guess?) debug.late_console=0 Boot hangs after Booting... output. Caused by late_console=0. > > > > printfs in cpu_startup() does give me output in dmesg. > > > > Cheers > > _______________________________________________ > > freebsd-current@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-current > > To unsubscribe, send any mail to " > freebsd-current-unsubscribe@freebsd.org" >