From patchwork Thu Aug 22 18:37:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3328 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 713DD3F15B for ; Thu, 22 Aug 2024 20:37:48 +0200 (CEST) Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-4281b7196bbsf9268225e9.0 for ; Thu, 22 Aug 2024 11:37:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1724351868; cv=pass; d=google.com; s=arc-20240605; b=VHBPCZD1w+Pa0alftCRTNPkun0uVURV0wojxncG1Kn0pc5qR4sCPTor42mqknkyoYM i2WDnMUU/MN0/8gXE8+Mg/uZFcwBFK9Z7NxfE3FrYsV6NhXfObbsgZBTx/OsD09TPmXh xFH6dxhFUwYr/bzu3xaAediPz7UZRC2lUMuZYuiW8GpPHW3jVNF1v6sS8Q1NrUg7QrYY YsdQb7wIg7qQJDS1emvxAhTP8K8N/BeL9o7ePziaE360VHxKcqrOmyhFXyEn7IsHrNXt okE8J3GPC2fTK+gb3d/WttEnSkD3WCSm8l+qgWV5/wMp540K0l3wJLgH0KjFiiuRBWTL doSA== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=SL9Q9y92xWU6229S/VG9finOW+Vk+HeuO21xErmqD9s=; fh=3/uXBfvtOL43mB0ZeRdxUlAVfXSrZE6ao5ZH62JAKl0=; b=gQ0wPTPr51mlAo850HDU+YsRtB637yzntur8N4nqVJnQo85tdSD2Atr9v9pEDn07fW u96L4Z9CPnYM0B6ITJFu9DV6V0TJfarwGtA5+O8aR0A5HKcplTBXvHzUWB1Z0czItvcJ eOFtae2acq57CNwvR/+uWC1YHQG7dmsA4hv+sl0H2kTwJxvElgX9BI2FKtFD78fOS6nB ++sWV79e7BYanRpu7CD5cl+O2Drxh6kMbTh+RQ3vl+J3QNFTrdp/M+zy/canQmzCP+Q8 3o33WqZgfwMi8fGYelba3ZbGWy6mY29vcgV1ZRKS9nWe6gBjkvcXrB0IlJ9Jg9knxOZl 3yEw==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=eEMQycR0; 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=1724351868; x=1724956668; 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:message-id:date:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to; bh=SL9Q9y92xWU6229S/VG9finOW+Vk+HeuO21xErmqD9s=; b=pb+uXuMO1ebecBraB/Lwl1/aCUc6C2UwV8YSUjp3Ksul8O6Y2b0i60yXdYn52y3hxR LFdYjdWLERDWTqStMTVBBA9GRm+fTuFdqZnX24GGJNPOsNDOlDH7RgpiADKNWvqjt6c8 Mv27dqLt3DYLDZ4H0fO0uQJ5KFzJLOdsBE334= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724351868; x=1724956668; 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 :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=SL9Q9y92xWU6229S/VG9finOW+Vk+HeuO21xErmqD9s=; b=QTsq6+msTMbgZn6+6+GRi7p+hWym6KTBQh/evebccJD/a/N5WhobwvqBEegZSHgEZe OE2klRqd4p2BUH2qJ8LJVcBocr90NJbBdc6GYlPPjCf5UfkLTghdxFgnu2SiyaEN8S9b jbkG3/96tjJS6mJHyg4660Jounz6pWseG3JTvxGuuTRz/hkBPS7pW1ct68ffN+vtDXov 3Muz7o7y6C2uiTocO8D95Bs4gxwJx0Oo/wRhtTwiJq6B1aBzFC7wiypSJpI1bNve+21N kI266EYXe+R90w4W/FODmi1WusF7cq2rpDjoabrkT2ublXxsMMrgJ48cYfliovJscnxd e1qw== X-Forwarded-Encrypted: i=2; AJvYcCWKTNFa+UDjj14x8hX1fkVjQtJ6r43ochESIOElK//uv4A/PcHTM2fyHxebI5PZ6xlUdlHAkNyqNAd4N7+e@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Yzkkx2n7koKo2rSNmvTQETHo9sHpHfU1OdP2u17dXTiRrS6AdqF ziESl+v6jk8ZrmMmSKmSWaEr6md94MMSVjg1prhFQQ9MXL+e6kzYbgWMcWTYZx/5lg== X-Google-Smtp-Source: AGHT+IGdMbOMq8THrnvIuN3To7BIc3p+09VooS/jVteh80iBq4FsBO2iBoTBWOYErX0ZXq1yqg1nVQ== X-Received: by 2002:a05:600c:5117:b0:429:e67f:1249 with SMTP id 5b1f17b1804b1-42abf0485ddmr46646365e9.3.1724351867623; Thu, 22 Aug 2024 11:37:47 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a5d:6304:0:b0:36e:f4e5:b067 with SMTP id ffacd0b85a97d-37305dddfa5ls380075f8f.2.-pod-prod-03-eu; Thu, 22 Aug 2024 11:37:46 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXEVmmxKw1eJZuUbX1nuelJZL9h/d1Y6KDo7iJkvH53/sLUWi5PEP7Gj5fa9rnYh3HKToWpKg3nHsADlY95@amarulasolutions.com X-Received: by 2002:a05:6000:1050:b0:371:8e61:23a7 with SMTP id ffacd0b85a97d-372fd599755mr4775025f8f.16.1724351865836; Thu, 22 Aug 2024 11:37:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1724351865; cv=none; d=google.com; s=arc-20160816; b=T5MxPCt33QOpQ4fw7eREJlwHkRITF/Ec1oX3XY43heUGDigIoj8XAOplFPo93hAegb SaNvVLPjrYw4otOBcvkxo4OOJ5K+oD+TTJBcflOjjRU449NXnDqfb5P1MZYz90dR4UY+ TLSOF0+xIaz4BRhR87OCdfRVC7b6zr6QdO5d4FrydsjCS8chHR5e59SRxRfgwHf5KsGn nVHRzrIkJfS2Y2J3C5Jy9qN9E+MTTKi2uPJhZtXYLghiFZUS0uLHH7EMDppWTT4OaUfv ARuyCaUVx68cS6j1f+veA26ZZN9FAAcQroN3DNz0hNV94fY+P+sVdXFFmrr+BU63fBvy 2doQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=UJEQIQLo+rlGP192bQCWyrnmgs94wKAV7pHc9eiTLz0=; fh=B2wmkLFfONTmSakdxSIvy0m3MSb4See4G8jb8nNPLpU=; b=Ix5PQPZaV9MBcMH9dNRxuXFjzL/BvirpiIzi7fN3gKNJ4KlJrlspWYn1mg6ZV3/DGq 3gdUgR5yOfW6LFoOf9wBQ/8XF8A4UTPUIyyJkLQFV3UNkvB4rMoOV38tBI+xQPFBdNjN hH5lVswjzs8vc5RGk8FZRHgV2D27Zlskq9AkIx+0rnStPgdXMokQvR3WfoxkzCT0yz0e MfJVOd4SahSmj23llBf2j/StQscVBfjc95lwx0H3hCjkiXUKtLvtGbP7VhRrzefVZkaZ 8qGvWuPo1R0c7iC9S0cKaYkrO3SvXDNoc4jAQqi3DcIz8bZc8WPJdeCTFaE+ePBp32Se ucrg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=eEMQycR0; 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 ffacd0b85a97d-37307c0a23asor420269f8f.0.2024.08.22.11.37.45 for (Google Transport Security); Thu, 22 Aug 2024 11:37:45 -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; AJvYcCVlmMISXZ+TbVtHGJAzkmTUoOtCDnraCwDvWI7lJNHb4BMpBYEjaRxTYdrxmrqWcFFZY2vOo/PKqyFqfwYY@amarulasolutions.com X-Received: by 2002:a5d:68c9:0:b0:367:96d2:5756 with SMTP id ffacd0b85a97d-372fd82b8f5mr4068127f8f.62.1724351865190; Thu, 22 Aug 2024 11:37:45 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.. ([2.196.40.166]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3730811001fsm2276397f8f.20.2024.08.22.11.37.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2024 11:37:44 -0700 (PDT) From: Dario Binacchi To: buildroot@buildroot.org Cc: Dario Binacchi , Damien Le Moal , Thomas Petazzoni , "Yann E . MORIN" , linux-amarula@amarulasolutions.com Subject: [PATCH v3 0/3] tinyinit and stm32f746_disco_sd_defconfig Date: Thu, 22 Aug 2024 20:37:39 +0200 Message-ID: <20240822183742.3550055-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 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=eEMQycR0; 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: , This series is inspired by reading the following topic: https://lore.kernel.org/buildroot/20230206230203.70e2dbd8@windsurf/T Starting from that patch, and following Thomas Petazzoni's suggestions regarding the possibility of using a single minimal script without duplicating it within Buildroot, I developed these three patches. Meanwhile, the configuration for the stm32f746_disco board was useful for developing the display support for the board, which was later merged into Linux. Dario Binacchi (3): package/tinyinit: new package configs/stm32f746_disco_sd: new defconfig board/canaan/k210-soc: use tinyinit as Linux init process .checkpackageignore | 1 - DEVELOPERS | 3 ++ board/canaan/k210-soc/rootfs_overlay/init | 1 - .../stm32f746-disco/extlinux.conf | 4 +++ .../stm32f746-disco/flash_sd.sh | 22 +++++++++++++ .../stm32f746-disco/genimage.cfg | 27 ++++++++++++++++ .../stm32f746-disco/linux.fragment | 13 ++++++++ .../patches/linux-headers/linux-headers.hash | 1 + .../stm32f746-disco/patches/linux/linux.hash | 2 ++ .../stm32f746-disco/patches/uboot/uboot.hash | 2 ++ .../stm32f746-disco/post-build.sh | 9 ++++++ .../stm32f746-disco/readme.txt | 31 ++++++++++++++++++ configs/canaan_kd233_defconfig | 2 +- configs/sipeed_maix_bit_defconfig | 2 +- configs/sipeed_maix_bit_sdcard_defconfig | 2 +- configs/sipeed_maix_dock_defconfig | 2 +- configs/sipeed_maix_dock_sdcard_defconfig | 2 +- configs/sipeed_maix_go_defconfig | 2 +- configs/sipeed_maix_go_sdcard_defconfig | 2 +- configs/sipeed_maixduino_defconfig | 2 +- configs/sipeed_maixduino_sdcard_defconfig | 2 +- configs/stm32f746_disco_sd_defconfig | 32 +++++++++++++++++++ package/Config.in | 1 + package/tinyinit/Config.in | 10 ++++++ .../sbin => package/tinyinit}/init | 11 +------ package/tinyinit/tinyinit.mk | 12 +++++++ 26 files changed, 179 insertions(+), 21 deletions(-) delete mode 120000 board/canaan/k210-soc/rootfs_overlay/init create mode 100644 board/stmicroelectronics/stm32f746-disco/extlinux.conf create mode 100755 board/stmicroelectronics/stm32f746-disco/flash_sd.sh create mode 100644 board/stmicroelectronics/stm32f746-disco/genimage.cfg create mode 100644 board/stmicroelectronics/stm32f746-disco/linux.fragment create mode 120000 board/stmicroelectronics/stm32f746-disco/patches/linux-headers/linux-headers.hash create mode 100644 board/stmicroelectronics/stm32f746-disco/patches/linux/linux.hash create mode 100644 board/stmicroelectronics/stm32f746-disco/patches/uboot/uboot.hash create mode 100755 board/stmicroelectronics/stm32f746-disco/post-build.sh create mode 100644 board/stmicroelectronics/stm32f746-disco/readme.txt create mode 100644 configs/stm32f746_disco_sd_defconfig create mode 100644 package/tinyinit/Config.in rename {board/canaan/k210-soc/rootfs_overlay/sbin => package/tinyinit}/init (75%) mode change 100755 => 100644 create mode 100644 package/tinyinit/tinyinit.mk