From patchwork Mon Nov 27 12:56:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747537 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3131787wru; Mon, 27 Nov 2023 05:00:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IEfCDnArmvn5Xym5vg2G4dDh7uKRJL8s98AzC2/4H3Ja4LNGelQATVcOPQJDFcRLtTk194+ X-Received: by 2002:adf:f204:0:b0:333:3d9:8eb7 with SMTP id p4-20020adff204000000b0033303d98eb7mr1530503wro.33.1701090031676; Mon, 27 Nov 2023 05:00:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090031; cv=none; d=google.com; s=arc-20160816; b=vLXPaVptj+9YNLSYfI5bBHgHmBuRyx/fcmT4xFrq1IgNYUGY5QDZrrSixPb/mzgtjU mjb5k1mrmolF0k79g9ZzrGtG6aO+Qp9DpbFHxL/Q5S3w5iGPTiP2GewMUIr/zfV39s8W lTHW0ziW4qgMFIgPkY5JoeA8A6+K4rLHVAdE3zHfVry1yrLwkTNpoR5KEqpm2Ylj4nBT CWUAy6qr9jawA9bPiPfoMG3OxMgRwZflodQnWCsAfoQmeAk/tTPL+JKL7v2u8HqJpJCy qSVjiG4t2BB9htTOA9boNKJzRxnQY1Za3FjrPuuo8WetJe55e40aamlpFXhiN0Uqp9Xj J09w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=idnSNrXcXTaTJVqLIsV71wx0ovIvLLqaLRJmXzFx1Zc=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=u82BFulBZGD2pGXcATY/snpQXs7TtFMf6YFy5/xyaxgmMUPMf0zkFMAx36KOc3vqFE E6JWP6NBwG2DeY013RanwLA/aMfMhkVbD9un4bbrMJJrDEau+OVOqQL4zXodlgVmIT3V MHEZrqujowXza2St6d7e0aM+ifR/AxIpLi/EKvIge29ixh4hthh9W3nteZej3sWPwmNW uwoNmfaC7O8oj5ZYTnKDqXbUxmGzOz2xzA1nOVKqI8TbzxMIpsnbiAamJP1afAKkWosP ud2l3SzMKa6ulMdvRjqV8cr/XI+wjpo0WlT2Gsdkv8pUb4Hhu92gjD3yKL7PoFF8yrh7 XZWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tMXqnU+u; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id k18-20020adfb352000000b00332ec4554casi3744514wrd.149.2023.11.27.05.00.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:00:31 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tMXqnU+u; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AD19E8755B; Mon, 27 Nov 2023 14:00:17 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="tMXqnU+u"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C7C2C87555; Mon, 27 Nov 2023 14:00:15 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 42E6887515 for ; Mon, 27 Nov 2023 14:00:12 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-50baa7cdf6dso2394495e87.0 for ; Mon, 27 Nov 2023 05:00:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090011; x=1701694811; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=idnSNrXcXTaTJVqLIsV71wx0ovIvLLqaLRJmXzFx1Zc=; b=tMXqnU+uKUT7esZwaQqCFRm686Bx4d+BvupciH2DpnB1hmCHG5xA89CKV/cXP4Nxpb 3dWPJXVEN/7GSXYTPFdADnoCtQt0qdn3Wh0Rczy0sVwulMY1s/iRgZtApPS3X2E68fkc mfulI64IQb/URw1e/QcIe813f8J8woTaQCkQfZcgfEFGfo3vzVyqDxfTk4kKO3HRHcvs Buv2bXk8P7+08838bltQVS1oo4JZCv4YZLDCJH17TfTpDjvC68F1y8AiX9S6UqzH8klY M2M8fTulxe8NJyFwsupeDyA4uKvfJiDVavIgKIhn/fKRkLaXY89n72xjgRe+Xe1K3F8F IJww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090011; x=1701694811; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=idnSNrXcXTaTJVqLIsV71wx0ovIvLLqaLRJmXzFx1Zc=; b=RAHlLRb/O/0cGBEu1s7xfhFUjVb3aDRrDwxE+Hu/LtS+hbfApOWt02jmbU2KYHCFFt kmHQMGeCawrb6fUrROrvZ7RkUFOkPj507ffd+UNRTDFw0WobKhucy8eCL/Og65nssrwT wl4AG029H8YHDASBykrJDtJ0YTDqSyp6X5eD/K2vaBUUixW6KXmDvwheafO9Cn/UpaUM OQIXutYtt53HFe+wAY/n5D4DaW0ln5SDwnIqGV13yukrvyw8AUv3r9alJLrfuuORn4p9 Af3E2K1Fqws0c8sCvj3BbxyaQ6220rPWcbbwZacSZdZ7upz9Plhlr3wUh58Xioz2DVBP m32Q== X-Gm-Message-State: AOJu0Yy2t/0VaNTkPda8uiJE1KcQzKK3MTqeIct48n76J4NlQ9O3def5 KMRwYxqEDEO+Df75QaWtW5pKx3PaHm/yAzNKXFiNpg== X-Received: by 2002:a05:6512:3d91:b0:50a:a6e2:ae73 with SMTP id k17-20020a0565123d9100b0050aa6e2ae73mr5442121lfv.44.1701090010803; Mon, 27 Nov 2023 05:00:10 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.00.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:00:10 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 01/43] submodule: add lwIP as git submodule Date: Mon, 27 Nov 2023 18:56:44 +0600 Message-Id: <20231127125726.3735-2-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 add external lwIP library as a git submodule. Use STABLE-2_2_0_RELEASE tag. Signed-off-by: Maxim Uvarov --- .gitmodules | 4 ++++ Makefile | 8 +++++++- net/lwip/lwip-external | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .gitmodules create mode 160000 net/lwip/lwip-external diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000000..7930a8b563 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "lwip"] + path = net/lwip/lwip-external + url = https://git.savannah.nongnu.org/git/lwip.git + branch = master diff --git a/Makefile b/Makefile index 08604ed3c7..132a60575a 100644 --- a/Makefile +++ b/Makefile @@ -1872,6 +1872,12 @@ endef include/config/uboot.release: include/config/auto.conf FORCE $(call filechk,uboot.release) +initsubmodules: + (cd $(srctree) && \ + if [ ! -f $(srctree)/net/lwip/lwip-external/README ]; then \ + flock `git rev-parse --git-dir`/config git submodule init && \ + flock `git rev-parse --git-dir`/config git submodule update; \ + fi; ) # Things we need to do before we recursively start building the kernel # or the modules are listed in "prepare". @@ -1896,7 +1902,7 @@ ifneq ($(KBUILD_SRC),) endif # prepare2 creates a makefile if using a separate output directory -prepare2: prepare3 outputmakefile cfg +prepare2: prepare3 outputmakefile cfg initsubmodules prepare1: prepare2 $(version_h) $(timestamp_h) $(dt_h) $(env_h) \ include/config/auto.conf diff --git a/net/lwip/lwip-external b/net/lwip/lwip-external new file mode 160000 index 0000000000..0a0452b2c3 --- /dev/null +++ b/net/lwip/lwip-external @@ -0,0 +1 @@ +Subproject commit 0a0452b2c39bdd91e252aef045c115f88f6ca773 From patchwork Mon Nov 27 12:56:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747538 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3132028wru; Mon, 27 Nov 2023 05:00:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IEr6rk3QC/v4OS12im7KnU1mWehKxyUJ9f2hyIfVAYAT48Q9eWGRYlNr9/yVI5tWvt3VFkw X-Received: by 2002:a17:902:db11:b0:1cc:5833:cf5e with SMTP id m17-20020a170902db1100b001cc5833cf5emr12602638plx.27.1701090050027; Mon, 27 Nov 2023 05:00:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090050; cv=none; d=google.com; s=arc-20160816; b=HjW7OrOb9HTWzzN1z8wov3p6jz64VyY0phDZbKPaNAIKQErIFn8omWy3IwI96BYZtV bKLz6mJfTcqTODMtfA6BJXNqIk63am9P/qpsepHJHX6PBQSVkjJ+ZhjA/NAqu6vY0we6 oihYdaHYf2333VElyhRE3evmFHQoIaz2zH9AWBlcOlF2qMctzVq0GkIXFWF8TJp92RdH PM0TZSoTkbmu0a33DhSyan8vYfXFSBjAYm/bX6aba4FXUAGPcOjzX4Z+eLAj+KXz9WXE 9EK8ElvNrjWbrxCit7uiKGo0dt+ZohF26U16+WFd+xTNOWJOGObzySGrHzOWHDluHvSj 6a0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=R96wmt+0ynJzffDqptgzqh4jU0VSY12cfqSJiBi8Mw4=; fh=KM7edBxDZ6DUNfU+Y0zIZvtBs/axa8Iv5t4chXYuPRI=; b=fgcOjaE7fWFN7I5HrCzEqm1+1ZAByerJXDH6x3r2Meev3+BpNVpQvBM7mwk4OC3YeK muCm7J9P5E9I4KtLioH1VEAeh0OyM8yOuPqmPfMk3c67ZvqAGQI9gT/x5bi5R4ofIMlb iWi8Zv6ULc7U+sm9pARcblXBzawvfats3QIllP+0LbyXA6hZjRyjRwuwMovwqT8dPErF YDrt4Irmn7I2JEU/WVkvDVdYN3Z+EUWQ2AqIR0DvPEDlhSvmyc7il0/goNRU2aipNdFa uD9u8cX2W2Ekr24yz1/L7N3fUhu7CAwl+krwZaO5ewavKZYUzpFyzJ1rDtRr2YoNwQWD x1nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="p/jCd8ws"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id k12-20020a170902c40c00b001c6182d7d43si8552585plk.21.2023.11.27.05.00.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:00:49 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="p/jCd8ws"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F16918756E; Mon, 27 Nov 2023 14:00:22 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="p/jCd8ws"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3927087264; Mon, 27 Nov 2023 14:00:21 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DD7228754D for ; Mon, 27 Nov 2023 14:00:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-507adc3381cso5645559e87.3 for ; Mon, 27 Nov 2023 05:00:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090013; x=1701694813; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=R96wmt+0ynJzffDqptgzqh4jU0VSY12cfqSJiBi8Mw4=; b=p/jCd8wsny5LwvvCxQ9xiWwhFo0d2HlMMAwZ6fb1sxR2chCaPXm3f0GVJPjFL7VkVz 0kdJQxFDtG9Pu8XEGaGJK1J7o70xb1Put8JbQcQxyfB8xoCF2HHwcc6ZtSY81Gz1dlLi 0NT3Yu9YPoBveiREi2UTbgNI+i5HppnDJEkwgtM78rvXeNO3QNnS1PPtNcOX771Q65F8 I2VOgli5Ek8HVjW+VZgzupLhjIwP8LkaRSshKBGP45KLiWk8QemHn2ICNAGTIvLX1+NN vmm6S4JYIcffLipJpnt8Ri1JE3VYCAtRv4huuOwT47UYyi5ar/cZELQsoMKxXk8Vvqfv TqBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090013; x=1701694813; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=R96wmt+0ynJzffDqptgzqh4jU0VSY12cfqSJiBi8Mw4=; b=F+TNvQhdXIZLOosOmNx8POuLlarB1jWO6XeE4RuIyOqSX+pE2pEMgyZSTfU2ZffL3W fjtNWnhrbNZRpDcaMaNL0/imXl+J+zaaSfJN5XQNqGt9JvRaSFy/RYIcbzWDhl0onEJu iQqs7oNIXNqHg1dpYgNT0cPszvrL3aTBhH9uEEkPftls3/vru8uLUKwsyyzi1Cdav0Lm 6HBgnnijKItJnBgOnxeC6uSNBIVaSomu0AlNCtPw3TCZX54in1Tj3ROIz0zDgBBIqY3G J1+JwAsgb1xUvYeQ+31vkG8i0JQSsroACGBOObChJh0/Pp4J1ZWUzwjvb4nbe1UZyfDX RVLg== X-Gm-Message-State: AOJu0Yyx3+Tym1velL1/X2ymFcI/Tb7o6UePifV6nRujQQ/0H0xMckRw eJtwxLz5uevTmlZKo51sxXUssB9Q7iUrAoTLN2Ldaw== X-Received: by 2002:a05:6512:3117:b0:50a:73a8:ae4f with SMTP id n23-20020a056512311700b0050a73a8ae4fmr6544281lfb.29.1701090013377; Mon, 27 Nov 2023 05:00:13 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.00.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:00:13 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov , Simon Glass Subject: [PATHv11 02/43] net/lwip: add doc/develop/net_lwip.rst Date: Mon, 27 Nov 2023 18:56:45 +0600 Message-Id: <20231127125726.3735-3-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 Add initial documentation of lwIP network IP stack integration to the U-Boot (net_lwip.rst). Signed-off-by: Maxim Uvarov Reviewed-by: Simon Glass Reviewed-by: Ilias Apalodimas Signed-off-by: Maxim Uvarov --- doc/develop/index.rst | 1 + doc/develop/net_lwip.rst | 75 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 doc/develop/net_lwip.rst diff --git a/doc/develop/index.rst b/doc/develop/index.rst index f82e148b10..14951712e4 100644 --- a/doc/develop/index.rst +++ b/doc/develop/index.rst @@ -50,6 +50,7 @@ Implementation spl falcon uefi/index + net_lwip vbe version diff --git a/doc/develop/net_lwip.rst b/doc/develop/net_lwip.rst new file mode 100644 index 0000000000..a77ab60d0f --- /dev/null +++ b/doc/develop/net_lwip.rst @@ -0,0 +1,75 @@ +.. SPDX-License-Identifier: GPL-2.0+ + +lwIP IP stack integration for U-Boot +==================================== + +Intro +----- + +lwIP is a library implementing network protocols, which is commonly used +on embedded devices. + +https://savannah.nongnu.org/projects/lwip/ +lwIP  license: +lwIP is licensed under a BSD-style license: http://lwip.wikia.com/wiki/License. + +Main features include: + +* Protocols: IP, IPv6, ICMP, ND, MLD, UDP, TCP, IGMP, ARP, PPPoS, PPPoE + +* DHCP client, DNS client (incl. mDNS hostname resolver), + AutoIP/APIPA (Zeroconf), SNMP agent (v1, v2c, v3, private MIB support + & MIB compiler) + +* APIs: specialized APIs for enhanced performance, optional Berkeley-alike + socket API + +* Extended features: IP forwarding over multiple network interfaces, TCP + congestion control, RTT estimation and fast recovery/fast retransmit + +* Addon applications: HTTP(S) server, SNTP client, SMTP(S) client, ping, + NetBIOS nameserver, mDNS responder, MQTT client, TFTP server + +U-Boot implementation details +----------------------------- + +1. In general we can build lwIP as a library and link it against U-Boot or + compile it in the U-Boot tree in the same way as other U-Boot files. There + are few reasons why second variant was selected: lwIP is very customizable + with defines for features, memory size, types of allocation, some internal + types and platform specific code. It turned out easier to enable/disable + debug which is also done with defines, and is needed periodically. + +2. lwIP has 2 APIs - raw mode and sequential (as lwIP names it, or socket API + as we name it in Linux). For now only raw API is supported. + +In raw IP mode a callback function for RX path is registered and will be called +when packet is passed to the IP stack and is ready for the application. + +One example is the unmodified working ping example from lwip sources which +registered the callback: + +.. code-block:: c + + ping_pcb = raw_new(IP_PROTO_ICMP); + raw_recv(ping_pcb, ping_recv, NULL); <- ping_recv is app callback. + raw_bind(ping_pcb, IP_ADDR_ANY) + +3.  Input and output + +RX packet path is injected to U-Boot eth_rx() polling loop and TX patch is in +eth_send() accordingly. That way we can leave the driver code unmodified and +consume packets once they are ready. So we do not touch any drivers code and +just eat packets when they are ready. + +U-Boot lwIP Applications +======================== + +.. kernel-doc:: include/net/lwip.h + :internal: + +lwIP API to control polling loop +================================ + +.. kernel-doc:: include/net/ulwip.h + :internal: From patchwork Mon Nov 27 12:56:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747539 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3132254wru; Mon, 27 Nov 2023 05:01:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IFCbmPfCEW2uSz4nB9poitgp5ZEmUNd9BdGRd/9orOQ35tpop4y0DvssM/WUzecOo8uA9Q4 X-Received: by 2002:a17:902:bf02:b0:1cf:ca03:a221 with SMTP id bi2-20020a170902bf0200b001cfca03a221mr3948094plb.24.1701090066286; Mon, 27 Nov 2023 05:01:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090066; cv=none; d=google.com; s=arc-20160816; b=iCb6zLXNq+XqPoGABNc5aYgNAczqsmVo0aqBvFHMkDpq45ztI8Tl5HMYYFKRXQA7Fk oVAxnx1nAaHCnjWXAEES2rVLyVzYXgIZhGodZ9lE4mKePRYlU8hxUXRQHy9MIa/GavpB QcCe0twSaA016YslifyK56j2VvzPoNDcOD0jyD6itZvDNNYCB8xB6OY8LrQNL4LGHpLP q9BqW4qy+PRK/XWD2N6Iui53sd9ynqkCykqz10CLMoZOfThuUTgmTlcRGW2MUHrNqvbC oYHCPD5ewOB4wPuo6xW3WosKTanfHfuJpzoWlF3+bVaWah27LDfY2JDbDfC9ZgMFKnVj ndaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Am6ez1WrIYIpKk0zuBnm3QiH1AVPiHMx/qG6Y41M3wc=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=QxwlprkgYF2sLYQabnBS4sA7Uve4suqx+Tn+WHf3hM99341vqn7V4tVGBMIVgZRk2Y ORe1OSIYdirKe40wNgSjKnfUCpCxaMNUYRwpobNzEbcEgm9rcXU1SEQcqB2Z0HwFkej8 /3hfcZe3S5NrFZF4LS+tvDUx3J/ZiiM2cze98YB3hvpX6DE24N0IJE8Zf8/rd8JDRckv BWXb/Arj9BTcXC8zcArCvzY0re+bqaVJmOsH1KkAD/xVXGMShdfr8ADFhGlTuHVwbevd NE9A9u3bEbCD0lqTB5Tw+zeHA3dro+J/Eq+oxwVYREJBIaW1Q90nVETkkYA2+e4CwwWx 7BhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G0Zbb2Kp; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id n1-20020a1709026a8100b001cf9e863152si7738788plk.642.2023.11.27.05.01.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:01:05 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G0Zbb2Kp; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 21FD58754D; Mon, 27 Nov 2023 14:00:27 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="G0Zbb2Kp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C617187515; Mon, 27 Nov 2023 14:00:22 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8B38587515 for ; Mon, 27 Nov 2023 14:00:16 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-50aab20e828so5951066e87.2 for ; Mon, 27 Nov 2023 05:00:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090015; x=1701694815; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Am6ez1WrIYIpKk0zuBnm3QiH1AVPiHMx/qG6Y41M3wc=; b=G0Zbb2Kpf04px7P33s28ZHSHA2m03wVu0bxQ2ioLnlqSk85i8FZuzMhYoSN3yO1fih GnvpZUzg4BG32jMFqvDj2l3UIhhB45qvfM9buwEIPs4oLrEjS7gcZhywQWQkGxwV4vMy NgPmntfmGForv/Hm1EHCN+NAGi/xpYIfwwmWGb9ItuO1L3pjL1HyTa4L81gzXT03e0Vl YcnrCBxc4uV3a7slYFr0JwHLiJkaqAm0zAPNLr26ecvThscYIy+vGpIGXLpsNO/IMJRA qJMf8RyhCQKXsX7hn8yv9dAN426fUrexqjkbSYdlRRvPli9VuuXNJBiWxQvQvmFvluyc 9PJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090015; x=1701694815; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Am6ez1WrIYIpKk0zuBnm3QiH1AVPiHMx/qG6Y41M3wc=; b=fvGjdrdivaIN3IYSMCdJr6KFPN8C3tGf3m7E4RGSmAS+D00zW/rZvj4z13wlDoTgNU anDK17r4FT+NwPGcQ17joEQkDwANCwPt8WJM+7beAZa7/8pNIJfrVVx0sUiqNDwQioXg LN38ElUwBFEZPbw10BCgJHJWCsq8m6JV0+ip0xVCMXwYdn/195X9NHeuuH9ENBQeQ0Pb eXOwHuvuKDCFhkrqXQnn6LddanPKFy23UWd3eoBRWZVGlMZNEjMDTRa21Gm9nAaxGVs6 me/8bIMFx8pQl170wQSRak6FGfMMO2/avEEN84/s5BmQrZ4Y8w+9ZWd5p9NKGFhMkMDs IImQ== X-Gm-Message-State: AOJu0YztpCApYYJv1uBKe9KoD4FuOoGcB4PycWc5MIYpZg9Wq5Atg9ZU hs3WanmGFAt9nUBDsr1Q47D9IRVslrUTfcoQeQnV0A== X-Received: by 2002:a05:6512:23a7:b0:500:a66b:b189 with SMTP id c39-20020a05651223a700b00500a66bb189mr6721791lfv.51.1701090015615; Mon, 27 Nov 2023 05:00:15 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.00.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:00:15 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 03/43] net/lwip: integrate lwIP library Date: Mon, 27 Nov 2023 18:56:46 +0600 Message-Id: <20231127125726.3735-4-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 Define Makefile and Kconfig to build lwIP inside the U-Boot. We compile lwIP the same as the main code, plus we can do optimization for size at compile time with disabling not needed debug asserts, or not used protocols. So we can tune lwIP configuration specially for U-Boot environments. Signed-off-by: Maxim Uvarov --- net/Kconfig | 3 ++ net/Makefile | 1 + net/lwip/Kconfig | 33 ++++++++++++++++++++++ net/lwip/Makefile | 64 ++++++++++++++++++++++++++++++++++++++++++ net/lwip/lwip-external | 2 +- net/net.c | 44 ++++++++++++++++++++++------- 6 files changed, 136 insertions(+), 11 deletions(-) create mode 100644 net/lwip/Kconfig create mode 100644 net/lwip/Makefile diff --git a/net/Kconfig b/net/Kconfig index 4215889127..34c1e43c87 100644 --- a/net/Kconfig +++ b/net/Kconfig @@ -5,9 +5,12 @@ menuconfig NET bool "Networking support" default y + imply LWIP if NET +source net/lwip/Kconfig + config ARP_TIMEOUT int "Milliseconds before trying ARP again" default 5000 diff --git a/net/Makefile b/net/Makefile index 64ab7ec740..bda6b383b5 100644 --- a/net/Makefile +++ b/net/Makefile @@ -33,6 +33,7 @@ obj-$(CONFIG_CMD_WOL) += wol.o obj-$(CONFIG_PROT_UDP) += udp.o obj-$(CONFIG_PROT_TCP) += tcp.o obj-$(CONFIG_CMD_WGET) += wget.o +obj-$(CONFIG_LWIP) += lwip/ # Disable this warning as it is triggered by: # sprintf(buf, index ? "foo%d" : "foo", index) diff --git a/net/lwip/Kconfig b/net/lwip/Kconfig new file mode 100644 index 0000000000..295261a042 --- /dev/null +++ b/net/lwip/Kconfig @@ -0,0 +1,33 @@ +menu "lwIP" +config LWIP + bool "Support LWIP library" + help + Enable the lwIP library code with + all dependencies (commands are implemented with lwIP + library. This option is automatically enabled if CONFIG_NET=y. + lwIP library (https://git.savannah.nongnu.org/git/lwip.git) provides + network stack and application code for U-Boot commands. + Please see doc/develop/net_lwip.rst for more details. + +menu "LWIP options" + +config LWIP_LIB_DEBUG + bool "enable debug" + default n + help + Enable DEBUG information for IP stack. + File net/lwip/lwipopts.h can be modified + to enable specific debug message like + raw packets or IP debug. + +config LWIP_LIB_NOASSERT + bool "disable asserts" + default y + help + Disabling asserts reduces binary size by 16k. + lwIP assers are useful for testing, but for + the production code we can fight for the size + and reduce it with compile out asserts. +endmenu + +endmenu diff --git a/net/lwip/Makefile b/net/lwip/Makefile new file mode 100644 index 0000000000..3fd5d34564 --- /dev/null +++ b/net/lwip/Makefile @@ -0,0 +1,64 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# (C) Copyright 2023 Linaro Ltd. + +ccflags-y += -I$(srctree)/net/lwip/port/include +ccflags-y += -I$(srctree)/net/lwip/lwip-external/src/include -I$(srctree)/net/lwip + +obj-$(CONFIG_NET) += lwip-external/src/core/init.o \ + lwip-external/src/core/def.o \ + lwip-external/src/core/dns.o \ + lwip-external/src/core/inet_chksum.o \ + lwip-external/src/core/ip.o \ + lwip-external/src/core/mem.o \ + lwip-external/src/core/memp.o \ + lwip-external/src/core/netif.o \ + lwip-external/src/core/pbuf.o \ + lwip-external/src/core/raw.o \ + lwip-external/src/core/stats.o \ + lwip-external/src/core/sys.o \ + lwip-external/src/core/altcp.o \ + lwip-external/src/core/altcp_alloc.o \ + lwip-external/src/core/altcp_tcp.o \ + lwip-external/src/core/tcp.o \ + lwip-external/src/core/tcp_in.o \ + lwip-external/src/core/tcp_out.o \ + lwip-external/src/core/timeouts.o \ + lwip-external/src/core/udp.o + +# IPv4 +obj-$(CONFIG_NET) += lwip-external/src/core/ipv4/acd.o \ + lwip-external/src/core/ipv4/autoip.o \ + lwip-external/src/core/ipv4/dhcp.o \ + lwip-external/src/core/ipv4/etharp.o \ + lwip-external/src/core/ipv4/icmp.o \ + lwip-external/src/core/ipv4/igmp.o \ + lwip-external/src/core/ipv4/ip4_frag.o \ + lwip-external/src/core/ipv4/ip4.o \ + lwip-external/src/core/ipv4/ip4_addr.o +# IPv6 +obj-$(CONFIG_NET) += lwip-external/src/core/ipv6/dhcp6.o \ + lwip-external/src/core/ipv6/ethip6.o \ + lwip-external/src/core/ipv6/icmp6.o \ + lwip-external/src/core/ipv6/inet6.o \ + lwip-external/src/core/ipv6/ip6.o \ + lwip-external/src/core/ipv6/ip6_addr.o \ + lwip-external/src/core/ipv6/ip6_frag.o \ + lwip-external/src/core/ipv6/mld6.o \ + lwip-external/src/core/ipv6/nd6.o +# API +obj-$(CONFIG_NET) += lwip-external/src/api/api_lib.o \ + lwip-external/src/api/api_msg.o \ + lwip-external/src/api/err.o \ + lwip-external/src/api/if_api.o \ + lwip-external/src/api/netbuf.o \ + lwip-external/src/api/netdb.o \ + lwip-external/src/api/netifapi.o \ + lwip-external/src/api/sockets.o \ + lwip-external/src/api/tcpip.o + +# Netdevs +obj-$(CONFIG_NET) += lwip-external/src/netif/ethernet.o + +obj-$(CONFIG_NET) += port/if.o +obj-$(CONFIG_NET) += port/sys-arch.o diff --git a/net/lwip/lwip-external b/net/lwip/lwip-external index 0a0452b2c3..5e3268cf3e 160000 --- a/net/lwip/lwip-external +++ b/net/lwip/lwip-external @@ -1 +1 @@ -Subproject commit 0a0452b2c39bdd91e252aef045c115f88f6ca773 +Subproject commit 5e3268cf3ea16ed4907a55e167fcf7e2b544fb20 diff --git a/net/net.c b/net/net.c index 0fb2d25077..038ccd8933 100644 --- a/net/net.c +++ b/net/net.c @@ -125,6 +125,7 @@ #endif #include "dhcpv6.h" #include "net_rand.h" +#include /** BOOTP EXTENTIONS **/ @@ -393,7 +394,7 @@ static void net_cleanup_loop(void) net_clear_handlers(); } -int net_init(void) +void eth_init_rings(void) { static int first_call = 1; @@ -409,6 +410,17 @@ int net_init(void) net_rx_packets[i] = net_tx_packet + (i + 1) * PKTSIZE_ALIGN; } + /* Only need to setup buffer pointers once. */ + first_call = 0; + } +} + +int net_init(void) +{ + static int first_call = 1; + + eth_init_rings(); + if (first_call) { arp_init(); ndisc_init(); net_clear_handlers(); @@ -453,16 +465,18 @@ int net_loop(enum proto_t protocol) bootstage_mark_name(BOOTSTAGE_ID_ETH_START, "eth_start"); net_init(); - if (eth_is_on_demand_init()) { - eth_halt(); - eth_set_current(); - ret = eth_init(); - if (ret < 0) { + if (!ulwip_active()) { + if (eth_is_on_demand_init()) { eth_halt(); - return ret; + eth_set_current(); + ret = eth_init(); + if (ret < 0) { + eth_halt(); + return ret; + } + } else { + eth_init_state_only(); } - } else { - eth_init_state_only(); } restart: @@ -633,7 +647,7 @@ restart: */ for (;;) { schedule(); - if (arp_timeout_check() > 0) + if (!ulwip_active() && (arp_timeout_check() > 0)) time_start = get_timer(0); if (IS_ENABLED(CONFIG_IPV6)) { @@ -649,6 +663,16 @@ restart: */ eth_rx(); + if (ulwip_active()) { + net_set_state(NETLOOP_CONTINUE); + if (!ulwip_in_loop()) { + if (ulwip_app_get_err()) + net_set_state(NETLOOP_FAIL); + else + net_set_state(NETLOOP_SUCCESS); + goto done; + } + } /* * Abort if ctrl-c was pressed. */ From patchwork Mon Nov 27 12:56:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747540 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3132452wru; Mon, 27 Nov 2023 05:01:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IEammmEd2/ugNgS3G3NfulxaQTS76rUE9h+X2Ot8Ed7KDS2rYAtXZxGFkyd9+/a4vQfehrq X-Received: by 2002:a05:6a00:3996:b0:6c3:75e1:9dcd with SMTP id fi22-20020a056a00399600b006c375e19dcdmr11100956pfb.18.1701090080281; Mon, 27 Nov 2023 05:01:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090080; cv=none; d=google.com; s=arc-20160816; b=RBjtYu+KfQvw2PWxb4Lxlp16RBAYqR6wpgzvQZEwUi4uRZtpDoVMSq6Hv1ZpAivwLc VOe7sLHRDQJ0VBPpWykjHfJ9QY6o+OBRss1pFD9i8YQbOkwlaGV/gC+ax9pX9FuI/TDg MYZUjSTmsz3b8z/xgiZiQWVNTYMPsbUmJFJKdcOSc41qcVYf/imazeLobifOoMizNDBC YrZ3tJ679s2m+VPpWBjPq1d8gTx6kdAhWHAAfog8iKsvpxz6ajLLv+8HXlGDr9hHYlmR 0HHXUgiCaEL4R9TphxHXI1FlIgpy/zcH+iukY9MZY/XX+xLfQwQEcacOKqrMgCDgyT0f /O+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=LUWP4Vp2l/kcF70jt1z+yuWxjmiAQYDKKzCdYrFjBMU=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=bQApTxSjwvU7OVrQr3cIwEsS9vGoA+3X4FD2sQ45x7bVyQXl+e1UBrNVxo4Y/Qa+K9 vBJdU9GLDmcg5FCjZEwbsuwH4bL7BTitwh8D1YBjJ3T0JWAlTsJHwzX0WmCxMycwq68w BvTapXsS47PMMdXj+zjVdRlKVmLf1a+ZLzgtTQ9DmxcgBZjVpswR/TSuwMHL6Lp3x8tM cBA60fCkE87whyxI7ZmB4BpLkjBmXnUCQF27PHiKkEsPau5rETpvGR4upuakX3rzjZRA xicPmAIPnI2p7UldNWBbWtUz6h+LH0poFE8LgxkVkorwJajVH2rMBI4rvrm7WWjYAIzL 4lzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KzoZiYzj; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id bw28-20020a056a02049c00b005b88dfa676esi10181488pgb.158.2023.11.27.05.01.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:01:20 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KzoZiYzj; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5E33D8757D; Mon, 27 Nov 2023 14:00:28 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="KzoZiYzj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 04C728757C; Mon, 27 Nov 2023 14:00:24 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C8FE987569 for ; Mon, 27 Nov 2023 14:00:18 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-50ba71356ddso3382730e87.1 for ; Mon, 27 Nov 2023 05:00:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090018; x=1701694818; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LUWP4Vp2l/kcF70jt1z+yuWxjmiAQYDKKzCdYrFjBMU=; b=KzoZiYzjExJgGljbru+NQWEmeDZyMiFcXdE4AY1SoeuI0u/qv+YNw3F3XEofIfCBUi MDVbSKZru41K/VbN+J9FVBcl5mOxfHo3/B1rHK2SbXuqbFcvHMaSpy0IRpIDPii0HNlt m5oKOIamr5S5JnDdylQD/MMGZgTXkv/P/4voRCf8q0k3rJ8IupDNrTYdaoqbP6avKBbk N4VGR0z3CLyQH+5zxIkEVm4++uO+lcGvwHIMOAGZ1F8bhqOVxPIg1KRg1zFpJrR+LO2k Cuiu98n1wslaX55OHl5xiWRFGte+KanWAyiiZvJWtFwgBx2WdZar39cjmQiXW7ZKU5DL AG1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090018; x=1701694818; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LUWP4Vp2l/kcF70jt1z+yuWxjmiAQYDKKzCdYrFjBMU=; b=mcOcAp+u61J6VaMVVq4aVOS8RqiSlj82jXOOkb0Fvi3L3RR7wlFKO4dnBrhNil/nAZ Kk3YIkZwcnVCceKEj+IiDFC37ZQ+YdVdSkRa9+OIlgoA0/VI5P0VsZUJFT/YPAAVeK2k ZLq3kyzcLxfeO0V9I3ZCvI2uX0Vgm96Fuu6aaJ5xmz+DGSVZrrn93GMTwMSMnukeyRP9 vefYq39SQJHUQzH7wj7gtr0JhrfOBnLQgLDBtuqVAZjPapCnUvcH4u8PG7vDwhpwnMOC HATMm6x8lFFqSqgg5/JALoOl0j1CRWWOLfb1IsPFrmSsknTvF9WB113yq6Jf+YPdw/Tz XTUQ== X-Gm-Message-State: AOJu0Yw6LVL+w7lWhEG7AJbwKr6xlbJiKUmvdBlmdcvel7ywcPQXwO4e UBA86ObQGgeSlyXIwOC+l+JczxN15AC70miDUZQ36A== X-Received: by 2002:a05:6512:b07:b0:4f8:7513:8cac with SMTP id w7-20020a0565120b0700b004f875138cacmr7553451lfu.48.1701090017933; Mon, 27 Nov 2023 05:00:17 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.00.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:00:17 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 04/43] net/lwip: implement dns cmd Date: Mon, 27 Nov 2023 18:56:47 +0600 Message-Id: <20231127125726.3735-5-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 U-Boot recently got support for an alternative network stack using LWIP. Replace dns command with the LWIP variant while keeping the output and error messages identical. Signed-off-by: Maxim Uvarov --- include/net/lwip.h | 19 +++++++++++ net/lwip/Makefile | 2 ++ net/lwip/apps/dns/lwip-dns.c | 63 ++++++++++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 include/net/lwip.h create mode 100644 net/lwip/apps/dns/lwip-dns.c diff --git a/include/net/lwip.h b/include/net/lwip.h new file mode 100644 index 0000000000..ab3db1a214 --- /dev/null +++ b/include/net/lwip.h @@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + +int do_lwip_dns(struct cmd_tbl *cmdtp, int flag, int argc, + char *const argv[]); + +/** + * ulwip_dns() - creates the DNS request to resolve a domain host name + * + * This function creates the DNS request to resolve a domain host name. Function + * can return immediately if previous request was cached or it might require + * entering the polling loop for a request to a remote server. + * + * @name: dns name to resolve + * @varname: (optional) U-Boot variable name to store the result + * Returns: ERR_OK(0) for fetching entry from the cache + * -EINPROGRESS success, can go to the polling loop + * Other value < 0, if error + */ +int ulwip_dns(char *name, char *varname); diff --git a/net/lwip/Makefile b/net/lwip/Makefile index 3fd5d34564..5d8d5527c6 100644 --- a/net/lwip/Makefile +++ b/net/lwip/Makefile @@ -62,3 +62,5 @@ obj-$(CONFIG_NET) += lwip-external/src/netif/ethernet.o obj-$(CONFIG_NET) += port/if.o obj-$(CONFIG_NET) += port/sys-arch.o + +obj-y += apps/dns/lwip-dns.o diff --git a/net/lwip/apps/dns/lwip-dns.c b/net/lwip/apps/dns/lwip-dns.c new file mode 100644 index 0000000000..3ee6e24ef4 --- /dev/null +++ b/net/lwip/apps/dns/lwip-dns.c @@ -0,0 +1,63 @@ +// SPDX-License-Identifier: GPL-2.0 + +/* + * (C) Copyright 2023 Linaro Ltd. + */ + +#include +#include +#include + +#include +#include + +#include + +static void dns_found_cb(const char *name, const ip_addr_t *ipaddr, void *callback_arg) +{ + char *varname = (char *)callback_arg; + char *ipstr = ip4addr_ntoa(ipaddr); + + if (varname) + env_set(varname, ipstr); + log_info("resolved %s to %s\n", name, ipstr); + ulwip_exit(0); +} + +int ulwip_dns(char *name, char *varname) +{ + int err; + ip_addr_t ipaddr; /* not used */ + ip_addr_t dns1; + ip_addr_t dns2; + char *dnsenv = env_get("dnsip"); + char *dns2env = env_get("dnsip2"); + + if (!dnsenv && !dns2env) { + log_err("nameserver is not set with dnsip and dnsip2 vars\n"); + return -ENOENT; + } + + if (!dnsenv) + log_warning("dnsip var is not set\n"); + if (!dns2env) + log_warning("dnsip2 var is not set\n"); + + dns_init(); + + if (ipaddr_aton(dnsenv, &dns1)) + dns_setserver(0, &dns1); + + if (dns2env && ipaddr_aton(dns2env, &dns2)) + dns_setserver(1, &dns2); + + err = dns_gethostbyname(name, &ipaddr, dns_found_cb, varname); + if (err == ERR_OK) + dns_found_cb(name, &ipaddr, varname); + + /* convert lwIP ERR_INPROGRESS to U-Boot -EINPROGRESS */ + if (err == ERR_INPROGRESS) + err = -EINPROGRESS; + + return err; +} From patchwork Mon Nov 27 12:56:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747541 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3132626wru; Mon, 27 Nov 2023 05:01:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IFWG+5gzHbrjy+I4CbaViWuGBmxeEu6CtJJKejshk4mbzk7F1BTHT10WtYvrVZo4YTCLLoM X-Received: by 2002:a5d:6443:0:b0:332:e777:696e with SMTP id d3-20020a5d6443000000b00332e777696emr7556295wrw.64.1701090093658; Mon, 27 Nov 2023 05:01:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090093; cv=none; d=google.com; s=arc-20160816; b=iUsypWkYwwZQ9yNfBUhff6PZTAX8d6DpN5kKxYJxXwK7Jn4n9lSheMz000Oo0/pDOk 7aJFOJpTU3yxNchLC9X6xbp+9dsZPLVLXgj4m36ILbJzd9L1OUbbA17IAU0Cc61DZFkS xYnwinnMOcmm1f/QCyv8W2jUPT7NpcmgdZe94wTqI2+rfMB3ZvmKYmCY2xkTPXvO+ID5 X6TG/4Wh1ztKjTd1smyTtS8zfDKmv6vV4bnq0v1VEqO8iukaeHlKhOdCYCQCQXDCu2WC F6UQfLzy62XjKpzPGRuDO7ek0+/Ax6eab3yia1fJi7mrmNpZUomfk1Z9LBLYAFcc3HzS xfuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7JT5v0igFMxgK43yQbnjgeHYXiWam/yzmig+d+0Kn2s=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=mBGZWxcdc2i8Uy2eqFYvBm7oz0RHmYeF6SZhFliWpE9xBZSJIg6nwPXfpHcZpzSdwx tZYGQ2d3R43C7Xzl8TI00fm+Zk+hoi3Sb/r8kQb+gLA4bXM5wLvDx+532pzyuFT3x86J Hj0VYkhLLBpa65gDNU7kLQvzKrK06LiLTyiRE5oc8NvXYRkAgBc+kReQUdG4z/r2523I p20DwTZBUaxyXjhX5IhHo5jGWYrn0wglkT1UVrWDQz2YUMR28z7kouwcZQ6BgJ61CFUo vje4eiMYwpXMJkqzHXbXfDXJY8AVO01lu4lH9/6d+kSr3F7x3BTIsWN9NeJUOARV6bY5 Ep4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qCOyDr19; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id m23-20020a056000025700b00332c9d7a519si5334127wrz.721.2023.11.27.05.01.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:01:33 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qCOyDr19; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 13C878758C; Mon, 27 Nov 2023 14:00:29 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="qCOyDr19"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 736C187515; Mon, 27 Nov 2023 14:00:26 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DE84287570 for ; Mon, 27 Nov 2023 14:00:20 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-5094727fa67so5972657e87.3 for ; Mon, 27 Nov 2023 05:00:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090020; x=1701694820; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7JT5v0igFMxgK43yQbnjgeHYXiWam/yzmig+d+0Kn2s=; b=qCOyDr19OshgH5oD2/5g7xOVjp87BSAXao68VzQeF7FO+DG7IxX8R/uNkWR8Rn89U6 RenFoGwlMTnbMXyvyxfmSlAJWtwzWCvE2Jl+B83s7cf9xmxOBq5FILloDbNX7Qy3h5C1 xhjhRZxUo448Upf8HKyv4xLteF+IgJTVaGrFdXlHbXACLfWxRuzqozuZGuKZ6YSNkT4h K6Do3Vjsry3+hm+fyItU7eu199h729grUmRoKFsDa5WwmZSif5h4P8EJ/Qz/MDTQn19K vJKmnN9SkzXSj5mK8W6hzls7dAkUtBIcc2K8IjNiQPU4HAqRiw8SGVpCGx9L6nO2w4et tpDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090020; x=1701694820; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7JT5v0igFMxgK43yQbnjgeHYXiWam/yzmig+d+0Kn2s=; b=LuRJUb9RJciKAxzVy7Dej1tykT0PAL1iOKDSrgXnoo5wRKVTxffjYzhLknbZ9uD/xu DU6fgYNSRU3nUjF2sHUpKgJXET1Da4OM9//aHrUYKGbZT7RtzrDXBu7XgmrxmFnp53mx UuQBV2JVxWgcZvh6NmcQoqPEfpxENvsAFamT+CJsMKQs267jiGWa+u2s8vL+lvyzWVCq bjXu0C/imWaU/B5AmqGEcA7bY2COP7IjeYNpHPfsmQTmMRvsOFzqXj3Tj2i3nOTOlkRv yz//0vJwNw5iKIGz5dpPGaB3xqUH9kNHhIfFu4Jfn7hMXNh84MfRa898ucTGV7bQ0bdM L/jw== X-Gm-Message-State: AOJu0YwTAqrYzz7Gp4fhdFii1+4O8Nv9HUI6s/6/bZqyXLPPijw/obtR /3rFXFw3sJr/raP6nksfCLaOycQ9WJdgzAUX+S6g7A== X-Received: by 2002:ac2:532f:0:b0:505:6cc7:e0f7 with SMTP id f15-20020ac2532f000000b005056cc7e0f7mr7457865lfh.44.1701090020061; Mon, 27 Nov 2023 05:00:20 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.00.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:00:19 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 05/43] net/lwip: implement dhcp cmd Date: Mon, 27 Nov 2023 18:56:48 +0600 Message-Id: <20231127125726.3735-6-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 U-Boot recently got support for an alternative network stack using LWIP. Replace dhcp command with the LWIP variant while keeping the output and error messages identical. Signed-off-by: Maxim Uvarov --- include/net/lwip.h | 12 +++++ net/lwip/Makefile | 1 + net/lwip/apps/dhcp/lwip-dhcp.c | 86 ++++++++++++++++++++++++++++++++++ 3 files changed, 99 insertions(+) create mode 100644 net/lwip/apps/dhcp/lwip-dhcp.c diff --git a/include/net/lwip.h b/include/net/lwip.h index ab3db1a214..9941845f8c 100644 --- a/include/net/lwip.h +++ b/include/net/lwip.h @@ -17,3 +17,15 @@ int do_lwip_dns(struct cmd_tbl *cmdtp, int flag, int argc, * Other value < 0, if error */ int ulwip_dns(char *name, char *varname); + +/** + * ulwip_dhcp() - create the DHCP request to obtain IP address. + * + * This function creates the DHCP request to obtain IP address. If DHCP server + * returns file name, this file will be downloaded with tftp. After this + * function you need to invoke the polling loop to process network communication. + * + * Returns: 0 if success + * Other value < 0, if error + **/ +int ulwip_dhcp(void); diff --git a/net/lwip/Makefile b/net/lwip/Makefile index 5d8d5527c6..a3a33b7f71 100644 --- a/net/lwip/Makefile +++ b/net/lwip/Makefile @@ -63,4 +63,5 @@ obj-$(CONFIG_NET) += lwip-external/src/netif/ethernet.o obj-$(CONFIG_NET) += port/if.o obj-$(CONFIG_NET) += port/sys-arch.o +obj-y += apps/dhcp/lwip-dhcp.o obj-y += apps/dns/lwip-dns.o diff --git a/net/lwip/apps/dhcp/lwip-dhcp.c b/net/lwip/apps/dhcp/lwip-dhcp.c new file mode 100644 index 0000000000..966b3991ee --- /dev/null +++ b/net/lwip/apps/dhcp/lwip-dhcp.c @@ -0,0 +1,86 @@ +// SPDX-License-Identifier: GPL-2.0 + +/* + * (C) Copyright 2023 Linaro Ltd. + */ + +#include +#include +#include + +#include +#include +#include "lwip/timeouts.h" + +#include +#include + +#define DHCP_TMO_TIME 1000 /* poll for DHCP state change */ +#define DHCP_TMO_NUM 20 /* number of tries */ + +typedef struct dhcp_priv { + int num_tries; + struct netif *netif; +} dhcp_priv; + +static void dhcp_tmo(void *arg) +{ + struct dhcp_priv *dpriv = (struct dhcp_priv *)arg; + struct netif *netif = dpriv->netif; + struct dhcp *dhcp; + + log_err("%s %d/%d\n", __func__, dpriv->num_tries, DHCP_TMO_NUM); + dhcp = netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP); + if (!dhcp) + return; + + if (dhcp->state == DHCP_STATE_BOUND) { + int err = 0; + + err -= env_set("bootfile", dhcp->boot_file_name); + err -= env_set("ipaddr", ip4addr_ntoa(&dhcp->offered_ip_addr)); + err -= env_set("netmask", ip4addr_ntoa(&dhcp->offered_sn_mask)); + err -= env_set("serverip", ip4addr_ntoa(&dhcp->server_ip_addr)); + if (err) + log_err("error update envs\n"); + log_info("DHCP client bound to address %s\n", ip4addr_ntoa(&dhcp->offered_ip_addr)); + free(dpriv); + ulwip_exit(err); + return; + } + + dpriv->num_tries--; + if (dpriv->num_tries < 0) { + log_err("DHCP client timeout\n"); + free(dpriv); + ulwip_exit(-1); + return; + } + + sys_timeout(DHCP_TMO_TIME, dhcp_tmo, dpriv); +} + +int ulwip_dhcp(void) +{ + struct netif *netif; + int eth_idx; + struct dhcp_priv *dpriv; + + dpriv = malloc(sizeof(struct dhcp_priv)); + if (!dpriv) + return -EPERM; + + eth_idx = eth_get_dev_index(); + if (eth_idx < 0) + return -EPERM; + + netif = netif_get_by_index(eth_idx + 1); + if (!netif) + return -ENOENT; + + dpriv->num_tries = DHCP_TMO_NUM; + dpriv->netif = netif; + sys_timeout(DHCP_TMO_TIME, dhcp_tmo, dpriv); + + return dhcp_start(netif) ? -EPERM : 0; +} From patchwork Mon Nov 27 12:56:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747542 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3132846wru; Mon, 27 Nov 2023 05:01:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IFgRIXMDH2LBY7dIkzt3Sau3rMFjlvykcfPND+bS53rphTb0G0muMsAgb2DGUtrYLtZt1g3 X-Received: by 2002:a05:600c:3595:b0:40b:36e6:7940 with SMTP id p21-20020a05600c359500b0040b36e67940mr8729561wmq.35.1701090108715; Mon, 27 Nov 2023 05:01:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090108; cv=none; d=google.com; s=arc-20160816; b=YD/rsYSosQhEIZHZOkkKGIBFVXdqMK9aF6Bu1sd6Nkc2rq45ya+tEZy+SY2GHimXDQ 98eMVUQN4boROw6nuXbVZeJxrcobSGWmDO7GcxgWN30/SaA7tqhSsdzVorhwrZBKhmzc KFIPG35tiQkaPM//j1rpMk5cLVkbI41ctvUI8FQYn7SEOc/lloohCppRLWTRyazVo2FP bX2GYmxySLJ91rVRwhRozMpaYt+Arr0tblVTNOCEIXTnjswVUC11doeT++6MwncC5hCn ut2euTG6PZTqmHexeCg9S/YVVTX3Nh38yLG9NaVjDPHFRGmlhV/XuyMD38dNyq3h+FD1 2Aqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9fXZ+TfT7jRJ5McRBW6s5c0kyNJ2VbY4wiD3KAsqo7M=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=ANeHBLJF1IE79fGv+V8weknSBSeHahO0T8TrhB7kt6SxTDzrfbNSdx9eYCRCp11T1Q /fBOdRFxrmNTLaIMXi6sGrddbslUIuRdEOc2rhdnrHoQQNkw5TFqCff9OVUaOP8ysv2h e1hYQp6qf/C/lRr3n90KlBxiH91yLDotJ8OtdESmYNA+AAYvdpS77dyqLoBwIB3cybqu OuWsmorfq3It814de1fZFLW9Lz4duzv+dJNQt/LwZ/EsMTY2Xs0pzjpvo7dXT8j/PhJS uIxZigde0DvdPE6CylO6a8Rjx5UUvgQmZPQmQ4agi7KWdNejMFqzS7zc2FdUhM3pLqR9 Lvvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pRma1mKL; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id jg2-20020a05600ca00200b004091a2d62e9si5560542wmb.190.2023.11.27.05.01.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:01:48 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pRma1mKL; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B148587575; Mon, 27 Nov 2023 14:00:33 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="pRma1mKL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B8D8887570; Mon, 27 Nov 2023 14:00:27 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3341E8757A for ; Mon, 27 Nov 2023 14:00:23 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-50aaaf6e58fso6349246e87.2 for ; Mon, 27 Nov 2023 05:00:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090022; x=1701694822; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9fXZ+TfT7jRJ5McRBW6s5c0kyNJ2VbY4wiD3KAsqo7M=; b=pRma1mKLwCsB7egWsXmIr1eZvVjF62KzCgmj403X/g8Jaiqk59AYsApSi8Ua2zMaF5 mv0JmyiJVqhGqKjA3gND4yz3lcXpfwEXhCNLvsKZYK6TN6j0s4GQ/LwrKKRYECH4WlwT u/5lmB0iVcNOhgcEnIPY0i7eji9nUOg9mWXsWYMKitza+V+fl8uMw+5fJfMwN8aanvHG PrwbJ+Jw2MULa2j6byKvEGTDpqml8N5eRUdZXN5++aoEmXpOyED80fzycV4nk4C89ZHV MjoQmdUOndoa7gX7hvjwpECsNgQWVM/enEoHM3zjvxgJh1uoQ4QvCKI+9fu/MbrAUmDr QFSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090022; x=1701694822; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9fXZ+TfT7jRJ5McRBW6s5c0kyNJ2VbY4wiD3KAsqo7M=; b=EyZf4spGtq3PxZBcjAg2PHRkJFxp2TgkZBjhpX1VVTMdnQWrXOTirLpHXiZ2rkg06g PQY9MhlDfVDZ5z9ExNfovbYNJD3j34wtP0bN+H3hEhF5I/YUDU5cxgj4gMxY2+JVRvXM mqsXPQyy8qI0FjFvgDJSLcFp0JVy8OxsWY8+mzTVm/vk6UpnXeYtDWUrKhgeywNT+D4t 9YsgaiEHhi849+C29WcVjPshBuYORCw4JtI0UsYIYDLpvHamByZSsUOXhFcV8UFGCzMi i7Xm2y94shTxNfWvoDjCZAFg9DHsgupETg6/DiC7FBfqj/BUu1J3gpBQurcvfJOjkaHf J74Q== X-Gm-Message-State: AOJu0Yx6fa2dwEd1aPKZf4k3qSNZJB6d2HcngSJtZp4PS205Zh7WBSrd 9Dwk8XR7SScpnM6eL/TZ1y0z+M9g4N+sjOWn6tLEvw== X-Received: by 2002:ac2:5b04:0:b0:50a:aa72:f00d with SMTP id v4-20020ac25b04000000b0050aaa72f00dmr7512928lfn.29.1701090022323; Mon, 27 Nov 2023 05:00:22 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.00.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:00:22 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 06/43] net/lwip: implement tftp cmd Date: Mon, 27 Nov 2023 18:56:49 +0600 Message-Id: <20231127125726.3735-7-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 U-Boot recently got support for an alternative network stack using LWIP. Replace tftp command with the LWIP variant while keeping the output and error messages identical. Signed-off-by: Maxim Uvarov --- include/net/lwip.h | 13 ++++ net/lwip/Makefile | 1 + net/lwip/apps/tftp/Makefile | 7 ++ net/lwip/apps/tftp/lwip-tftp.c | 132 +++++++++++++++++++++++++++++++++ 4 files changed, 153 insertions(+) create mode 100644 net/lwip/apps/tftp/Makefile create mode 100644 net/lwip/apps/tftp/lwip-tftp.c diff --git a/include/net/lwip.h b/include/net/lwip.h index 9941845f8c..f025384c26 100644 --- a/include/net/lwip.h +++ b/include/net/lwip.h @@ -29,3 +29,16 @@ int ulwip_dns(char *name, char *varname); * Other value < 0, if error **/ int ulwip_dhcp(void); + +/** + * ulwip_tftp() - load file with tftp + * + * Load file with tftp to specific address + * + * @addr: Address to store downloaded file + * @filename: File name on remote tftp server to download + * + * + * Returns: 0 if success, !0 if error + */ +int ulwip_tftp(ulong addr, const char *filename); diff --git a/net/lwip/Makefile b/net/lwip/Makefile index a3a33b7f71..b348e5ca31 100644 --- a/net/lwip/Makefile +++ b/net/lwip/Makefile @@ -65,3 +65,4 @@ obj-$(CONFIG_NET) += port/sys-arch.o obj-y += apps/dhcp/lwip-dhcp.o obj-y += apps/dns/lwip-dns.o +obj-y += apps/tftp/ diff --git a/net/lwip/apps/tftp/Makefile b/net/lwip/apps/tftp/Makefile new file mode 100644 index 0000000000..c3ad3c6353 --- /dev/null +++ b/net/lwip/apps/tftp/Makefile @@ -0,0 +1,7 @@ +ccflags-y += -I$(srctree)/net/lwip/port/include +ccflags-y += -I$(srctree)/net/lwip/lwip-external/src/include -I$(srctree)/net/lwip +ccflags-y += -I$(srctree)/net/lwip/lwip-external/src/include/lwip/apps +ccflags-y += -I$(srctree)/net/lwip/lwip-external/contrib/examples/tftp/ + +obj-y += ../../lwip-external/src/apps/tftp/tftp.o +obj-y += lwip-tftp.o diff --git a/net/lwip/apps/tftp/lwip-tftp.c b/net/lwip/apps/tftp/lwip-tftp.c new file mode 100644 index 0000000000..7b384cecf8 --- /dev/null +++ b/net/lwip/apps/tftp/lwip-tftp.c @@ -0,0 +1,132 @@ +// SPDX-License-Identifier: GPL-2.0 + +/* + * (C) Copyright 2023 Linaro Ltd. + */ + +#include +#include +#include +#include + +#include "tftp_client.h" +#include "tftp_server.h" +#include + +#include + +#include + +static ulong daddr; +static ulong size; +static unsigned int progress_print; +#define PROGRESS_PRINT 700 /* about one # per Megabyte */ + +static void *tftp_open(const char *fname, const char *mode, u8_t is_write) +{ + return NULL; +} + +static void tftp_close(void *handle) +{ + log_info("\ndone\n"); + log_info("Bytes transferred = %ld (0x%lx hex)\n", size, size); + + bootstage_mark_name(BOOTSTAGE_KERNELREAD_STOP, "tftp_done"); + if (env_set_hex("filesize", size)) { + log_err("filesize not updated\n"); + ulwip_exit(-1); + return; + } + ulwip_exit(0); +} + +static int tftp_read(void *handle, void *buf, int bytes) +{ + return 0; +} + +static int tftp_write(void *handle, struct pbuf *p) +{ + struct pbuf *q; + + for (q = p; q != NULL; q = q->next) { + memcpy((void *)daddr, q->payload, q->len); + daddr += q->len; + size += q->len; + if (!(progress_print++ % PROGRESS_PRINT)) + log_info("#"); + } + + return 0; +} + +static void tftp_error(void *handle, int err, const char *msg, int size) +{ + char message[100]; + + memset(message, 0, sizeof(message)); + memcpy(message, msg, LWIP_MIN(sizeof(message) - 1, (size_t)size)); + + log_info("TFTP error: %d (%s)", err, message); +} + +static const struct tftp_context tftp = { + tftp_open, + tftp_close, + tftp_read, + tftp_write, + tftp_error +}; + +int ulwip_tftp(ulong addr, char *fname) +{ + void *f = (void *)0x1; /* unused fake file handle*/ + err_t err; + ip_addr_t srv; + int ret; + char *server_ip; + + if (!fname || addr == 0) + return CMD_RET_FAILURE; + + size = 0; + daddr = addr; + server_ip = env_get("serverip"); + if (!server_ip) { + log_err("error: serverip variable has to be set\n"); + return CMD_RET_FAILURE; + } + + ret = ipaddr_aton(server_ip, &srv); + if (!ret) { + log_err("error: ipaddr_aton\n"); + return CMD_RET_FAILURE; + } + + log_info("TFTP from server %s; our IP address is %s\n", + server_ip, env_get("ipaddr")); + log_info("Filename '%s'.\n", fname); + log_info("Load address: 0x%lx\n", daddr); + log_info("Loading:"); + + bootstage_mark_name(BOOTSTAGE_KERNELREAD_START, "tftp_start"); + + err = tftp_init_client(&tftp); + if (!(err == ERR_OK || err == ERR_USE)) + log_err("tftp_init_client err: %d\n", err); + + err = tftp_get(f, &srv, TFTP_PORT, fname, TFTP_MODE_OCTET); + /* might return different errors, like routing problems */ + if (err != ERR_OK) { + log_err("tftp_get err=%d\n", err); + return CMD_RET_FAILURE; + } + + if (env_set_hex("fileaddr", addr)) { + log_err("fileaddr not updated\n"); + return CMD_RET_FAILURE; + } + + return CMD_RET_SUCCESS; +} From patchwork Mon Nov 27 12:56:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747543 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3133001wru; Mon, 27 Nov 2023 05:02:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IH+9Xxp4jpCNZTz35IT+WQmF9g6DTam5UluD0mN+RtOJjbfXMkSkwYWB/kB51FyzmkolX0V X-Received: by 2002:a5d:4804:0:b0:32f:7b89:2675 with SMTP id l4-20020a5d4804000000b0032f7b892675mr8657554wrq.65.1701090122487; Mon, 27 Nov 2023 05:02:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090122; cv=none; d=google.com; s=arc-20160816; b=Be35U5Pp2e/nQQCWDSzPsfgeqxYQpFhKatl393EoiVeOCjsAH6ZmPplqdAMvY0mD9+ /EiLWhhjajpykPH6bgPPgZeajYQXDALIbyjUwHzVz1pdfXQaNvuQI1sQOso3yRsJqvnA KACFROHQI5fZvOi/fA1ElvlSOmIeGdkzhFB3EdcVSV4eAEgQ88Jdm86iz/7GK1M4IDUs xjMn6WIRfo8GpMSNWEdk4giHk9MUfVd7CPFxgral73/rViMVakNsfUug+5R2UjADFLP+ 51AZirxiSPJVI9J/4WiO5QQjTyRnQMoN6o4CXpmAqf3kTvp95KdjsdanZgcdmi5ho+PQ Ss+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2qRP6YcRRm8tIBssE9iVz21S/OfyKc2+IZmXmtAWGrY=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=r1M2yCKLeBlV5PlvW4MQK5aK2jVWAn68yCjyhd5mQzAuHPOwBlg9EEllnBJeP16dyQ KB9dZ0l+r3JkKB0e8sGtSkkpD7ITX9FvVz2oPaoPxpy/c8edfHwTq0Iwvhat3BzWHyE/ Ox+BBnmLVZFCLmfDAx/PaG4qwBPHvfnjBni9Cv5od4JKXoi+Sm6sIBDj0qHdaUrFzC6r ctrRyeIXOIf3BeDRxP037T5H/zVVxc76iT3acd/kdgCB2REJXgi8CWLlqDwjgqHsAVIA Hal9NwPwVc14ntYDjcrBGfiMrWFsHRtAsIlnL8MXy7QeE9WTSltvsPeqew+Ej2eLy5aN fprQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vhpwbF7Q; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id j16-20020a5d5650000000b0032d4835245asi5279078wrw.940.2023.11.27.05.02.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:02:02 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vhpwbF7Q; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4DB7287594; Mon, 27 Nov 2023 14:00:34 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="vhpwbF7Q"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 19C9A87534; Mon, 27 Nov 2023 14:00:29 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A17CA87534 for ; Mon, 27 Nov 2023 14:00:25 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-507962561adso6358750e87.0 for ; Mon, 27 Nov 2023 05:00:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090025; x=1701694825; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2qRP6YcRRm8tIBssE9iVz21S/OfyKc2+IZmXmtAWGrY=; b=vhpwbF7Qn+YvTZzYQMMZArGsFI8eRUBFwiINGyqI9k/A69Gdc/W8+nVF65/OjE+ahI Q6QZd2B2ke//H6lI/iZevGzm2gULwF28qkNfi0uvfJRM2a0cbD1ZzFsxEkUqR9puMvVu ccYbILnic7GTGLvKikFkE24/zfFxBeoWNUMsOcHKHrYVCSoImqmyUPieU2JLXieo9LEg yMrMIBQjC7SGgBFyShUm8fpYjOL1hVmTdkSTKEjuwTF+6WJvRMTBXfgReB2Hl7b+y9y+ aploygZELTso1oe/n2L5ybbA5TQo2WiemUYp89+AOi7Mc1EQ6Sf+hnM97N5bv7xrVlOo aC9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090025; x=1701694825; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2qRP6YcRRm8tIBssE9iVz21S/OfyKc2+IZmXmtAWGrY=; b=q+SSjRfcsJuxB7PccPsl7dlYlqgwPNbTEqXLzjrPTM2UVsmCsaFCBJ1WnWHHVdCMkT iTWDET21A2btSBTXg1lAEzzPnG9/qxbZE7agKoUWvXUhGJWSgrk2D0wqBeLMJKOEeu6r 4hhI/QDNXG/92qbw5hojBcKzygqwmH3/J9aG3xo9LE3IsYULdDJspN9Vx6UJHszC/4Wh QMWYs+YKdbMkzVpCYPPfGnjz44ps+3g50oylFf5x1NfSC/QV9jRTKoZhl3h5DNQx9jOG acn6HyrhMCO/is/Qz/HOnaaHaEewYq8nX/kds1Tw/yUVBXEd4IO77o/guWTsylnHnz0H LPUw== X-Gm-Message-State: AOJu0Yz1RBJz0DzS2wUB8MKktuyQfrRe54oVd+v2UWXjVMJOSLokZ/0s Lvkolv1rkaaSGpho7xQwgxrUJqi43t7qzsT6pY6/pg== X-Received: by 2002:a05:6512:ba6:b0:50b:a88d:79ad with SMTP id b38-20020a0565120ba600b0050ba88d79admr7045097lfv.43.1701090024701; Mon, 27 Nov 2023 05:00:24 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.00.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:00:24 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 07/43] net/lwip: implement wget cmd Date: Mon, 27 Nov 2023 18:56:50 +0600 Message-Id: <20231127125726.3735-8-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 U-Boot recently got support for an alternative network stack using LWIP. Replace wget command with the LWIP variant while keeping the output and error messages identical. Signed-off-by: Maxim Uvarov --- include/net/lwip.h | 14 +++++ net/lwip/Makefile | 1 + net/lwip/apps/http/Makefile | 6 ++ net/lwip/apps/http/lwip-wget.c | 105 +++++++++++++++++++++++++++++++++ 4 files changed, 126 insertions(+) create mode 100644 net/lwip/apps/http/Makefile create mode 100644 net/lwip/apps/http/lwip-wget.c diff --git a/include/net/lwip.h b/include/net/lwip.h index f025384c26..04ffbec006 100644 --- a/include/net/lwip.h +++ b/include/net/lwip.h @@ -42,3 +42,17 @@ int ulwip_dhcp(void); * Returns: 0 if success, !0 if error */ int ulwip_tftp(ulong addr, const char *filename); + +/** + * ulwip_wget() - creates the HTTP request to download file + * + * This function creates the HTTP request to download file from url to the address + * specified in parameters. After this function you need to invoke the polling + * loop to process network communication. + * + * + * @addr: start address to download result + * @url: url in format http://host/url + * Returns: 0 for success, !0 if error + */ +int ulwip_wget(ulong addr, char *url); diff --git a/net/lwip/Makefile b/net/lwip/Makefile index b348e5ca31..61042862e1 100644 --- a/net/lwip/Makefile +++ b/net/lwip/Makefile @@ -66,3 +66,4 @@ obj-$(CONFIG_NET) += port/sys-arch.o obj-y += apps/dhcp/lwip-dhcp.o obj-y += apps/dns/lwip-dns.o obj-y += apps/tftp/ +obj-y += apps/http/ diff --git a/net/lwip/apps/http/Makefile b/net/lwip/apps/http/Makefile new file mode 100644 index 0000000000..ac0b3ede0d --- /dev/null +++ b/net/lwip/apps/http/Makefile @@ -0,0 +1,6 @@ +ccflags-y += -I$(srctree)/net/lwip/port/include +ccflags-y += -I$(srctree)/net/lwip/lwip-external/src/include -I$(srctree)/net/lwip +ccflags-y += -I$(srctree)/net/lwip/lwip-external/src/include/lwip/apps + +obj-$(CONFIG_CMD_WGET) += ../../lwip-external/src/apps/http/http_client.o +obj-$(CONFIG_CMD_WGET) += lwip-wget.o diff --git a/net/lwip/apps/http/lwip-wget.c b/net/lwip/apps/http/lwip-wget.c new file mode 100644 index 0000000000..7a7cc3273d --- /dev/null +++ b/net/lwip/apps/http/lwip-wget.c @@ -0,0 +1,105 @@ +// SPDX-License-Identifier: GPL-2.0 + +/* + * (C) Copyright 2023 Linaro Ltd. + */ + +#include +#include +#include +#include + +#include "http_client.h" +#include + +static ulong daddr; +static httpc_connection_t settings; + +#define SERVER_NAME_SIZE 200 +#define HTTP_PORT_DEFAULT 80 + +static err_t httpc_recv(void *arg, struct altcp_pcb *pcb, struct pbuf *pbuf, + err_t unused_err) +{ + struct pbuf *buf; + + if (!pbuf) + return ERR_BUF; + + for (buf = pbuf; buf != NULL; buf = buf->next) { + memcpy((void *)daddr, buf->payload, buf->len); + log_debug("downloaded chunk size %d, to addr 0x%lx\n", + buf->len, daddr); + daddr += buf->len; + } + + altcp_recved(pcb, pbuf->tot_len); + pbuf_free(pbuf); + return ERR_OK; +} + +static void httpc_result(void *arg, httpc_result_t httpc_result, u32_t rx_content_len, + u32_t srv_res, err_t err) +{ + if (httpc_result == HTTPC_RESULT_OK) { + log_info("\n%d bytes successfully downloaded.\n", rx_content_len); + env_set_hex("filesize", rx_content_len); + ulwip_exit(0); + } else { + log_err("\nhttp eroror: %d\n", httpc_result); + ulwip_exit(-1); + } +} + +/* http://hostname/url */ +static int parse_url(char *url, char *host, u16 *port) +{ + char *p, *pp; + + p = strstr(url, "http://"); + if (!p) + return -ENOENT; + + p += strlen("http://"); + + /* parse hostname */ + pp = strchr(p, '/'); + if (!pp) + return -ENOENT; + + if (p + SERVER_NAME_SIZE <= pp) + return -ENOENT; + + memcpy(host, p, pp - p); + host[pp - p + 1] = '\0'; + *port = HTTP_PORT_DEFAULT; + + return 0; +} + +int ulwip_wget(ulong addr, char *url) +{ + err_t err; + u16 port; + char server_name[SERVER_NAME_SIZE]; + httpc_state_t *connection; + + daddr = addr; + + err = parse_url(url, server_name, &port); + if (err) + return -ENOENT; + + log_info("downloading %s to addr 0x%lx\n", url, addr); + memset(&settings, 0, sizeof(settings)); + settings.result_fn = httpc_result; + err = httpc_get_file_dns(server_name, port, url, &settings, + httpc_recv, NULL, &connection); + if (err != ERR_OK) + return -EPERM; + + if (env_set_hex("fileaddr", addr)) + return -EACCES; + + return 0; +} From patchwork Mon Nov 27 12:56:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747544 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3133311wru; Mon, 27 Nov 2023 05:02:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IGS0yRq+ZJDrwFCRAJCkOAFXkT4p0EHmcpnl5wm1BQ0R4HKIGvLQJODjJ5GvWKwdZsvhqqo X-Received: by 2002:a05:6a20:729c:b0:18c:7b7:8630 with SMTP id o28-20020a056a20729c00b0018c07b78630mr9508201pzk.13.1701090141413; Mon, 27 Nov 2023 05:02:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090141; cv=none; d=google.com; s=arc-20160816; b=eySYuNRH5yH1KLxdvZveSiQptC9Xl8rVMrvfMAh7ie9jnJw5/m0H67yaNelNFngutR u4tlT9ZE5CzU6rZTQPTvAa7bY2Jp8aQI+u7e3BTuzyjuKpjP1+mepHGAfEqYDq0WLTVt LRl3jlnxQIScRZtQVqlfbqGR0fJhmF+v0tNcmpUL5w6ItqzxUjtS0c4EHj286RtZj608 1mgTSx/BCAJO0qqEOIfIBRSHcF518UpOeE8zR2vZQf9hYjO9G9hsSg8CgrSIyZPR1PV1 g5L/vArGeMfb17O3IcBSIKk/O+M7V7dbYph2Y18L86ogQ/5bC917UL5cuW6y06q6pVVZ NfiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=qPJJv7hLfTDO7x5IcfmhD4gQjttshRh+bEWycg4ObL8=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=pwgJNmFU/mR/MrSw1jypxRNQBIooLPV+Ua5oeLuWnk9VuT/6c3m3K1b0Ee8kXY+bmQ KmGKNkOlgfNBLk9e74ExZpXM4rjsre5F6NwRWozmoYKIryehsvk4Gf+CRTfUtasRoII8 o2uZNK3z5aQaOJeSWw3VTJ7dVHl9XDbg10rE+Ec2yLdMZyQMOvW4VEwB02cke28eTA1e AiIxFMPtjAabDYg0zHEE1ulX4jueTOJwGP6kZL24yLIWgdddzXP23dxuzyWdcwoWz39i rEjB8FRc+YYSyc5HN3w/pLs2bw7iIwTqib0v+urHEysKC5lv3aa4HvehzER/eCh1OXSy 4cRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="x/IVGuUq"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a6-20020a63d206000000b005c1cc536134si9849401pgg.546.2023.11.27.05.02.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:02:21 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="x/IVGuUq"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2D1EB8759B; Mon, 27 Nov 2023 14:00:35 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="x/IVGuUq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BB09387578; Mon, 27 Nov 2023 14:00:30 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 69E388757F for ; Mon, 27 Nov 2023 14:00:28 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-507975d34e8so5774535e87.1 for ; Mon, 27 Nov 2023 05:00:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090027; x=1701694827; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qPJJv7hLfTDO7x5IcfmhD4gQjttshRh+bEWycg4ObL8=; b=x/IVGuUqQL2m+o5c9GLzyEPlxXjoh/a9FHEO3rSM/DDK7sX0zjD24Si63edz5UmzLF lYHSRunu7CLQFnKqCuDOSopkmQDmCZu0mIetc78ww2DPgL1CfeZL+yAG3uc+J2fyAa86 eGdyVsco0nhOlyXoSBKHzNXqVy5zBROBFhek6zyG4tzTfBIqKDHhqEE9DEX3dmAo0FsN /uIeNiu5jQ0Bx7xyHOzDCed1tQOUVhuyLvSrOMGyB0+eMqqbI1DHnHWvIsyhJgXPU6Ch lcjSNGVh0U41UvtORDKmTMiMY/mgGPpzpYJOKcQTZQjFClOIbxStx2yUu+PyRTyVk28K gbDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090027; x=1701694827; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qPJJv7hLfTDO7x5IcfmhD4gQjttshRh+bEWycg4ObL8=; b=fvb2Clk/PFpXQIkqoxvt463io11noybSU/WWD/Gm3RFEdJUAeVk4DU2vOYZdAGJcLu IrjLQHLTKJB9RzQkNsUfRUcbAl8BG0ZUlIsbG6aY5pictKJ8+YCngpEvTtGGIbtGiC9i fhiB71E3RnDtQ4h/tuOsb2c4c9u4jZSQPYEdm06OPzrf9dRvj2sumV2NQUq8TSJ7cckD 6lwJhfYWWJSCfec7FdSsZngh1Nsfinjnda8dJbY5iXR5NisBDrgBKgNZ+yrPozK5Jsh+ hzJ92EY9Uy6ba16mJpMxz8YZWEIZ5ToyLlUrarZb7nPYwQCQY/SgDp9bQfJhRS4N6woC 4QfQ== X-Gm-Message-State: AOJu0YwhkXZJu+eoSYXYxmgofnZUN6tdY7P1wgOSBK1EMbTI3KfDhVnq S83JCuyOOV9JMIpuyxiZtADqfImjo/mkG9JPZFRVYA== X-Received: by 2002:a05:6512:b97:b0:502:ff3b:766f with SMTP id b23-20020a0565120b9700b00502ff3b766fmr10137862lfv.6.1701090027000; Mon, 27 Nov 2023 05:00:27 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.00.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:00:26 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 08/43] net/lwip: implement ping cmd Date: Mon, 27 Nov 2023 18:56:51 +0600 Message-Id: <20231127125726.3735-9-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 U-Boot recently got support for an alternative network stack using LWIP. Replace ping command with the LWIP variant while keeping the output and error messages identical. ping uses lwIP contrib/apps/ping/ping.c code. Custom timeout is used to get an error message on not modified example. Signed-off-by: Maxim Uvarov --- Makefile | 3 ++- include/net/lwip.h | 15 +++++++++++++ net/lwip/Makefile | 1 + net/lwip/apps/ping/Makefile | 12 +++++++++++ net/lwip/apps/ping/lwip_ping.c | 39 ++++++++++++++++++++++++++++++++++ net/lwip/apps/ping/lwip_ping.h | 15 +++++++++++++ net/lwip/apps/ping/ping.h | 28 ++++++++++++++++++++++++ 7 files changed, 112 insertions(+), 1 deletion(-) create mode 100644 net/lwip/apps/ping/Makefile create mode 100644 net/lwip/apps/ping/lwip_ping.c create mode 100644 net/lwip/apps/ping/lwip_ping.h create mode 100644 net/lwip/apps/ping/ping.h diff --git a/Makefile b/Makefile index 132a60575a..769111bf09 100644 --- a/Makefile +++ b/Makefile @@ -2171,7 +2171,8 @@ CLEAN_FILES += include/autoconf.mk* include/bmp_logo.h include/bmp_logo_data.h \ mkimage-out.spl.mkimage mkimage.spl.mkimage imx-boot.map \ itb.fit.fit itb.fit.itb itb.map spl.map mkimage-out.rom.mkimage \ mkimage.rom.mkimage mkimage-in-simple-bin* rom.map simple-bin* \ - idbloader-spi.img lib/efi_loader/helloworld_efi.S *.itb + idbloader-spi.img lib/efi_loader/helloworld_efi.S *.itb \ + net/lwip/apps/ping/ping.c # Directories & files removed with 'make mrproper' MRPROPER_DIRS += include/config include/generated spl tpl vpl \ diff --git a/include/net/lwip.h b/include/net/lwip.h index 04ffbec006..c9ea182d5d 100644 --- a/include/net/lwip.h +++ b/include/net/lwip.h @@ -2,6 +2,8 @@ int do_lwip_dns(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]); +int do_lwip_ping(struct cmd_tbl *cmdtp, int flag, int argc, + char *const argv[]); /** * ulwip_dns() - creates the DNS request to resolve a domain host name @@ -56,3 +58,16 @@ int ulwip_tftp(ulong addr, const char *filename); * Returns: 0 for success, !0 if error */ int ulwip_wget(ulong addr, char *url); + +/** + * ulwip_ping - create the ping request + * + * This function creates the ping for address provided in parameters. + * After this function you need to invoke the polling + * loop to process network communication. + * + * + * @ping_addr: IP address to ping + * Returns: 0 for success, !0 if error +*/ +int ulwip_ping(char *ping_addr); diff --git a/net/lwip/Makefile b/net/lwip/Makefile index 61042862e1..5839d125c2 100644 --- a/net/lwip/Makefile +++ b/net/lwip/Makefile @@ -67,3 +67,4 @@ obj-y += apps/dhcp/lwip-dhcp.o obj-y += apps/dns/lwip-dns.o obj-y += apps/tftp/ obj-y += apps/http/ +obj-y += apps/ping/ diff --git a/net/lwip/apps/ping/Makefile b/net/lwip/apps/ping/Makefile new file mode 100644 index 0000000000..e567c0dc3e --- /dev/null +++ b/net/lwip/apps/ping/Makefile @@ -0,0 +1,12 @@ +ccflags-y += -I$(srctree)/net/lwip/port/include +ccflags-y += -I$(srctree)/net/lwip/lwip-external/src/include -I$(srctree)/net/lwip +ccflags-y += -I$(obj) + +# ping.c includes "ping.h", copy it to local directory, to override ping.h +.PHONY: $(obj)/ping.c +$(obj)/ping.o: $(obj)/ping.c +$(obj)/ping.c: + cp $(srctree)/net/lwip/lwip-external/contrib/apps/ping/ping.c $(obj)/ping.c + +obj-y += ping.o +obj-y += lwip_ping.o diff --git a/net/lwip/apps/ping/lwip_ping.c b/net/lwip/apps/ping/lwip_ping.c new file mode 100644 index 0000000000..cdbe8d3eef --- /dev/null +++ b/net/lwip/apps/ping/lwip_ping.c @@ -0,0 +1,39 @@ +// SPDX-License-Identifier: GPL-2.0 + +/* + * (C) Copyright 2023 Linaro Ltd. + */ + +#include "lwip/opt.h" +#include "lwip/ip_addr.h" +#include "lwip/timeouts.h" +#include +#include "ping.h" +#include "lwip_ping.h" + +#define PING_WAIT_MS 5000 + +static ip_addr_t ip_target; + +void ping_tmo(void *arg) +{ + log_err("%s: ping failed; host %s is not alive\n", + __func__, ipaddr_ntoa(&ip_target)); + ulwip_exit(1); +} + +int ulwip_ping(char *ping_addr) +{ + int err; + + err = ipaddr_aton(ping_addr, &ip_target); + if (!err) + return -ENOENT; + + sys_timeout(PING_WAIT_MS, ping_tmo, NULL); + + ping_init(&ip_target); + ping_send_now(); + + return 0; +} diff --git a/net/lwip/apps/ping/lwip_ping.h b/net/lwip/apps/ping/lwip_ping.h new file mode 100644 index 0000000000..0374f07d9e --- /dev/null +++ b/net/lwip/apps/ping/lwip_ping.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ + +/* + * (C) Copyright 2023 Linaro Ltd. + */ + +#ifndef LWIP_PING_H +#define LWIP_PING_H + +#include + +void ping_raw_init(void); +void ping_send_now(void); + +#endif /* LWIP_PING_H */ diff --git a/net/lwip/apps/ping/ping.h b/net/lwip/apps/ping/ping.h new file mode 100644 index 0000000000..dbb4e5f653 --- /dev/null +++ b/net/lwip/apps/ping/ping.h @@ -0,0 +1,28 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + +#include +#include "lwip/ip_addr.h" + +void ping_tmo(void *arg); + +#define LWIP_DEBUG 1 /* ping_time is under ifdef*/ +#define PING_RESULT(cond) { \ + if (cond == 1) { \ + printf("host %s is alive\n", ipaddr_ntoa(addr)); \ + printf(" %"U32_F" ms\n", (sys_now() - ping_time)); \ + raw_remove(pcb); \ + sys_untimeout(ping_tmo, NULL); \ + sys_check_timeouts(); \ + ulwip_exit(0); \ + } else { \ + printf("ping failed; host %s in not alive\n",\ + ipaddr_ntoa(addr)); \ + raw_remove(pcb); \ + sys_untimeout(ping_tmo, NULL); \ + sys_check_timeouts(); \ + ulwip_exit(-1); \ + } \ + } while (0); + +void ping_init(const ip_addr_t *ping_addr); +void ping_stop(void); From patchwork Mon Nov 27 12:56:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747545 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3133495wru; Mon, 27 Nov 2023 05:02:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IEzYHn68cwroGXJu4ZIvwED5lPcjP0dgqCLTr5fVbxr+P8NOBJsBTHyWqaAVYjrp2HSmeVU X-Received: by 2002:a17:90b:38c1:b0:285:adab:2ab2 with SMTP id nn1-20020a17090b38c100b00285adab2ab2mr5730996pjb.1.1701090157063; Mon, 27 Nov 2023 05:02:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090157; cv=none; d=google.com; s=arc-20160816; b=d/JWOWlxywikoUqgS9DOT/TBu0208GAkYoEua12nboJeRLEjlCDnHN3w2dxl1v2VmF Zv6072Gct9z4/IkMRd7+sWeN/LHuQH2Fl48oI7oI4gNNJqAP30QFCxThV2yZJYALoWV2 0JdEYFcfG1bjfIy3n3BGnt+pnU78bU5AT+lsHUipTimJS6RORqmnQxNKTv/62vG9ja9K Lt3cT+2X0RBvjVuiaq9a+JMUxhbodLYTPNON7vnYBKdmHEpJ+eL7sY57Rvz5RMzDwTWS 289dNRuW2fHk10Q7uMcFVE3ER3jEeF0LP9qXQtAcxIFvtrpd5RfOv8kdd3BtV0mcD8g9 mHPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=WNzzTO9A4gGM/m8/mh0dG+0DOn4j7ZyXt/4zJSA/HSg=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=z0vi8bHROZWVZyZcODxuwcxptYRxpk9aekQx8cnuE6d3/Y3grUG++wpar3/7ZcI6y4 OApZ0LYpCG34AyxXYdwHHj1sv4XrLvP2LaPAbtDMP9AvwfL0LFT3fYq4F709btdUooUT 2evEubvSFQ0z2OMJTb2RHCPYsIRrYb7Cf9J2J9te/vtQrEWFKRotCpKhQzsYKf7TvCRD VnoT3Ek84ufJ/XADls3CV9kFB4j2RUoe3rH7cT0i5C2sk6IkWbFMUKz/YzixHp7TATVw oRB/KHuH8zbwgfM4I7gGZBRtMGfiPuYM0xezWv07qxdAzTowrU0gGcIegeqxJMlGNMvc JBZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="AMGr1BJ/"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id y8-20020a17090a86c800b00285b3f6bb59si4121164pjv.73.2023.11.27.05.02.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:02:37 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="AMGr1BJ/"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 438148756C; Mon, 27 Nov 2023 14:00:37 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="AMGr1BJ/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2CFC187515; Mon, 27 Nov 2023 14:00:32 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UPPERCASE_50_75 autolearn=no autolearn_force=no version=3.4.2 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1944D8756C for ; Mon, 27 Nov 2023 14:00:30 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-50943ccbbaeso5758130e87.2 for ; Mon, 27 Nov 2023 05:00:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090029; x=1701694829; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WNzzTO9A4gGM/m8/mh0dG+0DOn4j7ZyXt/4zJSA/HSg=; b=AMGr1BJ/FVIBZgfRQK9yfKfiG5xCJKK0JRhNzNXUIMdm1CbhrQnmh8phgr9IMK4IYh R1qP7IpCyS/4UIa+yYZ+J5yRCx3OXjdfh0rwhoGNYQIEAHoeNh26RHFHuJ7QK8wT0iPb H6FKZY+xPaRELISaElWnwLBtq4JdB8F+zvOUeaQ1W9errA9wsZM9vBchOQd2QQizgRZQ t3iYmUBZazub/XW+Iobg9h61JH+Uh9zAGvlhl/LrpXBUHjA71c6yeXqBAUMIk3A0ZG2Q st55YmNqMwk5hNQ365pxvMfH37LkKJWh0uO7nmNLOFPjlCa5Y3kG04ktE9eHqdejxjKT WyUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090029; x=1701694829; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WNzzTO9A4gGM/m8/mh0dG+0DOn4j7ZyXt/4zJSA/HSg=; b=v+Wry+DN+lvLYyIfElubzoVbjmZLKJ6WuiOdOI/MEzwwVJjHFnxUSxdb4gzQMGl8ar 6G2+b2b+yIabZsEJ4V8kHLpiol124UcG0mxWcDljmFSGXAfKJw+YKMrkzV6Al4Z1aXhk 7/VwyoyxypCl7Hk8FOn6lapUro1EWrGWF+laolPcHEmts6AGINRWY7RVhV1tjqBf2si2 Uv4JFyA/XF1ZwOkenb5jMsY6ej24ybv/GDfL1h4WyrV1ga7QpkXY8O6S7/BOf4D2lIEp OW0DG3XZZ83Jlb/gPdQt0m8DsoqwsSZkoAYyYiDK6dSGPmMnlzt3QW0Onosz9p63DoOc OQtA== X-Gm-Message-State: AOJu0Yz4Cmi5eMS84CJh0kJvJ2H9AK+pj8L4rGTEZMDJTV8ILRG96eVP O8PYlr++Yqms8sC5c0IpynHuAZdsjkU/jHZuFFPB2g== X-Received: by 2002:a05:6512:b03:b0:50a:a5c6:35ea with SMTP id w3-20020a0565120b0300b0050aa5c635eamr10068492lfu.50.1701090029208; Mon, 27 Nov 2023 05:00:29 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.00.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:00:28 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 09/43] net/lwip: add lwIP configuration Date: Mon, 27 Nov 2023 18:56:52 +0600 Message-Id: <20231127125726.3735-10-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 lwip configuration can be tuned with header file. Signed-off-by: Maxim Uvarov --- net/lwip/lwipopts.h | 178 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 178 insertions(+) create mode 100644 net/lwip/lwipopts.h diff --git a/net/lwip/lwipopts.h b/net/lwip/lwipopts.h new file mode 100644 index 0000000000..731da30baa --- /dev/null +++ b/net/lwip/lwipopts.h @@ -0,0 +1,178 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ + +/* + * (C) Copyright 2023 Linaro Ltd. + */ + +#ifndef LWIP_LWIPOPTS_H +#define LWIP_LWIPOPTS_H + +#include "lwipopts.h" + +#if defined(CONFIG_LWIP_LIB_DEBUG) +#define LWIP_DEBUG 1 +#define LWIP_DBG_MIN_LEVEL LWIP_DBG_LEVEL_ALL +#define LWIP_DBG_TYPES_ON LWIP_DBG_ON +#define ETHARP_DEBUG LWIP_DBG_ON +#define NETIF_DEBUG LWIP_DBG_ON +#define PBUF_DEBUG LWIP_DBG_OFF +#define API_LIB_DEBUG LWIP_DBG_ON +#define API_MSG_DEBUG LWIP_DBG_OFF +#define SOCKETS_DEBUG LWIP_DBG_OFF +#define ICMP_DEBUG LWIP_DBG_OFF +#define IGMP_DEBUG LWIP_DBG_OFF +#define INET_DEBUG LWIP_DBG_OFF +#define IP_DEBUG LWIP_DBG_ON +#define IP_REASS_DEBUG LWIP_DBG_OFF +#define RAW_DEBUG LWIP_DBG_OFF +#define MEM_DEBUG LWIP_DBG_OFF +#define MEMP_DEBUG LWIP_DBG_OFF +#define SYS_DEBUG LWIP_DBG_OFF +#define TIMERS_DEBUG LWIP_DBG_ON +#define TCP_DEBUG LWIP_DBG_OFF +#define TCP_INPUT_DEBUG LWIP_DBG_OFF +#define TCP_FR_DEBUG LWIP_DBG_OFF +#define TCP_RTO_DEBUG LWIP_DBG_OFF +#define TCP_CWND_DEBUG LWIP_DBG_OFF +#define TCP_WND_DEBUG LWIP_DBG_OFF +#define TCP_OUTPUT_DEBUG LWIP_DBG_OFF +#define TCP_RST_DEBUG LWIP_DBG_OFF +#define TCP_QLEN_DEBUG LWIP_DBG_OFF +#define UDP_DEBUG LWIP_DBG_OFF +#define TCPIP_DEBUG LWIP_DBG_OFF +#define SLIP_DEBUG LWIP_DBG_OFF +#define DHCP_DEBUG LWIP_DBG_ON +#define AUTOIP_DEBUG LWIP_DBG_ON +#define DNS_DEBUG LWIP_DBG_ON +#define IP6_DEBUG LWIP_DBG_OFF +#define DHCP6_DEBUG LWIP_DBG_OFF +#else +#define LWIP_DBG_MIN_LEVEL LWIP_DBG_LEVEL_ALL +#define LWIP_DBG_TYPES_ON LWIP_DBG_OFF +#define ETHARP_DEBUG LWIP_DBG_OFF +#define NETIF_DEBUG LWIP_DBG_OFF +#define PBUF_DEBUG LWIP_DBG_OFF +#define API_LIB_DEBUG LWIP_DBG_OFF +#define API_MSG_DEBUG LWIP_DBG_OFF +#define SOCKETS_DEBUG LWIP_DBG_OFF +#define ICMP_DEBUG LWIP_DBG_OFF +#define IGMP_DEBUG LWIP_DBG_OFF +#define INET_DEBUG LWIP_DBG_OFF +#define IP_DEBUG LWIP_DBG_OFF +#define IP_REASS_DEBUG LWIP_DBG_OFF +#define RAW_DEBUG LWIP_DBG_OFF +#define MEM_DEBUG LWIP_DBG_OFF +#define MEMP_DEBUG LWIP_DBG_OFF +#define SYS_DEBUG LWIP_DBG_OFF +#define TIMERS_DEBUG LWIP_DBG_OFF +#define TCP_DEBUG LWIP_DBG_OFF +#define TCP_INPUT_DEBUG LWIP_DBG_OFF +#define TCP_FR_DEBUG LWIP_DBG_OFF +#define TCP_RTO_DEBUG LWIP_DBG_OFF +#define TCP_CWND_DEBUG LWIP_DBG_OFF +#define TCP_WND_DEBUG LWIP_DBG_OFF +#define TCP_OUTPUT_DEBUG LWIP_DBG_OFF +#define TCP_RST_DEBUG LWIP_DBG_OFF +#define TCP_QLEN_DEBUG LWIP_DBG_OFF +#define UDP_DEBUG LWIP_DBG_OFF +#define TCPIP_DEBUG LWIP_DBG_OFF +#define SLIP_DEBUG LWIP_DBG_OFF +#define DHCP_DEBUG LWIP_DBG_OFF +#define AUTOIP_DEBUG LWIP_DBG_OFF +#define DNS_DEBUG LWIP_DBG_OFF +#define IP6_DEBUG LWIP_DBG_OFF +#define DHCP6_DEBUG LWIP_DBG_OFF +#endif +#define LWIP_TESTMODE 0 + +#if defined(CONFIG_LWIP_LIB_NOASSERT) +#define LWIP_NOASSERT 1 +#define LWIP_ASSERT(message, assertion) +#endif + +#include "lwip/debug.h" + +#define SYS_LIGHTWEIGHT_PROT 0 +#define NO_SYS 1 + +#define LWIP_IPV6 0 + +#define MEM_ALIGNMENT 1 +#define MEM_SIZE 1600 + +#define MEMP_NUM_PBUF 4 +#define MEMP_NUM_RAW_PCB 2 +#define MEMP_NUM_UDP_PCB 4 +#define MEMP_NUM_TCP_PCB 2 +#define MEMP_NUM_TCP_PCB_LISTEN 2 +#define MEMP_NUM_TCP_SEG 16 +#define MEMP_NUM_REASSDATA 1 +#define MEMP_NUM_ARP_QUEUE 2 +#define MEMP_NUM_SYS_TIMEOUT 4 +#define MEMP_NUM_NETBUF 2 +#define MEMP_NUM_NETCONN 32 +#define MEMP_NUM_TCPIP_MSG_API 8 +#define MEMP_NUM_TCPIP_MSG_INPKT 8 +#define PBUF_POOL_SIZE 8 + +#define LWIP_ARP 1 +#define ARP_TABLE_SIZE 10 +#define ARP_QUEUEING 1 + +#define IP_FORWARD 0 +#define IP_OPTIONS_ALLOWED 1 +#define IP_REASSEMBLY 1 +#define IP_FRAG 1 +#define IP_REASS_MAXAGE 3 +#define IP_REASS_MAX_PBUFS 4 +#define IP_FRAG_USES_STATIC_BUF 0 + +#define IP_DEFAULT_TTL 255 + +#define LWIP_ICMP 1 + +#define LWIP_RAW 1 + +#define LWIP_DHCP 1 +#define LWIP_DHCP_BOOTP_FILE 1 +#define LWIP_DHCP_DOES_ACD_CHECK 0 + +#define LWIP_AUTOIP 0 + +#define LWIP_SNMP 0 + +#define LWIP_IGMP 0 + +#define LWIP_DNS 1 + +#define LWIP_UDP 1 + +#define LWIP_TCP 1 + +#define LWIP_LISTEN_BACKLOG 0 + +#define PBUF_LINK_HLEN 14 +#define PBUF_POOL_BUFSIZE LWIP_MEM_ALIGN_SIZE(TCP_MSS + 40 + PBUF_LINK_HLEN) + +#define LWIP_HAVE_LOOPIF 0 + +#define LWIP_NETCONN 0 +#define LWIP_DISABLE_MEMP_SANITY_CHECKS 1 + +#define LWIP_SOCKET 0 +#define SO_REUSE 0 + +#define LWIP_STATS 0 + +#define PPP_SUPPORT 0 + +#define LWIP_TCPIP_CORE_LOCKING 0 + +#define LWIP_NETIF_LOOPBACK 1 + +/* use malloc instead of pool */ +#define MEMP_MEM_MALLOC 1 +#define MEMP_MEM_INIT 1 +#define MEM_LIBC_MALLOC 1 + +#endif /* LWIP_LWIPOPTS_H */ From patchwork Mon Nov 27 12:56:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747546 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3133684wru; Mon, 27 Nov 2023 05:02:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IH6EKZUVaOxtB1gWovcWzj/AEdfN+6+XrNLvXT2nWzJqgKfYjdcQKGA9VoSlh2g9/yFgrNF X-Received: by 2002:a5d:4c84:0:b0:32f:b407:5b77 with SMTP id z4-20020a5d4c84000000b0032fb4075b77mr7864722wrs.64.1701090168040; Mon, 27 Nov 2023 05:02:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090168; cv=none; d=google.com; s=arc-20160816; b=GksYoIcYqwQNaEBhyiMq/vkkoLvqh6egtdAkrQ/YPOrTRU3H+23hZQIJYlqLHfz77C BicD/d+SLAi1Ns0vv2E5NI3Ndx4vloNVgJd20veyRTB1JjuirU7JSf1RPKS2oMuqEaYj SKy+Z5RgKJMRBUd0DP8kNBPQtOSGLZK2oq5DPB+Nozbpl83KIEgrTkpYPCT/srafDvgW yDh58OHJPPMhonBMtnfh8rD28t0BiUOZkBs+EiT2XaH0PO3ppt6HQorEhak6hDZrnrHa hBMv7ktvSS6M/3+557iknFqMdCPSKS0ERcIdXWdM7g2JZB2GlTLRFh/9+m6/gFHm/seD MiXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=WFhPMt/MmIvRFR8Ozw7h9vmh/ZDYm1mfbwP2T4bUmDI=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=sAilKswjvxau6tMWOy7xwvyY051xEQcsYo2HOiS6n3hrOkReyD9ZeJdum/8RlVsYRy zvWdLg1hF9pX+8AMSKh5/9Mo8SGOG+S1/Q/J3AF3u+MOm+e0W1wn43cXWrO+uTs5RM2s 3jPV8wiWQF4grC51PsGihdMpjORJNTkkp29cLV3ZGejBnqGjAmLi9l04Rnlnrlk9y1X9 fRw8z0MdkolCLhXImHOF1jTxSWjMwqA6xoeIK972Ov42xgLuXiboYaQFUfoWwaBoDg9U 2UAsm2cgSfXWRsI1rjZbBg1PVSWZGRkM3jeuJmSiyBtYzhuW6X1USRdW0XrQ0QE9g6zC oAjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i5DFrayL; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id v14-20020a5d678e000000b003330044f794si1144316wru.695.2023.11.27.05.02.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:02:48 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i5DFrayL; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B9357875A0; Mon, 27 Nov 2023 14:00:42 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="i5DFrayL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 148A0875A1; Mon, 27 Nov 2023 14:00:37 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E29FF87515 for ; Mon, 27 Nov 2023 14:00:32 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-50aaaf6e58fso6349594e87.2 for ; Mon, 27 Nov 2023 05:00:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090032; x=1701694832; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WFhPMt/MmIvRFR8Ozw7h9vmh/ZDYm1mfbwP2T4bUmDI=; b=i5DFrayLdYKrghV0jzTXIN0L30MVTGumPjBB4Q7nzQ06IDZbEaUOkBy2R5PiSuei1L V4NX+MXpDl3tfNfIXOk6xm4okiNKyIcrY6SVVsEl9qvjK893gZgW1uCy/4vjDpKCukQC 86xPqk05WP58monlQUm5w0+r1QsA8lrILnTuil4/KV/0XJbHJvzZ0ryT82Z8+mXo5sUy 3h7O8/cUgmnRToPRrTgDgJuhC9n3tXCsEu6aRBrIkUGrNMbpyGGmzf/hQLGT4bTgIQN2 rC0zJbMBNlxu486YE7rYIwvVe2J7TppdlAsTvb4jjuxz+tOj9ehYXTltI8p8O1q/hR+i 11XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090032; x=1701694832; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WFhPMt/MmIvRFR8Ozw7h9vmh/ZDYm1mfbwP2T4bUmDI=; b=qv7ajnPiDqmEcCU3ZDm6jj1WV1TvigF/DXnyd6UcBO9cj87spDAkO+hTgm49D6r0Pi Ttegs2SlbMgYMKGro2WOocVgLTewpz5UTr2/KcuJzoZYHPnkiIY6PDaNzLHKZvkJgDRW WJ/NRZTPXVeLOTgKmpm+QLFx+UiCCCThMjlckpiadx9GoTQ92XrGX633Ipfdexk22XdT /kFgCkZ0sBxUbtsoDYfh8xBKh/9U3LW83il7YkZTXdNZ1Nn61avHOGlxCzyCnUJN61z4 2NnPwQe5N9hVNqSHdXxWdiCN9qr+4ISbUp7tgy86yylrC7PNcsTUX37zbRPhY/R0Fvql L9Tg== X-Gm-Message-State: AOJu0YwdOqN8NQoR5mooAOVWh0vk16l434bujv/u2rX2pJujgGyzkKC2 MLjDKcOQFXxLDeN6O3s2EmOowtRJ9Ykawd3aiJy0fA== X-Received: by 2002:ac2:5b04:0:b0:50a:aa72:f00d with SMTP id v4-20020ac25b04000000b0050aaa72f00dmr7513424lfn.29.1701090031694; Mon, 27 Nov 2023 05:00:31 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.00.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:00:31 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 10/43] net/lwip: implement lwIP port to U-Boot Date: Mon, 27 Nov 2023 18:56:53 +0600 Message-Id: <20231127125726.3735-11-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 Implement port of lwIP stack to the U-Boot. lwIP is well known full IP stack which provides wide functionality, various examples, API closer to linux userland. Rich debug printing and possibility to run lwIP apps under linux make it easier to develop and debug apps. U-Boot implementation keeps the original file structure widely used for lwIP ports. (i.e. port/if.c port/sys-arch.c). That should allow us to easy port apps to or from U-Boot. Multiply ethernet devices are supported and "ethact" env variable chooses the active device. Having a rich IP stack inside U-Boot will allow us to have such applications as http or https clients. Signed-off-by: Maxim Uvarov --- lib/Kconfig | 2 +- net/eth-uclass.c | 37 ++- net/lwip/Kconfig | 1 + net/lwip/port/if.c | 327 ++++++++++++++++++++++++++ net/lwip/port/include/arch/cc.h | 44 ++++ net/lwip/port/include/arch/sys_arch.h | 10 + net/lwip/port/include/limits.h | 0 net/lwip/port/sys-arch.c | 13 + 8 files changed, 426 insertions(+), 8 deletions(-) create mode 100644 net/lwip/port/if.c create mode 100644 net/lwip/port/include/arch/cc.h create mode 100644 net/lwip/port/include/arch/sys_arch.h create mode 100644 net/lwip/port/include/limits.h create mode 100644 net/lwip/port/sys-arch.c diff --git a/lib/Kconfig b/lib/Kconfig index 19649517a3..915402e843 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -258,7 +258,7 @@ config REGEX choice prompt "Pseudo-random library support type" depends on NET_RANDOM_ETHADDR || RANDOM_UUID || CMD_UUID || \ - RNG_SANDBOX || UT_LIB && AES || FAT_WRITE + RNG_SANDBOX || UT_LIB && AES || FAT_WRITE || LWIP default LIB_RAND help Select the library to provide pseudo-random number generator diff --git a/net/eth-uclass.c b/net/eth-uclass.c index 3d0ec91dfa..f57da423f5 100644 --- a/net/eth-uclass.c +++ b/net/eth-uclass.c @@ -21,6 +21,7 @@ #include #include "eth_internal.h" #include +#include DECLARE_GLOBAL_DATA_PTR; @@ -32,6 +33,7 @@ DECLARE_GLOBAL_DATA_PTR; struct eth_device_priv { enum eth_state_t state; bool running; + ulwip ulwip; }; /** @@ -347,6 +349,13 @@ int eth_init(void) return ret; } +struct ulwip *eth_lwip_priv(struct udevice *current) +{ + struct eth_device_priv *priv = dev_get_uclass_priv(current); + + return &priv->ulwip; +} + void eth_halt(void) { struct udevice *current; @@ -420,8 +429,13 @@ int eth_rx(void) for (i = 0; i < ETH_PACKETS_BATCH_RECV; i++) { ret = eth_get_ops(current)->recv(current, flags, &packet); flags = 0; - if (ret > 0) - net_process_received_packet(packet, ret); + if (ret > 0) { + if (ulwip_active()) + ulwip_poll(packet, ret); + else + net_process_received_packet(packet, ret); + } + if (ret >= 0 && eth_get_ops(current)->free_pkt) eth_get_ops(current)->free_pkt(current, packet, ret); if (ret <= 0) @@ -555,6 +569,7 @@ static int eth_post_probe(struct udevice *dev) struct eth_pdata *pdata = dev_get_plat(dev); unsigned char env_enetaddr[ARP_HLEN]; char *source = "DT"; + int ret; priv->state = ETH_STATE_INIT; priv->running = false; @@ -587,18 +602,26 @@ static int eth_post_probe(struct udevice *dev) /* Override the ROM MAC address */ memcpy(pdata->enetaddr, env_enetaddr, ARP_HLEN); } else if (is_valid_ethaddr(pdata->enetaddr)) { - eth_env_set_enetaddr_by_index("eth", dev_seq(dev), - pdata->enetaddr); + ret = eth_env_set_enetaddr_by_index("eth", dev_seq(dev), + pdata->enetaddr); + if (ret) { + log_err("Error update env for eth%d\n", dev_seq(dev)); + return -EINVAL; + } } else if (is_zero_ethaddr(pdata->enetaddr) || !is_valid_ethaddr(pdata->enetaddr)) { #ifdef CONFIG_NET_RANDOM_ETHADDR net_random_ethaddr(pdata->enetaddr); printf("\nWarning: %s (eth%d) using random MAC address - %pM\n", dev->name, dev_seq(dev), pdata->enetaddr); - eth_env_set_enetaddr_by_index("eth", dev_seq(dev), - pdata->enetaddr); + ret = eth_env_set_enetaddr_by_index("eth", dev_seq(dev), + pdata->enetaddr); + if (ret) { + log_err("Error update env for eth%d\n", dev_seq(dev)); + return -EINVAL; + } #else - printf("\nError: %s No valid MAC address found.\n", + log_err("\nError: %s No valid MAC address found.\n", dev->name); return -EINVAL; #endif diff --git a/net/lwip/Kconfig b/net/lwip/Kconfig index 295261a042..9135dee6b4 100644 --- a/net/lwip/Kconfig +++ b/net/lwip/Kconfig @@ -1,6 +1,7 @@ menu "lwIP" config LWIP bool "Support LWIP library" + select LIB_RAND help Enable the lwIP library code with all dependencies (commands are implemented with lwIP diff --git a/net/lwip/port/if.c b/net/lwip/port/if.c new file mode 100644 index 0000000000..ed15f4a459 --- /dev/null +++ b/net/lwip/port/if.c @@ -0,0 +1,327 @@ +// SPDX-License-Identifier: GPL-2.0 + +/* + * (C) Copyright 2023 Linaro Ltd. + */ + +#include +#include +#include +#include +#include +#include +#include "lwip/debug.h" +#include "lwip/arch.h" +#include "netif/etharp.h" +#include "lwip/stats.h" +#include "lwip/def.h" +#include "lwip/mem.h" +#include "lwip/pbuf.h" +#include "lwip/sys.h" +#include "lwip/netif.h" +#include "lwip/ethip6.h" +#include "lwip/timeouts.h" + +#include "lwip/ip.h" + +/* + * MAC_ADDR_STRLEN: length of mac address string + */ +#define MAC_ADDR_STRLEN 18 + +int ulwip_active(void) +{ + struct udevice *udev; + struct ulwip *ulwip; + + udev = eth_get_dev(); + if (!udev) + return 0; + + ulwip = eth_lwip_priv(udev); + return ulwip->active; +} + +int ulwip_in_loop(void) +{ + struct udevice *udev; + struct ulwip *ulwip; + + udev = eth_get_dev(); + if (!udev) + return 0; + + sys_check_timeouts(); + + ulwip = eth_lwip_priv(udev); + return ulwip->loop; +} + +void ulwip_loop_set(int loop) +{ + struct udevice *udev; + struct ulwip *ulwip; + + udev = eth_get_dev(); + if (!udev) + return; + + ulwip = eth_lwip_priv(udev); + ulwip->loop = loop; +} + +void ulwip_exit(int err) +{ + struct udevice *udev; + struct ulwip *ulwip; + + udev = eth_get_dev(); + if (!udev) + return; + + ulwip = eth_lwip_priv(udev); + ulwip->loop = 0; + ulwip->err = err; +} + +int ulwip_app_get_err(void) +{ + struct udevice *udev; + struct ulwip *ulwip; + + udev = eth_get_dev(); + if (!udev) + return 0; + + ulwip = eth_lwip_priv(udev); + return ulwip->err; +} + +typedef struct { +} ulwip_if_t; + +static struct pbuf *low_level_input(uchar *data, int len) +{ + struct pbuf *p, *q; + + /* We allocate a pbuf chain of pbufs from the pool. */ + p = pbuf_alloc(PBUF_RAW, len, PBUF_POOL); + if (!p) { + LINK_STATS_INC(link.memerr); + LINK_STATS_INC(link.drop); + return NULL; + } + + for (q = p; q != NULL; q = q->next) { + memcpy(q->payload, data, q->len); + data += q->len; + } + + LINK_STATS_INC(link.recv); + + return p; +} + +void ulwip_poll(uchar *in_packet, int len) +{ + struct pbuf *p; + int err; + struct netif *netif; + int eth_idx; + + eth_idx = eth_get_dev_index(); + if (eth_idx < 0) { + log_err("no eth idx\n"); + return; + } + + netif = netif_get_by_index(eth_idx + 1); + if (!netif) { + log_err("!netif\n"); + return; + } + + p = low_level_input(in_packet, len); + if (!p) { + log_err("no mem\n"); + return; + } + + /* ethernet_input always returns ERR_OK */ + err = ethernet_input(p, netif); + if (err) + log_err("ip4_input err %d\n", err); +} + +static int ethernetif_input(struct pbuf *p, struct netif *netif) +{ + return 0; +} + +static err_t low_level_output(struct netif *netif, struct pbuf *p) +{ + int err; + + /* switch dev to active state */ + eth_init_state_only(); + + err = eth_send(p->payload, p->len); + if (err) { + log_err("eth_send error %d\n", err); + return ERR_ABRT; + } + return ERR_OK; +} + +err_t ulwip_if_init(struct netif *netif) +{ + ulwip_if_t *uif; + struct ulwip *ulwip; + + uif = malloc(sizeof(ulwip_if_t)); + if (!uif) { + log_err("uif: out of memory\n"); + return ERR_MEM; + } + netif->state = uif; + +#if defined(CONFIG_LWIP_LIB_DEBUG) + log_info(" MAC: %02X:%02X:%02X:%02X:%02X:%02X\n", + netif->hwaddr[0], netif->hwaddr[1], netif->hwaddr[2], + netif->hwaddr[3], netif->hwaddr[4], netif->hwaddr[5]); + log_info(" NAME: %s\n", netif->name); +#endif +#if LWIP_IPV4 + netif->output = etharp_output; +#endif +#if LWIP_IPV6 + netif->output_ip6 = ethip6_output; +#endif + + netif->linkoutput = low_level_output; + netif->mtu = 1500; + netif->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_LINK_UP; + + ulwip = eth_lwip_priv(eth_get_dev()); + ulwip->init_done = 1; + + return ERR_OK; +} + +int ulwip_init(void) +{ + ip4_addr_t ipaddr, netmask, gw; + struct netif *unetif; + struct ulwip *ulwip; + struct udevice *udev; + int ret; + unsigned char env_enetaddr[ARP_HLEN]; + const struct udevice *dev; + struct uclass *uc; + + eth_set_current(); + + udev = eth_get_dev(); + if (!udev) { + log_err("no active eth device\n"); + return ERR_IF; + } + + ulwip = eth_lwip_priv(udev); + if (ulwip->init_done) { + log_info("init already done for %s\n", udev->name); + ret = eth_init(); + if (ret) + return ERR_IF; + ulwip->active = 1; + return CMD_RET_SUCCESS; + } + + eth_init_rings(); + + ret = eth_init(); + if (ret) { + log_err("eth_init error %d\n", ret); + return ERR_IF; + } + + uclass_id_foreach_dev(UCLASS_ETH, dev, uc) { + char ipstr[IP4ADDR_STRLEN_MAX]; + char maskstr[IP4ADDR_STRLEN_MAX]; + char gwstr[IP4ADDR_STRLEN_MAX]; + char hwstr[MAC_ADDR_STRLEN]; + char *env; + + eth_env_get_enetaddr_by_index("eth", dev_seq(dev), env_enetaddr); + log_info("eth%d: %s %pM %s\n", dev_seq(dev), dev->name, env_enetaddr, + udev == dev ? "active" : ""); + + unetif = malloc(sizeof(struct netif)); + if (!unetif) + return ERR_MEM; + memset(unetif, 0, sizeof(struct netif)); + + ip4_addr_set_zero(&gw); + ip4_addr_set_zero(&ipaddr); + ip4_addr_set_zero(&netmask); + + if (dev_seq(dev) == 0) { + snprintf(ipstr, IP4ADDR_STRLEN_MAX, "ipaddr"); + snprintf(maskstr, IP4ADDR_STRLEN_MAX, "netmask"); + snprintf(gwstr, IP4ADDR_STRLEN_MAX, "gw"); + } else { + snprintf(ipstr, IP4ADDR_STRLEN_MAX, "ipaddr%d", dev_seq(dev)); + snprintf(maskstr, IP4ADDR_STRLEN_MAX, "netmask%d", dev_seq(dev)); + snprintf(gwstr, IP4ADDR_STRLEN_MAX, "gw%d", dev_seq(dev)); + } + snprintf(hwstr, MAC_ADDR_STRLEN, "%pM", env_enetaddr); + snprintf(unetif->name, 2, "%d", dev_seq(dev)); + + string_to_enetaddr(hwstr, unetif->hwaddr); + unetif->hwaddr_len = ETHARP_HWADDR_LEN; + + env = env_get(ipstr); + if (env) + ipaddr_aton(env, &ipaddr); + + env = env_get(maskstr); + if (env) + ipaddr_aton(env, &netmask); + + if (IS_ENABLED(CONFIG_LWIP_LIB_DEBUG)) { + log_info("Starting lwIP\n "); + log_info(" netdev: %s\n", dev->name); + log_info(" IP: %s\n", ip4addr_ntoa(&ipaddr)); + log_info(" GW: %s\n", ip4addr_ntoa(&gw)); + log_info(" mask: %s\n", ip4addr_ntoa(&netmask)); + } + +#if LWIP_IPV6 +#define MAC_FROM_48_BIT 1 + netif_create_ip6_linklocal_address(unetif, MAC_FROM_48_BIT); + log_info(" IPv6: %s\n", ip6addr_ntoa(netif_ip6_addr(unetif, 0))); +#endif /* LWIP_IPV6 */ + + if (!netif_add(unetif, &ipaddr, &netmask, &gw, + unetif, ulwip_if_init, ethernetif_input)) { + log_err("err: netif_add failed!\n"); + free(unetif); + return ERR_IF; + } + + netif_set_up(unetif); + netif_set_link_up(unetif); + } + + if (IS_ENABLED(CONFIG_LWIP_LIB_DEBUG)) { + log_info("Initialized LWIP stack\n"); + } + + ulwip->active = 1; + return CMD_RET_SUCCESS; +} + +/* placeholder, not used now */ +void ulwip_destroy(void) +{ +} diff --git a/net/lwip/port/include/arch/cc.h b/net/lwip/port/include/arch/cc.h new file mode 100644 index 0000000000..74d0a0932a --- /dev/null +++ b/net/lwip/port/include/arch/cc.h @@ -0,0 +1,44 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + +/* + * (C) Copyright 2023 Linaro Ltd. + */ + +#ifndef LWIP_ARCH_CC_H +#define LWIP_ARCH_CC_H + +#include +#include +#include +#include + +#define LWIP_ERRNO_INCLUDE + +#define LWIP_ERRNO_STDINCLUDE 1 +#define LWIP_NO_UNISTD_H 1 +#define LWIP_TIMEVAL_PRIVATE 1 + +#define LWIP_RAND() ((u32_t)rand()) + +/* different handling for unit test, normally not needed */ +#ifdef LWIP_NOASSERT_ON_ERROR +#define LWIP_ERROR(message, expression, handler) do { if (!(expression)) { \ + handler; }} while (0) +#endif + +#define LWIP_DONT_PROVIDE_BYTEORDER_FUNCTIONS + +#define LWIP_PLATFORM_ASSERT(x) do {printf("Assertion \"%s\" failed at line %d in %s\n", \ + x, __LINE__, __FILE__); } while (0) + +#define atoi(str) (int)dectoul(str, NULL) +#define lwip_strnstr(a, b) strnstr(a, b) + +#define LWIP_ERR_T int +#define LWIP_CONST_CAST(target_type, val) ((target_type)((uintptr_t)val)) + +#if defined(CONFIG_SYS_BIG_ENDIAN) +#define BYTE_ORDER BIG_ENDIAN +#endif + +#endif /* LWIP_ARCH_CC_H */ diff --git a/net/lwip/port/include/arch/sys_arch.h b/net/lwip/port/include/arch/sys_arch.h new file mode 100644 index 0000000000..87a3fb66d1 --- /dev/null +++ b/net/lwip/port/include/arch/sys_arch.h @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + +/* + * (C) Copyright 2023 Linaro Ltd. + */ + +#ifndef LWIP_ARCH_SYS_ARCH_H +#define LWIP_ARCH_SYS_ARCH_H + +#endif /* LWIP_ARCH_SYS_ARCH_H */ diff --git a/net/lwip/port/include/limits.h b/net/lwip/port/include/limits.h new file mode 100644 index 0000000000..e69de29bb2 diff --git a/net/lwip/port/sys-arch.c b/net/lwip/port/sys-arch.c new file mode 100644 index 0000000000..68476d16e8 --- /dev/null +++ b/net/lwip/port/sys-arch.c @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0 + +/* + * (C) Copyright 2023 Linaro Ltd. + */ + +#include +#include "lwip/opt.h" + +u32_t sys_now(void) +{ + return get_timer(0); +} From patchwork Mon Nov 27 12:56:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747547 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3133957wru; Mon, 27 Nov 2023 05:03:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IGBXCKL7zxBOZC+ZlkNhm+DrlGyTkKA8VvgnLpDmEZ4Inp6lvqQusrzMEtVvRIxlemvS6UT X-Received: by 2002:a17:902:db11:b0:1cc:4559:ff with SMTP id m17-20020a170902db1100b001cc455900ffmr15395816plx.13.1701090186396; Mon, 27 Nov 2023 05:03:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090186; cv=none; d=google.com; s=arc-20160816; b=lkZT0WUFcMRzqQtnULa/OiLxfXiV9/uKT2Zsb7ZzZ/3ytVoHKZZRdgNITnoB76j1J/ m7dsKtxHIOIBlRQbjKYcsWxrQ8MLao20Igw/yI6Erq3d7q99tJ/JkhCffHrowjdiU4JC EvtJz3jJx6QauK6BLercGo/zG9UvKOl3dbUcl6DReYzeFlVjGJm7wjTRYkZr767tAdoH FVCTX5KJJNHRju3Vez/5EldCH2H1LHcwYPV7RdzwhzgxMmvq6LdKSZCMpIfv9m5OEYZb GBJ19kE/piFT7XlTUwdmI/6gLJgYXoT6HBV4VlB502jYZ7L1oDncCoj5FtsEjDnpVTHX v5Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=EDvrCmEs4AowbUl/thMcgKJCloHgFxRz4FWB3a/1gSQ=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=PKzW0WGqDPJ848GDu+7uZEjYr0weIqmTFqf/3dXlX/eteiEjPcrLcHs2h3liTTHX8u hpi5uHOLlRv9Ck3hoJcgKqb3vAI/Y3OFs+dggFP3Poe08iwcuM8qFFvbXssmoECrrGyO QRQbTleS/FKNGJ1yuOL7fS5mIgkb/TE87hsJro3niEhi6lF8fUy36TH23Q8usyjDerxb ohUMNicceB801B6UBVijNZsGly0rH4wgnDG58uAW+ZHEdqZU8E6x+qX/jgwtO9z98VMu cAYWuJRoEa/IreGpqYgRoLkYfZSAUlrbyuDQ12uvFsP1nHI2Zg9rBkucXkyJPcWz7Shq V8Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vI0rpld+; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id w32-20020a631620000000b005b205bdd324si9777756pgl.697.2023.11.27.05.03.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:03:06 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vI0rpld+; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9DA86875BF; Mon, 27 Nov 2023 14:00:45 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="vI0rpld+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 85C36875BA; Mon, 27 Nov 2023 14:00:39 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4444D875A0 for ; Mon, 27 Nov 2023 14:00:35 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-50ba73196b1so3110570e87.0 for ; Mon, 27 Nov 2023 05:00:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090034; x=1701694834; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=EDvrCmEs4AowbUl/thMcgKJCloHgFxRz4FWB3a/1gSQ=; b=vI0rpld+MQjXUnnRC9os9hScsWTB56MK6GmsbfgTJ/trabyaXBk2xuOUCAZXaR78Ye zS3A600Zg4297Mq3wX/P04gYM0Mf/zwDkqZN+9Csj3rRf/bFLjFJmx3GhTuls5YGGUNY KGO/sV1m+HYWynIKivLgvDCsJypyMgB4KK2lYjXADCAF2lRneDPtP1fvKxYkg8Y9/yPI M/HC2NmjNbUI3cuoGEvHQqoaCzWY7eVZvt0ytaiaqlDhIwHY1i5o40pOqPClYPDCnc0i JH5Lsvix37PiN12jtgWWribpQwmCeonS9NbvbZKXrZuyMQDnjlHPgpf5I1tJAS+s9xFY 4lxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090034; x=1701694834; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EDvrCmEs4AowbUl/thMcgKJCloHgFxRz4FWB3a/1gSQ=; b=UlJHtUtM7eFB8wVWdrZ8qoi7yQpztpgI62pyZ1VDgn89nGAuH+xeD2b7/f5gzKoX8V K+7lAHDvXE7EJP8DdV6FbVLscfhH4u4n4T9gxfBFtgs3UyFRF+Dv7qpI565sa7tpuYaB 1C0IJfW0HngjNtqWUeicpNUDJsMjLjjUF5jpCThPB8MQ6FkJregNXRL99pm7wmxwJe3l SsNk50ULwzJ9ub8tEF6x0rubXsL5jwAArkZmZt79wSLybpXnQQdU4GGwWcVxZ+CeN4n9 DykcHSVUcCg3DGwr7z0FoKv8toL5xWZAj08LpknEvwxpURTxAW0uwnwIs0DWP+IdADLk z5ew== X-Gm-Message-State: AOJu0YwF3v7JVjxazP/k75FBGkUTVmKvJ77s9eWPqY8zeEDd+jqh9KEI BBfGKP8Mm9bL9frsHfm1MN1tXwGhp8lXHJfJuiZzRA== X-Received: by 2002:a05:6512:3044:b0:509:49fc:c261 with SMTP id b4-20020a056512304400b0050949fcc261mr9310940lfb.51.1701090034034; Mon, 27 Nov 2023 05:00:34 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.00.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:00:33 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 11/43] net/lwip: update .gitignore with lwIP Date: Mon, 27 Nov 2023 18:56:54 +0600 Message-Id: <20231127125726.3735-12-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 ignore lwIP library code and reused files from the lwIP. Signed-off-by: Maxim Uvarov --- net/lwip/.gitignore | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 net/lwip/.gitignore diff --git a/net/lwip/.gitignore b/net/lwip/.gitignore new file mode 100644 index 0000000000..7b5dacce90 --- /dev/null +++ b/net/lwip/.gitignore @@ -0,0 +1,8 @@ +lwip-external +apps/ping/ping.c +apps/http/http_client.c +apps/http/http_client.h +apps/tftp/tftp.c +apps/tftp/tftp_client.h +apps/tftp/tftp_common.h +apps/tftp/tftp_example.h From patchwork Mon Nov 27 12:56:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747548 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3134172wru; Mon, 27 Nov 2023 05:03:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IHbCB7F/LJMUCALWEJ0TeiGj1gIvz6Nxfr1c1/0fda+JsoShXjP33+JxHLoLqKoTcbxtyyH X-Received: by 2002:a05:6a00:c94:b0:6cd:8436:dfc with SMTP id a20-20020a056a000c9400b006cd84360dfcmr7863502pfv.12.1701090200656; Mon, 27 Nov 2023 05:03:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090200; cv=none; d=google.com; s=arc-20160816; b=YBWrpHHC2WyP5GbckCXy0+009FMW9MahXp4gKHQtrbB0c6dQWEPETnez6L2vTdGsZb ybjX0MTvRFZDVcT2ogbAjaiAOJvZUra74VlUFFUMZvou0buj7/3jF+zOkAAc+HQUVa90 B03yG2YlpBfkrxhEST2dUMrj0wPY+jdiRQREc7apHs4FPw+7v/6/SgDZcuO1Y5jjPae0 +9oN8tmtFZI0mJFofSoY1GRDU/K9zpVI4p2b7Hel+XQ9UV1TxK/1Y9Zr1gkyev9kcAB8 Euyudo6HK2SEbL9D4gl2kKtnZZtdHtYY0d+MmpTgRUtjjzlGudcSjR4HwRQuwDjUZYhw jn9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=XN+2i4v4HChf7Eh1TzVL8+a/6lpRru38mCzvIWotMmQ=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=YG5tupe56t9t+MdRT7syIN32TPT4H9+403EGZWUIUC9UUIafa69JDsnlAu2q0gE+fV 3LGpOcbCVEGLJXPtR0JzVPE6LHdff711tYK3UZEbbEsfJ1Xn8GtAYPAYB2GBcLigge1O TnBqHpKjIzGgpuB6kmoZcToqw4vmCDV5lmiqXlE8uFMabJHxCrAFZkdiQ0M+hzwxTRXO XUk1uRAnFRXu4Zxxkv9b5e+PHFIjRU5lg7GYJS3Yh6YqfWcukyjmPhttb5T8wCsQPgKi lI5Mi6sWLTjsRoxqBjDc3jFgqoBy0nVXQT7HC4ot+Xo4S3sYQ1CEVtx1KfOxdb8dHdqI IJ/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oKmqpuEt; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id fi37-20020a056a0039a500b006cb69513cc5si10001493pfb.254.2023.11.27.05.03.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:03:20 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oKmqpuEt; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 11640875C9; Mon, 27 Nov 2023 14:00:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="oKmqpuEt"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 418D987570; Mon, 27 Nov 2023 14:00:42 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 08325875C5 for ; Mon, 27 Nov 2023 14:00:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-507ad511315so5788099e87.0 for ; Mon, 27 Nov 2023 05:00:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090036; x=1701694836; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XN+2i4v4HChf7Eh1TzVL8+a/6lpRru38mCzvIWotMmQ=; b=oKmqpuEtVEcI7wDoSPCHtYMCZeg/djEhDVXuxNVVdbhFYfo1j7lfGao+MDnN1aF6SM tH/cfxDVNSauA/61RExHNSB9Yrx3chDIPnJV9rTMJ0m+slenHy1zHKDsrT0EHP57Ud2I bU6oOjqh7vVWnDW8vIFC2UJ8LPwDao49poL5viPNw+B7eIHMNY2D/Kavi/GUUwPtSJ+j m0QqtYRtUOID1sudv/iCBm78j5crsNuatBPSF6OQt2xVGk5YLfamy2vXlX9L6knF4sTP bcBXCpexkI8pu/QPrRjYPpxHSyZSqLip7far/OsR56jLAsG3UAny4mIBpczVrbM3bdQQ l09A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090036; x=1701694836; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XN+2i4v4HChf7Eh1TzVL8+a/6lpRru38mCzvIWotMmQ=; b=Txw+GCAFrybiSjgGcWsd//Ax+iKFgxto1nWqBLIAjomYYXbUvQH5jEALS4+68NcleD Nmsq41D48FzbJccXCtppAUNO2WUEOGBs7TdDlSmFYEQz/VvwnXa5MvsXYcjIfoAmfGtT TkHJpVexGVqY8Y8C2SGAyU271IL0aRvACW4+KmrOgYeRX538AtG2USTuDxEmBGfgVuPd jGHAHA++nomGRopd77Ee+c0Qd7ndaFuPvO0FoIxvWhSCJavYJLrwfXATP2ZJt1o3c1ZX 0Y0TTUW/L+vIb0DbfCqdfmhwaai53r3dXKYtkg70z6BU2+7tKG4VvJP6e4fD/+fk8021 JFIQ== X-Gm-Message-State: AOJu0YzCS0HcrWfrMCWcJkZCLOn5aHxslj3O/WYz+zBqVQP9o5Amnp28 j4EukeTwVzMgOwtu4uNwh9va48u6AYbD2UNpSS1hBA== X-Received: by 2002:a19:a404:0:b0:508:17be:c366 with SMTP id q4-20020a19a404000000b0050817bec366mr7286810lfc.21.1701090036313; Mon, 27 Nov 2023 05:00:36 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.00.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:00:36 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 12/43] net/lwip: connection between cmd and lwip apps Date: Mon, 27 Nov 2023 18:56:55 +0600 Message-Id: <20231127125726.3735-13-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 Use lwip variants of network commands. Signed-off-by: Maxim Uvarov --- cmd/Makefile | 1 + cmd/net-lwip.c | 307 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 308 insertions(+) create mode 100644 cmd/net-lwip.c diff --git a/cmd/Makefile b/cmd/Makefile index 9a6790cc17..1b28b02844 100644 --- a/cmd/Makefile +++ b/cmd/Makefile @@ -128,6 +128,7 @@ endif obj-$(CONFIG_CMD_MUX) += mux.o obj-$(CONFIG_CMD_NAND) += nand.o obj-$(CONFIG_CMD_NET) += net.o +obj-$(CONFIG_CMD_NET) += net-lwip.o obj-$(CONFIG_CMD_NVEDIT_EFI) += nvedit_efi.o obj-$(CONFIG_CMD_ONENAND) += onenand.o obj-$(CONFIG_CMD_OSD) += osd.o diff --git a/cmd/net-lwip.c b/cmd/net-lwip.c new file mode 100644 index 0000000000..37b5005da5 --- /dev/null +++ b/cmd/net-lwip.c @@ -0,0 +1,307 @@ +// SPDX-License-Identifier: GPL-2.0 + +/* + * (C) Copyright 2023 Maxim Uvarov, maxim.uvarov@linaro.org + */ + +#include +#include +#include +#include +#include +#include +#include + +#include "net/lwip.h" +#include "net/ulwip.h" + +static int do_lwip_init(struct cmd_tbl *cmdtp, int flag, int argc, + char *const argv[]) +{ + if (!ulwip_init()) + return CMD_RET_SUCCESS; + return CMD_RET_FAILURE; +} + +#if defined(CONFIG_CMD_DHCP) || defined(CONFIG_CMD_DNS) +static void ulwip_timeout_handler(void) +{ + eth_halt(); + net_set_state(NETLOOP_FAIL); /* we did not get the reply */ + ulwip_loop_set(0); +} +#endif + +#if defined(CONFIG_CMD_DHCP) || defined(CONFIG_CMD_PING) || defined(CONFIG_CMD_DNS) || defined(CONFIG_CMD_WGET) || defined(CONFIG_CMD_TFTPBOOT) +int ulwip_loop(void) +{ + int ret = CMD_RET_FAILURE; + struct udevice *udev; + struct ulwip *ulwip; + + udev = eth_get_dev(); + if (!udev) + return -1; + + ulwip = eth_lwip_priv(udev); + + ulwip_loop_set(1); + if (!net_loop(LWIP)) + ret = CMD_RET_SUCCESS; + ulwip_loop_set(0); + net_loop(LWIP); + ulwip->active = 0; + return ret; +} +#endif + +#if defined(CONFIG_CMD_PING) +int do_lwip_ping(struct cmd_tbl *cmdtp, int flag, int argc, + char *const argv[]) +{ + int ret; + + if (argc < 2) + return CMD_RET_USAGE; + + ret = ulwip_init(); + if (ret) { + log_err("ulwip_init err %d\n", ret); + return CMD_RET_FAILURE; + } + + log_info("Using %s device\n", eth_get_name()); + log_info("pinging addr: %s\n", argv[1]); + + if (ulwip_ping(argv[1])) { + printf("ping init fail\n"); + return CMD_RET_FAILURE; + } + + return ulwip_loop(); +} +#endif /* CONFIG_CMD_PING */ + +#if defined(CONFIG_CMD_WGET) +int do_lwip_wget(struct cmd_tbl *cmdtp, int flag, int argc, + char *const argv[]) +{ + char *url; + int ret; + + if (argc < 2) + return CMD_RET_USAGE; + + url = argv[1]; + + ret = ulwip_init(); + if (ret) { + log_err("ulwip_init err %d\n", ret); + return CMD_RET_FAILURE; + } + + ret = ulwip_wget(image_load_addr, url); + if (ret) { + log_err("lwip_wget err %d\n", ret); + return CMD_RET_FAILURE; + } + + return ulwip_loop(); +} +#endif + +#if defined(CONFIG_CMD_TFTPBOOT) +int do_lwip_tftp(struct cmd_tbl *cmdtp, int flag, int argc, + char *const argv[]) +{ + char *filename; + ulong addr; + char *end; + int ret; + + switch (argc) { + case 1: + filename = env_get("bootfile"); + break; + case 2: + /* + * Only one arg - accept two forms: + * Just load address, or just boot file name. The latter + * form must be written in a format which can not be + * mis-interpreted as a valid number. + */ + addr = hextoul(argv[1], &end); + if (end == (argv[1] + strlen(argv[1]))) { + image_load_addr = addr; + filename = env_get("bootfile"); + } else { + filename = argv[1]; + } + break; + case 3: + image_load_addr = hextoul(argv[1], NULL); + filename = argv[2]; + break; + default: + return CMD_RET_USAGE; + } + + ret = ulwip_init(); + if (ret) { + log_err("ulwip_init err %d\n", ret); + return CMD_RET_FAILURE; + } + + ret = ulwip_tftp(image_load_addr, filename); + if (ret) + return ret; + + return ulwip_loop(); +} +#endif /* CONFIG_CMD_TFTPBOOT */ + +#if defined(CONFIG_CMD_DHCP) +int do_lwip_dhcp(void) +{ + int ret; + char *filename; + + ret = ulwip_init(); + if (ret) { + log_err("ulwip_init err %d\n", ret); + return CMD_RET_FAILURE; + } + + ret = ulwip_dhcp(); + if (ret) + return CMD_RET_FAILURE; + + net_set_timeout_handler(200000UL, ulwip_timeout_handler); + + ret = ulwip_loop(); + if (ret) + return CMD_RET_FAILURE; + + if (IS_ENABLED(CONFIG_CMD_TFTPBOOT)) { + if (!env_get_yesno("autoload")) + return ret; + + filename = env_get("bootfile"); + if (!filename) { + log_notice("no bootfile\n"); + return CMD_RET_SUCCESS; + } + + ret = ulwip_init(); + if (ret) { + log_err("ulwip_init err %d\n", ret); + return CMD_RET_FAILURE; + } + + net_set_timeout_handler(20000UL, ulwip_timeout_handler); + ulwip_tftp(image_load_addr, filename); + + ret = ulwip_loop(); + } + + return ret; +} + +static int _do_lwip_dhcp(struct cmd_tbl *cmdtp, int flag, int argc, + char *const argv[]) +{ + return do_lwip_dhcp(); +} +#endif /* CONFIG_CMD_DHCP */ + +#if defined(CONFIG_CMD_DNS) +int do_lwip_dns(struct cmd_tbl *cmdtp, int flag, int argc, + char *const argv[]) +{ + int ret; + char *name; + char *varname; + + if (argc == 1) + return CMD_RET_USAGE; + + name = argv[1]; + + if (argc == 3) + varname = argv[2]; + else + varname = NULL; + + ret = ulwip_init(); + if (ret) { + log_err("ulwip_init err %d\n", ret); + return CMD_RET_FAILURE; + } + + ret = ulwip_dns(name, varname); + if (ret == 0) + return CMD_RET_SUCCESS; + if (ret != -EINPROGRESS) + return CMD_RET_FAILURE; + + net_set_timeout_handler(1000UL, ulwip_timeout_handler); + + return ulwip_loop(); +} +#endif /* CONFIG_CMD_DNS */ + +static struct cmd_tbl cmds[] = { + U_BOOT_CMD_MKENT(init, 1, 0, do_lwip_init, + "initialize lwip stack", ""), +#if defined(CONFIG_CMD_PING) + U_BOOT_CMD_MKENT(ping, 2, 0, do_lwip_ping, + "send ICMP ECHO_REQUEST to network host", + "pingAddress"), +#endif +#if defined(CONFIG_CMD_WGET) + U_BOOT_CMD_MKENT(wget, 2, 0, do_lwip_wget, "", ""), +#endif +#if defined(CONFIG_CMD_TFTPBOOT) + U_BOOT_CMD_MKENT(tftp, 3, 0, do_lwip_tftp, + "boot image via network using TFTP protocol\n", + "[loadAddress] [[hostIPaddr:]bootfilename]"), +#endif +#if defined(CONFIG_CMD_DHCP) + U_BOOT_CMD_MKENT(dhcp, 1, 0, _do_lwip_dhcp, + "boot image via network using DHCP/TFTP protocol", + ""), +#endif +#if defined(CONFIG_CMD_DNS) + U_BOOT_CMD_MKENT(dns, 3, 0, do_lwip_dns, + "lookup dns name [and store address at variable]", + ""), +#endif +}; + +static int do_ops(struct cmd_tbl *cmdtp, int flag, int argc, + char *const argv[]) +{ + struct cmd_tbl *cp; + + cp = find_cmd_tbl(argv[1], cmds, ARRAY_SIZE(cmds)); + + argc--; + argv++; + + if (cp == NULL || argc > cp->maxargs) + return CMD_RET_USAGE; + if (flag == CMD_FLAG_REPEAT && !cmd_is_repeatable(cp)) + return CMD_RET_SUCCESS; + + return cp->cmd(cmdtp, flag, argc, argv); +} + +U_BOOT_CMD( + lwip, 4, 1, do_ops, + "LWIP sub system", + "init - init LWIP\n" + "ping addr - pingAddress\n" + "wget http://IPadress/url/\n" + "tftp [loadAddress] [[hostIPaddr:]bootfilename]\n" + "dhcp - boot image via network using DHCP/TFTP protocol\n" + ); From patchwork Mon Nov 27 12:56:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747549 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3134422wru; Mon, 27 Nov 2023 05:03:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IHIHWs91kfd64W5mZNTS+rdPQpTsf4hDUAX4V6Nqg67KzXPyUytxnj1qsWwKTAI+cVuY3sS X-Received: by 2002:a05:6a20:4415:b0:187:b16f:e779 with SMTP id ce21-20020a056a20441500b00187b16fe779mr13863967pzb.5.1701090216174; Mon, 27 Nov 2023 05:03:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090216; cv=none; d=google.com; s=arc-20160816; b=HxrznCQS9MWelgt86z8otgH0hSrm/hPDoLQxeDo74RtRMbo+M1d2zJ7kmbyrZ1k1F5 LFi6wIx6aKu8wcjwtT1FH0Skkt2DAphPUt1kO9H3wJ0RmHav3/3/R+kjyq45Y7ohHx7C ymNdiMZYuHiDLvxwsLquNoT1/JdgVRPXJLuYhYOy4XCeOGdElUDW68CoNYsf6a1n7ocE 0xLvF2da3nGoy63TTQXDxj/nAHrN87WrZ4Kxwz4yRcDn450gz3mune03iRBBTVMMIrNv S126let9mi2aXemnu+Tsp7kxbMOjPG12mCgckafovEuPP7dnexsuCdhYmNDpCCd2/OjE R6Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=HXQZA2lweisW6lZDZljhC9dP9YlW/yMvHvEwcbIhoJk=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=RjXs1oRM3bhz2CMqz7TNdP/hpx9xWF4TfS/t6S4bbRsrJ9pvN/+Oa9HqJY7DKbYT9l LFat1rK7odBl/Ok9AeopqRcMC5xqlpjkEboaQPTp8AIg9JiTmb26id5AkgjCcPBhdQ/w y76I3T4oXaVIYLT4YIFppaoQO3uf8LjKIQCR7uu0qOvX6dxnaT9c2o5FiJzabsh2iJCJ 4ZMMEq4G3CrMPvjpHyt1OxAfyb9IQGI2kdnMeXdSjI7xRT3Wqp5QF5Px7H+MhqUKnKcX Ctewjy1u3dbKRPTlfeFG7RIi+oI3QvXOnGDuzDOSBJPKSuTcsf4KmYMbFgwHBqNNtn0I aYuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CT1kDOJn; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id cu8-20020a056a00448800b006cd904df7a2si1728406pfb.112.2023.11.27.05.03.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:03:36 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CT1kDOJn; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7A1F687627; Mon, 27 Nov 2023 14:00:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="CT1kDOJn"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7658D875A1; Mon, 27 Nov 2023 14:00:42 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 979E5875A0 for ; Mon, 27 Nov 2023 14:00:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-507c5249d55so6337783e87.3 for ; Mon, 27 Nov 2023 05:00:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090038; x=1701694838; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HXQZA2lweisW6lZDZljhC9dP9YlW/yMvHvEwcbIhoJk=; b=CT1kDOJnItPrIgkE8FrQcPZfjAyCZOhFTpm+fiKawL8rXZugXezEadsYtHjh9wYWqU xXruUF61V8frpXdIFMvXqj7YZaIST41ktHLGZWJqXyAJKHkmmVVi8cMe/WAOko62csCN Adpc1xA6eLBy2GuyWGMCg/+JYrsfs/Zj/xlPr0AAAGL3dhSJqlfoGgp+o8GiRX8zEG+A hAnRq6RZNN2W7tvtbqix4xXI/rRtmFyAvOLhI5/RFnfKjQiEPEKl78b9YdKwVJTwXOEQ 0LhJxlaHfuNbKvLP95lnZqTXbgFTaUKALYmWq4VFmH2Kugw90NyueTr4dWKiJzCEAvQv fZVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090038; x=1701694838; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HXQZA2lweisW6lZDZljhC9dP9YlW/yMvHvEwcbIhoJk=; b=WhlERiVXXpBzAkHio1Z3bSUYZVu3n/9Zbjrou3xLGJro9oC2ZnnyVCIizLExN61W0x OYmRUJOsyXwfqGLwXlMFpwrsxEygN2Bl5IwWSQtSr0xVOA5fEAIQDBS7DNqgX3xHXBOV cTxXX7/E7DFll3DjQyRlk6W2y9V0k0XXzelvOr76e1+LUBGs73Y9hkpDSX4O5+eYDceb CdsGlB2st/RZ8Zf4DRHM8YxrOwvSHq0F3OcWFbTdhb+hOiorp/DmnM9F5Wpz/kyHSJZj macU4FlXg5nLkmYvZljQerwJpdtttLxwZtgc63UyDfXNkyVlPDlIsNpArmYPDybFtuuw s7XA== X-Gm-Message-State: AOJu0Yx7OFYM3wvtNY2sj3SitThE49EdTr5huJ+N/AFXMjZNDO3nhpYf +Wy2jlcDaIP+a3olwCmYPSu4m/Z0ujVba8C9VW+lDA== X-Received: by 2002:ac2:5596:0:b0:50b:adb7:bad1 with SMTP id v22-20020ac25596000000b0050badb7bad1mr2948018lfg.11.1701090038621; Mon, 27 Nov 2023 05:00:38 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.00.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:00:38 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 13/43] net/lwip: replace original net commands with lwip Date: Mon, 27 Nov 2023 18:56:56 +0600 Message-Id: <20231127125726.3735-14-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 Replace original commands: ping, tftp, dhcp and wget. Signed-off-by: Maxim Uvarov --- boot/bootmeth_efi.c | 18 +++++++--- boot/bootmeth_pxe.c | 21 ++++++----- cmd/net.c | 86 +++++---------------------------------------- cmd/pxe.c | 19 +++++----- include/net.h | 8 +++-- include/net/ulwip.h | 67 +++++++++++++++++++++++++++++++++++ 6 files changed, 116 insertions(+), 103 deletions(-) create mode 100644 include/net/ulwip.h diff --git a/boot/bootmeth_efi.c b/boot/bootmeth_efi.c index ae936c8daa..52399d627c 100644 --- a/boot/bootmeth_efi.c +++ b/boot/bootmeth_efi.c @@ -20,6 +20,8 @@ #include #include #include +#include +#include #include #include @@ -319,9 +321,7 @@ static int distro_efi_try_bootflow_files(struct udevice *dev, static int distro_efi_read_bootflow_net(struct bootflow *bflow) { - char file_addr[17], fname[256]; - char *tftp_argv[] = {"tftp", file_addr, fname, NULL}; - struct cmd_tbl cmdtp = {}; /* dummy */ + char fname[256]; const char *addr_str, *fdt_addr_str; int ret, arch, size; ulong addr, fdt_addr; @@ -368,7 +368,6 @@ static int distro_efi_read_bootflow_net(struct bootflow *bflow) if (!fdt_addr_str) return log_msg_ret("fdt", -EINVAL); fdt_addr = hextoul(fdt_addr_str, NULL); - sprintf(file_addr, "%lx", fdt_addr); /* We only allow the first prefix with PXE */ ret = distro_efi_get_fdt_name(fname, sizeof(fname), 0); @@ -379,7 +378,16 @@ static int distro_efi_read_bootflow_net(struct bootflow *bflow) if (!bflow->fdt_fname) return log_msg_ret("fil", -ENOMEM); - if (!do_tftpb(&cmdtp, 0, 3, tftp_argv)) { + ret = ulwip_init(); + if (ret) + return log_msg_ret("ulwip_init", ret); + + ret = ulwip_tftp(fdt_addr, fname); + if (ret) + return log_msg_ret("ulwip_tftp", ret); + + ret = ulwip_loop(); + if (!ret) { bflow->fdt_size = env_get_hex("filesize", 0); bflow->fdt_addr = fdt_addr; } else { diff --git a/boot/bootmeth_pxe.c b/boot/bootmeth_pxe.c index 8d489a11aa..fc6aabaa18 100644 --- a/boot/bootmeth_pxe.c +++ b/boot/bootmeth_pxe.c @@ -21,6 +21,8 @@ #include #include #include +#include +#include #include static int extlinux_pxe_getfile(struct pxe_context *ctx, const char *file_path, @@ -116,18 +118,21 @@ static int extlinux_pxe_read_file(struct udevice *dev, struct bootflow *bflow, const char *file_path, ulong addr, ulong *sizep) { - char *tftp_argv[] = {"tftp", NULL, NULL, NULL}; - struct pxe_context *ctx = dev_get_priv(dev); - char file_addr[17]; ulong size; int ret; - sprintf(file_addr, "%lx", addr); - tftp_argv[1] = file_addr; - tftp_argv[2] = (void *)file_path; + ret = ulwip_init(); + if (ret) + return log_msg_ret("ulwip_init", ret); + + ret = ulwip_tftp(addr, file_path); + if (ret) + return log_msg_ret("ulwip_tftp", ret); + + ret = ulwip_loop(); + if (ret) + return log_msg_ret("ulwip_loop", ret); - if (do_tftpb(ctx->cmdtp, 0, 3, tftp_argv)) - return -ENOENT; ret = pxe_get_file_size(&size); if (ret) return log_msg_ret("tftp", ret); diff --git a/cmd/net.c b/cmd/net.c index d407d8320a..dc5a114309 100644 --- a/cmd/net.c +++ b/cmd/net.c @@ -22,6 +22,7 @@ #include #include #include +#include static int netboot_common(enum proto_t, struct cmd_tbl *, int, char * const []); @@ -40,19 +41,9 @@ U_BOOT_CMD( #endif #ifdef CONFIG_CMD_TFTPBOOT -int do_tftpb(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) -{ - int ret; - - bootstage_mark_name(BOOTSTAGE_KERNELREAD_START, "tftp_start"); - ret = netboot_common(TFTPGET, cmdtp, argc, argv); - bootstage_mark_name(BOOTSTAGE_KERNELREAD_STOP, "tftp_done"); - return ret; -} - #if IS_ENABLED(CONFIG_IPV6) U_BOOT_CMD( - tftpboot, 4, 1, do_tftpb, + tftpboot, 4, 1, do_lwip_tftp, "boot image via network using TFTP protocol\n" "To use IPv6 add -ipv6 parameter or use IPv6 hostIPaddr framed " "with [] brackets", @@ -60,7 +51,7 @@ U_BOOT_CMD( ); #else U_BOOT_CMD( - tftpboot, 3, 1, do_tftpb, + tftpboot, 3, 1, do_lwip_tftp, "load file via network using TFTP protocol", "[loadAddress] [[hostIPaddr:]bootfilename]" ); @@ -139,7 +130,7 @@ U_BOOT_CMD(dhcp6, 3, 1, do_dhcp6, static int do_dhcp(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { - return netboot_common(DHCP, cmdtp, argc, argv); + return do_lwip_dhcp(); } U_BOOT_CMD( @@ -196,13 +187,11 @@ U_BOOT_CMD( #endif #if defined(CONFIG_CMD_WGET) -static int do_wget(struct cmd_tbl *cmdtp, int flag, int argc, char * const argv[]) -{ - return netboot_common(WGET, cmdtp, argc, argv); -} +int do_lwip_wget(struct cmd_tbl *cmdtp, int flag, int argc, + char *const argv[]); U_BOOT_CMD( - wget, 3, 1, do_wget, + wget, 3, 1, do_lwip_wget, "boot image via network using HTTP protocol", "[loadAddress] [[hostIPaddr:]path and image name]" ); @@ -456,28 +445,8 @@ static int netboot_common(enum proto_t proto, struct cmd_tbl *cmdtp, int argc, } #if defined(CONFIG_CMD_PING) -static int do_ping(struct cmd_tbl *cmdtp, int flag, int argc, - char *const argv[]) -{ - if (argc < 2) - return CMD_RET_USAGE; - - net_ping_ip = string_to_ip(argv[1]); - if (net_ping_ip.s_addr == 0) - return CMD_RET_USAGE; - - if (net_loop(PING) < 0) { - printf("ping failed; host %s is not alive\n", argv[1]); - return CMD_RET_FAILURE; - } - - printf("host %s is alive\n", argv[1]); - - return CMD_RET_SUCCESS; -} - U_BOOT_CMD( - ping, 2, 1, do_ping, + ping, 2, 1, do_lwip_ping, "send ICMP ECHO_REQUEST to network host", "pingAddress" ); @@ -601,45 +570,8 @@ U_BOOT_CMD( #endif #if defined(CONFIG_CMD_DNS) -int do_dns(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) -{ - if (argc == 1) - return CMD_RET_USAGE; - - /* - * We should check for a valid hostname: - * - Each label must be between 1 and 63 characters long - * - the entire hostname has a maximum of 255 characters - * - only the ASCII letters 'a' through 'z' (case-insensitive), - * the digits '0' through '9', and the hyphen - * - cannot begin or end with a hyphen - * - no other symbols, punctuation characters, or blank spaces are - * permitted - * but hey - this is a minimalist implmentation, so only check length - * and let the name server deal with things. - */ - if (strlen(argv[1]) >= 255) { - printf("dns error: hostname too long\n"); - return CMD_RET_FAILURE; - } - - net_dns_resolve = argv[1]; - - if (argc == 3) - net_dns_env_var = argv[2]; - else - net_dns_env_var = NULL; - - if (net_loop(DNS) < 0) { - printf("dns lookup of %s failed, check setup\n", argv[1]); - return CMD_RET_FAILURE; - } - - return CMD_RET_SUCCESS; -} - U_BOOT_CMD( - dns, 3, 1, do_dns, + dns, 3, 1, do_lwip_dns, "lookup the IP of a hostname", "hostname [envvar]" ); diff --git a/cmd/pxe.c b/cmd/pxe.c index 21134eb7a3..8145fbab64 100644 --- a/cmd/pxe.c +++ b/cmd/pxe.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include @@ -29,21 +30,19 @@ const char *pxe_default_paths[] = { static int do_get_tftp(struct pxe_context *ctx, const char *file_path, char *file_addr, ulong *sizep) { - char *tftp_argv[] = {"tftp", NULL, NULL, NULL}; + ulong addr; + char *end; int ret; - int num_args; - tftp_argv[1] = file_addr; - tftp_argv[2] = (void *)file_path; + addr = hextoul(file_addr, &end); + if (ctx->use_ipv6) { - tftp_argv[3] = USE_IP6_CMD_PARAM; - num_args = 4; - } else { - num_args = 3; + /* @todo: check and fix me, here */ } - if (do_tftpb(ctx->cmdtp, 0, num_args, tftp_argv)) - return -ENOENT; + ret = ulwip_tftp(addr, file_path); + if (ret) + return log_msg_ret("tftp", ret); ret = pxe_get_file_size(sizep); if (ret) diff --git a/include/net.h b/include/net.h index e63a946002..ed15064fc1 100644 --- a/include/net.h +++ b/include/net.h @@ -56,8 +56,10 @@ struct in_addr { __be32 s_addr; }; +int do_lwip_dhcp(void); + /** - * do_tftpb - Run the tftpboot command + * do_lwip_tftp - Run the tftpboot command * * @cmdtp: Command information for tftpboot * @flag: Command flags (CMD_FLAG_...) @@ -65,7 +67,7 @@ struct in_addr { * @argv: List of arguments * Return: result (see enum command_ret_t) */ -int do_tftpb(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]); +int do_lwip_tftp(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]); /** * dhcp_run() - Run DHCP on the current ethernet device @@ -516,7 +518,7 @@ extern int net_restart_wrap; /* Tried all network devices */ enum proto_t { BOOTP, RARP, ARP, TFTPGET, DHCP, DHCP6, PING, PING6, DNS, NFS, CDP, NETCONS, SNTP, TFTPSRV, TFTPPUT, LINKLOCAL, FASTBOOT_UDP, FASTBOOT_TCP, - WOL, UDP, NCSI, WGET, RS + WOL, UDP, NCSI, WGET, RS, LWIP }; extern char net_boot_file_name[1024];/* Boot File name */ diff --git a/include/net/ulwip.h b/include/net/ulwip.h new file mode 100644 index 0000000000..1747da8480 --- /dev/null +++ b/include/net/ulwip.h @@ -0,0 +1,67 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + +/** + * ulwip_init() - initialize lwIP network stack + * + * @return 0 if success, !0 if error + */ +int ulwip_init(void); + +/** + * ulwip_active() - check if lwIP network stack was initialized + * + * @return 1 lwip processing, 0 if not + */ +int ulwip_active(void); + +/** + * ulwip_in_loop() - lwIP controls packet net loop + * + * @return 1 lwIP owns packet loop, 0 lwip does not own packet loop + */ +int ulwip_in_loop(void); + +/** + * ulwip_loop_set() - make loop to be used by lwIP + * + * Function is used to make lwIP control network pool. + * + * @loop: 1. Rx packets go to lwIP 2. Rx packets go to the original stack. + */ +void ulwip_loop_set(int loop); + +/** + * ulwip_exit() - exit from lwIP with a return code + * + * Exit from lwIP application back to the U-Boot with specific error code. + * + * @err: Error code to return + */ +void ulwip_exit(int err); + +/** + * ulwip_poll() - polling function to feed lwIP with ethernet packet + * + * Function takes network packet and passes it to lwIP network stack + * + * @in_packet: Pointer to the network packet data + * @len: Length of the network packet + */ +void ulwip_poll(uchar *in_packet, int len); + +/** + * ulwip_app_get_err() - return error code from lwIP application + * + * @return error code + */ +int ulwip_app_get_err(void); + +/** + * ulwip_loop() - enter to packet polling loop + * + * When lwIP application did it's initialization stage, then it needs to enter + * to packet polling loop to grab rx packets. + * + * Returns: 0 if success, !0 if error + */ +int ulwip_loop(void); From patchwork Mon Nov 27 12:56:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747550 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3134565wru; Mon, 27 Nov 2023 05:03:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IFFkJAulN1Qlq5g0F/VlDja+GlLeIgG9vA0q96UsLB1TeBndLuEGX6Z2aSIe0QqipHPsnoC X-Received: by 2002:a05:6a21:1a9:b0:18c:6c2:5369 with SMTP id le41-20020a056a2101a900b0018c06c25369mr11030241pzb.30.1701090229317; Mon, 27 Nov 2023 05:03:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090229; cv=none; d=google.com; s=arc-20160816; b=iBuHyBrsJ7pk0kXGQ0RbEnPmG1v3y1JJBl7xrPeLkCYnK8Uh7spAm7UChuXWjG5IF4 E6JtlQ9HTMCuYa81GSJulDmXe+vBqy6O1tBPO4mR/SRNgAvoWMgVHGPFfiEGzHBxwyFX Ts/7AF/alMwjDsbwXAJKGNg4tk0iFlwSwMNXMddXs+2TWoKP6pnABN15/nSI7zIu8D4x gJYQI+2QCliI/l/PqmpWi/BukzncSjp5E7l/YMSqdjn8Ixchdh2T9oAMmTMA4t10aQe/ GYwR15EKxfMNGR6CL5LD7fIfuaw3QehD4PTKJ+nWJ0evHinzddAUVEySC4tAZ1S1y2iZ bHyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=UVa+z8ZgfXxQSDWa2Nvtk/JjyLX2HbFM1q8u36pxb0w=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=NsGnYqdxvR3+G204phS21kMo/7EaKuu9k8z5cYOhDn4bMic5+LpRGjMpvyKXh9P/AK R6b5QJ67jg+89z3XGZ1PWggAyAFoxAodwH75ssliuBJCvW2VQPN+23FTPRlDcNCb59ZC 6hRBC3cfpI145s5F7NjXSHArgCsxfWKWO/nuvmxeXGeClmx6sy0cOB81vUk439aEuQ8h dQLgQhmIAcGSraH4LhVSGRNWY/ccNoqxOnX44C+O/lyZVdrEYvxcU/E9n2oLnPTvfRJh L1yUsHsj27EgJMnyCWXLFKBpYgM0D4ySmIc/9oQPVWQZVoNNwmfaGhOd+C+/xcNhmzAm JdKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QqDGZvd5; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id ca32-20020a056a0206a000b005be3685c1ccsi10953833pgb.567.2023.11.27.05.03.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:03:49 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QqDGZvd5; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F1A98875C8; Mon, 27 Nov 2023 14:00:50 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="QqDGZvd5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 87216875FC; Mon, 27 Nov 2023 14:00:46 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id EBEDE875DF for ; Mon, 27 Nov 2023 14:00:43 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-50aabfa1b75so5882210e87.3 for ; Mon, 27 Nov 2023 05:00:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090042; x=1701694842; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=UVa+z8ZgfXxQSDWa2Nvtk/JjyLX2HbFM1q8u36pxb0w=; b=QqDGZvd5sK1JjZ9lyUU8/DgaanrMNQ9LHHPGodqXrarsq4AHKEdoExEJAqmUDT+5Cv tkBVFiq8MxvugBAWhM8YGgHWPZZQ2eD5S0DGerGZW1UoBrcwYKHHO5G18coagI7FPtzy Jke2WdM7s7LeQdSngqvbawTFJkJB0IZGXAX8taJkNlvU8gX8UCTPTdJb2mPMI3zHBPJ5 MKXoiug8urO0Rb9nXsaKcXrn81byoDHRYaIQQrrxc4r8gg748z5P8RaVBQMPnzv+nzpz fUkvbFh0/x+kbW1ALlGfAILgvPldIt1hfp39KEp/IPV66cG02UR+KeckRbiprGX40VO/ N37Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090042; x=1701694842; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UVa+z8ZgfXxQSDWa2Nvtk/JjyLX2HbFM1q8u36pxb0w=; b=FsjnGaMRPProCPd7r+vCaMc2J31lz4q25u2jANY1S+u++5kCTp3Rs8+NvzhNqW/b/T dHWxuSQCKf/ndXKKUeqIuAwuB7BilOb2zbiwPvmyUi6LZVWDTYTQVlkjMHTj0rU0N6Ec CGlzRwMqS0qCxcCznWkcfzlo7titJlWtdvjKWDGdmBWEpQQMSz0yfszrEi1+vvzqWYop jcAmOqz+N2hzUsjjAxzvBXWOyWhy3MDnIraMWafR3HJ5xOi8UvGi92pjgb12yOqxGVIE 4CswoG4Op27T/VNtIexz7rU+pxTRTFcHV8YL/gKlaprmHpS9bnLMsuAT7v37sf/wZ+cE FIVQ== X-Gm-Message-State: AOJu0YzPFDGrTw2zSIVCxBpPN6pXyiaOqQgI1exn73yFBCuHpDrnoHTT X/ROkWDMM5nMy6so6OAw9QW/2Ny0kiZJfGlHI8I3Ww== X-Received: by 2002:a19:7b02:0:b0:509:1067:c20d with SMTP id w2-20020a197b02000000b005091067c20dmr6225742lfc.39.1701090040965; Mon, 27 Nov 2023 05:00:40 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.00.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:00:40 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 14/43] net/lwip: split net.h to net.h, arp.h and eth.h Date: Mon, 27 Nov 2023 18:56:57 +0600 Message-Id: <20231127125726.3735-15-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 current net.h has ethernet and protocol definitions. Protocol definitions overlap with lwIP protocol definitions and net.h can not be included from lwIP code. Splitting on logical blocks makes that work. Signed-off-by: Maxim Uvarov --- include/net.h | 189 +------------------------------------------- include/net/arp.h | 9 +++ include/net/eth.h | 194 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 207 insertions(+), 185 deletions(-) create mode 100644 include/net/arp.h create mode 100644 include/net/eth.h diff --git a/include/net.h b/include/net.h index ed15064fc1..8efc4d7f3e 100644 --- a/include/net.h +++ b/include/net.h @@ -21,6 +21,7 @@ #include #include #include +#include struct bd_info; struct cmd_tbl; @@ -32,25 +33,6 @@ struct udevice; #define DEBUG_INT_STATE 0 /* Internal network state changes */ #define DEBUG_NET_PKT_TRACE 0 /* Trace all packet data */ -/* - * The number of receive packet buffers, and the required packet buffer - * alignment in memory. - * - */ -#define PKTBUFSRX CONFIG_SYS_RX_ETH_BUFFER -#define PKTALIGN ARCH_DMA_MINALIGN - -/* Number of packets processed together */ -#define ETH_PACKETS_BATCH_RECV 32 - -/* ARP hardware address length */ -#define ARP_HLEN 6 -/* - * The size of a MAC address in string form, each digit requires two chars - * and five separator characters to form '00:00:00:00:00:00'. - */ -#define ARP_HLEN_ASCII (ARP_HLEN * 2) + (ARP_HLEN - 1) - /* IPv4 addresses are always 32 bits in size */ struct in_addr { __be32 s_addr; @@ -114,150 +96,7 @@ typedef void rxhand_icmp_f(unsigned type, unsigned code, unsigned dport, */ typedef void thand_f(void); -enum eth_state_t { - ETH_STATE_INIT, - ETH_STATE_PASSIVE, - ETH_STATE_ACTIVE -}; - -/** - * struct eth_pdata - Platform data for Ethernet MAC controllers - * - * @iobase: The base address of the hardware registers - * @enetaddr: The Ethernet MAC address that is loaded from EEPROM or env - * @phy_interface: PHY interface to use - see PHY_INTERFACE_MODE_... - * @max_speed: Maximum speed of Ethernet connection supported by MAC - * @priv_pdata: device specific plat - */ -struct eth_pdata { - phys_addr_t iobase; - unsigned char enetaddr[ARP_HLEN]; - int phy_interface; - int max_speed; - void *priv_pdata; -}; - -enum eth_recv_flags { - /* - * Check hardware device for new packets (otherwise only return those - * which are already in the memory buffer ready to process) - */ - ETH_RECV_CHECK_DEVICE = 1 << 0, -}; - -/** - * struct eth_ops - functions of Ethernet MAC controllers - * - * start: Prepare the hardware to send and receive packets - * send: Send the bytes passed in "packet" as a packet on the wire - * recv: Check if the hardware received a packet. If so, set the pointer to the - * packet buffer in the packetp parameter. If not, return an error or 0 to - * indicate that the hardware receive FIFO is empty. If 0 is returned, the - * network stack will not process the empty packet, but free_pkt() will be - * called if supplied - * free_pkt: Give the driver an opportunity to manage its packet buffer memory - * when the network stack is finished processing it. This will only be - * called when no error was returned from recv - optional - * stop: Stop the hardware from looking for packets - may be called even if - * state == PASSIVE - * mcast: Join or leave a multicast group (for TFTP) - optional - * write_hwaddr: Write a MAC address to the hardware (used to pass it to Linux - * on some platforms like ARM). This function expects the - * eth_pdata::enetaddr field to be populated. The method can - * return -ENOSYS to indicate that this is not implemented for - this hardware - optional. - * read_rom_hwaddr: Some devices have a backup of the MAC address stored in a - * ROM on the board. This is how the driver should expose it - * to the network stack. This function should fill in the - * eth_pdata::enetaddr field - optional - * set_promisc: Enable or Disable promiscuous mode - * get_sset_count: Number of statistics counters - * get_string: Names of the statistic counters - * get_stats: The values of the statistic counters - */ -struct eth_ops { - int (*start)(struct udevice *dev); - int (*send)(struct udevice *dev, void *packet, int length); - int (*recv)(struct udevice *dev, int flags, uchar **packetp); - int (*free_pkt)(struct udevice *dev, uchar *packet, int length); - void (*stop)(struct udevice *dev); - int (*mcast)(struct udevice *dev, const u8 *enetaddr, int join); - int (*write_hwaddr)(struct udevice *dev); - int (*read_rom_hwaddr)(struct udevice *dev); - int (*set_promisc)(struct udevice *dev, bool enable); - int (*get_sset_count)(struct udevice *dev); - void (*get_strings)(struct udevice *dev, u8 *data); - void (*get_stats)(struct udevice *dev, u64 *data); -}; - -#define eth_get_ops(dev) ((struct eth_ops *)(dev)->driver->ops) - -struct udevice *eth_get_dev(void); /* get the current device */ -/* - * The devname can be either an exact name given by the driver or device tree - * or it can be an alias of the form "eth%d" - */ -struct udevice *eth_get_dev_by_name(const char *devname); -unsigned char *eth_get_ethaddr(void); /* get the current device MAC */ - -/* Used only when NetConsole is enabled */ -int eth_is_active(struct udevice *dev); /* Test device for active state */ -int eth_init_state_only(void); /* Set active state */ -void eth_halt_state_only(void); /* Set passive state */ - -int eth_initialize(void); /* Initialize network subsystem */ -void eth_try_another(int first_restart); /* Change the device */ -void eth_set_current(void); /* set nterface to ethcur var */ - -int eth_get_dev_index(void); /* get the device index */ - -/** - * eth_env_set_enetaddr_by_index() - set the MAC address environment variable - * - * This sets up an environment variable with the given MAC address (@enetaddr). - * The environment variable to be set is defined by <@base_name><@index>addr. - * If @index is 0 it is omitted. For common Ethernet this means ethaddr, - * eth1addr, etc. - * - * @base_name: Base name for variable, typically "eth" - * @index: Index of interface being updated (>=0) - * @enetaddr: Pointer to MAC address to put into the variable - * Return: 0 if OK, other value on error - */ -int eth_env_set_enetaddr_by_index(const char *base_name, int index, - uchar *enetaddr); - - -/* - * Initialize USB ethernet device with CONFIG_DM_ETH - * Returns: - * 0 is success, non-zero is error status. - */ -int usb_ether_init(void); - -/* - * Get the hardware address for an ethernet interface . - * Args: - * base_name - base name for device (normally "eth") - * index - device index number (0 for first) - * enetaddr - returns 6 byte hardware address - * Returns: - * Return true if the address is valid. - */ -int eth_env_get_enetaddr_by_index(const char *base_name, int index, - uchar *enetaddr); - -int eth_init(void); /* Initialize the device */ -int eth_send(void *packet, int length); /* Send a packet */ - -#if defined(CONFIG_API) || defined(CONFIG_EFI_LOADER) -int eth_receive(void *packet, int length); /* Receive a packet*/ -extern void (*push_packet)(void *packet, int length); -#endif -int eth_rx(void); /* Check for received packets */ -void eth_halt(void); /* stop SCC */ -const char *eth_get_name(void); /* get name of current device */ -int eth_mcast_join(struct in_addr mcast_addr, int join); +#include /**********************************************************************/ /* @@ -497,16 +336,6 @@ extern char net_root_path[CONFIG_BOOTP_MAX_ROOT_PATH_LEN]; /* Our root path */ /* Indicates whether the pxe path prefix / config file was specified in dhcp option */ extern char *pxelinux_configfile; /** END OF BOOTP EXTENTIONS **/ -extern u8 net_ethaddr[ARP_HLEN]; /* Our ethernet address */ -extern u8 net_server_ethaddr[ARP_HLEN]; /* Boot server enet address */ -extern struct in_addr net_ip; /* Our IP addr (0 = unknown) */ -extern struct in_addr net_server_ip; /* Server IP addr (0 = unknown) */ -extern uchar *net_tx_packet; /* THE transmit packet */ -extern uchar *net_rx_packets[PKTBUFSRX]; /* Receive packets */ -extern uchar *net_rx_packet; /* Current receive packet */ -extern int net_rx_packet_len; /* Current rx packet length */ -extern const u8 net_bcast_ethaddr[ARP_HLEN]; /* Ethernet broadcast address */ -extern const u8 net_null_ethaddr[ARP_HLEN]; #define VLAN_NONE 4095 /* untagged */ #define VLAN_IDMASK 0x0fff /* mask of valid vlan id */ @@ -559,6 +388,8 @@ extern struct in_addr net_ntp_server; /* the ip address to NTP */ extern int net_ntp_time_offset; /* offset time from UTC */ #endif +int eth_mcast_join(struct in_addr mcast_addr, int join); + /* Initialize the network adapter */ int net_init(void); int net_loop(enum proto_t); @@ -831,18 +662,6 @@ static inline void net_random_ethaddr(uchar *addr) addr[0] |= 0x02; /* set local assignment bit (IEEE802) */ } -/** - * string_to_enetaddr() - Parse a MAC address - * - * Convert a string MAC address - * - * Implemented in lib/net_utils.c (built unconditionally) - * - * @addr: MAC address in aa:bb:cc:dd:ee:ff format, where each part is a 2-digit - * hex value - * @enetaddr: Place to put MAC address (6 bytes) - */ -void string_to_enetaddr(const char *addr, uint8_t *enetaddr); /* Convert an IP address to a string */ void ip_to_string(struct in_addr x, char *s); diff --git a/include/net/arp.h b/include/net/arp.h new file mode 100644 index 0000000000..cbdc948e64 --- /dev/null +++ b/include/net/arp.h @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ + +/* ARP hardware address length */ +#define ARP_HLEN 6 +/* + * The size of a MAC address in string form, each digit requires two chars + * and five separator characters to form '00:00:00:00:00:00'. + */ +#define ARP_HLEN_ASCII (ARP_HLEN * 2) + (ARP_HLEN - 1) diff --git a/include/net/eth.h b/include/net/eth.h new file mode 100644 index 0000000000..d8ffdff2c0 --- /dev/null +++ b/include/net/eth.h @@ -0,0 +1,194 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ + +#include + +struct udevice; + +enum eth_state_t { + ETH_STATE_INIT, + ETH_STATE_PASSIVE, + ETH_STATE_ACTIVE +}; + +/** + * struct eth_pdata - Platform data for Ethernet MAC controllers + * + * @iobase: The base address of the hardware registers + * @enetaddr: The Ethernet MAC address that is loaded from EEPROM or env + * @phy_interface: PHY interface to use - see PHY_INTERFACE_MODE_... + * @max_speed: Maximum speed of Ethernet connection supported by MAC + * @priv_pdata: device specific plat + */ +struct eth_pdata { + phys_addr_t iobase; + unsigned char enetaddr[ARP_HLEN]; + int phy_interface; + int max_speed; + void *priv_pdata; +}; + +enum eth_recv_flags { + /* + * Check hardware device for new packets (otherwise only return those + * which are already in the memory buffer ready to process) + */ + ETH_RECV_CHECK_DEVICE = 1 << 0, +}; + +/** + * struct eth_ops - functions of Ethernet MAC controllers + * + * start: Prepare the hardware to send and receive packets + * send: Send the bytes passed in "packet" as a packet on the wire + * recv: Check if the hardware received a packet. If so, set the pointer to the + * packet buffer in the packetp parameter. If not, return an error or 0 to + * indicate that the hardware receive FIFO is empty. If 0 is returned, the + * network stack will not process the empty packet, but free_pkt() will be + * called if supplied + * free_pkt: Give the driver an opportunity to manage its packet buffer memory + * when the network stack is finished processing it. This will only be + * called when no error was returned from recv - optional + * stop: Stop the hardware from looking for packets - may be called even if + * state == PASSIVE + * mcast: Join or leave a multicast group (for TFTP) - optional + * write_hwaddr: Write a MAC address to the hardware (used to pass it to Linux + * on some platforms like ARM). This function expects the + * eth_pdata::enetaddr field to be populated. The method can + * return -ENOSYS to indicate that this is not implemented for + this hardware - optional. + * read_rom_hwaddr: Some devices have a backup of the MAC address stored in a + * ROM on the board. This is how the driver should expose it + * to the network stack. This function should fill in the + * eth_pdata::enetaddr field - optional + * set_promisc: Enable or Disable promiscuous mode + * get_sset_count: Number of statistics counters + * get_string: Names of the statistic counters + * get_stats: The values of the statistic counters + */ +struct eth_ops { + int (*start)(struct udevice *dev); + int (*send)(struct udevice *dev, void *packet, int length); + int (*recv)(struct udevice *dev, int flags, uchar **packetp); + int (*free_pkt)(struct udevice *dev, uchar *packet, int length); + void (*stop)(struct udevice *dev); + int (*mcast)(struct udevice *dev, const u8 *enetaddr, int join); + int (*write_hwaddr)(struct udevice *dev); + int (*read_rom_hwaddr)(struct udevice *dev); + int (*set_promisc)(struct udevice *dev, bool enable); + int (*get_sset_count)(struct udevice *dev); + void (*get_strings)(struct udevice *dev, u8 *data); + void (*get_stats)(struct udevice *dev, u64 *data); +}; + +#define eth_get_ops(dev) ((struct eth_ops *)(dev)->driver->ops) + +struct udevice *eth_get_dev(void); /* get the current device */ +/* + * The devname can be either an exact name given by the driver or device tree + * or it can be an alias of the form "eth%d" + */ +struct udevice *eth_get_dev_by_name(const char *devname); +unsigned char *eth_get_ethaddr(void); /* get the current device MAC */ + +/* Used only when NetConsole is enabled */ +int eth_is_active(struct udevice *dev); /* Test device for active state */ +int eth_init_state_only(void); /* Set active state */ +void eth_halt_state_only(void); /* Set passive state */ + +int eth_initialize(void); /* Initialize network subsystem */ +void eth_try_another(int first_restart); /* Change the device */ +void eth_set_current(void); /* set nterface to ethcur var */ + +int eth_get_dev_index(void); /* get the device index */ + +/** + * eth_env_set_enetaddr_by_index() - set the MAC address environment variable + * + * This sets up an environment variable with the given MAC address (@enetaddr). + * The environment variable to be set is defined by <@base_name><@index>addr. + * If @index is 0 it is omitted. For common Ethernet this means ethaddr, + * eth1addr, etc. + * + * @base_name: Base name for variable, typically "eth" + * @index: Index of interface being updated (>=0) + * @enetaddr: Pointer to MAC address to put into the variable + * Return: 0 if OK, other value on error + */ +int eth_env_set_enetaddr_by_index(const char *base_name, int index, + uchar *enetaddr); + +/* + * Initialize USB ethernet device with CONFIG_DM_ETH + * Returns: + * 0 is success, non-zero is error status. + */ +int usb_ether_init(void); + +/* + * Get the hardware address for an ethernet interface . + * Args: + * base_name - base name for device (normally "eth") + * index - device index number (0 for first) + * enetaddr - returns 6 byte hardware address + * Returns: + * Return true if the address is valid. + */ +int eth_env_get_enetaddr_by_index(const char *base_name, int index, + uchar *enetaddr); + +void eth_init_rings(void); /* Initialize rings */ +int eth_init(void); /* Initialize the device */ +int eth_send(void *packet, int length); /* Send a packet */ + +#if defined(CONFIG_API) || defined(CONFIG_EFI_LOADER) +int eth_receive(void *packet, int length); /* Receive a packet*/ +extern void (*push_packet)(void *packet, int length); +#endif +int eth_rx(void); /* Check for received packets */ +void eth_halt(void); /* stop SCC */ +const char *eth_get_name(void); /* get name of current device */ + +/* + * The number of receive packet buffers, and the required packet buffer + * alignment in memory. + * + */ +#define PKTBUFSRX CONFIG_SYS_RX_ETH_BUFFER +#define PKTALIGN ARCH_DMA_MINALIGN + +/* Number of packets processed together */ +#define ETH_PACKETS_BATCH_RECV 32 + +extern u8 net_ethaddr[ARP_HLEN]; /* Our ethernet address */ +extern u8 net_server_ethaddr[ARP_HLEN]; /* Boot server enet address */ +extern struct in_addr net_ip; /* Our IP addr (0 = unknown) */ +extern struct in_addr net_server_ip; /* Server IP addr (0 = unknown) */ +extern uchar *net_tx_packet; /* THE transmit packet */ +extern uchar *net_rx_packets[PKTBUFSRX]; /* Receive packets */ +extern uchar *net_rx_packet; /* Current receive packet */ +extern int net_rx_packet_len; /* Current rx packet length */ +extern const u8 net_bcast_ethaddr[ARP_HLEN]; /* Ethernet broadcast address */ +extern const u8 net_null_ethaddr[ARP_HLEN]; + +/** + * string_to_enetaddr() - Parse a MAC address + * + * Convert a string MAC address + * + * Implemented in lib/net_utils.c (built unconditionally) + * + * @addr: MAC address in aa:bb:cc:dd:ee:ff format, where each part is a 2-digit + * hex value + * @enetaddr: Place to put MAC address (6 bytes) + */ +void string_to_enetaddr(const char *addr, uint8_t *enetaddr); + +typedef struct ulwip { + bool loop; /* spin in lwip loop */ + bool active; /* active lwip app processing*/ + int err; + bool init_done; + +} ulwip; + +struct ulwip *eth_lwip_priv(struct udevice *current); From patchwork Mon Nov 27 12:56:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747551 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3134791wru; Mon, 27 Nov 2023 05:04:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IE+vB7FD2wift6zGWTGXaDye0HZqt6/IbZd8tJVeJpbl9pqThIfAS+OwTN9nKP5IpqHDZ+q X-Received: by 2002:a05:6a00:44cd:b0:6c3:6148:570f with SMTP id cv13-20020a056a0044cd00b006c36148570fmr14113038pfb.33.1701090244139; Mon, 27 Nov 2023 05:04:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090244; cv=none; d=google.com; s=arc-20160816; b=VTWNyIsN8Qt0VJd+GEpvi4bnh9Z9rBX8iylwS2+kPsvaDah97C8guLZk6UlthqMDUj lau3W4tZ1YNUZ05B71+tFmFaWVPMy7W1QJYtEQpW+ZAaiBpfCTxR6B90WL847G8C1PFw 5K+rfoZtsmU1+/tLRIEu6k6Kx3Y+7T+Kc34zqK9D0IZxbNMzqW/cHLA6/cc20qa9Uibn iKr2cUR1fgwYqqeh9NRk7QJM9rnJyQp60h3U2PajyX4YgXaTpsLMXKM9KGKR2TsNAQsJ 26Yac5F1zKcByK5p83YhDcCsFaUR7CPnll7e8fSjyQfg1ue4djZIQzJlffOY9//Il3/H qFWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0Lv+IzLO2cUAOkfnCTRBq4ia8OKl6IHY5T/8C3fm1Ac=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=RLZOVfYkGp9RmT2ezg5fgsOqG5PbTqsYjYLOEQ5FSqKKUKJYe8BRRwYw5LjZEp+i5m j4OazgBATvQbTXv7tzTHwdt8FHuln//tXKaqnF5bk9CIVLnRs8q4NBKqoLLcgN4ZUrfN wf2h16QOaQnvCqPVl8ckuSraDj/MRsrCGKfi7E9Y91xY04d4ji0Kg+QG6UV8fX/Ulghz 2tHf9tGEGDdgwylQkbBqwutlpDcNUZOGvUgQRZizfSh9QM8FMvpvwIOuQHE5vPGk9seW a370qNCcn+68XnmOBN34NGMF2zvwPBKySc//C3vhwpfFJtZU5ZDMUq9KqjjaqPqzzfW5 EyIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="b/bZVD4u"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id h11-20020a056a00170b00b006cbe53e19fdsi9880953pfc.222.2023.11.27.05.04.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:04:04 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="b/bZVD4u"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9214B87636; Mon, 27 Nov 2023 14:00:51 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="b/bZVD4u"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2393B87617; Mon, 27 Nov 2023 14:00:47 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 33F3087570 for ; Mon, 27 Nov 2023 14:00:45 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-50a6ff9881fso6358922e87.1 for ; Mon, 27 Nov 2023 05:00:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090044; x=1701694844; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0Lv+IzLO2cUAOkfnCTRBq4ia8OKl6IHY5T/8C3fm1Ac=; b=b/bZVD4ut2skVJZ800lTBrU6s+hlyrIIaWvcMOE4IPqog0WTOtPUSEbS7tBCnu/124 rkMHGDRri9HXLA6OKlk6+y6jnY2kp126XeNjaevmAwIEQ4kK5gno2qC6fsCcRUKvJFkL PZsXrFelid+ufFLSGX+tYXiPysx4yM/6doNfzSKhZbChQOT/6efMZTnqWuIptzhDGrAi 8TRnV1vvzncD60fgdrwMehhNDe/K6tet98mjBcOwKO0k5A2NzL5PkgNAA6eWDoh19cBT hlm6izTgjBWGu00W7vnRHn20truhpmeqI37ZLc4puQ5mQ0GTNPlhGfHRpKo9Foh0p/ID eOqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090044; x=1701694844; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0Lv+IzLO2cUAOkfnCTRBq4ia8OKl6IHY5T/8C3fm1Ac=; b=W0TcPJdd3UuCgyldNtihZ2PLlAXv5ZZk5tEcDXK9vPTM42d3gtD86AtYwbeJXEVYAM 7FIlrn8F1Yb5yCFxKGg4TGegpXM/TPlElAaBvagaK2g+XMiUtr7UXYJd8bPdkkmh3NhS cBfejiuiwxFui4KFUSZor35URNtAQrpikbB8MJISLi9e6DGJvkZpSCQYpecYeQ+86feH 5gJbA/BV20uK0cni17NOQW3jOt2A0ejMhIVp9QatR5jx7UbDz7yriJo+GH9DD6fWyCia jlS9//+w7NFVimDq8kNOonBgXFpAZfsq6Yx56K+N0P5SortZdvkz5kBjpRmT9eY6JtG7 iqdw== X-Gm-Message-State: AOJu0Yzda7sG/5M7MseN7CFMHkQa2rR0Ku5EXgNb65V0h+BKY3qYvmvF tWPM5XIGpT4ZLwEpWNQyq8K5gLPBnMRZlsLblYNKrw== X-Received: by 2002:a05:6512:4022:b0:509:4ae3:465b with SMTP id br34-20020a056512402200b005094ae3465bmr10439246lfb.8.1701090043836; Mon, 27 Nov 2023 05:00:43 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.00.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:00:42 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 15/43] test_efi_loader.py: use $filesize var Date: Mon, 27 Nov 2023 18:56:58 +0600 Message-Id: <20231127125726.3735-16-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 bootefi code relays in internal variable then to filesize environment. lwip tftp do not update this variable. For not I update test to provide correct size. Signed-off-by: Maxim Uvarov --- test/py/tests/test_efi_loader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/py/tests/test_efi_loader.py b/test/py/tests/test_efi_loader.py index 85473a9049..9b2541593c 100644 --- a/test/py/tests/test_efi_loader.py +++ b/test/py/tests/test_efi_loader.py @@ -158,7 +158,7 @@ def test_efi_helloworld_net(u_boot_console): addr = fetch_tftp_file(u_boot_console, 'env__efi_loader_helloworld_file') - output = u_boot_console.run_command('bootefi %x' % addr) + output = u_boot_console.run_command('bootefi $fileaddr:$filesize') expected_text = 'Hello, world' assert expected_text in output expected_text = '## Application failed' @@ -187,7 +187,7 @@ def test_efi_grub_net(u_boot_console): addr = fetch_tftp_file(u_boot_console, 'env__efi_loader_grub_file') - u_boot_console.run_command('bootefi %x' % addr, wait_for_prompt=False) + u_boot_console.run_command('bootefi %x:$filesize' % addr, wait_for_prompt=False) # Verify that we have an SMBIOS table check_smbios = u_boot_console.config.env.get('env__efi_loader_check_smbios', False) From patchwork Mon Nov 27 12:56:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747552 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3135085wru; Mon, 27 Nov 2023 05:04:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IH6b3iSK09aI99bKhdBWpZjzcc3arlI/Azh7nSEqDiN7j0YOYj2upuXfQePw5Ykcx8B85ir X-Received: by 2002:a17:903:2311:b0:1cc:32df:8eb5 with SMTP id d17-20020a170903231100b001cc32df8eb5mr12142449plh.6.1701090263259; Mon, 27 Nov 2023 05:04:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090263; cv=none; d=google.com; s=arc-20160816; b=rCvG/pjYBBSh5DyHzeYix305lq9shmxFf6QFPOxPOkuWCC2LmwEW2Nwfd8pHPCpBiT gH7Dbbc2pG0cOnhfuX+ugOsvpWb6Dr2nH9g0eJnMIZ+z96Bl8+mpoDIVaYRbLBFi0GTG YlVbhUqFZDj2PduXWPqlDMLJEvDKC/Q36BSAmRuN1zlH/QCZXu1JGmR1QhCz3/cd8CAX sel+6dm36el5Wgw5PbGfzCBFWurpRXDIibibGg+iL2IyMJlR0a2Ge1wYEbqbr8bFUKR/ 9RxW8bEeg2ivzidtAnWmbHgsaMb4Kd5vDUxYQQclDHzlKceRGoDRfGMgYTrqfIq0LSJs eZcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bztCqZtuZeWJbD9MIA2Nj/8rhjf7X26SpwotbAnqAAE=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=QHyXuzB2bm6Art9Wi4JvKU5rZC2EaKjtu6J4rirEieR94sY1UWzUH8/Xz+idzHVeli SaSMM1Xbafv0myFzdDs9R8P5V8QB9fxqN6siy6Eth+k9yUfFOl4AHAz1qZjwiFpBG/7K 98s6OalCou0+Krxpe2PRPN6pEwWvB49kkbvPp1io+FetsUqw73Fw0AmPkkRgy36dbGLL Gn+Raj3HYagntJv8dyVS3vNF9DEsvibtrfohqFsN+I6qOcmnpnRM4uTPneC70aLRT4fO st3lfVnxHISpYuXVKbfZ+vUa0PfXYI2IFV+94dEaiSJHlfKAYFKEnLBVushCp4poOjxO 8VXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Criy/+Mf"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id n12-20020a170903110c00b001cfb1dbb497si5963791plh.338.2023.11.27.05.04.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:04:23 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Criy/+Mf"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1471987657; Mon, 27 Nov 2023 14:00:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="Criy/+Mf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 49F0B87617; Mon, 27 Nov 2023 14:00:49 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 60B0587570 for ; Mon, 27 Nov 2023 14:00:47 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-507cd62472dso5277213e87.0 for ; Mon, 27 Nov 2023 05:00:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090046; x=1701694846; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bztCqZtuZeWJbD9MIA2Nj/8rhjf7X26SpwotbAnqAAE=; b=Criy/+MfeFxXTLPA7+ea9wPn3IU0J5vrJ1cVVYpkPKInbGhBmohJgp5gV5vSQVabIo TCJZHQ83CXSkn7+4fJ+vLZEfOSq2XwejtYocwXASOzcjcZ9QADm4RmSUA1R9MbzYDDhi 1p0A4zBf+JBfzIOiBpS1wcQGnFfO2aS8VUP/ailtK+guemypKro3Ly25VDIW8dCDCE+e Ue5o2XsjHl6ERAmv6tD43d5Z8Ttc83HzNUfLlOaCSO4fwjWBlno3GhAXhdYD2rJF/QeE 7em2Eqsn30b8nI5kGR/OqujkQdyd95seJjKF/AwfUiG/AysUZIZf0f4jeIqKYSAkNy1Y tHLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090046; x=1701694846; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bztCqZtuZeWJbD9MIA2Nj/8rhjf7X26SpwotbAnqAAE=; b=vHHPPdC4ZXucjbfhRRGi+fLFT72m5udio9sLqkIGccz8/hl/wSggJySS9PnOJrVQsV cm5GDRoBuJMXGp6tj2ry6owU2vXeQYR0dtc9+zPyARbjg79WzFc6rwXzDEFjQLLx8q9N GYqXe7xTK1eqcrP6ZF0B6xUii0ULHFOTKsXCURLgUVSr1Yf/JK/0zwDR7qWdoqru8YpB ycBFTq5UYbwerkJVXHyZRYCECuI+C9oxn7mVIpipehoRdCgKy24TV6a1/yb8553v3fmG uHPVNSnKkBpJtpG+qRJz/OAA1I5jSQI+rDbizMy3uhrgRWCdziQZ6kfIhG8BdmHZaHWr ISjw== X-Gm-Message-State: AOJu0YxEDV+nm4wnjqLOp38u1eftZmCDsQhZfjgEGKsWKmt4gcMmZMPX RaOJhH+TrKQ/pKFyVVZOnWxpf6pJLh7gpde5T5gYbg== X-Received: by 2002:a05:6512:3b86:b0:50a:ae89:491f with SMTP id g6-20020a0565123b8600b0050aae89491fmr5769705lfv.3.1701090046125; Mon, 27 Nov 2023 05:00:46 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.00.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:00:45 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 16/43] test_net: print out net list Date: Mon, 27 Nov 2023 18:56:59 +0600 Message-Id: <20231127125726.3735-17-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 Printing net list is useful in CI log files. Signed-off-by: Maxim Uvarov --- test/py/tests/test_net.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/py/tests/test_net.py b/test/py/tests/test_net.py index b2241ae6a4..cd5b791a6a 100644 --- a/test/py/tests/test_net.py +++ b/test/py/tests/test_net.py @@ -96,6 +96,8 @@ def test_net_pre_commands(u_boot_console): if init_pci: u_boot_console.run_command('pci enum') + u_boot_console.run_command('net list') + @pytest.mark.buildconfigspec('cmd_dhcp') def test_net_dhcp(u_boot_console): """Test the dhcp command. From patchwork Mon Nov 27 12:57:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747553 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3135219wru; Mon, 27 Nov 2023 05:04:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IEHyWJWg/20hihjawxpQvyStshQErPlO1/z/JwEeq6vGtPKdXlMvMnr3zyHESFMUh8v8aNJ X-Received: by 2002:a05:6a00:22c5:b0:6c2:cf23:3e21 with SMTP id f5-20020a056a0022c500b006c2cf233e21mr12640882pfj.17.1701090272564; Mon, 27 Nov 2023 05:04:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090272; cv=none; d=google.com; s=arc-20160816; b=lXIZSyrD9CVyKK6UB51XzEDiSKI1BIZwfeWotKKacZSDXwLEJHjGZzNPFHWmhdFJGX R7r2hbXdnqZxxMgI+4v2F6gF040cPdSugEkptGMGha3XeqQ6ByCgsNI+d96fjRxDU8Ju NOhhPNFgaJIj+r4x5YCADfE1Y6p7lGAP7BrJZ1STWysd9TVnPfGctzDNY0cd2bwnqGJB n6SzaJpPVzwg8bLOVFBWCURqzluzIYx7p3l6AsysyULZ0OPytE/icY54TNBT6ATsLWgB MwGxLIcOTa/d1AlF1+eak6TFQA75BNOvF24GiFa08OM8HF9XQxnxmjTOPapezs6W6dqE wSwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=VLaiV9HF80Rqq8fubeu6ab2vfbV1DnaWvPksOl/hwC0=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=xWM85/NhN2SAtMACnmyT8GRsE5h/xjnsoCoSo7Fzzl6Qc8UVDwNcS9lsRm5Wv1hmJY kHzLnX7+qfNBpj4KT3GB8RfQ89SxdOmUuuqSolvrqBb8GzX8tCKuyjMYCrknhD5lKxop i9TUWbEAJW528Gm/drFJuE+tsjF/sLHEvhFofy7Y9ukHWrWwCb1wzWFYN5XVp2C9gLlm QOLeTe1OhwgUWk02n6ScP4DFUiTwmOAg6O3czCBL+q3PrZY28pDirGI2+6/IK/ALGeo/ 23TeQfiKFkZspbZuoy81sJaoT+6q2QiEK9qGknV5rLZ4GsKzp4q5AP6+VL4GdZy3iYgo bGsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I08CgCnE; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id o66-20020a634145000000b005be03f0da7esi10548121pga.174.2023.11.27.05.04.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:04:32 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I08CgCnE; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A0AB387652; Mon, 27 Nov 2023 14:00:54 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="I08CgCnE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9FA9D87657; Mon, 27 Nov 2023 14:00:51 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A7A2287570 for ; Mon, 27 Nov 2023 14:00:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-50aab20e828so5952459e87.2 for ; Mon, 27 Nov 2023 05:00:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090048; x=1701694848; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=VLaiV9HF80Rqq8fubeu6ab2vfbV1DnaWvPksOl/hwC0=; b=I08CgCnEfW6uDZvYrTpc+DqKwPjXcO/DG2p3vMIiaBd7fAXhVoJn5cczinlkf2itA/ 6eS+mHIhXTYHkehWFx6cuSBPjRipMd+n7NbJQnkKl0Gu1sVbIdDgKlS+tEuwPfbZ4cJ7 DZtHNfd/xHrdxulvWGZsEndnS6eOQC2B+i79FNeajHiuT/uA2hy1cVrSDKcDztbE9rwE 8yWDzW8rCafs0cvh1PRscotnbBouIAZDhqzzO99o7+J18jeqGouyRziC3NWqER8E2eX5 IcIJzI8T2f1rslx8Dt7DROz4zQLGLwdQzTqtki9YMY80Njfsooegc8EX5rkvsZGnFkKy TwDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090048; x=1701694848; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VLaiV9HF80Rqq8fubeu6ab2vfbV1DnaWvPksOl/hwC0=; b=sXnJHQ146PUg7q5PnnzlqyJtrZMtSfFqM8InHCt5BsJCl315OjhVwlzTD33SExlzUD mQ6r0T1T8gviMXalycHlitGKnFqhH41q2upv0cn3kB9LfiVqc5FyFieMOH7tPjLYEc4O KdrwQrqK3teRWtw1wW05d9966/J2POKuTxKOEBEHyV+Fk4Ig4f+wo8xUFYKnFJC0n6NB 3mg/ZzDnNhRwXEll2+mgs4MpmVPXQ4IOIqaaIGgXLoMKxD2UWCClWEfQ3xjr72Q9/eUV rFcRBJgwlyaxuRVhoajwNBJagNIth4+2v0s9IBbZxbFe+FN0uJErtcsBza7YcQqLFP26 MjfA== X-Gm-Message-State: AOJu0Yw3NbeufR1bUw8sNsDLIl6ux3Frwnm3Emre6iqayWkybcxQ3Rsz 0VXn/a8Sb8g/Er4b3VOfHw89tEvjIQpDQlp9Acl95A== X-Received: by 2002:a05:6512:3b22:b0:50a:71e1:e1d0 with SMTP id f34-20020a0565123b2200b0050a71e1e1d0mr9402569lfv.6.1701090048448; Mon, 27 Nov 2023 05:00:48 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.00.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:00:48 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 17/43] net: sandbox: fix NULL pointer derefences Date: Mon, 27 Nov 2023 18:57:00 +0600 Message-Id: <20231127125726.3735-18-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 Add additional checks for NULL pointers. Signed-off-by: Maxim Uvarov --- drivers/net/sandbox.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/sandbox.c b/drivers/net/sandbox.c index 13022addb6..75d32db3a9 100644 --- a/drivers/net/sandbox.c +++ b/drivers/net/sandbox.c @@ -65,6 +65,9 @@ int sandbox_eth_arp_req_to_reply(struct udevice *dev, void *packet, struct ethernet_hdr *eth_recv; struct arp_hdr *arp_recv; + if (!priv) + return -EAGAIN; + if (ntohs(eth->et_protlen) != PROT_ARP) return -EAGAIN; @@ -82,6 +85,8 @@ int sandbox_eth_arp_req_to_reply(struct udevice *dev, void *packet, /* Formulate a fake response */ eth_recv = (void *)priv->recv_packet_buffer[priv->recv_packets]; + if (!eth_recv) + return -EAGAIN; memcpy(eth_recv->et_dest, eth->et_src, ARP_HLEN); memcpy(eth_recv->et_src, priv->fake_host_hwaddr, ARP_HLEN); eth_recv->et_protlen = htons(PROT_ARP); From patchwork Mon Nov 27 12:57:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747554 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3135414wru; Mon, 27 Nov 2023 05:04:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IFw2sqaGReJY36nDVufCcsKo/64dG6Kwpo2qlPXzuGjqdRS3Q2fI/xu20EEe7gYVvT/vhDM X-Received: by 2002:a05:6a21:999c:b0:18c:651:67fe with SMTP id ve28-20020a056a21999c00b0018c065167femr12002443pzb.62.1701090286256; Mon, 27 Nov 2023 05:04:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090286; cv=none; d=google.com; s=arc-20160816; b=OvsmgBRdZLBPvCuVFvJ0pkV/1dQlIyRfptJLP5vXz3hVHENUe7I/idITo8u8puXR+L SAlB58Lrg8jhlKXaCcrZOeC4CN+/jCHfWPnZom613gfDToiGPEbeIfr45ygPNq86+RYr buXi983EvARMuvVukkq4STfGeHg8+RjnK/P1RQwxJiowwryrjHCCeXB0Mv7R9LuGq/NQ VEv2xAUWVEzPK7JhXFrhrO+av2yxzgj1Qns6tNTFMndosz0mPUzRd/l++ihltWD3KvJD alg0+8pTvfVbT0XdGBgmvsz09G9tihbEjGESwSOATuI0Pzx2egdugeSoEr/tTZsStbdI b1qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=iXzvm6rn44kJGwd7qA6dsX/8u+B/TFErI+G1ButGl5M=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=JqCq0DbZ3pCklcZaI+/l/skvX3UZVwPerCczFIgqR8XozQm0Jum1CHNrFPLS529qFd G5nEEkAVn8zthjw97g4DKyUXbIz+6j7+V8CAz0UUVu6EDndugo5Z2+s5ppAsI6hQwLDi 67u7rXiZIlANmQcFtCLJ4sBOGPLYaOiB3uuz5UdATpIbF36GYl/NUmHjOJOz3Hbr/BVA vioQrHGlJMlk7lJi17k6gO3w31IZzqIDOjT9MvaHt5vp+4NhfNEOausQFbJMoXWoBPSp wQc2En51rT/4E6edTIFK1lDQ18InfiOpyM0Su0Ibqxa0p5ftPsCotyDHfUVXTceWjCuY Fpaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bbEy7hOp; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id y187-20020a6364c4000000b005652bd27e80si9921975pgb.588.2023.11.27.05.04.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:04:46 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bbEy7hOp; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9049B876B5; Mon, 27 Nov 2023 14:00:55 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="bbEy7hOp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 77B218768F; Mon, 27 Nov 2023 14:00:53 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8754087633 for ; Mon, 27 Nov 2023 14:00:51 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-50abbb23122so5429242e87.3 for ; Mon, 27 Nov 2023 05:00:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090050; x=1701694850; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iXzvm6rn44kJGwd7qA6dsX/8u+B/TFErI+G1ButGl5M=; b=bbEy7hOpaSiO/TOQzkl0WFvECzUSMkt5EY0h2yG++QGtUFVYWIQgPuZcRrphc32MSh +NdRdGDWW6TMNTscF7wxTx+iXIKwMvuT2EF8aIMI56E3Z8WrA00aaFaYC0sWA6Zg9RHr pVeIVfz9WbKkG0NhO2FJLGSRBwAWcQ63jgoixHYUOko7N5o2qtzZ+N+uQd5d3gK3EBIk Fc+OarPXWFjJ0wmKwr03dVZyWaDZchiqfqer8Y7sofLp8NwgsKXC5oI/jTsA+7LIZLOY 9vHIscP78ksOzvMIZ3wvqEJyhJ2dCpjDnQ3tEvj7FMRJ3nXelMbzADjOAhHsCSm7ByU4 9cDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090050; x=1701694850; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iXzvm6rn44kJGwd7qA6dsX/8u+B/TFErI+G1ButGl5M=; b=MtGRNmk8ouZl5Jgi8pwYOK1/oMReJxC7VgQOli9EbgGZhZEw4NUR7FohOyQdyUtEGt kmklPBMVJeahNxzHIpD3xCPJ078FZfSP0amALK/AMKVrNumyfQM9JSF/lZxoFdkAhCLQ AUsSWJejl7HWFz41BralXBUxL5yEY5GunfYbhCKB5C6ya3O+1HpSs53LU8Xb8pJJhJ9g SalqydBfp5FBZ0dTJqMOV2USDYHyWXuMI6b7spfbbULwa6DnZ6Ex85WDxvsul7dyDyAK pqgoV6OZjhWnQFTJGFOIfwCzA4lk6/h5FTyM8nsF2mpT+OQ+6F9IJKsa0Ajt1nkwYvBz aFaA== X-Gm-Message-State: AOJu0YwuUuFCDAHBVvy5X8L+PwTmzeu6E6xAck7gkgyKXeVsFKKL5dFX Yo5YTzRKqm2NzJXzLxyxYmZgH4ZHaoVhGKHoiiNaSA== X-Received: by 2002:a05:6512:4d1:b0:50b:a806:966b with SMTP id w17-20020a05651204d100b0050ba806966bmr4363877lfq.23.1701090050638; Mon, 27 Nov 2023 05:00:50 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.00.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:00:50 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 18/43] net/smc911x: fix return from smc911x_send Date: Mon, 27 Nov 2023 18:57:01 +0600 Message-Id: <20231127125726.3735-19-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 return value of smc911x_send is ignored, but on sucesseful send we need return 0 and or error -ETIMEOUT, not opposite. Signed-off-by: Maxim Uvarov Reviewed-by: Tom Rini --- drivers/net/smc911x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c index 5c5ad8b84a..616b7ce174 100644 --- a/drivers/net/smc911x.c +++ b/drivers/net/smc911x.c @@ -403,7 +403,7 @@ static int smc911x_send(struct udevice *dev, void *packet, int length) ret = smc911x_send_common(priv, packet, length); - return ret ? 0 : -ETIMEDOUT; + return ret ? -ETIMEDOUT : 0; } static int smc911x_recv(struct udevice *dev, int flags, uchar **packetp) From patchwork Mon Nov 27 12:57:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747555 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3135575wru; Mon, 27 Nov 2023 05:04:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IFIxCYXSFSZY02CyfKvK4gKi2apFUr1DHXLXAGswrM/0CYptRodZ7KBQVNx5U/h4HOEdMPw X-Received: by 2002:a5d:45c1:0:b0:332:f8d2:640a with SMTP id b1-20020a5d45c1000000b00332f8d2640amr4333917wrs.37.1701090296442; Mon, 27 Nov 2023 05:04:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090296; cv=none; d=google.com; s=arc-20160816; b=SJjeCvh4Lr6YffEyRGFpvmKNxft22ufNKKFLKFhfP2QGgvpHxWlavLUyQbiJlc7HM6 HfyBGUVLs3fI4ryxWPuTwZ5haWUxKR/6+f7XoTiztOT/dDbVb1HBbE2ZsSDoqKRj1iuW 8cyOHr/EcsrP8zTwoL3cmUileeLiHBwgfKhYR2rcxJrOWDzAvHIbxVEUMrE+zpaJ/hSE ewwaDtxrHwmr9Lz/U+D9G7FJyib5Av/fE5MVpEm/Sr1jJCkV+7abLEeoDykK1Euvo2rH v+D3lrljzrW0DXyfx5uKwAphg8LM+DWsxrpAmCAkltQyyUOJgke1fyyYMS24xaUv0vQ/ myuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=jFl5q83Dz7tD9zISSdke30i9kRO2ANQbPUYPT5Iezkk=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=YFIQ7az071MOhwbjhDv9TFTWdQ6mKr2XL3TyKPf0LYjLtiQCAG9HVUnHSSehVSbosF EX3xj7Gyv+MWRRhf3m/b+nAg8VXyNAO8Sl0y1nooCkeN55JhZxl/3741f0QFAT04TFxA 3YvUK4v/YdOAP3N4PCs0dOzNegXkWs2gXSXkl15vUlagTE/OO3rCTXqJX7KhSNgdR7WI /Qay2s6BQXeFgeo4syIL+mI/N4AB/axAs9KeTk6CVtJf4UZqpj1+wRUBpVz+fmNOFSr6 cjF1BhgkxMn04rQmUtSj1uQYjZEwunXIDlxnMRG2ehCA6hntEuIP9hlCaa/tGw2NoQl4 QXIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iXVAjwOj; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id k14-20020a5d628e000000b0032cb26f815dsi5478673wru.301.2023.11.27.05.04.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:04:56 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iXVAjwOj; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4340A876C9; Mon, 27 Nov 2023 14:00:58 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="iXVAjwOj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6FE5C876C5; Mon, 27 Nov 2023 14:00:56 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8208887634 for ; Mon, 27 Nov 2023 14:00:54 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-5094cb3a036so5639393e87.2 for ; Mon, 27 Nov 2023 05:00:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090053; x=1701694853; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=jFl5q83Dz7tD9zISSdke30i9kRO2ANQbPUYPT5Iezkk=; b=iXVAjwOjVcECfGkD47OMTwK+ywbfyioKS7QEgBxoOfGmzXGWl0l4u06iCmsGvSqNxk NkBoMaDJGQNk2fzT6PE36c0+Xpe/hMmQWsty8kFeS2ErEJG72uyW9fsRNYrSo9eH4wXp TFYOnZ6SPQ5nv9OhFO0YQT7/lFzbekHF34KaOsquJseb9DPwgNnql4L39IVa11csmIBz oQvP/G/ep9Y+A1EgXzpJl2pf/oAtlMIjJGNKpwqOnynbPJ/bAyXSFphlbZy3Sa+e+CLj vl6KseqqrFVff9COa0V4y8laTaugD/sMdx29u0GRAMlutxBYpKFyoy1gOBb5xCheZy/j R/rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090053; x=1701694853; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jFl5q83Dz7tD9zISSdke30i9kRO2ANQbPUYPT5Iezkk=; b=P+SytdAwl9trw9kH8TTLZAHFe+9iEOpD/J6GDWk2QH0ZGdkfkMwjjAeAFN3Hrtzgpm NdjAdX541ZunD2wunBuHZJ2YJmp56VPKOr2UI4E0sxMcI8NNrJwzfHrXNuSPN0E2uahD nkSEBq4ordKcraiKaLCBVEogBeqSOq395Yl/CmI2oYrykOndlquGgK455K1pq/elVk7R ASIPXIr1pbLFDgt7dZGr94gYGMNBuXNR1UMXqpvUAlzdK7id2OqBL85yQ1hp1kkNiUWN ShkD8QLnM2NnnLH9HCl70mVKmagsYdHge8xhNE6M7r0R2PGZx12+q90TpE7qI6IDJ+vq 61ug== X-Gm-Message-State: AOJu0YwCnJq3E/EWENSFQWwoB8WPyg+WoZmcGct+RJ0UoKtkuSnHlYfm V48eBilw0KWm+STuWoM3kwlpE1rBrc3X8LVIDKNmAg== X-Received: by 2002:a19:f505:0:b0:507:9a49:3f23 with SMTP id j5-20020a19f505000000b005079a493f23mr7289889lfb.18.1701090053330; Mon, 27 Nov 2023 05:00:53 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.00.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:00:52 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 19/43] sandbox: eth-raw-os: successful return code is 0 Date: Mon, 27 Nov 2023 18:57:02 +0600 Message-Id: <20231127125726.3735-20-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 all network drivers return 0 on the successful transmission. Signed-off-by: Maxim Uvarov Reviewed-by: Simon Glass --- arch/sandbox/cpu/eth-raw-os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sandbox/cpu/eth-raw-os.c b/arch/sandbox/cpu/eth-raw-os.c index e59b96be5f..92c35aed95 100644 --- a/arch/sandbox/cpu/eth-raw-os.c +++ b/arch/sandbox/cpu/eth-raw-os.c @@ -256,7 +256,7 @@ int sandbox_eth_raw_os_send(void *packet, int length, strerror(errno)); return -errno; } - return retval; + return 0; } int sandbox_eth_raw_os_recv(void *packet, int *length, From patchwork Mon Nov 27 12:57:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747556 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3135845wru; Mon, 27 Nov 2023 05:05:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IHLl/kcnwsjBA1VIs0kdE4hqQqkAkk4piTv2BI4At/qDRq9vKh4OSj0gbTYbGEgWg9cLlgE X-Received: by 2002:a17:903:4282:b0:1ce:89a7:443d with SMTP id ju2-20020a170903428200b001ce89a7443dmr10174421plb.5.1701090313801; Mon, 27 Nov 2023 05:05:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090313; cv=none; d=google.com; s=arc-20160816; b=slT3yQ/X7hhkLyN6e93OUYosRit5JKQgL9OKh9p9AbRtSCbgAOagdxNqrizyJpD172 bhLHTzE0x0og4isCvMK9i+hmSLnmzhwQi8izK+kgPOhFB83GIHQulFeGEiuxspL4DN2t 9QYpcE/pPHqReb8TRRv+0ChNzDi0BL/gjBzyUgQvYJMQofRR4YMJsJY3QElwzz92DLnV /3UFFHLFr5UCrtfOLGC5xnF0tlN31HJ/HwkArxAAjNuB0kVzGiG4mqp6CRpfI2WgtLMR JXYZNdI/Wr+wAwJiY2QRdMg3ODjhVMEknr8zDLXX7PzcOONIutnOtOiOGV5VNxXlw/+X 1sCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=nUj9bNeOAFJnUgjAIYZdSaerdiXzEkAzNcyxyKkqUBs=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=RGo2AxfupquwBLkiLYv3ZyUFXb01ebjXbFetzEX9zRlTsRTayvQlL5c5YdB//YRGA2 AW9hEfJbSggV5ru7uiB+hYzMEGdvx2zBpckFrF/MxiyotwKSRJFyVggH3afPXclzSjem CvGKFG78rViWJMErXq7Z8cqu3O9/qEk3DOgTZK572lcIzE6r0FKjapaBECVxg1jlg7cO G1Azng/LtXjLy4I2Hidv5VTkvsRJKnHhuXJeDjOL1ICj3+beSmffFUohsnUbPpQafncu 77YAFTi6Ubvu3ZCe2OlLAs1Fj9JwMK7irEFpfYVjW2aUXlKBD1E5abX0vCT9/0PE1Fpy WMFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CT7MMOSO; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id b2-20020a170902d50200b001c89c86160bsi10090283plg.385.2023.11.27.05.05.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:05:13 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CT7MMOSO; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F07B5876ED; Mon, 27 Nov 2023 14:01:00 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="CT7MMOSO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9319D876ED; Mon, 27 Nov 2023 14:00:58 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8EA8787690 for ; Mon, 27 Nov 2023 14:00:56 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-50aaaf6e58fso6350579e87.2 for ; Mon, 27 Nov 2023 05:00:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090055; x=1701694855; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nUj9bNeOAFJnUgjAIYZdSaerdiXzEkAzNcyxyKkqUBs=; b=CT7MMOSO5VOYC5vCfn8n8BTIGWXJOFG7UQhqPGrAN1XCg5JMw8LN0NntmaDtxJmipu ZWNgKIqnT2/RuW2shd/Jf9aABXuvhqUbPCBcHQFXnp7fX4VRSciSxfzoscsQRzVEHAor DGmujPh78G2buyzolzVwW7t+52Xux6VZdsyO3fAWMtYjHTS4hNBVwWnVvN0MXcY7d+kd 5HMpHPX4Z4Bo3ZqGtlH989FqM/Vr47tFOZFJk8xwragjxd6Q5fN5pqDhI3dIYLpzSlzv igeIGuwkttWNFcP8MVlvOqnXKm7+rLoO36BiwLhNQsOk3xB4WoVJqK7LltKDmBzlA3pS JxVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090055; x=1701694855; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nUj9bNeOAFJnUgjAIYZdSaerdiXzEkAzNcyxyKkqUBs=; b=T2/oqqxtFsuqkc1cIOhr19SQjM2CK+9yZdKrdB2GPj9oQHZVa3nIai2yNmbN/n72Ti QIm3OLtJnRjDuJMnUqNvXWKgOH6LEgKFrM5M5n/nTpywv1Dt6VWfqykMpRqw0QkI0zxX OxZsjXa2K3wjgb7j78yskqz35m2aLowyYNLh0Uzob0NsM0j/1kKgBO5Xs5qXzpEZ77bX uBZTLR+5lSJXFwrOc9rYJD5duoaDEV5RTjmQLNROsCUQ8i3WbiXbsQma8cJFKWK+Nfq+ hALLXZlKm9lKNAmbLm7OgPca2V6cQXaeuUHvNelSvi6qixO0wGXNHpk255AE1O6NVWuo pO7Q== X-Gm-Message-State: AOJu0Yx/XaYFSL4W5yN/umHGEmaLRDYn+gN5E1QoEjXTPVkj6l7+ibqt NaD87MsSC/hG1GxNecr/45+NMNKT9eKIszwz9u6VjQ== X-Received: by 2002:a05:6512:104b:b0:50b:b5c0:fe8b with SMTP id c11-20020a056512104b00b0050bb5c0fe8bmr343848lfb.28.1701090055739; Mon, 27 Nov 2023 05:00:55 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.00.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:00:55 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 20/43] driver/net/rtl8139: remove debug print Date: Mon, 27 Nov 2023 18:57:03 +0600 Message-Id: <20231127125726.3735-21-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 debug print delays reset of the driver. Finally I see bunch of "rx error FFFF" errors in the screen. CI can not handle many prints. While network works fine there Reproduced with: make CROSS_COMPILE=sh2-linux- r2dplus_defconfig all qemu-system-sh4 -M r2d -nographic -serial null \ -serial mon:stdio -net user,tftp=`pwd` \ -net nic,model=rtl8139 -kernel ./u-boot.bin Signed-off-by: Maxim Uvarov --- drivers/net/rtl8139.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/rtl8139.c b/drivers/net/rtl8139.c index 106bc1c7ae..6003b88274 100644 --- a/drivers/net/rtl8139.c +++ b/drivers/net/rtl8139.c @@ -453,7 +453,6 @@ static int rtl8139_recv_common(struct rtl8139_priv *priv, unsigned char *rxdata, RTL_STS_RXBADALIGN)) || (rx_size < ETH_ZLEN) || (rx_size > ETH_FRAME_LEN + 4)) { - printf("rx error %hX\n", rx_status); /* this clears all interrupts still pending */ rtl8139_reset(priv); return 0; From patchwork Mon Nov 27 12:57:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747557 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3135994wru; Mon, 27 Nov 2023 05:05:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IHwNed7Tumt/DdG6368syLwDswbAKYbQ4LfDqDXbYluq/9OIVsIA2DCW93Xes7JleqQ7930 X-Received: by 2002:a05:600c:4ed0:b0:40a:4436:e037 with SMTP id g16-20020a05600c4ed000b0040a4436e037mr8499546wmq.35.1701090324662; Mon, 27 Nov 2023 05:05:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090324; cv=none; d=google.com; s=arc-20160816; b=f3ECTEl+lQtQQJFcDliMGX3BL/QRRCGSMjL6oL7C2uz4+4TympVg3CTAhWrVZFz5aA aXk3i/9QabtmPHZ83Fhetv5BhwyqjirWiQm1u4HUMoEe/FgoHdkAUtfiXNILK5pgTaKV a5VZfVhB2dHJHsABS6R43ekur4JPvgk4SN7Uh88vj3asa+2pZd2/Ufv9s1F1Rc8PZhzx 4m9emmvdVOx7vylL98haYxtRgq1TgboUWKsw6Sj4Egcktk8n2aM2uNa4gQzHZRn79AfY 0zFdCUT0rZMOgbffkzIif+Fwuy7AmCtvcpDEM56xSe2DHej9p3+/Jsuz7/aE10ydKQcg DcOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=MxFJwKL5zDs8b5aiVb6q3SDjOsJLBc/cfLiOxsIC9AE=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=m/3yvDe1I/eK+tMCSYc0UIRdtVY4J+/Fv6KfJzIJ3RyYAcOa6qTpURzeEI/AHq8FWa aSANg95dF19OXYCIW7DsNDOPBw2Po0dX65+G0axvRLxk5EeEO62wRuOuN61+HiSNUGxm bEY49MztSSvY6IbxPHG64TnGDwF6FjT8eBis6uUMEx1AeL+OHu3RNrtTLlW39sifMWDE +d/3QIaBfPWdYi10rtRfLcROrNSIZBO4LYktQXK8cSKjaUlZ2SiQ0JYiJKaZmLpGKqqy JYnXeYpOg3Fqdo23KDDjXBUa7/Tj1v/I6ICS5pUP6dPbjvv/4lkrwgAxD82AHl0DEZRX Ac8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=joBekW7w; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id t21-20020a05600c2ad500b0040a46a61658si5743459wme.214.2023.11.27.05.05.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:05:24 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=joBekW7w; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 341F58770A; Mon, 27 Nov 2023 14:01:03 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="joBekW7w"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F1B93876D7; Mon, 27 Nov 2023 14:01:00 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id EC4E087634 for ; Mon, 27 Nov 2023 14:00:58 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-50970c2115eso5645873e87.1 for ; Mon, 27 Nov 2023 05:00:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090058; x=1701694858; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MxFJwKL5zDs8b5aiVb6q3SDjOsJLBc/cfLiOxsIC9AE=; b=joBekW7wre4X2ODfdVkmVK88Qob7OLfRImlmLvoleDMhvElX2eBIPKsCxqJDwNvhM3 FxMLSOT+3H8Nqt56BF5e4NWJwFqF6HCyRDMF3lWHKIz8bf95Zexi9s8dBcqTtN83QIHd cVtJX7UWlU5FB3BxARd7VgZiyag7wE4rQ0O8n5Zjm5I8ZtVN5blO1Bg3QYTyfjo7icQD OY1Ihe68BRMRDu1nTwI9Y96PRXItcRUdHDKcsnqmcyOcEAZzx6MX74ZWOwHQ5FNSAwuu iszoiJ32CttfXdcu2gsMm5ITk5Epz6A8+07zzGzS9Wqv5Pwcnm3OjAd+gUP8wnceuQyS sOug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090058; x=1701694858; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MxFJwKL5zDs8b5aiVb6q3SDjOsJLBc/cfLiOxsIC9AE=; b=nDhA/4Eq7Z8rtl1cUGzbIympSIZs1hJVeirc/2/tvEycAcrh9j30TBDFoE0FgpNygc l+GAeoiAbW1JNMODYU2SlzigvgQ7ToKS49PcQXDZi7ru9ntZfSZ674yAUYn5r5fn9JnK keGXxNf92rn97kRkqzXAhJiQya1cvh+VkjaEg3+CgKD+FSeQpXSh7apHGp4dW2rFH1u6 LUlKHwLO5Qbt7cK/XOTMZXs+wkd7dQB92dm+eh9gj7joMlpaRHqagssBlkcJ7Xt2FYu2 T/G6zqn+tuoxW0X4xPfUDNL8MBX71d+D5PXzcQsYsziBWRJcsgM3G2ppNkz25/5fw+hF z+Eg== X-Gm-Message-State: AOJu0YwoiD5aBwvgxZ3wA1g5kMLG60q/UvqVjEFH4hKTgW9ZwsT8T7V+ ZnomAimzRPJ/BcOmrrkOhicZgoMNYOvSR2+vO8g3Dw== X-Received: by 2002:a05:6512:923:b0:50a:71e1:e1c9 with SMTP id f3-20020a056512092300b0050a71e1e1c9mr5745992lft.42.1701090057984; Mon, 27 Nov 2023 05:00:57 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.00.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:00:57 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 21/43] mach-socfpga: do not overlap defines with lwip Date: Mon, 27 Nov 2023 18:57:04 +0600 Message-Id: <20231127125726.3735-22-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 Fix compilation issue with overlapping lwip and march defines. Signed-off-by: Maxim Uvarov --- arch/arm/mach-socfpga/include/mach/handoff_soc64.h | 6 ------ arch/arm/mach-socfpga/wrap_handoff_soc64.c | 9 +++++++++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-socfpga/include/mach/handoff_soc64.h b/arch/arm/mach-socfpga/include/mach/handoff_soc64.h index 902fc6bfb5..9b85e5865b 100644 --- a/arch/arm/mach-socfpga/include/mach/handoff_soc64.h +++ b/arch/arm/mach-socfpga/include/mach/handoff_soc64.h @@ -78,12 +78,6 @@ #ifndef __ASSEMBLY__ #include -enum endianness { - LITTLE_ENDIAN = 0, - BIG_ENDIAN, - UNKNOWN_ENDIANNESS -}; - int socfpga_get_handoff_size(void *handoff_address); int socfpga_handoff_read(void *handoff_address, void *table, u32 table_len); #endif diff --git a/arch/arm/mach-socfpga/wrap_handoff_soc64.c b/arch/arm/mach-socfpga/wrap_handoff_soc64.c index e7cb5ea89c..df0701ec85 100644 --- a/arch/arm/mach-socfpga/wrap_handoff_soc64.c +++ b/arch/arm/mach-socfpga/wrap_handoff_soc64.c @@ -10,6 +10,15 @@ #include #include "log.h" +#ifndef __ASSEMBLY__ +#include +enum endianness { + LITTLE_ENDIAN = 0, + BIG_ENDIAN, + UNKNOWN_ENDIANNESS +}; +#endif + static enum endianness check_endianness(u32 handoff) { switch (handoff) { From patchwork Mon Nov 27 12:57:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747558 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3136217wru; Mon, 27 Nov 2023 05:05:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IEsekvf7WNNtenxlOgyeZ9z54/2BnPiQ5VIxzD8wHWM0P8VgO+0B4tBEXrjcR2/tGT40CtA X-Received: by 2002:a05:6a21:998e:b0:18c:a9d3:4f96 with SMTP id ve14-20020a056a21998e00b0018ca9d34f96mr2098151pzb.32.1701090341132; Mon, 27 Nov 2023 05:05:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090341; cv=none; d=google.com; s=arc-20160816; b=Xk9Mg8aHcM7cZ5Lf6jU2Yd15jT4T/jsCGSI16v7hzK8eNnQlfB5XhyW3Nn0onyOycn LltOmWeMI+MrrVBOvBnvd+1Ajx/7lx+QPm96FG18EQA5UpQgl6ieM8AcnX9bKE0hnyID o5euaU21beHuVlvR7f8e1pCoq4+mJ+v8YSpJ5qoV4fq4Eut5w1GwC3X4x8CPNEQyWy1c VmV0xApbrLVB8ngRYcmM6ERFod9MPA3djeO6QhsvBSkYNmubFuSgKp3CuZT8ew4G0WSy bYwO7kIHHOSbfzlqW86f4+xlAdNWA/UHjMEi5Gw1EafXICICndCz89rxesEoEI7ETr66 IkCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7/ApHZZokfYNAhQkIrUJHXefSMXsGfI8Z1dkA9PV0nk=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=tFRFW40L7732+6ZJvq9Q5ae+6vmESlCMlmF1J86nZpvVT1JZ7gQEvF5LopmuCOZOQR CndgcVJgiI/ZIGRgthghXtKUgrpAJ3Pc2dcBX/eC2q8HwwiOVj21YZ+J0KmOVNv4qo+6 tn+EEFTinoV8vtd1hl4lAg7S8CGbH4CFqWkXG7nqTtHvMy/MDOfYES79rj3C3GL3c1Sl m6m6nkJi++pO+Izykz285fDQPTwCXqpk38JVfPOhcWwARamo4kXj4RRBhXz9DxNyPYbL gvToZhzi0VpTQLNzZ5tf+JN5rvrJ+NcYzY0tVDfXa7hVCdT4b36lZ0kVSY/dnWjwQwNN I4Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WcihVUXQ; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id c32-20020a630d20000000b005bd27be66e1si9723304pgl.719.2023.11.27.05.05.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:05:41 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WcihVUXQ; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 94645876D7; Mon, 27 Nov 2023 14:01:05 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="WcihVUXQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 29D8C87633; Mon, 27 Nov 2023 14:01:04 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9A17C876D7 for ; Mon, 27 Nov 2023 14:01:01 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-507c5249d55so6338709e87.3 for ; Mon, 27 Nov 2023 05:01:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090060; x=1701694860; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7/ApHZZokfYNAhQkIrUJHXefSMXsGfI8Z1dkA9PV0nk=; b=WcihVUXQ7Mqev/v3gs8epfn9cZ4qs94uSKdL8zCFgPYYlySrI5mH0spM3exr2kVu50 Djie+4k0yaZSlVsNC0CDp/TCCvGtGc0eWEFKyUeNcqLMp5uzezYXTfEtFBY1iHWxsfyC 8GXiB/MB4omEJM150sSmXJigofThoiCAQ31aOoK5/x0mUvLD2/m5VaIPgAW/RhyPfunK ZnecpSOAi0hs31zO9Px7Vzv4wU4UrnHnojdTeUnHSgQ+qLhBj/RHsaNdCjIQnFjS3nd6 MD7vtcZJlx9qdAq5HE2SdW5XnutO++9QiXEr8LStrICdErjK6gUGK5VNu2/QVYIOcczV O9Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090060; x=1701694860; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7/ApHZZokfYNAhQkIrUJHXefSMXsGfI8Z1dkA9PV0nk=; b=UxTfEjxijRFEuNtLax6lpsfrDp1A5D+PtYf+A1B4LIG2Ln+o3wfBsKs2CaBm38BrWz /HrHj2K5/B8PyiCTyPFE/bKlduJyYkzEp6JULm3YwWfJS+pifGyWd0+JEYOyxkWGk8an weQHofwHfoegVP0MUIPoMKa2Zg1JtnfEaEjohy58TclKIkr6YrnGsksc14RGWLzsNTfU 03TTR7a6FiMEgJvhdi7yr71+YxM5tdEQ9lww+m9rvcVM0y0wetddtNA0Hi4F0R9QeHjo lYQCtIVAi2GhoVGAgOvCc5srBPbq7bBGzUDIqsSCdYHXktJ657GdTAwqwZ/mTpAWsNqk 8gmw== X-Gm-Message-State: AOJu0YylLy58bFxZBPOpu3COjyXJF1kTONX8KvQoAaT/Flb0b6vTxvuB ZASY+7EE6Nksi9ku6wPq05xg26l5Lk/zX6LF3x+mOQ== X-Received: by 2002:a05:6512:909:b0:50a:aa80:546e with SMTP id e9-20020a056512090900b0050aaa80546emr7117109lft.59.1701090060204; Mon, 27 Nov 2023 05:01:00 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.00.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:00:59 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 22/43] bcm_ns3: fix overlap define with lwip Date: Mon, 27 Nov 2023 18:57:05 +0600 Message-Id: <20231127125726.3735-23-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 Rename declaration to not overlap with lwip. aarch64: + bcm_ns3 +In file included from net/lwip/lwip-external/src/include/lwip/etharp.h:53, + from net/lwip/lwip-external/src/core/init.c:55: +net/lwip/lwip-external/src/include/lwip/prot/ethernet.h:69: error: "ETH_ADDR" redefined [-Werror] + 69 | #define ETH_ADDR(b0, b1, b2, b3, b4, b5) {{b0, b1, b2, b3, b4, b5}} + | +In file included from include/config.h:3, + from arch/arm/include/asm/string.h:4, + from include/linux/string.h:21, + from include/malloc.h:369, + from include/stdlib.h:9, + from net/lwip/lwip-external/src/include/lwip/arch.h:83, + from net/lwip/lwip-external/src/include/lwip/debug.h:40, + from net/lwip/lwipopts.h:93, + from net/lwip/lwip-external/src/include/lwip/opt.h:51, + from net/lwip/lwip-external/src/core/init.c:38: +include/configs/bcm_ns3.h:52: note: this is the location of the previous definition + 52 | #define ETH_ADDR Signed-off-by: Maxim Uvarov Reviewed-by: Tom Rini --- include/configs/bcm_ns3.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/configs/bcm_ns3.h b/include/configs/bcm_ns3.h index 47de4bc201..7c6e0725a6 100644 --- a/include/configs/bcm_ns3.h +++ b/include/configs/bcm_ns3.h @@ -45,11 +45,11 @@ #define PCIE_ARGS "pcie_args=pci=pcie_bus_safe pcie_ports=native vfio_pci.disable_idle_d3=1\0" #ifdef CONFIG_BCM_SF2_ETH -#define ETH_ADDR "ethaddr=00:0A:F7:95:65:A4\0" +#define BCM_ETH_ADDR "ethaddr=00:0A:F7:95:65:A4\0" #define NET_ARGS "bgmac_platform.ethaddr=${ethaddr} " \ "ip=${ipaddr}::${gatewayip}:${netmask}::${ethif}:off" #else -#define ETH_ADDR +#define BMC_ETH_ADDR #define NET_ARGS #endif @@ -749,7 +749,7 @@ OS_LOG_LEVEL \ EXTRA_ARGS \ PCIE_ARGS \ - ETH_ADDR \ + BMC_ETH_ADDR \ RESERVED_MEM \ SETBOOTARGS \ UPDATEME_FLASH_PARAMS \ From patchwork Mon Nov 27 12:57:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747559 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3136357wru; Mon, 27 Nov 2023 05:05:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IEWcTE5l+3lNfcwpZFGVZbX8IvxjZBvYjA1UfNtV6fN68QFhdyE7kPRiWXexQWOj0T6Cpjv X-Received: by 2002:a5d:470d:0:b0:32f:c3f0:f869 with SMTP id y13-20020a5d470d000000b0032fc3f0f869mr9383245wrq.41.1701090350053; Mon, 27 Nov 2023 05:05:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090350; cv=none; d=google.com; s=arc-20160816; b=ftWloTH88B7er3lKoe8a3L7ZnOkRHmZMKDjL1hLaTZSU6hugfjDE7IsSo3Cwt3oUcU /OK9mW0JnaYeHTFQXDr4qyA2JM3B5s5C2jNZjdDgroPxWjvzbAk2055TqGc36i7uF7Jg XC4ZCpVN8Pmr9KDF1IyrgNptzejMnxz/b9OXWX3KFQGSPq/++zkYKM5Zdo7ZaWS9XaEj P24wKHhEFY66dg80QyxIa3Y52/en5MzDmgdptn7IY419YZJPby3DJLEdgJ+cZEdmVF6R DSZWqY4AX8cvlu0rvnF12jpfr6tSFueP6ovWkxzfYSONvRp7fBbg3BeoEaw8sbVqat0b F4eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=UeW1odG9hZuINbqUD6xKHKoC4MNjK1YXfaNFNoaxSpw=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=BAi3YLozoba1Owm2JDYv1+DXVjF+YUH2AN5kFy+CNIz4yc36FEM0FUoMuRlISnjjsz gxjtdOFwdZcQxog6PoDUw9ApHXJIM14shV7CNKdAV9kcxu6PQrMUuJAsQf2ONH4NFCXf 1wkw5/ucNl8MMhvTQfrhNXCOsu+Bmi5ubmwGU+r2qyywkD+fmigMvpcUUz8fli/VOIeW kvgKbog1I0hWo/eJw8D41X9/RIEiHPpHsgf00tg7n6VmvE708OB13A4jW8h/gAoUQDGW cF3BE7hS89cbclZuf9mGZvszEJyRuL3NUvhjoh/WwtAoTfgPyqPgconx0KDbcPj09ljF Bijw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mlN8USNK; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id s14-20020a5d4ece000000b003296b488967si5366059wrv.841.2023.11.27.05.05.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:05:50 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mlN8USNK; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1B3908772E; Mon, 27 Nov 2023 14:01:07 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="mlN8USNK"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C74C88772E; Mon, 27 Nov 2023 14:01:05 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 385B08772C for ; Mon, 27 Nov 2023 14:01:03 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-50aaaf6e58fso6350834e87.2 for ; Mon, 27 Nov 2023 05:01:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090062; x=1701694862; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=UeW1odG9hZuINbqUD6xKHKoC4MNjK1YXfaNFNoaxSpw=; b=mlN8USNKSdapJQD9LgxHLOYJH0PL2kxmUETqagM4ONEc9rcBoBBeKq9fTtijURbUK3 pJFxi+5cpRwweR611EpdqqSjAIZpW/xIOQpwwVY8EsozygU+e3yVePKhVYgqS8VLXiis mZ1lNyuAYxdT/f4xoiwoquBLxjjqIc2LjGW5lrZ1U6O1YaIk0v0tdm3ILnPVuuJvua/z qd1enOZw2GVwjfdv1qmC766LvFMWVD3PnY2XheMPxAD3enYprExKLV3zgSYZa8DqLqaU 5PDUho3gtDtVhpbA3Y+R8XxVQD/OSREgzqghUJppm/XdRviafO3Pc0ZNbo46b/1hh8aQ ncng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090062; x=1701694862; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UeW1odG9hZuINbqUD6xKHKoC4MNjK1YXfaNFNoaxSpw=; b=OvULDCc+Rab1xwKynjy8HTQc/clHSkb1Ml+j5JnOJvdm/1iAzDBqSRAdS7rQNw5gUA Ryei8DDrfR9kPFjD7j3wpkM2fPJ42N8YdndbSae8gEINwD0EPlHUUeZuIaVQECmvyneM JZqkasJ5Hk0E73MNlEqVX4RW3EwzdcYKYq9TDDvgRo9O8VUYp6OWyfXbU5rYi7Z3wULn bFIzQdrbUs/AGntJ1uZeICWqRceKUCHUpIPV4fi0ngtdoyfDgBV8bazDGo3a82YKlOLg 2H/9hNpYJchd7oaFW00HVZ6y/hr73CAw3j2gfukSVqkSsZ4kbPP0O4DcvTBvWB3cTuPJ D8Ig== X-Gm-Message-State: AOJu0YwVerTUWC2tQGC771QqaCnIKl0cFneSdf0mQQRXFwMPW42hvHg4 WXgTZM52CJc2CTxrpmjkeFgS0tjywcX4eZtPoQIy6A== X-Received: by 2002:a05:6512:32a7:b0:507:a5e2:7c57 with SMTP id q7-20020a05651232a700b00507a5e27c57mr7363582lfe.18.1701090062376; Mon, 27 Nov 2023 05:01:02 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.01.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:01:02 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 23/43] rcar3_salvator-x_defconfig: increase binary size limit Date: Mon, 27 Nov 2023 18:57:06 +0600 Message-Id: <20231127125726.3735-24-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 aarch64: + rcar3_salvator-x u-boot.img exceeds file size limit: limit: 0x100000 bytes actual: 0x106d6c bytes excess: 0x6d6c bytes Signed-off-by: Maxim Uvarov --- configs/rcar3_salvator-x_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/rcar3_salvator-x_defconfig b/configs/rcar3_salvator-x_defconfig index e045cf27d3..238d0b3940 100644 --- a/configs/rcar3_salvator-x_defconfig +++ b/configs/rcar3_salvator-x_defconfig @@ -10,12 +10,13 @@ CONFIG_DEFAULT_DEVICE_TREE="r8a77950-salvator-x-u-boot" CONFIG_SPL_TEXT_BASE=0xe6338000 CONFIG_RCAR_GEN3=y CONFIG_TARGET_SALVATOR_X=y -CONFIG_SYS_MONITOR_LEN=1048576 +CONFIG_SYS_MONITOR_LEN=1085440 CONFIG_SPL_STACK=0xe6304000 CONFIG_SYS_LOAD_ADDR=0x58000000 CONFIG_PCI=y CONFIG_LTO=y CONFIG_REMAKE_ELF=y +CONFIG_BOARD_SIZE_LIMIT=1085440 CONFIG_SYS_MONITOR_BASE=0x00000000 CONFIG_FIT=y # CONFIG_BOOTSTD is not set From patchwork Mon Nov 27 12:57:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747560 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3136581wru; Mon, 27 Nov 2023 05:06:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IG0BRrymXa0ILiOHoyPGN5sbV11A8ePYzKqrunFX+t2FCa249gnOKTZBZ/jUGTV4DGiY8Wr X-Received: by 2002:a17:902:bb8f:b0:1cf:8c88:51cb with SMTP id m15-20020a170902bb8f00b001cf8c8851cbmr9613871pls.62.1701090366806; Mon, 27 Nov 2023 05:06:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090366; cv=none; d=google.com; s=arc-20160816; b=l2RQbXBeyCS7bWKX9i/3tx2x5PFfYqWPKXALLZ5gLIjuIwUXGeizM7wEWivFZJ+x8+ rAhlyCv0tv1XY6dShil9L36rAj+tBg9NyaV4VTMPHVCiN29IZc7zubfUdkYMD9YBLbSi 0QOh4C/nxARFe/zWy8n0CyS6m2kkKGAGq4ejlUNZrO4BAS7O0bRYY6PER17k8BCs+DWL A0bq3X0NArzQI6JiwtlWMtBoKlDHV6k7bkhDlhROD3Gf/HXDa225mW8+S78JSdO1mcs6 9Eh56wA6aWCjywuLFSuOjLxSlLIYcjt+CjntsrwDtO2sQB0l05o0Y1afkA6RB/QbYGIG XcXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=OgwYbRu88Ced266OZDbb50IHq7aBIxtSa83fftjaWek=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=D3ziW45CxCopM5Rb7qPocR127l1G0pfpITJtx9Kh7gG0AJimr9BrEXPsVcpgDB9ZGB p9PQW0VNiRtBXrSNXiFEKMcs4te5hAWL0rPyN+fFxjgFplXI+n7WqOr28YMfM10S7xD+ 3wTK5Siu4AFH87QYTOIMJXm2YtASoS77ejbYHwxc65bPHc9voO5+/fLU7eVr4MXokN0z 5yDo+X3tZK9NlgSoSPdOFkwxU6+pHnYLvXCaND6FjVF+ZDYtL/5B45j6cLswlWGBiBej jI7WhK1uFXu27B0MN3GtDkVQiDkn+255ZR+wQO84AWR9BcaO/21fV1oX1gmZjJOuXk3o OcoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ZKM7/i0P"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id jw10-20020a170903278a00b001cc3397aa27si9212200plb.62.2023.11.27.05.06.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:06:06 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ZKM7/i0P"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CC4FB87701; Mon, 27 Nov 2023 14:01:10 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="ZKM7/i0P"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8725087753; Mon, 27 Nov 2023 14:01:09 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 45F1A8773A for ; Mon, 27 Nov 2023 14:01:07 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-507975d34e8so5775897e87.1 for ; Mon, 27 Nov 2023 05:01:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090066; x=1701694866; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OgwYbRu88Ced266OZDbb50IHq7aBIxtSa83fftjaWek=; b=ZKM7/i0PRCnKnA0b8RJAr547CF/K8l9kmIRkOn77gusIDMPDxlBcVrZWBDJrKshl5P jrhU+FegNWogzlsOn5yQYyN5zL/gwyHpIl2NGRYogukPTHyKLPwird5/eECSIcctomHI wNWl1xcnwHeE0UhQxiEKTVohqTSfC8QBS7YK/EC8JVKAmK5AHjjf6UXEpE+odZbTTdh2 B6qrb2uPaz+9ZEFeQpT7vsCNWoP5+ykzCOkA7d2UhRjlqaHXbu0qWtXvNlD4cwTFHJUN 3lORpiDlr2OIuj4IhCwDnfpb4TTsn5gvYZ6CG45iO6t1GgMBZNLzMusa4VWpB3qZzrig yWMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090066; x=1701694866; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OgwYbRu88Ced266OZDbb50IHq7aBIxtSa83fftjaWek=; b=KO8mQwLDWUkh0chfJ/tOzsfl28g0Nb/aCIZ73Xq7yrl/TphEawDuPRgyFckCZaStYc d5U58ibTqHS98r6wOeqGwj3A0UQiDfxMMOrhklDb4E6WDlPkUrd3gpeRXt/0i+siuAY2 NOrsjgwkocsr8Gvu1dYL3fyiPOuYvCguYPSvO4c6RXXQ0LhVMjtCcLP6CZBB9fY4zttw +IuZBdEyHvqGFyJJQwTZfWvtMpsN8foENrweuYz+jwE3UDC4wekUrt/tNygbGiLcUPt1 TlkJXNY/vybaVAuX1g6EYfbvdRyUW+8IR12TsUr77QBz4Ajb2HnF51gIIX6dKwCRhiXE kkgA== X-Gm-Message-State: AOJu0Yyfov84pYK3fyQSKn/18HA+A8laTc9RLssh+bpISSypmntv+Ha5 e9WrnMFu5DUh+bIl4zW7oevsWB47c4I7tyYpRUG7rw== X-Received: by 2002:a05:6512:21ca:b0:507:b935:9f5f with SMTP id d10-20020a05651221ca00b00507b9359f5fmr6292455lft.24.1701090064632; Mon, 27 Nov 2023 05:01:04 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.01.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:01:04 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 24/43] lwip: omap3: rename mem_init Date: Mon, 27 Nov 2023 18:57:07 +0600 Message-Id: <20231127125726.3735-25-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 Rename mem_init to solve following compilation error. +arm-linux-gnueabi-ld.bfd: net/lwip/lwip-external/src/core/mem.o: in function `mem_init': +net/lwip/lwip-external/src/core/mem.c:162: multiple definition of `mem_init'; arch/arm/mach-omap2/omap3/sdrc.o:arch/arm/mach-omap2/omap3/ sdrc.c:240: first defined here +make[1]: *** [Makefile:1764: u-boot] Error 1 +/opt/gcc-13.1.0-nolibc/arm-linux-gnueabi/bin/../lib/gcc/arm-linux- gnueabi/13.1.0/../../ ../../arm-linux-gnueabi/bin/ld: net/lwip/lwip-external/src/core/ mem.o (symbol from plugin): in function `mem_init': +(.text+0x0): multiple definition of `mem_init'; arch/arm/mach-omap2/ omap3/emif4.o (symbol from plugin):(.text+0x0): first defined here +collect2: error: ld returned 1 exit status +(.text+0x0): multiple definition of `mem_init'; arch/arm/mach-omap2/ omap3/sdrc.o (symbol from plugin):(.text+0x0): first defined here +Image 'simple-bin' is missing external blobs and is non-functional: tee-os +/binman/simple-bin/fit/images/op-tee/tee-os (tee-os): Signed-off-by: Maxim Uvarov Reviewed-by: Tom Rini --- arch/arm/include/asm/arch-omap3/mem.h | 2 +- arch/arm/mach-omap2/omap3/board.c | 2 +- arch/arm/mach-omap2/omap3/emif4.c | 4 ++-- arch/arm/mach-omap2/omap3/sdrc.c | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm/include/asm/arch-omap3/mem.h b/arch/arm/include/asm/arch-omap3/mem.h index 569779c55e..fce3568eca 100644 --- a/arch/arm/include/asm/arch-omap3/mem.h +++ b/arch/arm/include/asm/arch-omap3/mem.h @@ -475,7 +475,7 @@ enum { #ifndef __ASSEMBLY__ /* Function prototypes */ -void mem_init(void); +void omap3_mem_init(void); u32 is_mem_sdr(void); u32 mem_ok(u32 cs); diff --git a/arch/arm/mach-omap2/omap3/board.c b/arch/arm/mach-omap2/omap3/board.c index 8b70251457..c76a95dd5d 100644 --- a/arch/arm/mach-omap2/omap3/board.c +++ b/arch/arm/mach-omap2/omap3/board.c @@ -216,7 +216,7 @@ void s_init(void) void board_init_f(ulong dummy) { early_system_init(); - mem_init(); + omap3_mem_init(); /* * Save the boot parameters passed from romcode. * We cannot delay the saving further than this, diff --git a/arch/arm/mach-omap2/omap3/emif4.c b/arch/arm/mach-omap2/omap3/emif4.c index 7e5a281922..4fbfb387ab 100644 --- a/arch/arm/mach-omap2/omap3/emif4.c +++ b/arch/arm/mach-omap2/omap3/emif4.c @@ -159,10 +159,10 @@ int dram_init_banksize(void) } /* - * mem_init() - + * omap3_mem_init() - * - Initialize memory subsystem */ -void mem_init(void) +void omap3_mem_init(void) { do_emif4_init(); } diff --git a/arch/arm/mach-omap2/omap3/sdrc.c b/arch/arm/mach-omap2/omap3/sdrc.c index 5d43e7c9cf..f2a0769b9d 100644 --- a/arch/arm/mach-omap2/omap3/sdrc.c +++ b/arch/arm/mach-omap2/omap3/sdrc.c @@ -4,7 +4,7 @@ * * This file has been created after exctracting and consolidating * the SDRC related content from mem.c and board.c, also created - * generic init function (mem_init). + * generic init function (omap3_mem_init). * * Copyright (C) 2004-2010 * Texas Instruments Incorporated - https://www.ti.com/ @@ -232,11 +232,11 @@ int dram_init_banksize(void) } /* - * mem_init - + * map3_mem_init - * - Init the sdrc chip, * - Selects CS0 and CS1, */ -void mem_init(void) +void omap3_mem_init(void) { /* only init up first bank here */ do_sdrc_init(CS0, EARLY_INIT); From patchwork Mon Nov 27 12:57:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747561 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3136781wru; Mon, 27 Nov 2023 05:06:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IEri6Sync+3WBvE1wYGzM8Jv5zHnoDmTM2vj5CZ3DSRi9eYZ5qfvC2aZpIOhYDwxEGQl03j X-Received: by 2002:a05:6a00:2791:b0:6cb:bc92:c73f with SMTP id bd17-20020a056a00279100b006cbbc92c73fmr14528975pfb.2.1701090381767; Mon, 27 Nov 2023 05:06:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090381; cv=none; d=google.com; s=arc-20160816; b=ksFUk7IECKfO5TzxPti/H9FFCW3AsTNCO7/mjJ+vEeh2voZ9TIF4TuFHBKsSQN1MGJ Mk62ADP9jrl3EHK9n7MBhqg2VSzxgzNDhNGUrMs6x3VSVh+yO+H62ulsjHOcJbQ54uQ0 WottArnaO0zwsB6hTvd4DlldpQAF8FUtmloo2qWYgT6Ed/oIcPdlwAe4hY4Mco/gfhdF +xtOilrNJ20WDUa1XpmYO+lngaVL4kYQ6fg6pKizgE/DyHIkL7WJb6TOTPff0h97a3wb eIpWRl1LdjGk1Cce+8xpYjF0/A1sPBcpL8S7zHoG9mQIzOVJEySfcI+v2dKIckncxN4M fL8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=zJVPfysbVGWYii4Q2XUePovhqpLXz5HuYRoOvOFqCdw=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=Ht2NXClZ2AhYAbxOJoV+iKSHurlugMe2XEV3hdN8dltpf4mCzDeLQoFF6P4yjTNMSk 2Mo/diwk+7dENZTLsyu0A/DgR39pR+WWnUHaaGLj3y5nh1OXmJPaxawGGosD84DpfdAH AjRndlPKj9UaStnhp2sXUImU5mF3yFkNabxIUmsZ70eF78+YqqRMf/6IsNBP3UAH8Cxh ZoIzjydwyUX7lAteRrFHzkuWXAMBd5hHzA46yptPDncFrcjBi1Cs2L9/KV7MXvGyguOB YDqqWoM6wHsG3REu1pAPXUuTK4wb+hFlzYAh8PHdj8F4lVgz4V0LgLce1l8kD377Wvev 2Ang== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="IK2/EWaL"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id s23-20020a656917000000b005c24214bfffsi9759605pgq.412.2023.11.27.05.06.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:06:21 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="IK2/EWaL"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A71E387745; Mon, 27 Nov 2023 14:01:12 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="IK2/EWaL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C4CDC8773A; Mon, 27 Nov 2023 14:01:11 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 605A287745 for ; Mon, 27 Nov 2023 14:01:08 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-5079f6efd64so5608303e87.2 for ; Mon, 27 Nov 2023 05:01:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090067; x=1701694867; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zJVPfysbVGWYii4Q2XUePovhqpLXz5HuYRoOvOFqCdw=; b=IK2/EWaLkGdPglr+RhMzpaJsEdvhFV4vzIvOxJetHckoY8PhHvmM1ssDs9K7XzF+Gn Ij7ecpB1a/g950jTEGDxYe0TKxQluU79b/j4por1bSgFTgLz6ebg/7a3eDclcv6ZZrhc O6LT4Uj4GmKiwFgYsNdz9lcCl5RaSU9Vyl/1rBbK7djMjOvdEv3qJzl0oyH3W13GxBG1 fTYtD0aRR+CS2bCJrDSpm7Ff0HLSPiP/OMWxjNpzLk2ry0QzoEp6g7Rhs0eoq8foL17q PQVGY97Op0TGt/5rsJmxnfu/Tc7jYEFAPsWXquwBVcVr0vaWbBojzRS3BqDG1DrVzHN2 3COg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090067; x=1701694867; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zJVPfysbVGWYii4Q2XUePovhqpLXz5HuYRoOvOFqCdw=; b=mioqIixk/kNnwG+aO8WovN4ed3GYOtAi1C7bemGVxiNa9KJtiMgs2q2J4WjDtu7it9 5aAjDphIajLZWCWjdQK/Esqti/Pnkx83BhKU+gFOT06OP5HQ+JLC0pRY+od6GPWlIWAL 8SInuFuBZX0r5CrHc4m4zj9T9ijyStLRcukcrnlnTneE3W6xszAfyhHGlXogO/BvaHsZ oS8clmNRJ4qoTda+InBfhb8ehDBvWoC3hWkFJgUb30CN0PM1+kWBGocDQmm3JeLG+UyD BF7DoQ1d2zFfhbNeik2e0sW6qqeYKwq+YrYx6zxsitkIPT5za4jkBPNgDGsQ/J8oXi2c 2jiA== X-Gm-Message-State: AOJu0YwhPxUcfFxE9Z4Pe63oCvzAeBedWVlf3sRMZm3w0y3OHGU6QfjH gu/Tr3CdJgJ+JmvJXSTOzCiYDj/NTjEuyJ9KOyk3zA== X-Received: by 2002:a19:ac4d:0:b0:507:b935:9f60 with SMTP id r13-20020a19ac4d000000b00507b9359f60mr7692491lfc.57.1701090067127; Mon, 27 Nov 2023 05:01:07 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.01.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:01:06 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 25/43] configs/turris_omnia_defconfig set limit to 0xf6000 Date: Mon, 27 Nov 2023 18:57:08 +0600 Message-Id: <20231127125726.3735-26-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 Increase allowed binary size to fit lwip code. 0xf0000 -> 0xf6000 Signed-off-by: Maxim Uvarov --- configs/turris_omnia_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/turris_omnia_defconfig b/configs/turris_omnia_defconfig index 65d4a296e7..afcd4a1eb7 100644 --- a/configs/turris_omnia_defconfig +++ b/configs/turris_omnia_defconfig @@ -32,7 +32,7 @@ CONFIG_OF_BOARD_FIXUP=y CONFIG_SYS_MEMTEST_START=0x00800000 CONFIG_SYS_MEMTEST_END=0x00ffffff CONFIG_HAS_BOARD_SIZE_LIMIT=y -CONFIG_BOARD_SIZE_LIMIT=983040 +CONFIG_BOARD_SIZE_LIMIT=1007616 CONFIG_FIT=y CONFIG_FIT_VERBOSE=y CONFIG_DISTRO_DEFAULTS=y From patchwork Mon Nov 27 12:57:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747562 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3136970wru; Mon, 27 Nov 2023 05:06:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IEi2HtZOLn/N/VViFyU8UyevuqdYtsz+sqChj47noe3MohfR/SHg0tOzG7vFa0sCjdgA0c/ X-Received: by 2002:a2e:834e:0:b0:2c6:ed19:58a6 with SMTP id l14-20020a2e834e000000b002c6ed1958a6mr7311991ljh.33.1701090396322; Mon, 27 Nov 2023 05:06:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090396; cv=none; d=google.com; s=arc-20160816; b=gd0AJ8bs1uevwoo38gwvurY34IwUR7m0ZaG3dcbjvTiPtg/So/dAB+2igzmqHNe2Tg zX0pKUSbBuY/HHc+wKIoEzGFYh3Db9mEUS29/gBV4+qrHduqyBNqI3i1JJpl1gq/a/fq YyVIEzMuqQ9/mCKh3tAH4zR3L/d92ZHmAfjSHvqvdXZ2BYN841wjVrrx/Ue82i74XvHV r6EmUS2oCjONFb5cTOWFppWwxX0F7UKlUj5jcEAZuXTr667bmPpF76l248xqryk22ghO yf+ftyhP6NSUTVry2jPQQ5pzu3DLrukmmRDLF9U5F8Rl7u0nXr4DadZJqRCHyj06u9h1 9UlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=zp1Xhgf4y5DBBqJwAXIj4y1MPHFGwEfkxd7bvz64qkI=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=orwoJ5zfC+Vw2Oqb+tyz54ttWOILexWKYyQwYZ2KMFXDspTqziqvQW/ygjK9HpcyAU 2JIeSAocb83X2mDOyuGb8nIQuXQ2Spc86iFtixctTtI/26D3Uts/dX7aS07/o3A5bL1j K87nt1gfgwsP/M9texyfD441LDXKa87CCnsyQM8G3VD3McLa/r9KGI/GFRa25PMx1zLR NS7DCjr0WakHTIwm8tYhk1hyEdLer3OTPhstFUSqE96C0Hf2fRdy8/DU+i2Fyi1BwO+n YNEDd9mJOof0CSQIK4kl5FPwWau0rMRWWusBbtYzIECatcJ9QHeH4jEbSJQo6E1AEojN B/yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EzSZHQEu; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id j8-20020adfe508000000b003313b6d6e71si5416317wrm.286.2023.11.27.05.06.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:06:36 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EzSZHQEu; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3BF1B8773F; Mon, 27 Nov 2023 14:01:16 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="EzSZHQEu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2FD018773F; Mon, 27 Nov 2023 14:01:13 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 226248773F for ; Mon, 27 Nov 2023 14:01:11 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-507a98517f3so5641444e87.0 for ; Mon, 27 Nov 2023 05:01:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090069; x=1701694869; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zp1Xhgf4y5DBBqJwAXIj4y1MPHFGwEfkxd7bvz64qkI=; b=EzSZHQEuOqxg5vZUKTYmKUnXBRkJZbbMeBsPYFOUITTTJQF6obmkNi1UcmO+nuSHGF Pu5vdAxBxop/8xGYdbGLcoz0JraQl3rk+KHmsSxHgf8ooF8vQ7wuKc+0ZXm9WPvSSjfM 0Im9UFbgYvBfm34MY+zyH51l8irm7fGIiMz1lk0PuiL+7lq/aqEPyrLnqfo4TxBPduJd esa2CUYmBomhlA0XAzx16WhM9xYDNIkOkM2AsLDZHAbsCsKUzwLaKFwIPjYbi5YU10MJ V/LcAZoQPzHxUOnTlS5aUxHTs7N+OgekOvRJElqMIyHTR667+wVgJtVasRpe20y6TJS3 EUkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090069; x=1701694869; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zp1Xhgf4y5DBBqJwAXIj4y1MPHFGwEfkxd7bvz64qkI=; b=fVFhjOWFj7uxQGS5wGgxlG6trCKj5q3JyAkAXNnNLeAQFPpKH1e+awKjt17G7qIZu+ 7KLUNZqhVy40zghY/fZm6VqMkFGhViQtfzzvVzXsrz38gSDtKa93F3WDzWbFvrhxMjl7 FDTvWMCtywkcodBb4xy1mHCANIY27eW65kc3PR/3VNC+FBYrLD2WjrRdrhAHchqVRshU VJ+r8BlW56YAydG1nvo3AEocF+xwiFSKUX69Sio3vpWCWQ3TTvqjtgq+Ze7PlPOOK9Z1 QiLaK2wremndwpxVhELwhvnKaqgHSEMejlsMj0aDzseHWTf7JstnvSdNIH5Sjs4W78ym QDpg== X-Gm-Message-State: AOJu0Yy7wdFYRQCdtEnqL+bQKQpoD/53aC5P53yCYvGx5MTPM4XI3GlB cdE//Lbzxglr/Ul4ZajzPNr33YMgcw3CKMRvfOHFnw== X-Received: by 2002:a05:6512:ac2:b0:50b:a720:8ae4 with SMTP id n2-20020a0565120ac200b0050ba7208ae4mr6772337lfu.36.1701090069390; Mon, 27 Nov 2023 05:01:09 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.01.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:01:09 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 26/43] configs/tbs2910_defconfig inc limit Date: Mon, 27 Nov 2023 18:57:09 +0600 Message-Id: <20231127125726.3735-27-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 Increase allowed binary size to fit lwip code. Signed-off-by: Maxim Uvarov --- configs/tbs2910_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/tbs2910_defconfig b/configs/tbs2910_defconfig index 8fbe84f1d2..ce40efa9ab 100644 --- a/configs/tbs2910_defconfig +++ b/configs/tbs2910_defconfig @@ -17,7 +17,7 @@ CONFIG_SYS_MEMTEST_START=0x10000000 CONFIG_SYS_MEMTEST_END=0x2f400000 CONFIG_LTO=y CONFIG_HAS_BOARD_SIZE_LIMIT=y -CONFIG_BOARD_SIZE_LIMIT=392192 +CONFIG_BOARD_SIZE_LIMIT=417792 # CONFIG_BOOTSTD is not set CONFIG_SUPPORT_RAW_INITRD=y CONFIG_BOOTDELAY=3 From patchwork Mon Nov 27 12:57:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747563 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3137188wru; Mon, 27 Nov 2023 05:06:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IH7NvwDAdkpRhu3+wU05SLsZwkzIuSOaUVOdwbReJoe8AWIYWQHyiq0xsKkUY5magrklvfH X-Received: by 2002:a2e:5007:0:b0:2c9:9968:2d4c with SMTP id e7-20020a2e5007000000b002c999682d4cmr4213622ljb.9.1701090411099; Mon, 27 Nov 2023 05:06:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090411; cv=none; d=google.com; s=arc-20160816; b=qDAEUs2Fr8TOwWb3WK+MYaFLKOMUSWLoPoqH6H1+9sr6l2tydD+Ho+m1cegWkXvOeh 302f1ieFYXfQevtRqYDeh8C86cM/2mDzD7eS6xrjCsgsIf646aeT2uNQqzfjTs2cDw/U AYq4i3uQWa5nV9NOOJxzkojXsXYSjO5FGKXT/9KSgEXlKkK34DHZrcGFmtnU3gHkcNbg rcTZ0jW5OoBSKjmmwAXIjwOItyno9hQKx8NnJFssuj1tl/ulvmuIfsjQYqS1STJa6ISA QSaBExMaMb/XvMCBH3bi+EoewUBq4tr7PmktCHPUZMkMvTtaC78oB4H7hiWZtg8DWgrW Jglw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wJeg23sW8Yw+xxzz35ozyxcHoiIIMDWpggcEEGRDd2A=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=rcOm1izQoeEYP8iWhn8KtaQbEcJ7CcoeIZIOUfDVkpczwJPa94+4lZz9pjHC4SYYO+ ouiRTwAQ32NrjGMUKc0PGFzzaynXHwaicje1DS4rjSTgaUwGpLfGKtIcowHt95B4hTqS FDy2gzvMo6YnkdSHhwhcB/hrkezO3S4S9LRTeWLhYCwUtpyyemC78rgN0/+ZxHtRoNLr YmkKeS/orGLpQ0TQg7iEUluJfOy6guG5FRbn/jyScz71h/q/zeIXK8S5dbjcLT/rmnoj 3OitYvQAno802ci4elw00OStraAQc2O8N35xauOO3qrL2JyTrHKNNmecz7KdD6RCcoRA YWXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qnXydXjp; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id m9-20020a05600c4f4900b004064e33309dsi5761256wmq.194.2023.11.27.05.06.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:06:51 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qnXydXjp; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AEBA087753; Mon, 27 Nov 2023 14:01:16 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="qnXydXjp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D969A8772C; Mon, 27 Nov 2023 14:01:14 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 01CEB8774C for ; Mon, 27 Nov 2023 14:01:13 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-5098e423ba2so5974382e87.2 for ; Mon, 27 Nov 2023 05:01:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090072; x=1701694872; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wJeg23sW8Yw+xxzz35ozyxcHoiIIMDWpggcEEGRDd2A=; b=qnXydXjpMYpYT7bwD3sdTot5swSPFfY7figgD6aPRCJ9lDDlLwsyq5hhDJSWr6Oiod 65w0p5vtAeV5WWymCGETU3+pFLJVZXZ/uYUCJPytbPzfa5ueT4ksAxdq4bLLOlLUSDP4 t24uYtBxWSegjgng2jWyofv/qrzVEA6Y+P3hQjNW0uz5vt92ICBsqerw64QPRnKQeZeh uSQqZKxULZpfnurH3/JoMUAPkRbB+iGZVXWGia88T25l5p73K8ActTrZ7TUEAvxua3ix F2wuPTLs5oBe5jF2OObDpB0KB+g5PfimsZbfiItbLriiFN3u5dzgx7u+LmAnEcP0OeSM JNrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090072; x=1701694872; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wJeg23sW8Yw+xxzz35ozyxcHoiIIMDWpggcEEGRDd2A=; b=iLGJHPo7MJ0PxdCL/aHb1wZxCYuTsJnpLXYjnel7g6f9rIvSt4DCzguxKvmT1oA9ob 2+izVvf5+ht+mnZt5JbcN6oiOhAFkjawFSRwpxB70noBnnY0Obuda0E54hHLDx8Ubljp VIphOCBtDPGWwX/ozfo+T4jAnkPdK8DHaqOyWLM3Jv2fqvPokSquAxYKYsbP10el7z/p HXAbBemmFYJL2okKmAT9sV/H7enot0t2dpVsLO7LSVEuP1j3D98Peai2W6n+dkPeWqsH Rmkct/Ro04WOhrtSNKLdDiPLvikCkzwulHT9xz3r3AX09vpEXRe+DePk8nvX62cdn0Wq boJA== X-Gm-Message-State: AOJu0YxlkoRptyBWVS2Pa2Yw1ju8Gw48xKfgapZWFXpTN39c3Oj4owHx rqUnp68yhuMyGg3V6v8lnnAa4WmU0cmfSbaoOBFxwg== X-Received: by 2002:a05:6512:2805:b0:509:5d4b:44c4 with SMTP id cf5-20020a056512280500b005095d4b44c4mr10806730lfb.1.1701090072076; Mon, 27 Nov 2023 05:01:12 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.01.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:01:11 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 27/43] configs/socfpga_secu1_defconfig: enable LTO Date: Mon, 27 Nov 2023 18:57:10 +0600 Message-Id: <20231127125726.3735-28-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 Decrease allowed binary size to fit lwip code. Signed-off-by: Maxim Uvarov --- configs/socfpga_secu1_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/socfpga_secu1_defconfig b/configs/socfpga_secu1_defconfig index b8052f1dee..4213941bcf 100644 --- a/configs/socfpga_secu1_defconfig +++ b/configs/socfpga_secu1_defconfig @@ -113,3 +113,4 @@ CONFIG_DESIGNWARE_WATCHDOG=y CONFIG_WDT=y CONFIG_SYS_TIMER_COUNTS_DOWN=y # CONFIG_GZIP is not set +CONFIG_LTO=y From patchwork Mon Nov 27 12:57:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747564 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3137410wru; Mon, 27 Nov 2023 05:07:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IHvedAl5GJjjTLMkvj8shCZfTkeLo8WoD8lZ34DcqZXm2o+cNvLhoGEZ2mHUfsNMmC9bySr X-Received: by 2002:ac2:5e2b:0:b0:50a:a5ab:e38b with SMTP id o11-20020ac25e2b000000b0050aa5abe38bmr6531712lfg.67.1701090426570; Mon, 27 Nov 2023 05:07:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090426; cv=none; d=google.com; s=arc-20160816; b=cLIbBcg/9GRk44tmYt0r6XCXmJM8THEwwfTj1w6/Z9hix9E+X6whkS8kprB/LnocUC g9OsOBHA94bhQEd4V9dwD6B/+r3xES/6gZxZgEQwZPYEZnlK5Pixxs0Cy97BYcuHbJ/R QlA8JLvN07grqWp0RdifnG4+UEn+9w/enIV5Y+uqaGBITP1LCGQ37otBtrlvdFnC2t+s DbGdJmWH24r9QYjZ2HPuEatllnzGajXWEX3lkAN3hkmR0CKWtzIjZ1zNrW11tY0XHqMS 90fw0k7Kkn88rtJ1lM5LNv5uxZ8c5nMJAZpsZRoBg3pk3NowidKbATNIfi1CFbWZBC8s v3/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=T8fYk31XS3jH9NgQGQ9YE9gKLD7cDJzzODLb/f/UGdc=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=XBfxaOiXmkO+2Rdbhrrq60MOMS70pM/D5/WG5sOle1RD/Ykmg3czG259YdCllA1sXq WjK/CcYYIHNTgcmVT2rqcJRSUMZneXPeYB7v0tgXMjeU6u8T4wZejObjvoh0kF6HaxAX IJG7Yvuvs/i9l1wrnkYjUS3BdWjgLvlMG1zKujlk2E68m2DzvoxcKJL35vm2PgBznxq2 CIf4hNAiAvdnfyXewg+4ETZDn7dTTAoSBg+IsWzGqfbiBf2DhQjp8g5gpISNVtonNzYn Dn/2RAArnqIebD01UldK+MsMeZojZ0goffekO901MMqZoHLsrlscyWH4TbO581hXShwK OuCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u9of3zSR; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id bs30-20020a056000071e00b0033304772c58si651996wrb.272.2023.11.27.05.07.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:07:06 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u9of3zSR; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7A7E28774C; Mon, 27 Nov 2023 14:01:21 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="u9of3zSR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0070C87762; Mon, 27 Nov 2023 14:01:16 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 189408772C for ; Mon, 27 Nov 2023 14:01:15 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-5094727fa67so5974673e87.3 for ; Mon, 27 Nov 2023 05:01:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090074; x=1701694874; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=T8fYk31XS3jH9NgQGQ9YE9gKLD7cDJzzODLb/f/UGdc=; b=u9of3zSRsAJuDjDrdOvct/gCEEIskxklxyN4iSIVimpKKYoTaTG/ag8g3xLVcEFSrk iDNqZpdRKGM3/IK5IMSwd8gdty6qDUiOFZGhJgyWnwGRZn2WShKzCexM4u31zKPozAV6 F9JU2pkO+2bfNfiHOSWDKJi+MoMUNKXdS5pQdMMPQmTFVXT3SysQsD2tVat62lrPejoG YRnFquhGtqAkRY6D5zWm0sWRIQdtcAXq7Tb1n506e7pucB5KC92WR2D1l9BwQMVgbfDX 1C31vXikvSeMaDU7UC6/jkpl1G4PLVUE/4SqAY0sbpBVo+yY/ZtlObOu4WEngLVCJgrh woOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090074; x=1701694874; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=T8fYk31XS3jH9NgQGQ9YE9gKLD7cDJzzODLb/f/UGdc=; b=pmpXcXRZOb/kFipKi53Ibz/rac2QdQr5phPKZZvT/tG/4zUgaLaQWPzUyGq3j7KE/t l8m+MWwaoPCNTDPr/e4ug1sjwEbZPaaHDcUtX0+ZdtjnrHogRV+U8kNBIhoRICxyFimy Np7kiv1XTUNyiHR/owsjm+E+IC/qngaNqp3ydh1oQmHYcRmZ9jK9MfnNo3W3hskAF58T 2qTCowmD88xpMvNLM9FDG6kMc477lYRCgimp48+iNPZshhj348OzxhWlhgNaqYRudnnu A8DnR5wplsvNdrbcVCf0n9BqFd8dXs/+YjxmR9BichpfikFyXaKjb4g/k6ujKL2xITjD w5ew== X-Gm-Message-State: AOJu0YzvwhT9yhhppk9jb5WElB57kjcWApvyT6XKANJvEsN/SLW3zNtA EPJxLm8Fz9bt+36S9pb6YVpm1vMd6mE4oFFAxfR1Tg== X-Received: by 2002:ac2:4c4b:0:b0:503:38f2:6e1 with SMTP id o11-20020ac24c4b000000b0050338f206e1mr10406090lfk.5.1701090074233; Mon, 27 Nov 2023 05:01:14 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.01.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:01:14 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 28/43] configs/turris_omnia_defconfig: enable LTO Date: Mon, 27 Nov 2023 18:57:11 +0600 Message-Id: <20231127125726.3735-29-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 Decrease allowed binary size to fit lwip code. u-boot-with-spl.kwb exceeds file size limit: limit: 0xf6000 bytes actual: 0xf8600 bytes excess: 0x2600 bytes Signed-off-by: Maxim Uvarov --- configs/turris_omnia_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/turris_omnia_defconfig b/configs/turris_omnia_defconfig index afcd4a1eb7..4e965c795a 100644 --- a/configs/turris_omnia_defconfig +++ b/configs/turris_omnia_defconfig @@ -118,3 +118,4 @@ CONFIG_USB_EHCI_HCD=y CONFIG_WDT=y CONFIG_WDT_ORION=y CONFIG_EXT4_WRITE=y +CONFIG_LTO=y From patchwork Mon Nov 27 12:57:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747566 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3137771wru; Mon, 27 Nov 2023 05:07:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IF8nmhTrE7h0S/z1sE7pyoWt9yBde+XuTIyp9AKTseOD8Cij8wZuyHgFK7SZgTGnI1NpyZw X-Received: by 2002:a5d:4947:0:b0:332:fe86:7f64 with SMTP id r7-20020a5d4947000000b00332fe867f64mr2779370wrs.43.1701090456322; Mon, 27 Nov 2023 05:07:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090456; cv=none; d=google.com; s=arc-20160816; b=xTbTlSvD7jzLymGi3tstqLM1vWrw0el7myJ3NC0U9UGs8U0sHIWc7J3+TkVebk13TR InmQuxBDAg/bTT7lmJX4xmlyeCHGrH/nVRicwd0Aw/u6dMXokKOPeu3+M6E3kGwieBhX hkspu/w2CNlw1rWz4SbrasS8YA4w3G7mVSZ8mSwx/X+tlzYP2t99P+Xzg5iALoXGH7Ik qtoq0PlzamIystpDrlubUR6XIGAzh1UX0M57WN7JZsuM/AXbijKyPC7bq8+XleXKw6gW LApezjxXJwyDHc6tgQhTPNRZSgFLM308l/G5T9+BJDpAViqFKVdBPF7A+82snYP3o2o5 b6Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=x4j6+qpoA6hnnQp3dMONk9xuQKO/Y7fQKEWvrs3eGzk=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=X31imfhuXv1KuLSCOJN3ycMkST6rS/tkEVZBoAvQWCZm2AZtW81Y96pdSzKQbj6ctm XMxjAGlEBDeJ5kdUoOx7b/7mWAVszmgmJ67lzFvikZ2tdv0oarVkVs3GVU/bezXfSbVb DOu9/DfSr4NR3ogSS40SHm5F8RI6+IKjYEdBlKoFkDslaTCX1718CcgXwrk7AwFPOrPW P0CUGVTaoZqPJhZ1VHpttqgPV8OGJWPdhqOD9CSGWLN2DnPnrQYFgrRcyK/JAN2V0vA/ i9HTpq9JXi/XjxReXCNnLXGIHMj5/eBiXQa3Tib79a6D29HubjOw6h+s4yYNYpvCIAZj /dVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jIUsB8u0; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a4-20020adff7c4000000b00332f7f4e0fasi2223342wrq.409.2023.11.27.05.07.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:07:36 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jIUsB8u0; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8FFD487763; Mon, 27 Nov 2023 14:01:25 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="jIUsB8u0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CBA0C8776D; Mon, 27 Nov 2023 14:01:23 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 10E918773A for ; Mon, 27 Nov 2023 14:01:18 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-507962561adso6360728e87.0 for ; Mon, 27 Nov 2023 05:01:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090077; x=1701694877; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=x4j6+qpoA6hnnQp3dMONk9xuQKO/Y7fQKEWvrs3eGzk=; b=jIUsB8u0Q8NdmNBJAvSsfAuY5uZYHU26R3F+wjctWsuFwquU7p0JIWuucVpo5u8Fwg 7duGuUmkeQAneECwGHsXuSiaGibNaZQKY5di1l9j4nhuGjOjYr0jMnWb4rAG/y1NZH4B pEGAvT7awbOyTFDy5fAjQMEYcDdOFACjjUNWmNGiLSmyfc70NYTuLdrxEuTTayW8+0Dw P/cTyeswD4WGPzIKSHpvEnipWtNAzW1gsLPkFra04mIb02ZNjibqMUxjQlSdGn8XrvBa JoDCwo2Ut/PYg6b6fz14XtgAihBrtFMfmMZ4t5VxV8dG7umIPKJyILS49a0wSrd1U+ZB 4EkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090077; x=1701694877; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=x4j6+qpoA6hnnQp3dMONk9xuQKO/Y7fQKEWvrs3eGzk=; b=CHfLeo/qKVpJLEWP/CoigXp6NikU/HBZwZuvByLRfxq7AFNvUwjRaHanJDIeZ7jIgS CzpWn/FSglb5yP0FlFKAQmVCtwv7SNJJiH89hB/1YxSZ7O3eHsVGawLXrWNhHI+3jWz2 soHhFsjgDrTmhJXr5xVw/AWqdPtKo/yF6ZfLdvjE8wStw2ow/FmkLY2eUAKR22hN7bqA URaYLGo8gaUSho5iO4OgElTj+61FSiwOvFe0wIWb637xrfySB/QwK/MyHlMEwuDFXbSA rj/lKSrkJrYplPBxo44hInvl+xcLeRcZ6BoxoVgOM3HwdLcQT4vFVVuHXf3ewhu3X/aL 8bcA== X-Gm-Message-State: AOJu0YxLGYAET5Ai3xfcN9J10hT2RM06O9UzFZu3HpkPI8dtFzcYm5j3 RBcdLZ/gBYlXQibLA5hLF3D5l5ouA4fxoGvFCEz5CA== X-Received: by 2002:a05:6512:2815:b0:50a:a61a:58cc with SMTP id cf21-20020a056512281500b0050aa61a58ccmr9937126lfb.55.1701090076710; Mon, 27 Nov 2023 05:01:16 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.01.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:01:16 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 29/43] configs/am335x_boneblack_vboot_defconfig: enable LTO and increase SPL size Date: Mon, 27 Nov 2023 18:57:12 +0600 Message-Id: <20231127125726.3735-30-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 Increase allowed binary size to fit lwip code. Signed-off-by: Maxim Uvarov --- configs/am335x_boneblack_vboot_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/am335x_boneblack_vboot_defconfig b/configs/am335x_boneblack_vboot_defconfig index 531703010a..4f06ed1b76 100644 --- a/configs/am335x_boneblack_vboot_defconfig +++ b/configs/am335x_boneblack_vboot_defconfig @@ -94,3 +94,6 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xd022 CONFIG_USB_ETHER=y CONFIG_SPL_USB_ETHER=y CONFIG_LZO=y +CONFIG_LTO=y +CONFIG_SPL_MAX_SIZE=0x1c000 +CONFIG_SPL_PAD_TO=0x1c000 From patchwork Mon Nov 27 12:57:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747565 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3137581wru; Mon, 27 Nov 2023 05:07:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IGzc5rFocnLI6v+zBoikpbjCtr4HadvGjOtmRfN06CIfUiu+HV/JvNtCijqW0p/ODgI2u9Q X-Received: by 2002:a2e:a41c:0:b0:2c8:39fc:acf5 with SMTP id p28-20020a2ea41c000000b002c839fcacf5mr7903170ljn.2.1701090439641; Mon, 27 Nov 2023 05:07:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090439; cv=none; d=google.com; s=arc-20160816; b=fAbtu5o618ZBw7JjzO95PXUs1Q9KNVpkchS/hI4X+bUAsp2dgjltIpDQ4Q7tQFDk89 nTEeP8cmEQ2AgbTZEdF7uERPkuMAfEoCWR4DxbbVyacAJW66XNNi7n44WmRNyy57rn0G PokAmXh3uV2MWbiNRjnQhC4t/WPXTGG2VWw1X5IwW663Ni3/J2O5Tvt/pcWUws9KGOhs RSYEbXBtgRRT0Y2WayneYBERlGuGmh0g9bn/PdE/c5Xv5hLM6OjL1SxU2Rx5Cyp2JnUJ qA8o+VJxrX4HFlxSszieAMXLY+8O5VkWGJDkK9E6xJosYca4W7iSM6Pm4vnR7s2au8Ip Ba+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=HRAlY0o1Z3yewjm+0wrKUc0H6nErL27nIXl54G7S/rQ=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=ErLPl6zT6Nln1lcH2yzUbiFQShxE1rjybRR4Sr0fczl8pggxEOT69NzS27+iBKgttF 9F+em6XwHt6NGbbNmTrUPhFp2s2jSBSpwjAHx63jZYatni6rKvuKF3rU9tMqIYqxREQW E7h466RtVgJeYQmd3tcDlnAxnCpoJPq18dKGECfb0t81B/7YL4iSNk2aPUMYSZCWxQ5E BrfmKwoXwj0opAEpGKmvmIa+lYByZ3J7mOTRQf1t82fOeb1c39qQcHz5EKvaMU8s+VjO C/ofksR4HOndIrn8KZTO5k1Ed4quQz4yAksaswQdXD1i+KG8RiCup/HrTL7vxHXU6gcd Q9Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RTgXWZ5I; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id h12-20020a05600c350c00b0040b4188b3aesi2307511wmq.49.2023.11.27.05.07.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:07:19 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RTgXWZ5I; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1526086DB1; Mon, 27 Nov 2023 14:01:23 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="RTgXWZ5I"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DB21687768; Mon, 27 Nov 2023 14:01:21 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E0D2987762 for ; Mon, 27 Nov 2023 14:01:19 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-50babce6ff6so2129053e87.3 for ; Mon, 27 Nov 2023 05:01:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090079; x=1701694879; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HRAlY0o1Z3yewjm+0wrKUc0H6nErL27nIXl54G7S/rQ=; b=RTgXWZ5IiX1EnAbiihd8H6a2nWUUG+TggVBEXl5GKvuHO8nXUvcywcpWHKI73HapWW 1T5riYG2aP/I8d8rKaDQqb0Mq2ANHTGJHluzNn1StLR3QVXWDlP6ZhWN5aBmW0/wzkux dMPNMkzLHFg1t3Ub+p+CkETcaIA7NmUxBwR75aY+jmf59C0paySKrsEysYbnZ7Vjrfze DlLj9NWRr8cMC6HdW4AGz5pdNOY+RM1QW8+wwdEfagnb5ppQMYWXlJVk5K/WD43OUDjy 0JRNcENXefoQIwfVoKVaOEtGUKYOSOuFPJ73Lwcw3g1pi+nT6deWc2evLGXJDjAeCm7K Eaeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090079; x=1701694879; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HRAlY0o1Z3yewjm+0wrKUc0H6nErL27nIXl54G7S/rQ=; b=UKqFDsSuKy2H4TQf2AoS+75d19nokNuXJJ+GOVnCYwPykCmAVajG0uA+EiEm3712+Q OlQJ/XrnWrKpStBevufb9Z5gm209ri2vw0emOk1dXCLAhqCrT0hLBjCfR9UWhoLkefj9 Zk+99PPCw6dIlcgWHIRjZ2WOLcd2u4ESftMYkka3kKhCht/XnOJt3OgFHUkRUFUrKt/o jVnB/E2RGkGIyOOyDIj4pA6Zx7s0Em2rgmoOWpEDfUtsSqXSjjkrwNwKAnz7zOlTUSUS j06Kb6Ht7htK72zQMWuUm/9cU/sqzphM4mnQK54e3NPV3IEEGaJE70e82UaGQaPXzL0C C/zQ== X-Gm-Message-State: AOJu0YwUJQAM4YcW/5ZlfL5gUzbCicE1ZTlQmZpHJtl0HUdo4WSQOA3F CSuoHxg+xjZH2zoPWNGliH9nNUG2aWrrrNhiy+x5zg== X-Received: by 2002:a19:ac03:0:b0:50b:aa2a:23e9 with SMTP id g3-20020a19ac03000000b0050baa2a23e9mr4348926lfc.17.1701090078948; Mon, 27 Nov 2023 05:01:18 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.01.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:01:18 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 30/43] configs/sheevaplug_defconfig: enable LTO and inc size Date: Mon, 27 Nov 2023 18:57:13 +0600 Message-Id: <20231127125726.3735-31-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 Increase allowed binary size to fit lwip code. Signed-off-by: Maxim Uvarov --- configs/sheevaplug_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/sheevaplug_defconfig b/configs/sheevaplug_defconfig index 2e4901b840..c0b256f3b0 100644 --- a/configs/sheevaplug_defconfig +++ b/configs/sheevaplug_defconfig @@ -17,7 +17,7 @@ CONFIG_DEFAULT_DEVICE_TREE="kirkwood-sheevaplug" CONFIG_IDENT_STRING="\nMarvell-Sheevaplug" CONFIG_SYS_LOAD_ADDR=0x800000 CONFIG_HAS_BOARD_SIZE_LIMIT=y -CONFIG_BOARD_SIZE_LIMIT=524288 +CONFIG_BOARD_SIZE_LIMIT=543744 CONFIG_BOOTDELAY=3 CONFIG_USE_BOOTCOMMAND=y CONFIG_BOOTCOMMAND="${x_bootcmd_kernel}; setenv bootargs ${x_bootargs} ${x_bootargs_root}; bootm 0x6400000;" @@ -72,3 +72,4 @@ CONFIG_USB_EHCI_HCD=y CONFIG_USB_STORAGE=y CONFIG_LZMA=y CONFIG_BZIP2=y +CONFIG_LTO=y From patchwork Mon Nov 27 12:57:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747567 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3137938wru; Mon, 27 Nov 2023 05:07:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IHNBljInSy21J958+kH8F3cV3mp/kwgRa/0UOPWqhVa9F7/Z1VOnKI2IQSjTjHEBG0b4Msa X-Received: by 2002:a05:600c:3590:b0:409:4e8f:4b27 with SMTP id p16-20020a05600c359000b004094e8f4b27mr8116220wmq.33.1701090467749; Mon, 27 Nov 2023 05:07:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090467; cv=none; d=google.com; s=arc-20160816; b=a4ZsAolB4h8IvbP4Gjp7L+9Pp1MwKfM4v0OY0QLOyCkCC9a6o6tg+Ft26TFneo5CrU v6nmFtEONh4xb5Cx6HAGWvwIOSsb+FZCSbfq5n2VpKEBiWwcgHaMnhIpFr7gCiMQBmKC uB4w6d8xZG6Q1+lhArd0cMfv/P7yZawVCw51oE8vKnPVLuVP08CSI61qFNOZoEMaXnEK FgdYaQrVDdGFdZSY1Qoexh3aSAdcC1YcaUml3gKDXQcE7XXvD2iiiZAT5qikC56zw1c5 XzBU/JXDvs4f054zxzH3HcmdIuPWTUbA7OoNcFTySXijB20maBHcLHnxWBI48QaWP/z2 kRuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Tgd9XSl1RgBYi1BvtIQ5IaQT26RUcbOejhnA8d5hUVI=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=M2hlip3scZv86IIBE6YOueFv3A8O/KJL/D5B91khoHUGLtrKJ2391BF32EHXJJ5d97 FFB6mAEwRHbvqFHrcnMHAtsGPckmUVqLokm7/kVAga3ragHJaS3Er/0Wn6z/eDq5UAMw 2Ek9yrBX3JGIdzsiuwIyAYmNAuukl4RqUTVG07FKqjz5bqYjPb4G0wzI/8o/lFsGROSV Rga14XhS3DO2Y78qc2xF0D6XGCxsw4xXqav3YCqnHlnBw5jpQFMd7J26jcNY7bxt9BjJ Owxc+oKMqZdeQdBu4s/yF9ZrPnQylY96A6X+O/HIVLWwXEDH8E7IpnV2r2loCXR4gMPq /xGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WCdx7oi5; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id q19-20020a05600c46d300b004085ade385fsi5727925wmo.60.2023.11.27.05.07.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:07:47 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WCdx7oi5; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2393087774; Mon, 27 Nov 2023 14:01:26 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="WCdx7oi5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 10B8D8773A; Mon, 27 Nov 2023 14:01:24 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 215E187762 for ; Mon, 27 Nov 2023 14:01:22 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-507e85ebf50so5618650e87.1 for ; Mon, 27 Nov 2023 05:01:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090081; x=1701694881; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Tgd9XSl1RgBYi1BvtIQ5IaQT26RUcbOejhnA8d5hUVI=; b=WCdx7oi5EYJ03I1iFaVRH7VNBAkJrmFpYkgWBRO1rQOtyWkA2HMSHP1YvwFShLlifb Y97Mv0ThRB6zcQK2qQ/rK68EhEsPzl5QTCz2sCFsJslPNBU9dd8njNUddiYolXw79jmh oWeB62xNrR1DIoPe8rsU47A/kVEpytvvpZfKpKEOgPjyRR6kNFnsrsHwhXDV77Cs1NN7 UCLcdJ/X46kZDsgwLG3XHUZhKKVTBMUqovVkRN/8DgIv/qd4zUSOjx5tpmkRsvIoclFK 1F2AiKkEBAeGE9KI+TxOc8yWTxJhXhn848BlMdlaJKZrQ3tz/PvjXga19N9qV7Wf04dN nLLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090081; x=1701694881; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Tgd9XSl1RgBYi1BvtIQ5IaQT26RUcbOejhnA8d5hUVI=; b=lJpjX3YL9wu9Do4cD/4wGpE9LAbqTSaPnbNzXJA5sHw+A5Y5QSn8NzRMhBufQFeSFd AhqaGMqAzDnNsk7DJKMb3GjF2B03iDXsp6oMWU0lHAoB33FeYGMVRGOfuGQOBYK0UQmU xttqMf/hTFywH1y8Tz1MR0mPYg0rGwRx6pS9vHJJ/yWzrQzBMtKWsq8ioL9JC/RMmk3Y aOvRJnhXuRt7Jl5QbxSfzzAvIFtZpxxgq/gTdMlQ9pjmxhLsfhrvFpB8XYaaAN0+0OlR a3T2bUmdOT7fa6cGmlhJyJT+/Y8frNY2Ks4fmTbdz1eysMOhLs8nvCwSyUJ1LJWQKvVF DXXg== X-Gm-Message-State: AOJu0Yy3aOaoByVRUCGvIPAlIZycB4XjJkJsf1Mlw2JyCdqkeD7pDd32 vEuFh2+MoCoFuzarNw2wzIIuOPrOjqS2/pBh2g8cTQ== X-Received: by 2002:a19:a408:0:b0:509:4bd1:6b63 with SMTP id q8-20020a19a408000000b005094bd16b63mr6966161lfc.16.1701090081107; Mon, 27 Nov 2023 05:01:21 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.01.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:01:20 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 31/43] configs/lschlv2_defconfig: enable LTO and inc size Date: Mon, 27 Nov 2023 18:57:14 +0600 Message-Id: <20231127125726.3735-32-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 Increase allowed binary size to fit lwip code. Signed-off-by: Maxim Uvarov --- configs/lschlv2_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/lschlv2_defconfig b/configs/lschlv2_defconfig index d7c77f8a88..7e0c70c6ea 100644 --- a/configs/lschlv2_defconfig +++ b/configs/lschlv2_defconfig @@ -19,7 +19,7 @@ CONFIG_DEFAULT_DEVICE_TREE="kirkwood-lschlv2" CONFIG_IDENT_STRING=" LS-CHLv2" CONFIG_SYS_LOAD_ADDR=0x800000 CONFIG_HAS_BOARD_SIZE_LIMIT=y -CONFIG_BOARD_SIZE_LIMIT=393216 +CONFIG_BOARD_SIZE_LIMIT=409600 # CONFIG_BOOTSTD is not set CONFIG_DISTRO_DEFAULTS=y CONFIG_SHOW_BOOT_PROGRESS=y @@ -67,3 +67,4 @@ CONFIG_DM_SPI=y CONFIG_KIRKWOOD_SPI=y CONFIG_USB=y CONFIG_USB_EHCI_HCD=y +CONFIG_LTO=y From patchwork Mon Nov 27 12:57:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747568 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3138136wru; Mon, 27 Nov 2023 05:08:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IG3qnmCB51icqznTy0j9OZz5wzihHJeY682U5KdsgAuuZgQsNff0hHoROXw6u6MyrnbBtb8 X-Received: by 2002:a17:902:e752:b0:1cf:b786:f110 with SMTP id p18-20020a170902e75200b001cfb786f110mr9036555plf.32.1701090486288; Mon, 27 Nov 2023 05:08:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090486; cv=none; d=google.com; s=arc-20160816; b=LSsFkKOJdUCzvRHSFe6J/EN+uzdjehAhYia7v1EcAK50pOzc8TiIrc3wW5Lr0gkooT H0gLelQ0kNHNvHRGyfC8okyunse70Ya52vz2bEHwgMJWchNXeXtmnydB/TzTJB8flyHA zRBGBItRQHdMFcWJBwdXD9rszk/QAjXnMk4SklUpb/VJlVG7wczaA10CcVz+Uu+K+w1k kRabr73uf/je2KflV5cnbIhB8CnrStR9SPFpRsCc3SR7smyY3QCeynY1uA64UpnAQuWO wrPzRXhPUU6fzpfCoU0i0iovVv1rhTCnWpzZZDEnlOzep0r9GpkptwHIaT0luXnVh/tL SraA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Ja/VvD5k3w7j58PJGQBoKdDTEAU1BpQD+bRuaOZqN1g=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=DXR5HDMJol0mjXpG4/QG0l0d8bmQaQxTwyPt0Q8w2x5IiHso5rnB62iuAIr8thxY2V uMn1WtIt/BbHeISRKDYFqW1SqkL2qkNrK68g6bx6goOgLK0FvD5ziMpPCh5Fjk0Mir5/ CAGXmgO4BrRWUn+yDNvpx4s9+u1ojEXKfcUjqTKZXtDc10Xkw4nztAnhhTYNLxti6qfb Z6A/U14nLlEta4ACEQu+/KT2/phTVTAtbefF61bokgvK9eLgORYHH3Krdcx9gxhOcGSk O0DJSA36aQbGa3nS515j647Atv9Ixj6G6NQFhAc9pc/RgEDREdStaXhjaTQOZsW7Gzsn XhGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CtZK0oq7; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id f11-20020a170902ce8b00b001cfb971ee07si4587938plg.165.2023.11.27.05.08.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:08:06 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CtZK0oq7; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 960F28777B; Mon, 27 Nov 2023 14:01:28 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="CtZK0oq7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8447687779; Mon, 27 Nov 2023 14:01:27 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9E8428776D for ; Mon, 27 Nov 2023 14:01:25 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-50943ccbbaeso5760091e87.2 for ; Mon, 27 Nov 2023 05:01:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090085; x=1701694885; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ja/VvD5k3w7j58PJGQBoKdDTEAU1BpQD+bRuaOZqN1g=; b=CtZK0oq7ufcidW/RgpymC8R6Fm1PADbPbEoyyFD+9CJpg8aEzJCjgmZ2M5Qbmb6KZ3 1/Cr8qZWKgpbjeqJvl1vRYRKekpqv6A6jNzBC6EANIb59V2418/sC9VKslgaqlW7N5HZ U34v+fs/KWsEK134To63i4C8kNHk03QJGcf2+a/UhxyoiRtnXy1yQaHMtatdM8qEqfpk +ZMjwIrbl9omIR6UjWJoebCsMm7h9CMNXoCyakmWOwrVGRJ2wrBo7Ctrb+9wxkYpeKyb P4gB8j37vHZ6Zwjs0pLcYuRsJd7ocZPRAbFonW1rBz47U3FtSANM+FGUF7GqYkaWfSZq lWvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090085; x=1701694885; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ja/VvD5k3w7j58PJGQBoKdDTEAU1BpQD+bRuaOZqN1g=; b=s4d8DeMNig9YLURpFRBpYSudZJjHNdn7bAT+rs9zeIaOlFvAeybXdkbD4tZoBNhsA2 8uaI5ZvvRwGWIUSqpD6CNFihhOCUnYTXvM75CJtQa1TAMAUNTxA0J7lp/5EMU7WNd8Pr 9/xwj5dJF36b89Ptb32RF3kqfwRiPJqWdqo/bZuxRAVdDZ7N5TgcXuwSXOEstik+MI16 NNAC1lQNFUowTLb7zDZGuAGGKCdK3JEY9j9Tx9umne0UvQ4DHE8gnZYZgBacdbEDSBKv DGLfbcI/TW5qHVUNyCbORxoWRd4upxSR2LQ3I+fGjsk99l5U8+CPs1p0aT8qQnEzNY8c TW2g== X-Gm-Message-State: AOJu0YzBcvKC/MeMZ5HuNpW/ppX1qvSqYS0x1Eake1j5cPzRF3DeTDoM OSd92aIIiLE0F1e3pzYhnM1upiH9n3nu1utKNPX6vA== X-Received: by 2002:a05:6512:407:b0:50b:ab60:3d6e with SMTP id u7-20020a056512040700b0050bab603d6emr3641402lfk.66.1701090083227; Mon, 27 Nov 2023 05:01:23 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.01.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:01:23 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 32/43] configs/lsxhl_defconfig: LTO + size Date: Mon, 27 Nov 2023 18:57:15 +0600 Message-Id: <20231127125726.3735-33-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 Increase allowed binary size to fit lwip code. Signed-off-by: Maxim Uvarov --- configs/lsxhl_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/lsxhl_defconfig b/configs/lsxhl_defconfig index d729bcb530..066f8b16b3 100644 --- a/configs/lsxhl_defconfig +++ b/configs/lsxhl_defconfig @@ -20,7 +20,7 @@ CONFIG_DEFAULT_DEVICE_TREE="kirkwood-lsxhl" CONFIG_IDENT_STRING=" LS-XHL" CONFIG_SYS_LOAD_ADDR=0x800000 CONFIG_HAS_BOARD_SIZE_LIMIT=y -CONFIG_BOARD_SIZE_LIMIT=393216 +CONFIG_BOARD_SIZE_LIMIT=409600 # CONFIG_BOOTSTD is not set CONFIG_DISTRO_DEFAULTS=y CONFIG_SHOW_BOOT_PROGRESS=y @@ -68,3 +68,4 @@ CONFIG_DM_SPI=y CONFIG_KIRKWOOD_SPI=y CONFIG_USB=y CONFIG_USB_EHCI_HCD=y +CONFIG_LTO=y From patchwork Mon Nov 27 12:57:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747569 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3138297wru; Mon, 27 Nov 2023 05:08:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IFjUkLFHyv6/NzIQ9+kr8fN3o1zNy4HC43wllLU3bHnjDiW9YYjsuv2wLKWIcexHoqqhsyp X-Received: by 2002:a05:600c:3583:b0:401:b6f6:d90c with SMTP id p3-20020a05600c358300b00401b6f6d90cmr8605931wmq.35.1701090497132; Mon, 27 Nov 2023 05:08:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090497; cv=none; d=google.com; s=arc-20160816; b=P/cYG2O505wITaKPBNlbbT5E4rN1AvW95TLsd9esaexjZmGNS+pgIvFdA6VSUwq3Ih V+trD47WAPUqB3OQSoDMr95CR8S9vJqpSel/CmPW3S/w/cLy8MgDAnZGa3+mxjwGXyte OVxYBMAnWCPckmPdH0orrvwZ2WmHEC7KmYe0CsFKlsDD/Pd2ulx+ILLn2GcWVebptcHG nFH1YP2mD+rpU72CjJEaVbQDGkmjNix0V9tTPyLqizvFWiJ+nlHhVIYwCJms5MNbOoWw c2YICvHqu/JytakbtBQEe7JAmvXUsZ7Uxn354fpDFd+JQUe9MwDsgQgJVRihitvqggVu 3Gxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9UH09jI+7bijLaFnwiMWPF4kBD28fasUUqQYjzL1w8Q=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=o0rkfwau3v1UJcjMUtiBeB5tAIDwnUGXBmNNmZS1O32HkudvNwVqVlhqwJNNOwjFBj 337lo1s1KexRp18A7OqijfG/mdVpBsllNK/yON91CEAC9f4YwjD+n7Y3L8FM/9gdk1eR +VPcu1TEE+Ng1PlUlsnwbY05fLRpg5RqSL7drGkQen9f3djQLoPQr4bfeB+jtEh+CgLu pD6173J3SPniGnNRa5rHvB8UwAnB8fey9TvdGhXOSPZHBLVIMZnu5SoEG7JZEd7+2rvA pmLMcXtDZynEYRhlMUfjU9pQ0RlaTxa9uhCjiBNxwC50KjUZbqYOftJKfcuoGKEn4URT ohfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mIukFIsn; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id h11-20020adffd4b000000b0032da362cd77si5374756wrs.954.2023.11.27.05.08.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:08:17 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mIukFIsn; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 214FF8776D; Mon, 27 Nov 2023 14:01:31 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="mIukFIsn"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AD2B587768; Mon, 27 Nov 2023 14:01:29 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C21F18776D for ; Mon, 27 Nov 2023 14:01:27 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-50baa2a278bso2510598e87.0 for ; Mon, 27 Nov 2023 05:01:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090087; x=1701694887; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9UH09jI+7bijLaFnwiMWPF4kBD28fasUUqQYjzL1w8Q=; b=mIukFIsn1vh6dgj1QQ/2ez3YFOH9WSpFp/TC9TmP+ptufAlHGYopXcL3EIfmqPJiWV Vxr5PJX9CQHn/jCZaaZR5Omp19asKaXvfPmPFRaJG5RWBmcgicWmOQ2N8zFjb5vT0qyt j0DDHJL2qzxMzlyQXzEmpf3H9hIcFDGcf4C5T8h0UyCXKWr1XHCUcBX1GnCbbf4acr6R KAIDGxKmCquToYL51VDpSTeQgmJioCcc6fn2NHJTHLNJPBqOlXLFb7niB/z2dtAkthvi WIXpsfFdt+OUyw2ElR68lpwLw2Hjbo/8xgA7MGTpL6GG7bsMXOcle9NW50YzDoft8SPp QfWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090087; x=1701694887; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9UH09jI+7bijLaFnwiMWPF4kBD28fasUUqQYjzL1w8Q=; b=JIQhPTT1CmQmxFZZUp9YwUgvo7sXE1MWeZoDSaha+o4BZGzAr9J5w09+HZoNySgWaZ 0Lg0vkCNAVWrZbyONcAz2G65D9QGEkuN3g/oyuQ3uitMt9zFeaglMZObGXFS0Mj3izTa 2ZKhI1653zYF5ib6vNQidSxypCpeyCGyB53Bkr1byU8s03syry7LsSQROtugVVBFnt4D mEH33VIuk3hF/xORAqm5KYBQdFi+gWnf16KMfNBLZGQMlWcRFP3QZwaHA9BD6YqNxXKY NH++HQwh10iRDAyAdH0LUKlhAcf2oj8Pm7YUi9DYIxYBzPx0yleZKrA5LIPpJ07U7eCr /atw== X-Gm-Message-State: AOJu0YyzSfCmP6IxyvZW6Hs2XLC/p8fRpF79xbbO3jlAb7+wClI4aYPv oI/dSRPl1FWMIuxI2bATsc1FbheUbbDVq2ZVwNMcSg== X-Received: by 2002:a05:6512:3b8e:b0:505:79f2:5c6c with SMTP id g14-20020a0565123b8e00b0050579f25c6cmr6140064lfv.6.1701090085681; Mon, 27 Nov 2023 05:01:25 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.01.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:01:25 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 33/43] configs/am335x_evm_defconfig: inc SPL size Date: Mon, 27 Nov 2023 18:57:16 +0600 Message-Id: <20231127125726.3735-34-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 Increase allowed binary size to fit lwip code. Signed-off-by: Maxim Uvarov --- configs/am335x_evm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am335x_evm_defconfig b/configs/am335x_evm_defconfig index f048e60f7f..9fd608bd76 100644 --- a/configs/am335x_evm_defconfig +++ b/configs/am335x_evm_defconfig @@ -124,3 +124,4 @@ CONFIG_WDT=y CONFIG_DYNAMIC_CRC_TABLE=y CONFIG_RSA=y CONFIG_LZO=y +CONFIG_SPL_MAX_SIZE=0x29000 From patchwork Mon Nov 27 12:57:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747570 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3138556wru; Mon, 27 Nov 2023 05:08:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IHc8ubZLaYJl1JkDYYH+FBaaYIrSSUCZM6Fvt4fkmXdGtCCG957hnjvG+da2vFtGhWHA1ZU X-Received: by 2002:a17:90a:e7c8:b0:285:b6a6:c506 with SMTP id kb8-20020a17090ae7c800b00285b6a6c506mr4805709pjb.43.1701090515291; Mon, 27 Nov 2023 05:08:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090515; cv=none; d=google.com; s=arc-20160816; b=OdTGb2/ut2DQFU1O/WfdeL5WAG6CGRqtoaIlS4jNSM8yRE9MueZa0LeXWOic4dIKIs FVEh7tyIsW6W1C5uFSoj/YkeSlXMH0kqgaboF+zq0mxqIhSOu4IYl91gwXVV4dg4+pxm pRCok0tixPrNkeLnQ4ewJEL7xitDQecc6PmB0MNxXQSRIXpqEgZxysy/pt5L8fXFb2U6 KGevGyUbToQkg/gw9Vmg8S3vldq+Oy5gOLHn7sb64RbB5lqFbAkKZkzq52KhrzBf97jF mabR1GR/MufRo9sn4LUS6rLQBbpyutnlhmtESxhNj6PgmGqOU3giKzib1/lmhvn3Hmvv Z+VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=uWCV+Hf0TDVhRzblYYNCjboO9kwYyGmNOBN3Gxq1Ssk=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=xgClAHqu/4Z/U+EEHk3Uhirxxw2rZ03i3bIxt8wTp1fGPCiCAmStAsFOA4HR3ASXx1 zbzOdukkYxAiCbN79aC4m6wdOfcCb43fShDAXEIngQSdQU3nuf3ZuJGmlAqtGt2CxJ3F tJcl9lVq8ssQe5p7Pe0k7EoxyLDKE6+3T3SUiDomEM+Vs6p8rRjOTEdWPGQsrHE+/AWw JenfZtRxxVeGuTrhkbqCajHZzHe4nbaNfPR4yt2aR42wiaF+Vs7TvyLf08mtayM0o5ba qxomGZcmlPfuGbkztg0ixxw5hZD0NZap+NV2ihee7czA9SkbMSuns69RFwNK0uuu4vTD cxrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pozX3qrR; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id p6-20020a17090ab90600b0028598045121si6843379pjr.9.2023.11.27.05.08.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:08:35 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pozX3qrR; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BA6CC87778; Mon, 27 Nov 2023 14:01:33 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="pozX3qrR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4545387781; Mon, 27 Nov 2023 14:01:31 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 284818777F for ; Mon, 27 Nov 2023 14:01:29 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-50ba73196b1so3112964e87.0 for ; Mon, 27 Nov 2023 05:01:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090088; x=1701694888; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=uWCV+Hf0TDVhRzblYYNCjboO9kwYyGmNOBN3Gxq1Ssk=; b=pozX3qrRhOwUA2aJU7uFJixu2LpqExrcHDmk832Xy2pYwHn3XR3VI0ncZiGyfRxooJ sVSa+4GFYNvSyHjjjshvLQNFLi+VtsTpdLk+uffoHjPU0URVsPizVuTKU6brLcih/15D bxfGEX9WyCXpybv1BTlr8jM7iPz86aeMSS/rRbwl0UXXhZlQ+m2JuUxE+0LRglR22XwO EA/T9YaeHkh/pqWJ5NtdTkwpwGLEMfPPfVmHz3M+uMTHBhmX4EHKcdeTh1t3dYfoNcu2 HxZpDs38INjOSTmcEAVFjfNRV+VNyzawLv5BYTIeaiGqvckY1ddhXJ5JolIzMtnuJ5My XwpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090088; x=1701694888; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uWCV+Hf0TDVhRzblYYNCjboO9kwYyGmNOBN3Gxq1Ssk=; b=Ow1w/QWLaUXYNnHpq+EGvOtvwzUvrdsUy4rmjzBmA+CQEjD7iRVAC92lPKD2T/Xkna sguXKKZXTtYk2GlMg6oyd/rW53Nf2StjodRiwYlwkcAdcq3elStv7cq6JdI/vkberv3W aUlU2k1M/NA6yhpUBFBQNVN7t4iPv021UQ3ZDYkTMEMVZuRtZJodG67hHvVji9F6tyH6 fXTk+3edeSuhWDvsFn07fQnVJllADj0TAJbgV1wsgMD1RMX35UA0TmXpm7fFg8U1vbOz JQAWPynVmJ1qWpcl9I/KpX4hSMobR6hGi2koAg+Cs5zz4J1pfqW+xoqwkL9ytiOpmUl/ xxPA== X-Gm-Message-State: AOJu0YyYpKZkgPF9Zjutlaj1/g9FX0XiJJr4OYGG5SUpGNAdjERblBiV ca1mZ6nqjTEeMnXh/+YWf3nExji51S6NQ3Vxmpk+Mg== X-Received: by 2002:a05:6512:280c:b0:503:3808:389a with SMTP id cf12-20020a056512280c00b005033808389amr10534407lfb.11.1701090088051; Mon, 27 Nov 2023 05:01:28 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.01.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:01:27 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 34/43] configs/bk4r1_defconfig: inc size Date: Mon, 27 Nov 2023 18:57:17 +0600 Message-Id: <20231127125726.3735-35-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 Increase allowed binary size to fit lwip code. Signed-off-by: Maxim Uvarov --- configs/bk4r1_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/bk4r1_defconfig b/configs/bk4r1_defconfig index 95f0c30cde..30ab54a849 100644 --- a/configs/bk4r1_defconfig +++ b/configs/bk4r1_defconfig @@ -20,7 +20,7 @@ CONFIG_SYS_MEMTEST_START=0x80010000 CONFIG_SYS_MEMTEST_END=0x87c00000 CONFIG_LTO=y CONFIG_HAS_BOARD_SIZE_LIMIT=y -CONFIG_BOARD_SIZE_LIMIT=520192 +CONFIG_BOARD_SIZE_LIMIT=526336 CONFIG_FIT=y CONFIG_BOOTDELAY=3 CONFIG_AUTOBOOT_KEYED=y From patchwork Mon Nov 27 12:57:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747571 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3138738wru; Mon, 27 Nov 2023 05:08:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IHHEPJEsnk1jboXwUEQfNU3rozZ1OXo+j3yW4VKlthQ/zncPHoDvWhX6ZK6ys50lxnUGoIE X-Received: by 2002:a05:6a00:3986:b0:6c3:415a:5c05 with SMTP id fi6-20020a056a00398600b006c3415a5c05mr15829993pfb.14.1701090527540; Mon, 27 Nov 2023 05:08:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090527; cv=none; d=google.com; s=arc-20160816; b=C14SGYJ+RRtfnsmCJ1RrSrY+X0oTt7x8sU8EmPDir/lH4wF7K8nWXaEwB1VJYbUX4J Tb2X4B3c0m2+zpqgnBTpAh0ok2qxOr5zRVcl13YGCuRfffnLXb49OenV/hQSdQvUAVHe nrl+1FPLkgWyUwj80MW8KmdQUIU0exMlvI64q/tzDZ3Zl+PCYor7Mz+xi26JZIp3HDf1 X2IVDe6bGlGPFpPIb2rMDCL1tfOwBygQiXJTaATmbu+k8wB3u+6Y2+qMYEINOhRtIeBL Xr6OEEL8nahCXNPFUDzcJHJCgo6GJzTHn+YWO9AyoZlk6iEyAoEhChPEy/d7J0Cb3G3/ MVZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=JcgE/EmaHIJUPPWX7tfcGbmrQSjJUX958ngTRB2yfY8=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=cyPdYAUcZzVoG5W1QHstZx931sYCa7CnV930pcF6GAZCavpEiQZNx1TW/YnyNVTj1D IENJ9BRoaJqISobcKhLrOD5MJVG6+gl4kRcl5Mssm7E0h3ZTieBCHk/MGcNKNwgD6YW7 ioJZncrU+B0LWNTLzHLMpocUdQI+T+mLvIzZ52qPNpW2MduvE3qSpoLFkqSRGmkWOZeW S/tbzAhFZ1V9O/DzjcpiUKSfUzL13Gz/SkJ5k/GcNIxb6nB1dBhf8xkGdJjg8x/lUNUH R6WxaP4EiepTIt27cPWyotfVJJ5BsiW55NYYNNtH2+dzTGjnB0nPo03BWt8S4wu72cnh GQIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="va2/Nso8"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id y18-20020aa79e12000000b006be08015248si9221919pfq.294.2023.11.27.05.08.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:08:47 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="va2/Nso8"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 441C587768; Mon, 27 Nov 2023 14:01:36 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="va2/Nso8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0B88B87773; Mon, 27 Nov 2023 14:01:33 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1A11387771 for ; Mon, 27 Nov 2023 14:01:31 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-50aaaf6e58fso6351854e87.2 for ; Mon, 27 Nov 2023 05:01:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090090; x=1701694890; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=JcgE/EmaHIJUPPWX7tfcGbmrQSjJUX958ngTRB2yfY8=; b=va2/Nso8SZpNtYseM2AcfdOhPPHQOxdUjj4VrlcfWMAn7S8YtYYf4HUsXPbgC71pfl dU15QQBvtbTnbBE953O0hm8HDxx4nUWZFgiO+lu+WrZ5E0f3qJ564oYiVlT8cTsTP3oY Yv2RGan3qVAcNGPLpDZYuvENYajM13cvBVtd8/V5We7+Wqs1AyM31TiSCIK9PODN8oQi NrB7NKAgn6kSwanywRGqWpGnmITllMnH4RjwawXrKN1NLt7B14kR+f1/aIPm2aQI43s7 w8iISsoNTXAD8SdFbvlsiCe3/tPRcfympRR+NWyqQSZ57KIu4NCoBxQZY3vaTK7IPa/x w9ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090090; x=1701694890; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JcgE/EmaHIJUPPWX7tfcGbmrQSjJUX958ngTRB2yfY8=; b=cEXT0aSGuo3ElBiG96StVka9d2wnNZrLBOKMmrWQSeszHMrhlQgzj/Ww8NvFxDZdSw mb7dwUUv0lO2roFi44aO+r0k7tY58Ah5hfoWJTKTb3EHWxHi9khIHxOmSpti9fftu+BL COU9NgxRfMfaDSTsTY52B8YlYhe2HibgwiCvP5oTd+0tQrkVGSa8Xkb3x8jSvVCjzkOI IBF1ySPBOgMXRygahUvv6VtvI8tBF/9D6125tQwqoC5XYN+SsVHM9VT0zNwrLKoZcHGw IXwfzTnKnYC1//WAJnpxtKVT/FWh75K6ltaUHAXxw9ePynZwKgG/iDj+JIB65GiwOAJ2 JMyA== X-Gm-Message-State: AOJu0Yw+T4Df7KCQ/RH7n1q51QYq4heYxp0gUNNDDgSz027pQx7qVqhY qZyNfx6SHHjWI2XQCHn/ox6nv08btxAAgxR2gWv0Aw== X-Received: by 2002:a05:6512:31c3:b0:50a:a6d2:b5cd with SMTP id j3-20020a05651231c300b0050aa6d2b5cdmr11024543lfe.53.1701090090274; Mon, 27 Nov 2023 05:01:30 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.01.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:01:30 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 35/43] configs/linkit-smart-7688_defconfig: increse size Date: Mon, 27 Nov 2023 18:57:18 +0600 Message-Id: <20231127125726.3735-36-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 Increase allowed binary size to fit lwip code. limit: 0x80000 bytes actual: 0x84c58 bytes excess: 0x4c58 bytes Signed-off-by: Maxim Uvarov --- configs/linkit-smart-7688_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/linkit-smart-7688_defconfig b/configs/linkit-smart-7688_defconfig index 0bdb4e612c..d31f1ab3e0 100644 --- a/configs/linkit-smart-7688_defconfig +++ b/configs/linkit-smart-7688_defconfig @@ -22,7 +22,7 @@ CONFIG_RESTORE_EXCEPTION_VECTOR_BASE=y # CONFIG_MIPS_BOOT_ENV_LEGACY is not set CONFIG_MIPS_BOOT_FDT=y CONFIG_HAS_BOARD_SIZE_LIMIT=y -CONFIG_BOARD_SIZE_LIMIT=524288 +CONFIG_BOARD_SIZE_LIMIT=552960 CONFIG_FIT=y CONFIG_FIT_SIGNATURE=y CONFIG_LEGACY_IMAGE_FORMAT=y From patchwork Mon Nov 27 12:57:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747572 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3138920wru; Mon, 27 Nov 2023 05:09:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IFgsWzFcOY61GVU9nnAjukyXKHgmxH+0OaT/E2ZWoMwIaVQgg0M58duVLAHiGW87DtNIjqq X-Received: by 2002:a05:600c:696:b0:405:1c14:9227 with SMTP id a22-20020a05600c069600b004051c149227mr8317654wmn.33.1701090541166; Mon, 27 Nov 2023 05:09:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090541; cv=none; d=google.com; s=arc-20160816; b=FkWdtpNsmprHshfYvIv7Tlc3ZXJUcrZTnOYa5Sm5QgfhFjSB5dbH9MbOPyl12yd7Qr OWD8jZmH6JTwOt16VR/5bpammQPwyDkmvA4PEVTKjtcSyXNhBqHtXWqE1fVTBM9GATva nOryD6twlh6PPlTLUDiMzkSmBuuy7SsvtmeQw9g+3f/dyLq6KALk6XDBMNwk/rDcOlxJ 8r35OZQTZf7UCWWjn1Mn76OeVCJMUZgMM5z31gj/f2G7LrBvLYVN7VwfsSXRyrquSsaT OMvjoNYIxF/IF4yN2W6mkdBBIvdESfanglTFDi6QYwe/QovujBJ5jzoGisySF7N4wk5t 6vVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=WkBVcZ1MWvqwAIrwXPVwtT1d15U9Mmk77jaWthOKI7k=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=rxjoRw3FIhu656hgQQxGjVXgFyYjV3TolkPGj4NvDwRMIkVbcw2gaN7qrP0OaFUyFG Siv3TtMnf6QPLM0g4AMfTPK5AwcxsBUf8lzaFrWHdOtnc6BAyRp3EiJEj1dS1YxOqzQ2 yNCtNzwXYRyYgzxZsde8EwuPgYcpZoL45h5WYwFFxfK2LYsgjYdSk8l1nDmfPpzZqtu9 BGg3LANCmmvggsgjxXwRbIWPQYG34muShxQaoenOn0Yak5drB9wK+54Yv01LqYMACQAP VUAJKBnL1Qrj0o/I+nW1lrZnVSNqcfpDaGyCtpI26p6oTi0nh6uwGDBNx4XeCfw5dhcL iRnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RTnLHKlJ; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id q21-20020a05600c46d500b004091f72210esi5557703wmo.84.2023.11.27.05.09.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:09:01 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RTnLHKlJ; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AB4BA87787; Mon, 27 Nov 2023 14:01:38 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="RTnLHKlJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8B98787784; Mon, 27 Nov 2023 14:01:35 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A90A787768 for ; Mon, 27 Nov 2023 14:01:33 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-50aabfa1b75so5884423e87.3 for ; Mon, 27 Nov 2023 05:01:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090092; x=1701694892; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WkBVcZ1MWvqwAIrwXPVwtT1d15U9Mmk77jaWthOKI7k=; b=RTnLHKlJjQnFU9jQNtepHa4pX0OmowwMFp2yE+wj8i9nCJaybkRe7TaJEON/INCgW4 p7xJCAqZoIOhqKlD11wnSvIoIDFge3uSJhgbJgZKdNLico8wvQ0EW1G6Rx8iPdEMCj3Q 2ZmYXp1YqkLQnsTjK3866pr/MMBKpoN/KeOp/KBp+fqWNnof+FkhKnkRdo6gdGo3eV9i nQ2Y0xpVWzNL75r3AjyyWlFfZ1HrCoPXqc8byUHXTV3uPXo86wL6dFBR+L+tXd4m/DQJ mK26IctWey9p+peFZ8S9p6Pi+qPwZhO56tvahGUrLrOV09yLsk9hvrN4/fngQC951Pvg wMiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090092; x=1701694892; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WkBVcZ1MWvqwAIrwXPVwtT1d15U9Mmk77jaWthOKI7k=; b=DnViRXkMfLA40g/N6kpmXTjviJK8GRdy+GBkuKK5HZJhDmno7Zux5POY6+ZsO+1tyu Q13/1UgAdo2ADf3d/UTQyzFT534uFqbtaqdsyVD5ubmjh4EhIhmNjYLyMiPD5V1qoCiv DgLkTPvEGoVKci9RRuogQ01afFtXEMMFbCXEV5sO0bwNpo9rQfTJlHr1Uap2rWUzZTGf u5jQUsayQQL75fA46E20R6Q4w+gVOxZ3ctDT4Bx+UHYiA2MCKR1+/bJYCByz2ISXo+LD D0q82OHb5WcUJp+FvejN4ybynE139itlGt/ZMxs5XGlbJLaNZaAR2dLeh6yNIbAELJWb r77g== X-Gm-Message-State: AOJu0YwNH3uCTRBZ25mLG2VM7K1se66ntF83oTcV5jD0cmzWW+1YHKr0 5FsrAVtQG4dgiCY41flzxh23L4WtY/5yYuxj4AgekA== X-Received: by 2002:ac2:5473:0:b0:50b:a82f:8576 with SMTP id e19-20020ac25473000000b0050ba82f8576mr4765078lfn.50.1701090092400; Mon, 27 Nov 2023 05:01:32 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.01.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:01:32 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 36/43] configs/gardena-smart-gateway-mt7688_defconfig: increase size Date: Mon, 27 Nov 2023 18:57:19 +0600 Message-Id: <20231127125726.3735-37-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 Increase allowed binary size to fit lwip code. limit: 0xa0000 bytes actual: 0xa0f54 bytes excess: 0xf54 bytes Signed-off-by: Maxim Uvarov --- configs/gardena-smart-gateway-mt7688_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/gardena-smart-gateway-mt7688_defconfig b/configs/gardena-smart-gateway-mt7688_defconfig index bedc596910..4a26e6bbe0 100644 --- a/configs/gardena-smart-gateway-mt7688_defconfig +++ b/configs/gardena-smart-gateway-mt7688_defconfig @@ -25,7 +25,7 @@ CONFIG_RESTORE_EXCEPTION_VECTOR_BASE=y CONFIG_MIPS_BOOT_FDT=y CONFIG_ENV_VARS_UBOOT_CONFIG=y CONFIG_HAS_BOARD_SIZE_LIMIT=y -CONFIG_BOARD_SIZE_LIMIT=655360 +CONFIG_BOARD_SIZE_LIMIT=720896 CONFIG_FIT=y CONFIG_FIT_SIGNATURE=y CONFIG_LEGACY_IMAGE_FORMAT=y From patchwork Mon Nov 27 12:57:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747573 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3139138wru; Mon, 27 Nov 2023 05:09:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IF77qe/PinpNaW7qzwh6vGyuDWg/rEbZ9HVNq2RKw+pob3whPpULIxY9FZ2qhD/m3/lxi/u X-Received: by 2002:a17:902:c94d:b0:1cf:dd05:b57c with SMTP id i13-20020a170902c94d00b001cfdd05b57cmr1014524pla.46.1701090560087; Mon, 27 Nov 2023 05:09:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090560; cv=none; d=google.com; s=arc-20160816; b=kA1gI3Q/JgOfNTQsxpnYTUdzglm0KNPahzLPa58igDq49ruQVSYx9XpHqhanW7mSUi hemQEqciYQKRNgrh1yZRF+D8aDKf//tfzC1G3OhQBpNT88XW4l68/2Fs4tCmo/aYcHgL 5vVQRS1dSUCdPMJBmn/JsPGY2aToQQuGIo6c+OV5sKyolV+RMy2emvkEe4qHvcD6GPVa jioy5gOqdQlPJMix7JBe8doVqoFK6JQ01DLOmpSpqrGZIm2yighfpW2n5yHxT/OY7l9N GovW6i0hZu5ajXHSXZynAAuX8zURfL+CS8Pj76OS8mCz/IVv2XasXop/D1h61cnHUfqN yT8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=XssoNv4AmYjbApoxGC5tf3SzLYQGdDcwU9wew6wFVmg=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=oXiwQ6xaOCI69siyLS2DpWhpDFPtgNVE9P5DUUzYC+vjAsdGs5QmKbj5BPzngqCcN2 KeAyExNMw2nXP58Bid6aa1lob3gmczdRP87E6JH/gNWHQEiXAMYs51BBFrkP2ZKN4kyS zInDdDy1IRJJM5ir6HdbkBskNY/XKAfOkM3RjHC6rvqB+6Giwykzw3ymafwdWjhcO4Ff uOVDlMJpySHG8eld3eVZWnYD/V1GMnBI/GnC9ZlIFu0D5OhdmapfLS6KTn2ZuKndlvrC R+DBykw5fji0Kv10AfuAv7o8hktch2xVlcgGv09/srQDAaILiJVZwqiS7SjpqgEKTh55 WfUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uLzCDeF1; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id o4-20020a63e344000000b005b884a11fdcsi9306737pgj.28.2023.11.27.05.09.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:09:20 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uLzCDeF1; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2CC4F87790; Mon, 27 Nov 2023 14:01:41 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="uLzCDeF1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6F5818778B; Mon, 27 Nov 2023 14:01:38 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 87B5887784 for ; Mon, 27 Nov 2023 14:01:36 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-50aab0ca90aso5982583e87.0 for ; Mon, 27 Nov 2023 05:01:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090095; x=1701694895; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XssoNv4AmYjbApoxGC5tf3SzLYQGdDcwU9wew6wFVmg=; b=uLzCDeF10vJOVbbwU73EllgdSnjEMYOS/nwvZUWAMlgkCP7dxJIEXPSNnA17mRpCDT 4Z3BGiyoV510OiOmzMBrygQ+uwX/h09LPsnxit9ycH/c2WblDc5WAgjS7/8n2Ew/JxOk k4Go2j3b78u5AWWR1ona4Recsupa05ItA7u8qsnwMgQOTucvRmr21UsuSrxU91uuyoSm bm3ufsh+89VcpUH+yL1sKGPYLFnV8Acad2W72MwqpY/x0gzRaP7YnqCpC4k8+W2H5Xmv KG+kWPocLR2nRLL6kxgm1x0b8MWCMnrcJRv/6xwoyNnXjPGG7iefs3axkr5ynio8+4l2 WvkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090095; x=1701694895; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XssoNv4AmYjbApoxGC5tf3SzLYQGdDcwU9wew6wFVmg=; b=bXACVY49Ptt8QqDSRHvAYDqpEqe0w8lczir5FIOWAbmM9HwfZThQj3rue4dLhlk/A3 UED4RJ/XCm2hYMeP5Ndf3L12W32FxchbxCBVpKa0pq5lFTIvlONz0pAYolxgTu8bX0u4 sEjgBZ/4EIXwH9KwrFsOLbS/7omu6QoSjbRW2QXuFwaHeBM2vI9MaFvNN2N3NjdGeXFi bLxPykCo8PZ65zxyPAaSXF/6mE4nfHn68sdkArgiiC7pjy0cZKT4Yi2dL3ifmc33pdoA tyFPkjPpOlxSDEKAspTVlXTKf2AERsp8jkkxFMPRosD85MPvKo4Y90RedyT5Nw5e1U6c dljg== X-Gm-Message-State: AOJu0YwG4DchrDq4LmmGnLfi+skQJMyPAcPePqlgzq2uREIVcpzcEMQL OC3mg5wtHrnb+mgKI+UmtnwxZPmMM0UZL7tm8TXf8Q== X-Received: by 2002:ac2:4c4b:0:b0:503:38f2:6e1 with SMTP id o11-20020ac24c4b000000b0050338f206e1mr10407752lfk.5.1701090094591; Mon, 27 Nov 2023 05:01:34 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.01.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:01:34 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 37/43] configs/rcar3_ulcb_defconfig: increase size Date: Mon, 27 Nov 2023 18:57:20 +0600 Message-Id: <20231127125726.3735-38-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 Increase allowed binary size to fit lwip code. u-boot.img exceeds file size limit: limit: 0x100000 bytes actual: 0x106c41 bytes excess: 0x6c41 bytes Signed-off-by: Maxim Uvarov --- configs/rcar3_ulcb_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/rcar3_ulcb_defconfig b/configs/rcar3_ulcb_defconfig index acbc3147ce..9c3ecf40c6 100644 --- a/configs/rcar3_ulcb_defconfig +++ b/configs/rcar3_ulcb_defconfig @@ -112,3 +112,4 @@ CONFIG_USB_XHCI_HCD=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_GENERIC=y CONFIG_USB_STORAGE=y +CONFIG_BOARD_SIZE_LIMIT=1081344 From patchwork Mon Nov 27 12:57:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747574 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3139287wru; Mon, 27 Nov 2023 05:09:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IFpQuVGMrLpdTK14SwyLBNpl+vRLPLU4SMUgfoofpTz1Abc20yyLor41RUAUkcYJHJDVq4a X-Received: by 2002:adf:f5cb:0:b0:332:ef1e:bb88 with SMTP id k11-20020adff5cb000000b00332ef1ebb88mr5965061wrp.33.1701090570078; Mon, 27 Nov 2023 05:09:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090570; cv=none; d=google.com; s=arc-20160816; b=jrOv2pe/8R8ENK/EjqQy6b9He2spD5N9mRZU2oK58XJYyC+elcfmwiYKkQJURixdv8 SUuP4Xa+0McVvpoTNb2grIJRvTUz0UVidcHMY4fTUTQQk2ldf3jwLsh/evO6sxRs4P++ oxvnhDFOkIaEDG0J2NqLAMs0NbECiuZzlVDlhwG+mW4hIKmTbGvXoDxqCz+a3rRkMkQZ rdhkRPDyUlrn/y5W/mdpPLJ+01rKNpH3Xg5ZLCMXrbiDQ6FsZBzoo8/FQvPbc2FxKDLS ucjJBMKgDZu4GVnoUt62zLocX6dAePLYlSpWQ8A5AbDPUhf37YsUEb6dLA9zO55AYZ0/ 0p6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=tIJHMwEyqDTiSGNyeHBGRMsLG250quYlouS06itanf0=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=YPfjv9JzavRiu8HokLqxXD+m3+qY05byvs+s7EOOZkP62egrtU5iKE/T4MVgKWkaAR HpUpClyTSEqJ93gVpu8r8Drv7Ng+E+WTmPE2zBkkEB7zpTuafcmW2Xgg2ce6LJvg7nye ziUMgA3l6aWVw/CmtX7RvL1IqdKMqxZXdzLgtnmojtDvVPnP+ZDVC2+MAL96An3u4Imm hbZ4NSiSQNgpxITt8v1eT0inNQoHIExKRVpkimbWbNVuas6LHE0jjME8ox+0SKblXG85 7kzKZh8wz4vHiNQZOJvvXeO19NSWfxFXLLAznjd4pPBe+d2DS6laMuEUfJ1hW2dhVYQx wEnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=laybwzbH; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id d21-20020adf9b95000000b0032d88f44928si5504061wrc.194.2023.11.27.05.09.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:09:30 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=laybwzbH; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BB90987799; Mon, 27 Nov 2023 14:01:41 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="laybwzbH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C8DC787792; Mon, 27 Nov 2023 14:01:39 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D5D3F87788 for ; Mon, 27 Nov 2023 14:01:37 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-50aaaf6e58fso6352200e87.2 for ; Mon, 27 Nov 2023 05:01:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090097; x=1701694897; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=tIJHMwEyqDTiSGNyeHBGRMsLG250quYlouS06itanf0=; b=laybwzbHlby+4MLTUY3m3p4ngNyGZnJcKp56YrfJvtoDUstMKBU2dO9dfVfApr7fwU iq5iSNOue0j1YZQ1W8xDijza8AF0QI/CfnPCdk1RIOHRtRkfrqD9fz5uHxj/Cv/qT+lJ e1bP9mo0o9L7dh5tycIjPOvoFy3PyPQly+/q6ysrV8PuJwMlM8CoZgMEvuzwjgjUUsfe mQq9Ln7/BHJqepK4wuJdZXFOF4p9nHrsn8Z9PP2/wJGF1htHqxPmM6BE/+jMsWCEXvSE i4W79ghWEweW129iMHjx5PvMwSu1/Vkka/4kgxDrUoSM1psfIQnHqSjo4D+mTApeF6rp J6Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090097; x=1701694897; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tIJHMwEyqDTiSGNyeHBGRMsLG250quYlouS06itanf0=; b=bqns3UUobggNxq6vFSe9q8eaaUm+JUJGrL9myIuP7x2oJekmIjhvrKQTyC5WDJ3MN7 Qz/8bAgihDkakeNUpELSeu1Cj3ZCwfl9NRcc4ZpWsOZ4lDsZxVgLkogAFWMY+UHz05A2 xPaZm3SBnAgaE0OYVXBui1prcutsm70O8ziEAjj8px2fMBsBuMpztEWGq/fTcap0EW4C n4YZ2CLrPRNWMUmaVqNdvktd4mxOgKff4kI1fgmzPOrQShiBnxRBz7ySXAaZww9jiPBk fQNkNbp5QW3gbTl3YJaCk3pkQLN9OzbxQl/e1OKrkP6fAXQ5xoIjaAyMH1f/mc9Qwzuo /+nQ== X-Gm-Message-State: AOJu0YwY3OHVLoA7stHI24uOIsFBWfQqb/LQoND72yKjIYHiew845XSA 48K3Gl+r5P9w25SPYqyJur0RFd20vWy9TwCHqSm3fQ== X-Received: by 2002:ac2:41d3:0:b0:509:1033:c53e with SMTP id d19-20020ac241d3000000b005091033c53emr7210783lfi.62.1701090096823; Mon, 27 Nov 2023 05:01:36 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.01.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:01:36 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 38/43] configs/qemu-x86_64_defconfig: increase ROM size Date: Mon, 27 Nov 2023 18:57:21 +0600 Message-Id: <20231127125726.3735-39-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 When lwIP compiled with debug info enabled U-Boot size overlaps with SPL. Make more room for it. binman: Node '/binman/rom/u-boot-spl-with-ucode-ptr': Offset 0xfffd8000 (4294803456) overlaps with previous entry '/binman/rom/u-boot-dtb' ending at 0xfffd8a40 (4294806080) ImagePos Offset Size Name 00000000 00100000 rom fff00000 000e0a58 u-boot → 0xfffe0a58 00000000 000dff10 u-boot-nodtb 000dff10 00000b48 u-boot-dtb fffdb000 00016020 u-boot-spl-with-ucode-ptr CONFIG_X86_OFFSET_SPL In general compilation issue can be solved with changing CONFIG_X86_OFFSET_SPL to 0xfffe1000 from default 0xfffd8000 and all the code fits to 1MB rom image. But with modified CONFIG_X86_OFFSET_SPL qemu process does not boot. That is under investigation now. Signed-off-by: Maxim Uvarov --- configs/qemu-x86_64_defconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configs/qemu-x86_64_defconfig b/configs/qemu-x86_64_defconfig index 2ff49fbd6a..88eeb6622a 100644 --- a/configs/qemu-x86_64_defconfig +++ b/configs/qemu-x86_64_defconfig @@ -6,18 +6,19 @@ CONFIG_ENV_SIZE=0x40000 CONFIG_MAX_CPUS=2 CONFIG_SPL_DM_SPI=y CONFIG_DEFAULT_DEVICE_TREE="qemu-x86_i440fx" -CONFIG_SPL_TEXT_BASE=0xfffd8000 +CONFIG_SPL_TEXT_BASE=0xfffdb000 CONFIG_SPL_SYS_MALLOC_F_LEN=0x2000 CONFIG_DEBUG_UART_BASE=0x3f8 CONFIG_DEBUG_UART_CLOCK=1843200 CONFIG_X86_RUN_64BIT=y CONFIG_TARGET_QEMU_X86_64=y CONFIG_DEBUG_UART=y +CONFIG_UBOOT_ROMSIZE_KB_4096=y # CONFIG_HAVE_MICROCODE is not set CONFIG_SMP=y CONFIG_GENERATE_PIRQ_TABLE=y CONFIG_GENERATE_MP_TABLE=y -CONFIG_X86_OFFSET_U_BOOT=0xfff00000 +CONFIG_X86_OFFSET_U_BOOT=0xffc00000 CONFIG_SYS_MONITOR_BASE=0x01110000 CONFIG_FIT=y CONFIG_SPL_LOAD_FIT=y From patchwork Mon Nov 27 12:57:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747575 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3139506wru; Mon, 27 Nov 2023 05:09:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IEQZfiZQ5mk+UzS4oovcfyiOgxii9xGlDofBlfck8AMVGMxgnzLr6d3LTBPrOKYymIP6bD0 X-Received: by 2002:a05:6a20:47cf:b0:18b:cc3a:cf24 with SMTP id ey15-20020a056a2047cf00b0018bcc3acf24mr12416701pzb.9.1701090585606; Mon, 27 Nov 2023 05:09:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090585; cv=none; d=google.com; s=arc-20160816; b=uRrooOyFW4KB1ME1IaUwLiRoU/8NKMZqtWbI7wbr+7vakiqzGDj0nJLecWns/lel92 xS/X8rxY1LAIQ5f91ErOErHxgPxlwSx8UehBLM+NtJkTnSAqlUe5rYkyaAdX/Y+YaC6b pxPawFys/Amb1HXhRVo3NqXxchzZbdP2mb47P2W2xu5yQkg2VpYkJtTpCPW2L7pagNqb Sm2yulugNH0A12Yw/xuGei08QzHej7Irf0Pu/Bcqh/Q5sf81UvkWPaYZuwdEWST1BZ1O C2boF0sEz7canXvbWy1ZryRK8qRWDYmtT7r0rXfKQziqQbCr6akbeNE6qfIE8RVl0xnY pfXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=uVrJEggGQiWyhUZmh9VQRgAWKIQ1N3fTnwGAXaYlDHE=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=QDQK5IBef75HuUoPkbYY8WsiWxANvtystjRgK2v8XVSDLLVWZlRruVGON4H3fqer6g a9UzfIk9tNKxRKPhAodTW74IH9LCJjstrRwLNY9Pc7SR8EE+wRyTgCy2hwszjT9zGnip mgzSrZGN056m5bU/8MzzbBGRcVcxdmdIIWi89KbkCfqZVBMOedYyhwRsePrybHDgFw7G aKlfBDmUQDgWg4NdhHA5qgIlCpvMp7XY0UK12Q/nFMrnwu/28SENFsUxNXdiTB74fGKn F+8FByjhesGbo0AXSkCDr3Qs3NpEVWXH0VLWnBMnrsdq7oIeFExt8JVYdfi56hJQ/KbT qDDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TV9HQbvw; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id bq18-20020a056a02045200b005b982b4f5a9si10436921pgb.429.2023.11.27.05.09.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:09:45 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TV9HQbvw; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 48AC18779C; Mon, 27 Nov 2023 14:01:43 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="TV9HQbvw"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D81298779A; Mon, 27 Nov 2023 14:01:41 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DEC3A87788 for ; Mon, 27 Nov 2023 14:01:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-50baa3e5c00so2491190e87.1 for ; Mon, 27 Nov 2023 05:01:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090099; x=1701694899; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=uVrJEggGQiWyhUZmh9VQRgAWKIQ1N3fTnwGAXaYlDHE=; b=TV9HQbvwE7lP1zBgPO+fprA7TU1dRijv39erkrk1fMQeuSxRda3C5X6coWgnK3lSlI 2+SboOvte4ZWiFOqxvxx/aLuodggcyR/nAbJYk0/TP/UymxkGYrE9AD2gzZUVGhJ5Raa HyY7xEPK1lmM5uIgS6jxRTET+/gX/KwNUJcQpnWZkH4M3uPBDEDyGakyaBW0xznX8eTh fUMyNn33XShjLNhxRL6zCaseTa/1bals1AsgiuYLlN6OVO6xweDUqV3z821uCuxv7zs0 g5cTZQz2MMzX/HLqDYBtGg4tY5jVcfyoJ/vr5+h+6NvyWXc9yoPQYTGuviMOkIRkJavF qCzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090099; x=1701694899; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uVrJEggGQiWyhUZmh9VQRgAWKIQ1N3fTnwGAXaYlDHE=; b=gdktEyCdVIzXdqP1h6/g5sqAWe1JcAZEbaGOD7ck93LXgGKWvHrlZu4Uqiw7f/zsAq r7ecv54Rf+ew7b4JLWCdCmGNRPJZrYLc/nfXXS57EZSAwya8rMMU5IRJw03rqdebv+Zk Z+8MulcQPJs//SB6BAjspwt6hw2MqCdK7Uj/6XCNUqdhPz/PEH6V5MWcdM+wr09AIFBG 5YxHiY5USQJ+NrhuNspnEVAocd6XT/RSekq3sFIIqV+B7LvYJc7wB0Dux2ClWLRRe/tq fY3XBNPtZbWWV3eJPTxiye1HjzMMqzRpjfxO/wJI/ASkEtAoF+NPgrCogpvXmvQf3t71 T9nQ== X-Gm-Message-State: AOJu0YxxFYlVi9Lyvwz5zlUwK07vFxDljtJGX7zdV0q/JcxG0doXbTEP ebIggoz6m8nvKWfBzh+4e688NNSph1gHjl50WCyU6A== X-Received: by 2002:a05:6512:1105:b0:50b:a69d:b8bb with SMTP id l5-20020a056512110500b0050ba69db8bbmr5512988lfg.49.1701090099048; Mon, 27 Nov 2023 05:01:39 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.01.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:01:38 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 39/43] Makefile: add dtbs to clean Date: Mon, 27 Nov 2023 18:57:22 +0600 Message-Id: <20231127125726.3735-40-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 CI test checks that generated dtb has to be cleaned up. Signed-off-by: Maxim Uvarov --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 769111bf09..2fc04450c6 100644 --- a/Makefile +++ b/Makefile @@ -2172,7 +2172,8 @@ CLEAN_FILES += include/autoconf.mk* include/bmp_logo.h include/bmp_logo_data.h \ itb.fit.fit itb.fit.itb itb.map spl.map mkimage-out.rom.mkimage \ mkimage.rom.mkimage mkimage-in-simple-bin* rom.map simple-bin* \ idbloader-spi.img lib/efi_loader/helloworld_efi.S *.itb \ - net/lwip/apps/ping/ping.c + net/lwip/apps/ping/ping.c \ + ./*/*.dtb *.dtb # Directories & files removed with 'make mrproper' MRPROPER_DIRS += include/config include/generated spl tpl vpl \ From patchwork Mon Nov 27 12:57:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747576 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3139756wru; Mon, 27 Nov 2023 05:10:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IGLpVM+GG7iLTfOC567Fx2B/paTM4bl8oCHiBDyk9TSBxwy8k/F/my65854x+N/sYsuU5Og X-Received: by 2002:a05:6808:114c:b0:3b8:616b:24e with SMTP id u12-20020a056808114c00b003b8616b024emr8634793oiu.49.1701090606309; Mon, 27 Nov 2023 05:10:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090606; cv=none; d=google.com; s=arc-20160816; b=uDioGbTdR4y/uAd1UNSQMLMkOViM6VdPbtn1fyR8qWhaUlch7FF0SfJtLbDfVSqTVw vONIJMixMJvHhe+Vy5+VLQyQTSFigCVE6KSGPlYs+b8BSQ3TnyxyoTJ741ULkA1DC6Xi lYO0XGMmfc2epSEDre+ePCRQghbtMbLE93qDQxePVxG31FuFxSyrWm3t7Sds4/jUNr7I Tmn0ZYqD13HhWyTOfPr/LnEw/G+FopBetPOoNb1pkSr4fOG7JrvZEpjZKr0G3qSy5FOE xTek42QoJwNFp/yzH99cu8xoCApNJugiels1hnZ1pY452u/hp1clpLoieu3Mw6HPD5Gv zFwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wyiR2jVJ4p1meeNGxOfrkmg2SjWDWAw0ref9nazVreE=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=xAOyOnVUuVZAvmULj+bxi1JadSgvI6tqiYlkxZPac3NB/j0y2zEEoNapviXJpfoPRs JKG97HNeMRptV5K/MAN0FzeMwOI5C9EYVAbqTzeRn6s+K7n1sm9FY13y3XTruYrm/iaj FMUprYGi+dURSgOzojb/6ETMfaJl8hV51tIaiV4i6hZMYznd3VHdSmscSabEng6ZhEsT R0lM0fS1rCHAh1EqD1j7imXVEBm4muCGLId0lguQrKVpAZnllsJMInEICI7d3/6iAgzt fPgqcYqBE8VsbVsZZXKVVvRdHnGNeZD8SIe65o5wE/UGDx08SBM5CBEA1b0g4oE/w1Ig v4Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NZD0IGFq; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id w2-20020a631602000000b005b999968b85si9199560pgl.666.2023.11.27.05.09.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:10:06 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NZD0IGFq; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CFA7187792; Mon, 27 Nov 2023 14:01:47 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="NZD0IGFq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 443D087797; Mon, 27 Nov 2023 14:01:46 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CFB5087792 for ; Mon, 27 Nov 2023 14:01:43 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-507a29c7eefso5449313e87.1 for ; Mon, 27 Nov 2023 05:01:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090103; x=1701694903; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wyiR2jVJ4p1meeNGxOfrkmg2SjWDWAw0ref9nazVreE=; b=NZD0IGFq0yxm3zK5/fRktzA/YTpGGbPUS/uJSoLV1k+tTvCGi9/7bh9HGgL8XOt3Qn V0HHqPs3dQdxneiRKBAJBR3Icbp9V5Jc7wEi/dcGJPS2hM8Aho2mfUu1kB95XXYVJApI C/ZVD2T9OzsII/aqFgXwyUbGyHcGg9aoepkMNkYBPzQ2CYZPwql7/SjOlLfxmn6/qX/Z Zl9or0G+bS4iAqtALZXOqzSEsMCOqEdap4uS6DKKC6UFv+8qkWNq1B0Zq6rHTSv6b1UZ ISdqpVkFAKqH8KxeRB8F6P6ItyHkB4Momn0QjmQeuhXA/EiuQol6xyIlPZHc/Cb8syXa MiHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090103; x=1701694903; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wyiR2jVJ4p1meeNGxOfrkmg2SjWDWAw0ref9nazVreE=; b=uWph0J0Iks+9nBIS0fCjgR1lzMn98frnYFnHB5HHKiDdxBPH0S3WM2W4cqu7GCddYQ FRT4hCFZ9LuRozbkqjuaEnLJCw49EIg63YjdbtmudvrC+xKlwb/Cu94fJOHZlPVdeX6E py/PppBDjaL4W/2l1VDMSrpLohuLoaBduQFHn++t90UIwyPVpFYBv7vNzjQHMy9GIcy1 y4TmmjYG0rfk3gZ7nWOuCtREo8rlek+tWdFOquS0VqLFD9fOxa43PYom8RfvuyXb9/42 9ni9ZOmtFCsdxPDkOB6UuqmYRBUFslNlLVjT1VHZ9Ex+jPijT2zHeTuA5hyw3dYqZEuz Ac4g== X-Gm-Message-State: AOJu0YwVxHw4JO3WN1FzWtxhdj1HbYn8AcAIuM5GTclJrf8FFFYKzCfN Pn3rsSgIDoxdo+aVF1z/5UyT28yX3HSY3lC8iK1Sgw== X-Received: by 2002:ac2:5230:0:b0:4f9:5426:6622 with SMTP id i16-20020ac25230000000b004f954266622mr7250299lfl.69.1701090101522; Mon, 27 Nov 2023 05:01:41 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.01.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:01:41 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 40/43] .azure-pipelines: init submodules Date: Mon, 27 Nov 2023 18:57:23 +0600 Message-Id: <20231127125726.3735-41-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 Azure CI does make testconfig then passes U-Boot sources to docker image. Inside docker image owner of U-Boot files is different, so user doesn't have permissions to update submodules. In this case we can do init before we run test docker image. Signed-off-by: Maxim Uvarov --- .azure-pipelines.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index d6f3fa423c..b6fa843e8c 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -113,6 +113,7 @@ stages: steps: - script: | cat << "EOF" > build.sh + set -x cd $(work_dir) git config --global user.name "Azure Pipelines" git config --global user.email bmeng.cn@gmail.com @@ -134,6 +135,7 @@ stages: make O=${UBOOT_TRAVIS_BUILD_DIR} testconfig EOF cat build.sh + make initsubmodules # We cannot use "container" like other jobs above, as buildman # seems to hang forever with pre-configured "container" environment docker run -v $PWD:$(work_dir) $(ci_runner_image) /bin/bash $(work_dir)/build.sh @@ -196,7 +198,9 @@ stages: set -ex # the below corresponds to .gitlab-ci.yml "before_script" cd \${WORK_DIR} - git config --global --add safe.directory \${WORK_DIR} + git clone \${WORK_DIR} /tmp/u-boot.git + WORK_DIR="/tmp/u-boot.git" + cd \${WORK_DIR} git clone --depth=1 https://source.denx.de/u-boot/u-boot-test-hooks /tmp/uboot-test-hooks ln -s travis-ci /tmp/uboot-test-hooks/bin/\`hostname\` ln -s travis-ci /tmp/uboot-test-hooks/py/\`hostname\` @@ -506,7 +510,9 @@ stages: cd ${WORK_DIR} # make environment variables available as tests are running inside a container export BUILDMAN="${BUILDMAN}" - git config --global --add safe.directory ${WORK_DIR} + git clone ${WORK_DIR} /tmp/u-boot.git + WORK_DIR="/tmp/u-boot.git" + cd \${WORK_DIR} pip install -r tools/buildman/requirements.txt EOF cat << "EOF" >> build.sh From patchwork Mon Nov 27 12:57:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747577 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3139839wru; Mon, 27 Nov 2023 05:10:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IGvd0TzHrzwlEDvDJkFk5kC0AWr1/3isJQwKY1ZC4sR/8jCGQGWw9BRnGGe9t57pWh0I8Im X-Received: by 2002:a17:902:db0d:b0:1cf:cb80:3fa5 with SMTP id m13-20020a170902db0d00b001cfcb803fa5mr5208203plx.23.1701090613882; Mon, 27 Nov 2023 05:10:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090613; cv=none; d=google.com; s=arc-20160816; b=Bf0B7Q416eg+dDgFzDPNHhUo3v2AvXC/h/Kz5RTqretgB/9NLdo9khsHEnMafO918c O/lADozTqeOJ80VDTd3Buy3TmL+9bg4WFYg41RxMxv1MQkmSJdubpFcmdEJpcCH2zX+6 s/CqD9+n+LfYzetnUKWwjpsq7atlflQ02g3n44LhN3iogDMOYtWyyiWyGyDZUSFNhun5 2Oa0LE1G2aAMYR2V1bIotE9dB37vR5Q2oBT+Rd3vPSc4hwVaFCnvPC/pe5pY4yK+0x3D GtKmSMp2exu5ezvL4NDr7+EI58iqyl+MoX7xRds0v/Vu/o5Y9fsYJpnOrxdxhzDDgwRG 8VzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4tmMAI6bN3rmmIrKHT0WUsmCiaKDkfjRDPTN49RrJQE=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=cYHcJp3W/FUWsHNmDj+M5YVLbikSivViu18ZHR7Hpp0mZE16M8dzsHp3fvc8n4UbCK 5m/5kWeURnwG1aco4o1kfyeHTPgVr8q08U1nSkkmP8DlQRkrwPTWeVZx4mptOWU28wGC 6k0a9X3uOLqhu9ZjCRWezk5qnSzkXx0g13KOSo2umrH71MSVjj60EDs2UR70XDGGkGoB jsJLhFOSVK3FFzViX5z7NQZ/pi8sbKQen1C4IjVzLMuP4zRWAc+ew8fxIXdggXPeKFXs zZ5Anmto0C/VUDDV0oP+jw7MiaT9WOb35ulkTgGov/OugPgQgHjbe9A9ioxRmqHodZUJ z2uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mPhL9c+H; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id m4-20020a170902768400b001b9f55d28a2si8787934pll.205.2023.11.27.05.10.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:10:13 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mPhL9c+H; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 95A6C877A5; Mon, 27 Nov 2023 14:01:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="mPhL9c+H"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BD07D87792; Mon, 27 Nov 2023 14:01:46 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D56358778F for ; Mon, 27 Nov 2023 14:01:44 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-507a29c7eefso5449360e87.1 for ; Mon, 27 Nov 2023 05:01:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090104; x=1701694904; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4tmMAI6bN3rmmIrKHT0WUsmCiaKDkfjRDPTN49RrJQE=; b=mPhL9c+HbXWw/opy6Ndzn+/bDmFBWOj5KNLXkTkn5NYQ/qw8U9p+QvGdysQMoH6YoE EuieMEr25Z5tEWzJEObhTlbKTodWGHL4mO5BS0h/k4lLj2Sm2girN0fi9GW55r7PRKXe SLIn/YtYmEsOju9VLK0v2VRHUvOuqY8G+8QAvi18fRGanxecDPqdHeJCgSxEepbkGtnw XxeGZopfrQ/CBT9tXlXuIBMwEAKTfNmrjOLqF+CRCeP+lEkzwXfZvlwST67fVVU3ywMY f7skMSpLMgUB8EzMUfxTo6dlOTrTgv9cyPJev4nkjnuSObGuUVQfzLFD06uosn0+2jr9 29og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090104; x=1701694904; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4tmMAI6bN3rmmIrKHT0WUsmCiaKDkfjRDPTN49RrJQE=; b=XIpi7q+zhWTP0daYbRx6RtTaTgozSj7NAVVlMZ+MpucYEsgaTo/Py1AkjyDHtWSBHB uQmw7DRDeTbHxE4n2z6tFqgdQoTthbKbR8dbyl88b1QAJZWvK6YrWwNTkvR3hJMzlMKY kpSF7Tm8+aEoCa1Q0XyE8UJlAS5t4QH4WTGFkQHWmJ2yERGgeDzIVcW0pgu/7z2fBn3L WUCuR18JZJYkzf5ps9oEN2+zkT9nck5PGNh6LronLg2jO5SkZVBAOH1xKvQn5OGDUIEh auuFlRpt9q3uFx7viqeXCk6tYd5MEc4OJLzkJC6KPtfLOdjKqjDbKo8Ti41vf/MehGd2 YDhA== X-Gm-Message-State: AOJu0YxZSu2F2L9H6l50EQH9MyHPp/l4Sm3PAMIZ+qezHJ4utIU9G9Fu pmyBnJxFnKFbIMi2NWcbuSVQ8O8vtr32a7P1zge/zg== X-Received: by 2002:ac2:5544:0:b0:509:297d:b7a2 with SMTP id l4-20020ac25544000000b00509297db7a2mr7161138lfk.65.1701090103706; Mon, 27 Nov 2023 05:01:43 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.01.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:01:43 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 41/43] mach-mtmips: inc SPL size limit Date: Mon, 27 Nov 2023 18:57:24 +0600 Message-Id: <20231127125726.3735-42-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 Increase board limit on 0x200 to fit new IP stack. Signed-off-by: Maxim Uvarov --- arch/mips/mach-mtmips/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/mach-mtmips/Kconfig b/arch/mips/mach-mtmips/Kconfig index 15b2792e61..2f07e3a491 100644 --- a/arch/mips/mach-mtmips/Kconfig +++ b/arch/mips/mach-mtmips/Kconfig @@ -37,7 +37,7 @@ config SPL_TEXT_BASE default 0x80100000 if SOC_MT7621 config SPL_SIZE_LIMIT - default 0x30000 if SOC_MT7621 + default 0x30200 if SOC_MT7621 config TPL_TEXT_BASE default 0xbfc00000 if SOC_MT7621 From patchwork Mon Nov 27 12:57:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747578 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3139989wru; Mon, 27 Nov 2023 05:10:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IFn7m23o1jRVKmBrDn+4lkF+PnHbrp8mpmVM2CE5xeU546xTeT1Ud//pVOTd3wDcgEvG+Ol X-Received: by 2002:a05:6a20:7f98:b0:188:290d:17dc with SMTP id d24-20020a056a207f9800b00188290d17dcmr11628702pzj.60.1701090627047; Mon, 27 Nov 2023 05:10:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090627; cv=none; d=google.com; s=arc-20160816; b=rfHNt41rgnzW10yJMg1MaMOfKV3oYnsLvvdbxl8KB4B7iTqMAWokLYiRd3cUAB1Hqk +1S5kLnsHQJpPm/BhhGj9w/7QJZ+hPSy+EuQ3WX/mYP7xgbPZZXW00u9VWGnRYAZJh22 TUoMPtMaBqb+VLqKyQgErbKkLF8gvh8lVFVVnMBn3voCyOim4FsP5OOvH2BVv6dsDgvI z9W2uzKip5EpmRiH8zLzLSi5u26s6q/E1XFrQFag9omnHD/8boV7spFTLzUJ/JSWAcm1 GgjvP4cayVKaJER1MmgQeDqdmfnTNsODEnbTIWpDylZtho35wmY0K7q+UFChZPa9g2g0 wc5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wS8emmvCMU5NvTrZwE42tTJsOwY0BwQLAa0cBGb2dSA=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=fncs09Ltp9VGve08YYgisBrXDMafpkTXrjOdKJpBZmLCnOsNehgodL4/uVmlP+17Ow hlFb6MKiLZHJTVRDE9hU8nwqZtxuQQrmRlr64iBZoQFk95I2IfmpkB4bqNhNs6FwEGXW BmWqdVAxJ567qceUI/iMaMF/Fs2Z7mMkdqoeVKwTcIhxnvN0F77RSc7XM3liU0+2rIKd I4OCLbOFkzVmzZug5BzIBjefoUARQjVpqC/P6zEf4n1oHrIsJAnzEpgsk9f851bhvIvp FCp3OQhqDh2ELUfZeW/XeB5R6kUlrWMzHA1N4l+zUlgM/nYeSAocxngDLjaiYplVr1BG D3Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GJpkfRso; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id r33-20020a635d21000000b005c272dbe3aesi9307246pgb.555.2023.11.27.05.10.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:10:27 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GJpkfRso; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1C894877A2; Mon, 27 Nov 2023 14:01:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="GJpkfRso"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A29F7877A6; Mon, 27 Nov 2023 14:01:49 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B2F2A8778F for ; Mon, 27 Nov 2023 14:01:47 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-50ba75e33f3so3099221e87.2 for ; Mon, 27 Nov 2023 05:01:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090107; x=1701694907; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wS8emmvCMU5NvTrZwE42tTJsOwY0BwQLAa0cBGb2dSA=; b=GJpkfRsoXTP0IHmSsSSakapZb8Gq0wSyzX6tGH4vUoMRSzaGoaaY6Zzn3QHbkfNivo c6LJZRhE/HoMQfKwdcW0LeciGGLJJcXQIo/HR7xl+Cuw26FhMH8MiPQoXhwEFT2XSJFE AK3tZkAEs2cJxWP0uM124IhFG05ZKOYeB1ECZ/Z5zqy8gOXgoX02uCTSquPIJAoBAJTW ce1vdH+CztOmyPzSeE34S14KngADivDZh7fGXU/gIlwRZuho3P5i1xVWChKNJ2MdPle+ FNT3kP0fy0x2nRIGrpgfueprGSbUZBGOSgJ3Ln6r81Ny036a5XdyvNoklxPsatBKtNlz S/xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090107; x=1701694907; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wS8emmvCMU5NvTrZwE42tTJsOwY0BwQLAa0cBGb2dSA=; b=P0aZZ6uGuU0ABmL/UUqwzXBOWs1tG2D0P8pJQ+bQVv4yVKaXdWPZ3vueNRfkkbdK86 X+p1ouaOMQm2/8E8qp1CMb9Y7k1/ShLCmvmJSSiqIOtb5pZperEdQEMbx4b+gLQb7GMe fgJJ4HLHq96DQGRqHGwPGlX0ya4PPDhacEikchYCMlBZfK1BqLNorx3usv6eWXbTS7QB wOFTLdX+tFciqXDLS3+eUVIEgnr9Nmni0L3g6QmdjH6NxNg9G3Qbz0OZ35x/Qit5p+PS USc+xDJSaHV6l0T2uFN324qF51txQT/UnzD1JvrbNGEOufBP56pLbbp0Pwnm0mx+Fscc 9h7w== X-Gm-Message-State: AOJu0YzYTyZFlcAnOKFiRFeF8Kf9I2nT9tpi4dK6NSkUdYZVa6gPZoMG cqoQkhdzLLI8VIL+yH7DTYXmTGlbT1zslhLwAHMhPA== X-Received: by 2002:a05:6512:3445:b0:50a:26c:cabd with SMTP id j5-20020a056512344500b0050a026ccabdmr4361717lfr.19.1701090106323; Mon, 27 Nov 2023 05:01:46 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.01.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:01:46 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 42/43] configs/linkit-smart-7688_defconfig: increase board limit Date: Mon, 27 Nov 2023 18:57:25 +0600 Message-Id: <20231127125726.3735-43-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 Increase current board limit to fit new IP stack. mips: + linkit-smart-7688 +u-boot.img exceeds file size limit: + limit: 0x87000 bytes + actual: 0x87184 bytes + excess: 0x184 bytes Signed-off-by: Maxim Uvarov --- configs/linkit-smart-7688_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/linkit-smart-7688_defconfig b/configs/linkit-smart-7688_defconfig index d31f1ab3e0..1b24a70b67 100644 --- a/configs/linkit-smart-7688_defconfig +++ b/configs/linkit-smart-7688_defconfig @@ -22,7 +22,7 @@ CONFIG_RESTORE_EXCEPTION_VECTOR_BASE=y # CONFIG_MIPS_BOOT_ENV_LEGACY is not set CONFIG_MIPS_BOOT_FDT=y CONFIG_HAS_BOARD_SIZE_LIMIT=y -CONFIG_BOARD_SIZE_LIMIT=552960 +CONFIG_BOARD_SIZE_LIMIT=553472 CONFIG_FIT=y CONFIG_FIT_SIGNATURE=y CONFIG_LEGACY_IMAGE_FORMAT=y From patchwork Mon Nov 27 12:57:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 747579 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp3140143wru; Mon, 27 Nov 2023 05:10:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IGOFQZYXCjOEKj6NJOyZiNrBK4oezQvmzXNDTmZh1I9d7D6uNyKDWgRHAA1l2V3XPzUmMxz X-Received: by 2002:a05:6a20:54a8:b0:18c:3511:665f with SMTP id i40-20020a056a2054a800b0018c3511665fmr8228217pzk.51.1701090640438; Mon, 27 Nov 2023 05:10:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701090640; cv=none; d=google.com; s=arc-20160816; b=rhMZ8cYdiuPDnXl5FMwj3bGwRI97GNG+BYMau6LU/V9ut2aYJQID40VHR35omlw2bL FGrIWubkxgeQRdI6atzjPuBTCqrURtcMLPz3WqjiJ3Uv7l0nnMPsYv3fz4aCk6TjAspT 4+gRQgRt/xmfpEyp20yVY/nlA+xYYq+4T0JR+Fuf3yGU+8cHZxJOx+jOstNnNArO96kx gmvik9Nnj8AF5WDWp9DFpr0SoqiwCjC4kWH/0K1mWzqYm0g9symoSTSEj66KjM4aJ2gP 1Gwm/h+qpzxkVJ2fKQevxOQclGoZtcHN1axz6cqWZjJ4wgy3z8Zj92IZk6gL+N0QK9L6 nh5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=X1UsdTzKLZwJT2Y40jvQY7AJYbTwiczkKGIs51eMQgE=; fh=QyNHqymfSLfpkarWtc7IKVRHBXLRqHmsXw8S5qDkAYI=; b=exEDqdk+eDi2e7TJezpiL/l4wb5waHOAgfol82ilV8Xh0SztRg3TMds+et2gR8DZAx bEsh6ITs/e43QWJhhnFMjFCLjxVfLetzcGLCMX0ABfnDoD9ws9jGHR9Eb0pML+/0XcCT tf7mE7zDxoDhD/Gg+GnlEHn6pXfryc+lkW44bwE/LrMzDIGyiaNKQcvzCnGcjOBmyvev u7ZM7nPowymjACaLuV5Z6J+g4egllmeU4zJ/I3xQ4zudZWghyka63n0Tn1v9/GgTaZ3R 4FXCcLna8FhR/5rJdz5NOgkn3ftv67uo38qV1qL/yc21x0dC4xpR4SkDWNc6239BdbAI fb9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ij92W9+3; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id 9-20020a630b09000000b00578c64433d5si9793051pgl.877.2023.11.27.05.10.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:10:40 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ij92W9+3; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9A886877AB; Mon, 27 Nov 2023 14:01:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="Ij92W9+3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8652B877A9; Mon, 27 Nov 2023 14:01:51 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8BFB9877A2 for ; Mon, 27 Nov 2023 14:01:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-507975d34e8so5777394e87.1 for ; Mon, 27 Nov 2023 05:01:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701090108; x=1701694908; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=X1UsdTzKLZwJT2Y40jvQY7AJYbTwiczkKGIs51eMQgE=; b=Ij92W9+30xQRu1ugHEZRblxtSuYOjM/4LqmYQ24FepI+7ILHF/D0tK4ylwY0PLi/AG ftgzKGmabKhMkJvmv9oAQ4va0ENQBP9z2do27Xfimr7AqOMSXcXd5jn0VJd1wYOTJkaQ QaNN0I4pBzw0v6BQcWEJcEpaPKoSGwzOfKbKhFfo7cS07ezmo0z2ZGOELMCatC1BbWCC fulTL6i3BvRNL31vqcG3nmCRWyoYMph9wJR//NI+I1V1Q7pY5d6wsE6+boS5SlQA7ceQ qS17mMpewjnlpY10r7f3VLtkNOLwdC8bxWZGjmRS6f6NGB9UhykH6rbrmQFtOzqh9/GO dP+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701090108; x=1701694908; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=X1UsdTzKLZwJT2Y40jvQY7AJYbTwiczkKGIs51eMQgE=; b=j9h5fZc0bcPQm4oPwa4M5n8yL4E+3r8I7yCF8z2QvkLK2IYbZ7He3Zm7dUI4g2w4Hr MhKV2v7Gdw9uFBp+JlgSTOVNC96gi4NHChzxYsutL24BC3Z3fEGu/4DaoQvfVXWSWkgP TeJZ0OnTCg+qIxRWLaiTIDuNV4mSFzJspMuAxlO1TGQZnNYcJlACvGmjqRb/raf7TtvP PM5NDrc4PJAng20mc3JZmvfI349KR0LhraqhK5mW2g4uCGFrg3AUYtpZ3PzlhbLcb7qx jh0truE6bdLstDT14U/VsaIwwHLwJaHfUD4oW76RXV5qLrohRz9swSllMlxsn8DCE33q HdIA== X-Gm-Message-State: AOJu0Yy4wVC0cZ9Q8LRX+hXujxmJpKaRVZifu9Xp7rFfId2qJGd+qSPF 79I6JWIT6NM7wMaf1BSCB6ZyXMq84bFBJzMob2yajw== X-Received: by 2002:ac2:5a1c:0:b0:50b:aa1f:595d with SMTP id q28-20020ac25a1c000000b0050baa1f595dmr4434221lfn.30.1701090108549; Mon, 27 Nov 2023 05:01:48 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id f16-20020a19ae10000000b005092b887ba2sm1482489lfc.201.2023.11.27.05.01.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:01:48 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, ilias.apalodimas@linaro.org, trini@konsulko.com, goldsimon@gmx.de, Maxim Uvarov Subject: [PATHv11 43/43] .gitlab-ci.yml: change ownership of the git files Date: Mon, 27 Nov 2023 18:57:26 +0600 Message-Id: <20231127125726.3735-44-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231127125726.3735-1-maxim.uvarov@linaro.org> References: <20231127125726.3735-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 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 Inside docker image owner of U-Boot files is different, so user doesn't have permissions to update submodules. Make the ower of git the same as current user. Signed-off-by: Maxim Uvarov --- .gitlab-ci.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fee165198a..cb4f00e978 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -104,7 +104,8 @@ build all 32bit ARM platforms: extends: .world_build script: - ret=0; - git config --global --add safe.directory "${CI_PROJECT_DIR}"; + git clone `pwd` /tmp/u-boot.git; + cd /tmp/u-boot.git; pip install -r tools/buildman/requirements.txt; ./tools/buildman/buildman -o /tmp -PEWM arm -x aarch64 || ret=$?; if [[ $ret -ne 0 ]]; then @@ -118,7 +119,8 @@ build all 64bit ARM platforms: - virtualenv -p /usr/bin/python3 /tmp/venv - . /tmp/venv/bin/activate - ret=0; - git config --global --add safe.directory "${CI_PROJECT_DIR}"; + git clone `pwd` /tmp/u-boot.git; + cd /tmp/u-boot.git; pip install -r tools/buildman/requirements.txt; ./tools/buildman/buildman -o /tmp -PEWM aarch64 || ret=$?; if [[ $ret -ne 0 ]]; then @@ -130,7 +132,8 @@ build all PowerPC platforms: extends: .world_build script: - ret=0; - git config --global --add safe.directory "${CI_PROJECT_DIR}"; + git clone `pwd` /tmp/u-boot.git; + cd /tmp/u-boot.git; ./tools/buildman/buildman -o /tmp -P -E -W powerpc || ret=$?; if [[ $ret -ne 0 ]]; then ./tools/buildman/buildman -o /tmp -seP; @@ -141,7 +144,8 @@ build all other platforms: extends: .world_build script: - ret=0; - git config --global --add safe.directory "${CI_PROJECT_DIR}"; + git clone `pwd` /tmp/u-boot.git; + cd /tmp/u-boot.git; ./tools/buildman/buildman -o /tmp -PEWM -x arm,powerpc || ret=$?; if [[ $ret -ne 0 ]]; then ./tools/buildman/buildman -o /tmp -seP; @@ -192,7 +196,8 @@ Run binman, buildman, dtoc, Kconfig and patman testsuites: script: - git config --global user.name "GitLab CI Runner"; git config --global user.email trini@konsulko.com; - git config --global --add safe.directory "${CI_PROJECT_DIR}"; + git clone `pwd` /tmp/u-boot.git; + cd /tmp/u-boot.git; export USER=gitlab; virtualenv -p /usr/bin/python3 /tmp/venv; . /tmp/venv/bin/activate;