From patchwork Mon Mar 25 04:29:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Russell Currey X-Patchwork-Id: 1063734 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44SM4J191Yz9sSd for ; Mon, 25 Mar 2019 15:39:44 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=russell.cc Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=russell.cc header.i=@russell.cc header.b="l9cJlTsZ"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="sjc2UfVZ"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 44SM4H736YzDqBM for ; Mon, 25 Mar 2019 15:39:43 +1100 (AEDT) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=russell.cc (client-ip=66.111.4.27; helo=out3-smtp.messagingengine.com; envelope-from=ruscur@russell.cc; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=russell.cc Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=russell.cc header.i=@russell.cc header.b="l9cJlTsZ"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="sjc2UfVZ"; dkim-atps=neutral Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 44SM3l4cBDzDq6q for ; Mon, 25 Mar 2019 15:39:15 +1100 (AEDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 99F1F216A6; Mon, 25 Mar 2019 00:29:39 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 25 Mar 2019 00:29:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=russell.cc; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm1; bh=W2dVWjip2KCcz3+Uuh30ai91Dq vpCAVrCYrMKKlTl0g=; b=l9cJlTsZeMh/ucsTiuXDcDhrauABu1orCyoKHvar/C ZoNnyqJF4cLzQvw1ZBLa2NCE2dpU9BfBi9En7PNcyJ6B0eQZaMgSAVdEqzvH8oEB KBEnUvOPRlxzkLKijwhH/+ilNvyCSF4CKpZK7CV9Hic5lB1xzCku7b5AjAl/8224 0JV5X+MviRSelsepUbA5CAFARShlhWbcUHxe3Ze7+YrybO7Vi+msLeeq5nYDcuPq v1MiRO6wVbMMovihZUjAgu+jmXnGHnkMRJviM4mhgtrIH/RVcPuz49cbjImiJrUI aecdb8VYmBg1UXKnR3M+KhoHlhvD83CudfFaFIg3/KXg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=W2dVWjip2KCcz3+Uu h30ai91DqvpCAVrCYrMKKlTl0g=; b=sjc2UfVZnJjNcRRsLTbm1G0T0rd9VSLub vLfR4Y7OepmIqW/pclZVoXzid0iuood+SgtCIy7iOFOY7y6aTTXhoYx7NG7q7stM 2aIj1DizAnMtzzv6zDVbeIP7yIBDJ5DWXoMmgNHrad0BWLhnRL86Kl6fca5ZdJ38 RK9bk7iCEMPHqdzQWx+5KmMIv5vC1mUwIar5TbcbDhNHA5zDZEEiCzoDolF/XtuD wIuZM1NBedysDWefaiwbe2yPoC+JB1ch62IIolZuaxDTZEWRCecB0TB3iQIX8DHY ufRpGgBn9OT5b5oHIMS4lEbzDKTqHFtByN45PsAuA15VAvh6i/PCg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrjeejgdefkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecufghrlhcuvffnffculdeftddmnecujfgurhephffvuf ffkffoggfgsedtkeertdertddtnecuhfhrohhmpeftuhhsshgvlhhlucevuhhrrhgvhicu oehruhhstghurhesrhhushhsvghllhdrtggtqeenucfkphepuddvvddrleelrdekvddrud dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehruhhstghurhesrhhushhsvghllhdrtggt necuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from crackle.ozlabs.ibm.com (unknown [122.99.82.10]) by mail.messagingengine.com (Postfix) with ESMTPA id EF6C210316; Mon, 25 Mar 2019 00:29:36 -0400 (EDT) From: Russell Currey To: skiboot@lists.ozlabs.org Date: Mon, 25 Mar 2019 15:29:28 +1100 Message-Id: <20190325042929.27508-1-ruscur@russell.cc> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [Skiboot] [PATCH 1/2] external/mambo: Populate kernel-base-address in the DT X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mikey@neuling.org Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" skiboot.tcl defines PAYLOAD_ADDR as 0x20000000, which is the default in skiboot. This is also the default in skiboot unless kernel-base-address is set in the device tree. If you change PAYLOAD_ADDR to something else for mambo, skiboot won't see it because it doesn't set that DT property, so fix it so that it does. Signed-off-by: Russell Currey Acked-by: Michael Neuling --- external/mambo/skiboot.tcl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/external/mambo/skiboot.tcl b/external/mambo/skiboot.tcl index 545a7cca..096f1c34 100644 --- a/external/mambo/skiboot.tcl +++ b/external/mambo/skiboot.tcl @@ -221,6 +221,10 @@ lappend compat "ibm,power8-xscom" set compat [of::encode_compat $compat] mysim of addprop $xscom_node byte_array "compatible" $compat +set chosen_node [mysim of find_device /chosen] +set base_addr [list $mconf(payload_addr)] +mysim of addprop $chosen_node array64 "kernel-base-address" base_addr + # Load any initramfs set cpio_start 0x80000000 set cpio_end $cpio_start @@ -236,7 +240,6 @@ if { [info exists env(SKIBOOT_INITRD)] } { set cpio_end [expr $cpio_end + $cpio_size] } - set chosen_node [mysim of find_device /chosen] mysim of addprop $chosen_node int "linux,initrd-start" $cpio_start mysim of addprop $chosen_node int "linux,initrd-end" $cpio_end }