From patchwork Sat Aug 31 12:08:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3346 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 57BF83F338 for ; Sat, 31 Aug 2024 14:08:45 +0200 (CEST) Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-a867ed4c129sf212795966b.0 for ; Sat, 31 Aug 2024 05:08:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1725106125; cv=pass; d=google.com; s=arc-20240605; b=Ab9jXKQOHiAyCNRpwY8u3v58jO5mdDOcUszQh8cEDpNm9RVPgQ7PdOIzcgG+P+ePDd TAtO8MLngPBYdBKJ/3yqg2Mrq1N5lg9XhihpGVD3BfIwqPNuPbNtOYkwymOHdxQpUrwm pDYDx5I/B25UP01OAX8kwHiS5oQswf3TaSGorqKi8HpOal52M5QMvvbgafbpC7R39y70 P/YqT4J99ft5aK4VLabLhiSrEiWlRxnDAa7kkagY1M93Z0grd5jTDm/gHaIto+0upCAc xJhUYIzbDgQEXx6VigOAOOCLd3JgEXu+hP7kI0bnykSNtaDyiXXGTSBWGM9wg228uQgZ MLuA== 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=77UCdk0mdc2U/GgQIrhrqGUpXmN6mk9FjL6xnItP/TI=; fh=J5S8evEjy0m/i7YFhDQir05yAwL/4Aes5GgHNhHfNlo=; b=Yf81rnfwe1Xu2qMXUqq4wMAuPmDOscAkS4vkTZ3RzjDgdMfoIRozG1vcdB6msOXjcv AbYfgiI7XW+eWtTsuljwzWk+fT/5hFDOBnXweRfJ3lBr2G6d5QygCXqNKCZQkLRq+QGs LBodxiwTgGy2Piw19aeiEIGuTcLBKFvtggCfJUFYdW/HyQ8vk9OhZ26uIYEzFyKuTcDa N9qo3rdM4hNOQpbCGrls2DncCLakDOjVV4ivWOINMYvJQU5fD/46ivOjn5Ach6sClzy6 oX6dc1SXBUOCLnRsCqjOQXek5drvoeMrqq34rcKf2BbntClM4mJuTl7rEUCYXr2nseiB WEgw==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=JlvKYfLd; 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=1725106125; x=1725710925; 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=77UCdk0mdc2U/GgQIrhrqGUpXmN6mk9FjL6xnItP/TI=; b=Z0HdoGZl8XoW2IFlE9Gv9bqqU7sqJ3SJgRVIKZ8IvvIEoNNIRXWtEGCRI1Kwcd92TD 5DPTJZA7YRuEdLkrOZHCjLew0KaA/PUqY1eDsbkP2IRANSAn4kU9CNYPmiBdhdLeMmTR JHHNF6hVSqRoVjb7mTIYktWvkbsJZFrk1rzfU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725106125; x=1725710925; 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=77UCdk0mdc2U/GgQIrhrqGUpXmN6mk9FjL6xnItP/TI=; b=UVUqw0G4r5L0/9JJJXhuRMg0Jff0Kvef81EtvF7n4J/7GglJy3aniby7eFGoZshHgB z68sWekmpcCvWoK3OYcSeYCScns43UDWfCBP0noFnc3jBzF7iDXZyb80Plal7RLt5xMS PU8h+K22xNX8q9KkxbbJVbGARNL7dHzYG8+vPoleGIb5ijcbCPbCAD2qOUh2jstRTqbG sUaCMZa+EOLyjR9uVTZEKjr127rFX5HzeVmJ50yIDSlHIXQv/kyfINSrD6d7QTSmbagV DzZwmELWnopaXNffEVYvG31c2JFuxJbZXt2j93ANAej27R4lz0uaZTuEOA1HlmqKo4Bd 5nuQ== X-Forwarded-Encrypted: i=2; AJvYcCUJ940J5tm2jiAyeaBB7VqaypFNXh/KQsrxPic0TiRuhjM7Ru+Ji6SaGwbb9i78Vfvr7KcGt8HZKX98gF8S@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YykW74tgSqv0jRv37k7zmjgPSAiirYCgrPaXA1QxfOQUI19bCVB cQ6gdPmY9FHNdqOpPiwtZOyEJAtZfRrTe3IRAZi/5rs5fgWSibq+8Bf5Nlo+3H17pg== X-Google-Smtp-Source: AGHT+IE6U3JLeUJgwv/CHrCNzrp7Oy/mZ48mkxzuNY65jzWJAHNKBYi1ErTgskgAsY3thcncFvujtQ== X-Received: by 2002:a05:6402:234f:b0:5a1:1b3f:fbf5 with SMTP id 4fb4d7f45d1cf-5c21ed3e07cmr7302933a12.12.1725106124518; Sat, 31 Aug 2024 05:08:44 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:db42:0:b0:5c2:480e:7966 with SMTP id 4fb4d7f45d1cf-5c2480e7e7cls142172a12.1.-pod-prod-08-eu; Sat, 31 Aug 2024 05:08:43 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVKuF1/bvfuhDYE1mBkTZh0uMVjEXQB/ZkPr+yN0bp0OfONhW0VryViDHzIMSjoaNXQtQAd1+fH84WaAl8O@amarulasolutions.com X-Received: by 2002:a17:907:7f14:b0:a86:a56a:3596 with SMTP id a640c23a62f3a-a897fad4dc5mr729944966b.60.1725106122885; Sat, 31 Aug 2024 05:08:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725106122; cv=none; d=google.com; s=arc-20160816; b=B6kRRYrVlVrRupEhpzOzXVFDaqXtjQCd3H6/AqroNpv/gmIL1IVakys8nWCI6YK2tL Qw/HScEpPVy0F2EVC/QPsr3ZWSAkQFoJXd0SRRb7NsjvI7C5C8He94bePhyKUqXcVuip X8Qt5PugVID+5X9UoqJttelVoOX8IzbKrUjMPdPU7BGaqrBtceeXeVfmcaTPsX4Ypeip BO80VgdnPOhEoG/3R8XQRYCEI5R6T5sByfB+OC2qm3EPhr7N27Mi7nOg5OUdv3YeznO+ Kv2oOdrlfAX0HVDtMbydJCR8sKIZtfWh5TRP0kziDbDMrsubYDLoHHW5A01XbSTSZTni fy8w== 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=BYZ9DIWvGs9tvFULnODIqf6L8LFXhhqxKQqgTncTLYk=; fh=kBQ/H0hCoeJwGt/g/T515cMmKpd/B7QWUjygglS85FM=; b=hFUO+yCBvsZRlGdWpaQpF3s7d4Viz8T7odelUgc00IK47zviGokTHHdrhMvO/D5qt1 wSeOmPI80/LNLAdLaQB8XaU4nfGHH3/J+f8tJNStO2s304gbYlliTFNkANyEjuh0e9Pl jcOYdZszw6WVFID9ZGCtzMPmLx2sC7UZ4nQKYJqA7BuyeWPfPwlgGayfjlvGeP/IkEPl 4cr62J4K7B2gVl8talVnhAdArdrL17nhxbqzBJ5arns9vY1Z2ikl2L8bEHMYdicl1kyg wRB4cgY9oO7jswdF8WKpvijXc//NJD8BH2XSbeLpHBGK3pc+aMfwt/Bcn5AhhHKogWcJ R2ig==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=JlvKYfLd; 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 a640c23a62f3a-a8989065ee0sor158850066b.11.2024.08.31.05.08.42 for (Google Transport Security); Sat, 31 Aug 2024 05:08:42 -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; AJvYcCXy0kl0yjFhbCYqIbuxigBU0/Qq7JNuqZEpivPHh8JC9TbXRrfgcGLvc2RKwlOc9Uh/JA8YsTniVkLKbgF7@amarulasolutions.com X-Received: by 2002:a05:6402:3551:b0:5c2:1813:5201 with SMTP id 4fb4d7f45d1cf-5c21ed4c2dcmr6862309a12.17.1725106122304; Sat, 31 Aug 2024 05:08:42 -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.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 Aug 2024 05:08:41 -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 0/3] tinyinit and stm32f746_disco_sd_defconfig Date: Sat, 31 Aug 2024 14:08:30 +0200 Message-ID: <20240831120833.2915529-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=JlvKYfLd; 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. This time the patches have been applied to Yann's series: https://patchwork.ozlabs.org/project/buildroot/list/?series=421768 and therefore not directly to the master. Regarding Thomas's suggestion to remove the u-boot partition: https://patchwork.ozlabs.org/project/buildroot/patch/20240822183742.3550055-3-dario.binacchi@amarulasolutions.com/ I removed it, but the system became more unstable, so I kept the vfat partition, as is already done in other configurations for ST boards. 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 | 4 +++ .../stm32f746-disco/readme.txt | 31 +++++++++++++++++++ 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 +- configs/stm32f746_disco_sd_defconfig | 31 +++++++++++++++++++ package/Config.in | 1 + package/busybox/busybox.mk | 1 + package/tinyinit/Config.in | 8 +++++ .../sbin => package/tinyinit}/init | 11 +------ package/tinyinit/tinyinit.mk | 13 ++++++++ system/Config.in | 9 ++++++ 28 files changed, 182 insertions(+), 30 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