From patchwork Fri Aug 5 07:05:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Kerr X-Patchwork-Id: 656048 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3s5Hrn64XWz9svs for ; Fri, 5 Aug 2016 17:05:45 +1000 (AEST) Received: from ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3s5Hrn5Nk7zDqYb for ; Fri, 5 Aug 2016 17:05:45 +1000 (AEST) X-Original-To: petitboot@lists.ozlabs.org Delivered-To: petitboot@lists.ozlabs.org Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3s5Hrh1jd6zDqQq for ; Fri, 5 Aug 2016 17:05:40 +1000 (AEST) Received: by ozlabs.org (Postfix, from userid 1023) id 3s5Hrh12V4z9svs; Fri, 5 Aug 2016 17:05:40 +1000 (AEST) From: Jeremy Kerr To: petitboot@lists.ozlabs.org Subject: [PATCH 1/2] hooks/add-offb: Add leading slash to HVC node paths Date: Fri, 5 Aug 2016 15:05:11 +0800 Message-Id: <1470380712-3132-1-git-send-email-jk@ozlabs.org> X-Mailer: git-send-email 2.7.4 X-BeenThere: petitboot@lists.ozlabs.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Petitboot bootloader development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Petitboot" We need an absolute path to the serial@N device. It looks like some kernels aren't reading the current path correctly, leading to no console output. Signed-off-by: Jeremy Kerr Acked-by: Stewart Smith --- utils/hooks/30-add-offb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/hooks/30-add-offb.c b/utils/hooks/30-add-offb.c index d711908..e5947ca 100644 --- a/utils/hooks/30-add-offb.c +++ b/utils/hooks/30-add-offb.c @@ -474,7 +474,7 @@ static char *get_hvc_path(struct offb_ctx *ctx, unsigned int termno) return NULL; } - return talloc_asprintf(ctx, "ibm,opal/consoles/%s", serial); + return talloc_asprintf(ctx, "/ibm,opal/consoles/%s", serial); } /*