From patchwork Tue May 2 09:49:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: thomas.mittelstaedt@bosch.com X-Patchwork-Id: 1775815 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=bosch.com header.i=@bosch.com header.a=rsa-sha256 header.s=selector2 header.b=lITZ//4W; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Q9dS33SnRz1ydX for ; Tue, 2 May 2023 21:40:35 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3BE168470E; Tue, 2 May 2023 13:39:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=bosch.com header.i=@bosch.com header.b="lITZ//4W"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9A048846CF; Tue, 2 May 2023 11:49:49 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on20607.outbound.protection.outlook.com [IPv6:2a01:111:f400:7d00::607]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 25DC2846E1 for ; Tue, 2 May 2023 11:49:45 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Thomas.Mittelstaedt@de.bosch.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eeA+O1a8CLI6ao/OuufIjdVwAkRUqDcvbvrFWsulqCJkojyQfxvUp0AsGkFfU/Hn/5RqptWPkSXONHnYTaoj5HGAER7UNsu26TxVPSYXXbGGYXZfYmyMunCbMfyjUsudNwb+EGuDJTsZcUAE6nVpclMz060UjsIpspn/ode4B6U8Q0k7SmLmWpqbcHN470kqyQw8+wZglFPDI0wpfHxRE9KVU+6SpTLdc8avAIQGlpqKtzvbieNvHVXulgfLsT/b88qB8cWz7qr5L8kYkswpyBmC8+JWDg1sk+q5XQ6XTLQDz27R/Wrty/XzSDWlVcO6NdgT0CVVif9ajyaygxCaQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=pD0AuwH2OWuydBNkNK0wHMU7xicXe7m8fM0uS7EJQJs=; b=G5ZIVZ4l5kJgpzIopO+VoYPTzt1NolUWHPv5zJsPHc0mI0lc6DSGMwPD0L64z0vpyd9L2Nhh9BYc9s1iW7+3gIEtD+UMMam9rRF06NgWpx4vumWTh6JIu1dAd55UhKt8eKI/YyMaLz/y/en1A331U+PeOXZjXqSrCaFAgjWfh8Co7/7Ds1xDXwYT/lVP5eVCpQiQMjhGNJPboA8xyCHCNwAPSNIfs91C7DOZPnqBLR/Ck1dd+WefJgPA3kLR+X2egKhoQT4ZrNobZ97FR/Lm/No1+d8j8bEYsSFpQRBBL4WIE9shSQWRoNk+QV+awT0p6UrcLntJAnmPXBIAicd8CA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 139.15.153.203) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=de.bosch.com; dmarc=fail (p=reject sp=none pct=100) action=oreject header.from=bosch.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bosch.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pD0AuwH2OWuydBNkNK0wHMU7xicXe7m8fM0uS7EJQJs=; b=lITZ//4WS3qZICTD/tAsqIvu801pUyb8B7jDpuGE/y/KgxNM6FElLDroPb0PMWQ/a/wJlFb8jtJkqoMaee6wRW2QrwDANB8y50KtVQe9N7CvMIE0dQAD8mhTslPFvb06mpbZ+I6GpaVbzndt95VvmgXHjjzxQ3qPB+4SAL9CHOVSq8HUfIYTrbW2YX1kX5gLqbLDxCvTiTkYltAZwm3r8R6B3S7ZcuAlnJX6jcRXESg73ldg+F9jPaaw7XYu1jlUGowI1oXILdFZhFd+riYJwa2L3CVa9hhBCbw6c+zMN5ogFYdZ8Y+gQYQbH1gd53Cczj9YCgJzDk0PzwAqs2SHCw== Received: from AS9PR06CA0086.eurprd06.prod.outlook.com (2603:10a6:20b:464::9) by PAWPR10MB6879.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:33c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.31; Tue, 2 May 2023 09:49:43 +0000 Received: from AM7EUR03FT006.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:464:cafe::e6) by AS9PR06CA0086.outlook.office365.com (2603:10a6:20b:464::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.31 via Frontend Transport; Tue, 2 May 2023 09:49:43 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 139.15.153.203) smtp.mailfrom=de.bosch.com; dkim=none (message not signed) header.d=none;dmarc=fail action=oreject header.from=bosch.com; Received-SPF: Pass (protection.outlook.com: domain of de.bosch.com designates 139.15.153.203 as permitted sender) receiver=protection.outlook.com; client-ip=139.15.153.203; helo=eop.bosch-org.com; pr=C Received: from eop.bosch-org.com (139.15.153.203) by AM7EUR03FT006.mail.protection.outlook.com (100.127.141.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.20 via Frontend Transport; Tue, 2 May 2023 09:49:43 +0000 Received: from SI-EXCAS2001.de.bosch.com (10.139.217.202) by eop.bosch-org.com (139.15.153.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Tue, 2 May 2023 11:49:43 +0200 Received: from FE-HUB2000.de.bosch.com (10.4.103.109) by SI-EXCAS2001.de.bosch.com (10.139.217.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Tue, 2 May 2023 11:49:43 +0200 Received: from sdk-v2022-hi-z0ftz.hi.de.bosch.com (10.142.235.220) by FE-HUB2000.de.bosch.com (10.4.103.109) with Microsoft SMTP Server id 15.1.2507.23; Tue, 2 May 2023 11:49:40 +0200 From: To: CC: Simon Glass , Niel Armstrong , Patrick Delaunay , Ramon Fried , Marek Vasut , Manuel Traut , Heinrich Schuchardt , Bin Meng Subject: [PATCH 4/4] X86: pxeboot: bugfix: Set variable for size of initrd Date: Tue, 2 May 2023 09:49:23 +0000 Message-ID: <20230502094923.4024-5-thomas.mittelstaedt@bosch.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230502094923.4024-1-thomas.mittelstaedt@bosch.com> References: <20230502094923.4024-1-thomas.mittelstaedt@bosch.com> MIME-Version: 1.0 X-Originating-IP: [10.142.235.220] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7EUR03FT006:EE_|PAWPR10MB6879:EE_ X-MS-Office365-Filtering-Correlation-Id: bdafb8c8-76bc-4686-9fb2-08db4af28ea0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6efLRkWCTPozDls5y9aKzGjO/FuR8yDRcfgpXpZDa5KXm/ZdLZApXChGDusJx8Vydul6hULefS5M1l8OB48fdzNSS2FFp4IPHHUbaclJbKnsMZ97orqEGeP/ODfONm5gj7O0CV/Mm32z3CIvDP+7khA1OSCp4CpSwXLAEqDaKvHSzyNT8BRSO5PKE8Oz1SVTghRtVxkClZ7qfWl6LymJKOLa2i0Bc5zKNF0ged8jNCEhR2N2+Pc/143t0skf0MAF2JmB4pf8fmcU/RFnVymweJkmffbIvhS/x9Ot4chn67VSqaKkHUzFjKr8KttpmB3Qa0mkEYf+4499bRzIdLI15U3KyqV8cCQxZ8J3j3lgZmjNnRq1/Y6piSZ3MaiY9ibNoZnxa9gpq51BEVInz77QvblBB5YkOFQ5UIC7aWyu0IKz/cn7bRGIbEanEabD53M+LrA/Up0VC7Wb4cAPa7cC2K8b/P85VfVZSvWk7f+3g2FI9CXTTKkB6j+VH04kP9WKqGtNBjtxyWZbLKy921v/BE3DZ9HJ3zvQX4XqPWoSYb6TsnJgcMGQAWg1AREBY/+UOqptt5gUZJWxEDjNWlvHjxKK1u6iunZJpSwr02PNMPOEIAuJf+qe66Rkyec8zgMkPQAXZACniK5TD6C0E9OanKAoPzPdxoe5h7CFCcviwroU9ULbuOlcwP+7ItZGg9H0X17/PBAik/TVIWGxNRhWJjPkMROmms8EHoyLQcFLA34= X-Forefront-Antispam-Report: CIP:139.15.153.203; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:eop.bosch-org.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230028)(4636009)(39860400002)(396003)(136003)(376002)(346002)(451199021)(36840700001)(40470700004)(46966006)(36860700001)(40460700003)(36756003)(81166007)(2906002)(4744005)(5660300002)(316002)(8676002)(8936002)(40480700001)(83170400001)(70586007)(356005)(70206006)(41300700001)(82310400005)(6916009)(82740400003)(82960400001)(4326008)(83380400001)(47076005)(426003)(336012)(16526019)(186003)(54906003)(1076003)(26005)(2876002)(7696005)(478600001)(2616005)(6666004)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: bosch.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 May 2023 09:49:43.7708 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bdafb8c8-76bc-4686-9fb2-08db4af28ea0 X-MS-Exchange-CrossTenant-Id: 0ae51e19-07c8-4e4b-bb6d-648ee58410f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0ae51e19-07c8-4e4b-bb6d-648ee58410f4; Ip=[139.15.153.203]; Helo=[eop.bosch-org.com] X-MS-Exchange-CrossTenant-AuthSource: AM7EUR03FT006.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR10MB6879 X-Mailman-Approved-At: Tue, 02 May 2023 13:39:48 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean From: mtt2hi The problem was, that zboot() didn't work because of missing ramdisc size. Signed-off-by: mtt2hi --- boot/pxe_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/pxe_utils.c b/boot/pxe_utils.c index 3a1e50f2b1..87c32b6e62 100644 --- a/boot/pxe_utils.c +++ b/boot/pxe_utils.c @@ -554,7 +554,7 @@ static int label_boot(struct pxe_context *ctx, struct pxe_label *label) label->name); goto cleanup; } - + strcpy(initrd_filesize, simple_xtoa(size)); initrd_addr_str = env_get("ramdisk_addr_r"); size = snprintf(initrd_str, sizeof(initrd_str), "%s:%lx", initrd_addr_str, size);