From patchwork Sat Aug 31 12:08:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3349 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 4557E3FA6C for ; Sat, 31 Aug 2024 14:08:48 +0200 (CEST) Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-5c2486f1f14sf267170a12.1 for ; Sat, 31 Aug 2024 05:08:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1725106128; cv=pass; d=google.com; s=arc-20240605; b=LOPNgbqgpK68VHM/54ZLdTMD9f7JItPDIkQ/zaIwAsGjXi65tJsJnFE4i40pF0hTnG XQbTPvspz0VctLqyEk3X+9hbsMNkgQCbUn29bwTmhj5iannkRjpE6E3dTfGPQMGTURs5 PkkTFAWI9bpdcOUCdfUfJ79iwAb4oVIPcXovFLV/2dPdk7cmHwCme3h9llTSw2wToihE 8TmudON6NOOPGGVJhF8cLZwVJZ3uFb8DW06SUebOfFw6/ZQY1DVCyo3brw70RUo9kq0D owBwcvDnj1225FhibZt03ARFYqOWRdw+7M5d0z+PXCVjn7LoXIsAcv8UuABtp4b/++Nj l9tw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=rblI1BnTjmpEJdJE+Z140Mqb6/+IVBlOGkYkGf+H7qA=; fh=gyUMYdGv30mt24+ABZttD4ehnU7bfq4pw92aQZ2uigQ=; b=J/qUzMYzrFKWkzdxDrnQQ9B+O2+3ylvtwAcca3EU8xfy1YsbJ+X+p8vjZKSeJ2eWJ7 X0PJa/rQjQ0GZGSri2pLKnC0U05kWnSFTza8X3v7PDbzOtG1lks2OapwH8wYXMc5Aozh zjSwcY2FfexB5UcjuFhRsT5wetJ4svsN9xU5YjbvCjjcNa8LCWNlFHjMbDOTBguFOj/t XEJc6+ygwSeGdRpuXTsfW+cJ1qc4AdqTbLmecqnmuM6NOSq5uPHcj4Jt8r9T8QDubrqx SJJXOYSy7ZO6oh5OiFimASxs1WpdeISVJMehrlZNLMyFQgvxOagKkFQmZGV9VIqu+Mx8 EFyA==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Fd4CfUNO; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1725106128; x=1725710928; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=rblI1BnTjmpEJdJE+Z140Mqb6/+IVBlOGkYkGf+H7qA=; b=ZFsxEhZMIofTRMc6jBDDrbFm0FZsMiOqH2tN5o9msnZ7Ajcv8uTQikpcJUEbnEkYp5 F1HnLY+bU2aDEhQFY/zP1MFiU/QJHzX4V4r3ucYp9wDTAyFLZlvlhPgtX6h40bhj5XiY TmKcN4m86SLsPqRwoGoejlOQuyWr2Y5snZ5Xw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725106128; x=1725710928; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rblI1BnTjmpEJdJE+Z140Mqb6/+IVBlOGkYkGf+H7qA=; b=whKElcDqP44i0SeMk6r/j1H3JAF2gkUnHSHcHHIbzH2005oQ12ZRolJl+vwoIDLZ6h GfzQQArjIUXcf3AZ84TM1MjYRaM++QpC4Yx77j6mBCz6e8FS3gW/2QeNZbDKbcuJ+O3C p5oFkhAsbWRC5n9OO7Orf5AQ3mh1tdAnsTOk8IKGMEUxmbCdVdiKtGAEYxeoeZfKlJy1 MCAbP5XbV67T4Jz79Mgleyc+qDQXO/AGDMnntwMQoN+PHraYCRgSfncuSH+4WDfUvMgO 98PrXgtPeHbSfQmCD/6zk5fUJTcKQ4+wDiYgZLzCbTf3D5j1AQYyeA1RBHwcf9qpHS6B KBKQ== X-Forwarded-Encrypted: i=2; AJvYcCWK31jzicje/DPeaekdKWwSlsC4Mo3lNe9jXw0q0OVIy3Ch3pG+wpGcwYoAJy5DPB/e2nkYOli4u5QrOkJS@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Yz4GNY+KQ7BQK1ZRNXAgmrhiIUfjWAgmjmFHI2x7ZD7T+q+5A8T lKfUuuKGddRIAjRrvGC7jf765Wk3m86IV0VIxYLINIXS5OEviLnJCVxFmQQFdR2grw== X-Google-Smtp-Source: AGHT+IGmu8C+bskEY9cIjKFq1pjRajic0VEXDRA/QWy5N3oOl5PXxC++eA11MTeDrPAGpFLEYSHL3A== X-Received: by 2002:a05:6402:3584:b0:5c0:a8ba:3cf0 with SMTP id 4fb4d7f45d1cf-5c21ed32f2bmr6650577a12.8.1725106127838; Sat, 31 Aug 2024 05:08:47 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:34c9:b0:5be:ea4f:8c6d with SMTP id 4fb4d7f45d1cf-5c21ec5504fls423997a12.2.-pod-prod-03-eu; Sat, 31 Aug 2024 05:08:46 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX55KiRrUASlF/P6Y918drZe8cMJ1Es7YIhQHu1+nkGc5yMOfFbH/k4Jh+Cfaq7IUAgiXH3174bmjB/1B6v@amarulasolutions.com X-Received: by 2002:a05:6402:518a:b0:5c2:4dcc:b90a with SMTP id 4fb4d7f45d1cf-5c24dccbb2emr368978a12.34.1725106126179; Sat, 31 Aug 2024 05:08:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725106126; cv=none; d=google.com; s=arc-20160816; b=Vgzxsc6QFRZjLZMA2ksjSObQFcihFucPVJaOO18IQpnBdwprk9mEmQRydg4IGvxXcH XjGlhHDu3/RJ/ajo14woFBidM5J214TMkOEW75vGleiCWPAbB9qaABnXUqwmmwf3yC6e xMTm/oYvJIlJkGsZlF1c1mGLzwzZqseztkHNH349wuh/Ouvl7HawtpE4lljwYnwvn2SD 5LoEe4j9gfdkIDVC48za6ATCqyPbaS1e1F59gAT9uX9KWyLPPgSNQOYmDhlBeDSyVFnx 2bbTJaD8Ek/hOSUEZkQJlAJex6eMmgNfPwuu81GIj3BpKfCgXNDAfgCo5caRf35iEQoU L5DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=JSKYc6C8TT6iYubA26m8JbSuDNI8sNNGFRv1JezIBfI=; fh=47hGyxz7P7S9RfaXLOqyFNAsJ3fsL0ob/ncZGuDa4/0=; b=AlV9pVcqd9M6l+JqjxMX7/DVpV7MyYIPwdVaVcio7WBdx1sSKf35dbtW/XWXaWYIM7 WLjKszjNd58dVHzZfbygvzMxUdLH0mkSBSJnqMLN1fIIPOpJQzikybbJb01D8E9rOqYs wmS+IYbuItN2LXxZ1lfM2nH+qu6shqR0X3VoF5mB3je9BmfuDokibFl/HeXd5X/MWpD6 keHfuQDFbI9aiW1OH+2oiE4rYa1SKqmy87tPeqGR+z2pTe8gIJYqJKFiFY8rZMzjxJfF vHf2RFsPqIGHvY4y3jRWjK7rPolzbkyi4gqaZ2rj4gFC7gVu6h2zLeyrXd7ZI7xgiwa4 kqlQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Fd4CfUNO; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 4fb4d7f45d1cf-5c226cda875sor1128158a12.8.2024.08.31.05.08.46 for (Google Transport Security); Sat, 31 Aug 2024 05:08:46 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Forwarded-Encrypted: i=1; AJvYcCWCa5aT2sMSDl7u/y3tOcquAXYeEzo33k93M++VHIAzrWRL7IP2J6g0yfW2UcbHF8gjcKVITXz3kMoPwahx@amarulasolutions.com X-Received: by 2002:a05:6402:518a:b0:5c2:4dcc:b90a with SMTP id 4fb4d7f45d1cf-5c24dccbb2emr368947a12.34.1725106125330; Sat, 31 Aug 2024 05:08:45 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-82-48-52-249.retail.telecomitalia.it. [82.48.52.249]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c226ce4f47sm2938178a12.88.2024.08.31.05.08.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 Aug 2024 05:08:45 -0700 (PDT) From: Dario Binacchi To: buildroot@buildroot.org Cc: Damien Le Moal , Dario Binacchi , Thomas Petazzoni , "Yann E . MORIN" , linux-amarula@amarulasolutions.com Subject: [PATCH v4 3/3] board/canaan/k210-soc: use tinyinit as Linux init process Date: Sat, 31 Aug 2024 14:08:33 +0200 Message-ID: <20240831120833.2915529-4-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240831120833.2915529-1-dario.binacchi@amarulasolutions.com> References: <20240831120833.2915529-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Fd4CfUNO; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The initialization script provided by the tinyinit package is the same as the one contained in board/canaan/k210-soc/rootfs_overlay/sbin/init except for the Linux logo, which has been removed. The patch reworks the configurations that use this overlay directory by replacing the initialization process contained within it with the one provided by the tinyinit package. Signed-off-by: Dario Binacchi Reviewed-by: Damien Le Moal --- Changes v3 -> v4: - Replace BR2_INIT_NONE=y and BR2_PACKAGE_TINYINIT=y with BR2_INIT_TINYINIT=y in stm32f746_disco_sd_defconfig Changes v2 -> v3: - Replace BR2_INIT_TINYINIT=y with BR2_INIT_NONE=y and BR2_PACKAGE_TINYINIT=y in stm32f746_disco_sd_defconfig. Changes v1 -> v2: - Remove the logo management. - Update the commit message. .checkpackageignore | 1 - board/canaan/k210-soc/rootfs_overlay/init | 1 - .../canaan/k210-soc/rootfs_overlay/sbin/init | 41 ------------------- configs/canaan_kd233_defconfig | 3 +- configs/sipeed_maix_bit_defconfig | 3 +- configs/sipeed_maix_bit_sdcard_defconfig | 3 +- configs/sipeed_maix_dock_defconfig | 3 +- configs/sipeed_maix_dock_sdcard_defconfig | 3 +- configs/sipeed_maix_go_defconfig | 3 +- configs/sipeed_maix_go_sdcard_defconfig | 3 +- configs/sipeed_maixduino_defconfig | 3 +- configs/sipeed_maixduino_sdcard_defconfig | 3 +- 12 files changed, 9 insertions(+), 61 deletions(-) delete mode 120000 board/canaan/k210-soc/rootfs_overlay/init delete mode 100755 board/canaan/k210-soc/rootfs_overlay/sbin/init diff --git a/.checkpackageignore b/.checkpackageignore index 4cfc202153c7..849bb2a55e47 100644 --- a/.checkpackageignore +++ b/.checkpackageignore @@ -22,7 +22,6 @@ board/bsh/imx8mn-bsh-smm-s2-pro/post-image.sh Shellcheck board/bsh/imx8mn-bsh-smm-s2/flash.sh Shellcheck lib_shellscript.EmptyLastLine board/bsh/imx8mn-bsh-smm-s2/post-build.sh Shellcheck board/canaan/k210-soc/post-build.sh Shellcheck -board/canaan/k210-soc/rootfs_overlay/sbin/init Shellcheck board/chromebook/elm/sign.sh Shellcheck board/chromebook/mksd.sh Shellcheck board/chromebook/snow/sign.sh Shellcheck diff --git a/board/canaan/k210-soc/rootfs_overlay/init b/board/canaan/k210-soc/rootfs_overlay/init deleted file mode 120000 index a0b71977c06f..000000000000 --- a/board/canaan/k210-soc/rootfs_overlay/init +++ /dev/null @@ -1 +0,0 @@ -/sbin/init \ No newline at end of file diff --git a/board/canaan/k210-soc/rootfs_overlay/sbin/init b/board/canaan/k210-soc/rootfs_overlay/sbin/init deleted file mode 100755 index d4bf53d45231..000000000000 --- a/board/canaan/k210-soc/rootfs_overlay/sbin/init +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh - -# This script replaces the default busybox init process to avoid having that -# process staying alive and sleeping in the background, (uselessly) consuming -# precious memory. - -# Mount procfs and sysfs -/bin/mount -t proc proc /proc -/bin/mount -t sysfs sysfs /sys - -# When the kernel is directly booted, devtmpfs is not automatically mounted. -# Manually mount it if needed. -devmnt=$(mount | grep -c devtmpfs) -if [ ${devmnt} -eq 0 ]; then - /bin/mount -t devtmpfs devtmpfs /dev -fi - -# Use the /dev/console device node from devtmpfs if possible to not -# confuse glibc's ttyname_r(). -# This may fail (E.G. booted with console=), and errors from exec will -# terminate the shell, so use a subshell for the test -if (exec 0/dev/null; then - exec 0/dev/console - exec 2>/dev/console -fi - -# Clear memory to reduce page fragmentation -echo 3 > /proc/sys/vm/drop_caches - -# Print a fun logo :) -echo " __ _" -echo " / / (_) ____ _ _ __ __" -echo " / / | || _ \\ | | | |\\ \\/ /" -echo " / /___| || | | || |_| | > < " -echo " /_____/|_||_| |_| \\____|/_/\\_\\" -echo " 64-bits RISC-V Kendryte K210 NOMMU" -echo "" - -# Finally, let's start an interactive shell -exec /bin/sh diff --git a/configs/canaan_kd233_defconfig b/configs/canaan_kd233_defconfig index 832f8363a75c..27624aff4a9a 100644 --- a/configs/canaan_kd233_defconfig +++ b/configs/canaan_kd233_defconfig @@ -32,6 +32,5 @@ BR2_PACKAGE_BUSYBOX_CONFIG_FRAGMENT_FILES="board/canaan/k210-soc/busybox-tiny.co # BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set # Filesystem -BR2_INIT_NONE=y +BR2_INIT_TINYINIT=y BR2_TARGET_ROOTFS_INITRAMFS=y -BR2_ROOTFS_OVERLAY="board/canaan/k210-soc/rootfs_overlay" diff --git a/configs/sipeed_maix_bit_defconfig b/configs/sipeed_maix_bit_defconfig index 238e082a3d40..5119307330de 100644 --- a/configs/sipeed_maix_bit_defconfig +++ b/configs/sipeed_maix_bit_defconfig @@ -32,6 +32,5 @@ BR2_PACKAGE_BUSYBOX_CONFIG_FRAGMENT_FILES="board/canaan/k210-soc/busybox-tiny.co # BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set # Filesystem -BR2_INIT_NONE=y +BR2_INIT_TINYINIT=y BR2_TARGET_ROOTFS_INITRAMFS=y -BR2_ROOTFS_OVERLAY="board/canaan/k210-soc/rootfs_overlay" diff --git a/configs/sipeed_maix_bit_sdcard_defconfig b/configs/sipeed_maix_bit_sdcard_defconfig index 28aa143583bd..4047da159221 100644 --- a/configs/sipeed_maix_bit_sdcard_defconfig +++ b/configs/sipeed_maix_bit_sdcard_defconfig @@ -33,10 +33,9 @@ BR2_LINUX_KERNEL_INTREE_DTS_NAME="canaan/sipeed_maix_bit" # BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set # Filesystem -BR2_INIT_NONE=y +BR2_INIT_TINYINIT=y BR2_TARGET_ROOTFS_EXT2=y BR2_TARGET_ROOTFS_EXT2_SIZE="64M" -BR2_ROOTFS_OVERLAY="board/canaan/k210-soc/rootfs_overlay" BR2_ROOTFS_POST_BUILD_SCRIPT="board/canaan/k210-soc/post-build.sh" BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/canaan/k210-soc/genimage.cfg" diff --git a/configs/sipeed_maix_dock_defconfig b/configs/sipeed_maix_dock_defconfig index ee1b0d837284..0caa4d4e3ae3 100644 --- a/configs/sipeed_maix_dock_defconfig +++ b/configs/sipeed_maix_dock_defconfig @@ -32,6 +32,5 @@ BR2_PACKAGE_BUSYBOX_CONFIG_FRAGMENT_FILES="board/canaan/k210-soc/busybox-tiny.co # BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set # Filesystem -BR2_INIT_NONE=y +BR2_INIT_TINYINIT=y BR2_TARGET_ROOTFS_INITRAMFS=y -BR2_ROOTFS_OVERLAY="board/canaan/k210-soc/rootfs_overlay" diff --git a/configs/sipeed_maix_dock_sdcard_defconfig b/configs/sipeed_maix_dock_sdcard_defconfig index 41a062c7a179..ecb640a47bb2 100644 --- a/configs/sipeed_maix_dock_sdcard_defconfig +++ b/configs/sipeed_maix_dock_sdcard_defconfig @@ -33,10 +33,9 @@ BR2_LINUX_KERNEL_INTREE_DTS_NAME="canaan/sipeed_maix_dock" # BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set # Filesystem -BR2_INIT_NONE=y +BR2_INIT_TINYINIT=y BR2_TARGET_ROOTFS_EXT2=y BR2_TARGET_ROOTFS_EXT2_SIZE="64M" -BR2_ROOTFS_OVERLAY="board/canaan/k210-soc/rootfs_overlay" BR2_ROOTFS_POST_BUILD_SCRIPT="board/canaan/k210-soc/post-build.sh" BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/canaan/k210-soc/genimage.cfg" diff --git a/configs/sipeed_maix_go_defconfig b/configs/sipeed_maix_go_defconfig index a5b09e17ac1c..21075a9ed004 100644 --- a/configs/sipeed_maix_go_defconfig +++ b/configs/sipeed_maix_go_defconfig @@ -32,6 +32,5 @@ BR2_PACKAGE_BUSYBOX_CONFIG_FRAGMENT_FILES="board/canaan/k210-soc/busybox-tiny.co # BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set # Filesystem -BR2_INIT_NONE=y +BR2_INIT_TINYINIT=y BR2_TARGET_ROOTFS_INITRAMFS=y -BR2_ROOTFS_OVERLAY="board/canaan/k210-soc/rootfs_overlay" diff --git a/configs/sipeed_maix_go_sdcard_defconfig b/configs/sipeed_maix_go_sdcard_defconfig index 0e80d9c83ad8..5448bd0ce351 100644 --- a/configs/sipeed_maix_go_sdcard_defconfig +++ b/configs/sipeed_maix_go_sdcard_defconfig @@ -33,10 +33,9 @@ BR2_LINUX_KERNEL_INTREE_DTS_NAME="canaan/sipeed_maix_go" # BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set # Filesystem -BR2_INIT_NONE=y +BR2_INIT_TINYINIT=y BR2_TARGET_ROOTFS_EXT2=y BR2_TARGET_ROOTFS_EXT2_SIZE="64M" -BR2_ROOTFS_OVERLAY="board/canaan/k210-soc/rootfs_overlay" BR2_ROOTFS_POST_BUILD_SCRIPT="board/canaan/k210-soc/post-build.sh" BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/canaan/k210-soc/genimage.cfg" diff --git a/configs/sipeed_maixduino_defconfig b/configs/sipeed_maixduino_defconfig index 7ba7653e8d5f..6c93b29b4343 100644 --- a/configs/sipeed_maixduino_defconfig +++ b/configs/sipeed_maixduino_defconfig @@ -32,6 +32,5 @@ BR2_PACKAGE_BUSYBOX_CONFIG_FRAGMENT_FILES="board/canaan/k210-soc/busybox-tiny.co # BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set # Filesystem -BR2_INIT_NONE=y +BR2_INIT_TINYINIT=y BR2_TARGET_ROOTFS_INITRAMFS=y -BR2_ROOTFS_OVERLAY="board/canaan/k210-soc/rootfs_overlay" diff --git a/configs/sipeed_maixduino_sdcard_defconfig b/configs/sipeed_maixduino_sdcard_defconfig index 7bdd36e1d09f..0b42cae45df7 100644 --- a/configs/sipeed_maixduino_sdcard_defconfig +++ b/configs/sipeed_maixduino_sdcard_defconfig @@ -33,10 +33,9 @@ BR2_LINUX_KERNEL_INTREE_DTS_NAME="canaan/sipeed_maixduino" # BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set # Filesystem -BR2_INIT_NONE=y +BR2_INIT_TINYINIT=y BR2_TARGET_ROOTFS_EXT2=y BR2_TARGET_ROOTFS_EXT2_SIZE="64M" -BR2_ROOTFS_OVERLAY="board/canaan/k210-soc/rootfs_overlay" BR2_ROOTFS_POST_BUILD_SCRIPT="board/canaan/k210-soc/post-build.sh" BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/canaan/k210-soc/genimage.cfg"