From patchwork Sun Mar 10 19:26:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Korsgaard X-Patchwork-Id: 1910258 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Tt8zK46bhz1yX6 for ; Mon, 11 Mar 2024 06:26:37 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id DDE4560788; Sun, 10 Mar 2024 19:26:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zmIWaWEIRQdH; Sun, 10 Mar 2024 19:26:32 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.34; helo=ash.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org B112C60799 Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id B112C60799; Sun, 10 Mar 2024 19:26:31 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id DE3061BF865 for ; Sun, 10 Mar 2024 19:26:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id D826260647 for ; Sun, 10 Mar 2024 19:26:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EFDK8Kr8MOOs for ; Sun, 10 Mar 2024 19:26:27 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=217.70.183.197; helo=relay5-d.mail.gandi.net; envelope-from=peko@48ers.dk; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp3.osuosl.org 69B6D60611 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 69B6D60611 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by smtp3.osuosl.org (Postfix) with ESMTPS id 69B6D60611 for ; Sun, 10 Mar 2024 19:26:25 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id B44CD1C0003; Sun, 10 Mar 2024 19:26:22 +0000 (UTC) Received: from peko by dell.be.48ers.dk with local (Exim 4.96) (envelope-from ) id 1rjOoP-0089fh-34; Sun, 10 Mar 2024 20:26:21 +0100 From: Peter Korsgaard To: buildroot@buildroot.org Date: Sun, 10 Mar 2024 20:26:19 +0100 Message-Id: <20240310192619.1943776-3-peter@korsgaard.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240310192619.1943776-1-peter@korsgaard.com> References: <20240310192619.1943776-1-peter@korsgaard.com> MIME-Version: 1.0 X-GND-Sasl: peter@korsgaard.com X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dmarc=none (p=none dis=none) header.from=korsgaard.com Subject: [Buildroot] [PATCH 3/3] configs/ci20_defconfig: configure eth0 through BR2_SYSTEM_DHCP rather than kernel cmdline X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ezequiel Garcia Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Passing ip=dhcp to the kernel will cause it to try to configure the network interface using DHCP and wait up to 120s for the interface to detect a link, slowing down boots without a network cable a lot. Instead use the "normal" BR2_SYSTEM_DHCP, E.G. trigger ifup to run the DHCP client in the background. Signed-off-by: Peter Korsgaard --- board/ci20/uboot-env.txt | 2 +- configs/ci20_defconfig | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/board/ci20/uboot-env.txt b/board/ci20/uboot-env.txt index 3093496cc9..2d693af7b7 100644 --- a/board/ci20/uboot-env.txt +++ b/board/ci20/uboot-env.txt @@ -1,6 +1,6 @@ baudrate=115200 board_mfr=NP -bootargs=console=ttyS4,115200 console=tty0 mem=256M@0x0 mem=768M@0x30000000 rootwait root=/dev/mmcblk0p1 devtmpfs.mount=1 ip=dhcp +bootargs=console=ttyS4,115200 console=tty0 mem=256M@0x0 mem=768M@0x30000000 rootwait root=/dev/mmcblk0p1 devtmpfs.mount=1 bootcmd=run ethargs; ext4load mmc 0:1 0x88000000 /boot/uImage; bootm 0x88000000 bootdelay=1 ethargs=env set bootargs ${bootargs} diff --git a/configs/ci20_defconfig b/configs/ci20_defconfig index 31019aeae2..4b3c742173 100644 --- a/configs/ci20_defconfig +++ b/configs/ci20_defconfig @@ -7,6 +7,7 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_1=y # system BR2_TARGET_GENERIC_GETTY_PORT="ttyS4" +BR2_SYSTEM_DHCP="eth0" BR2_TARGET_ROOTFS_EXT2=y BR2_TARGET_ROOTFS_EXT2_4=y BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"