From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7A866C0219C for ; Fri, 7 Feb 2025 09:37:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 6342D83A93; Fri, 7 Feb 2025 09:37:12 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id TWmg7lu4coSy; Fri, 7 Feb 2025 09:37:11 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 11E7B83AAC Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id 11E7B83AAC; Fri, 7 Feb 2025 09:37:11 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists1.osuosl.org (Postfix) with ESMTP id 8FC4BE4 for ; Fri, 7 Feb 2025 09:37:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 72F654011F for ; Fri, 7 Feb 2025 09:37:09 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id MSCoXFZOQG_e for ; Fri, 7 Feb 2025 09:37:08 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::62d; helo=mail-pl1-x62d.google.com; envelope-from=meena.murthy@amarulasolutions.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp2.osuosl.org 0BF12408C0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 0BF12408C0 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by smtp2.osuosl.org (Postfix) with ESMTPS id 0BF12408C0 for ; Fri, 7 Feb 2025 09:37:07 +0000 (UTC) Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-21634338cfdso45157825ad.2 for ; Fri, 07 Feb 2025 01:37:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738921027; x=1739525827; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/JjcMQsK0sF1jW6oe0/0c7EEtqK9wtcM4xIy2nZ/PUc=; b=COdB+ly2B0aCoFg7w1hhKvJtR5YRxRJJYAHgUW0e/WNzyEbWRtYI1BsrmXrjHNhmuN dDoyay+banuchLLD9LYS1H9bFxLiIm1siIf7srm04bq6CZgstTxTK9qRZBsDX6FuScVw HdKM87zjmYky6RozG569iOynmdKPo8Em0gm57jXcB3tE/KGZf3JmNVWYrIOAGnfpcH0f p2/PpQNG17X4SwwLagyDbzgbC+1VUgh0XDAY135qbNvpGJta7MVRY+lcwxrwnVbyOsD0 PR4MoR57t7c5az91czvQpBSvFzKCkLgDmFdC1ldoU7EhigpEYYg0weavMSla5ZoKeyRL ckxQ== X-Gm-Message-State: AOJu0YwQcsKIzhFa8naxtjVf+MdKAN4tedfKSMZuvLRwkcUne6Mh3Tp5 Od8Mf/1N+kRVTUN8fb3fnnbvDnXSczPO02sowIrko7KZS1bgJM97FQAldO9J3g== X-Gm-Gg: ASbGncubiDSgy8m5xKsL4Tcdqmua3i3L5SSGpGoOglwIMbOI/3ofum3K0qK+wblpuIh dg2bD/FcDQNI60Ei5wJXi8Gi5Ecw/avuljrcWu4GUGfxDgDY8prpnVndS9zhbFAhno9OyGX92Cv +vJgBLKtvfOdwFiuTYPwu3XjtBi6/qcbp4GblSOKO0H49wAtectZ1oJ0ZudJRbXvkj78lZNsIZG X/PDII0zzrWlN6bcffSMS2yqYYcAdFgOmuLSBpHqqT+OvcejnAs1QOL7Kdq4ksV/fy+0SkvN9HT b4T9Dqr55ZeTusifelkyM8zBujiPFYJbQFAJwKDV78s/4/+70gpLzppIQymgfF8gYwg1GzxXOdG R X-Google-Smtp-Source: AGHT+IHn8mKWZmDUjHeSdohp4Tu+TntdG+8aB+1QNvQb7mGtubFsBqizkmIav7TAl4Xh1WFScxomJA== X-Received: by 2002:a05:6a00:4097:b0:725:ef4d:c1bd with SMTP id d2e1a72fcca58-7305d4f0d6amr4233922b3a.19.1738921026794; Fri, 07 Feb 2025 01:37:06 -0800 (PST) Received: from meena-ThinkPad-E14-Gen-3.amarulasolutions.com ([49.207.50.235]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-73048ad2630sm2699944b3a.55.2025.02.07.01.37.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Feb 2025 01:37:06 -0800 (PST) From: Meena Murthy To: Meena Murthy Cc: buildroot@buildroot.org, linux-amarula@amarulasolutions.com, Michael Trimarchi Date: Fri, 7 Feb 2025 15:06:07 +0530 Message-ID: <20250207093612.2822003-2-meena.murthy@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1738921027; x=1739525827; darn=buildroot.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/JjcMQsK0sF1jW6oe0/0c7EEtqK9wtcM4xIy2nZ/PUc=; b=LjOGYxDEGD0pCgj5YAeqolvn2qCoZFqtmNvGAQYZIx9yoqjI/c/e1+xC+ycrbHDQvG eSc0+DfBMj5ajW8mVEPiYORDqBwVdkr2VAIkntxegZpWj1htrxZSYK192xhE0Oy3WtPT NaOOl0czfupxzKys7RybTS/Bt1R1vXY0avDeY= X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (1024-bit key, unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=LjOGYxDE Subject: [Buildroot] [PATCH] board: Add support for Engicam PX30 SOM board X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============7155952274487635087==" Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" --===============7155952274487635087== Content-Type: text/plain; charset=y Content-Transfer-Encoding: 8bit Add initial support for Engicam PX30 SOM board with below features: - U-Boot 2024.01 - Linux 6.4.16 - Default packages from buildroot px30 ctouch2 with 10 inches display https://www.engicam.com/vis-prod/C-Touch-2-0-Carrier-Board/ \ General-purpose-carrier-board-with-capacitive-touch-interface-EDIMM-20-compliant --- Changes v1 -> v2: Based on code review comments - Added more details in readme.txt for Engicam board - Corrected board name - Removed android-sparse image from genimage.cfg - Changes to configuration file Signed-off-by: Meena Murthy Signed-off-by: Michael Trimarchi --- DEVELOPERS | 4 ++ board/engicam/px30core/extlinux.conf | 4 ++ board/engicam/px30core/genimage.cfg | 22 +++++++ .../patches/linux-headers/linux-headers.hash | 1 + .../engicam/px30core/patches/linux/linux.hash | 2 + .../engicam/px30core/patches/uboot/uboot.hash | 2 + board/engicam/px30core/post-build.sh | 5 ++ board/engicam/px30core/readme.txt | 60 +++++++++++++++++++ configs/engicam_px30_core_defconfig | 49 +++++++++++++++ 9 files changed, 149 insertions(+) create mode 100644 board/engicam/px30core/extlinux.conf create mode 100644 board/engicam/px30core/genimage.cfg create mode 120000 board/engicam/px30core/patches/linux-headers/linux-headers.hash create mode 100644 board/engicam/px30core/patches/linux/linux.hash create mode 100644 board/engicam/px30core/patches/uboot/uboot.hash create mode 100755 board/engicam/px30core/post-build.sh create mode 100644 board/engicam/px30core/readme.txt create mode 100644 configs/engicam_px30_core_defconfig diff --git a/DEVELOPERS b/DEVELOPERS index 2d8ae8289b..4f351364ce 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2345,6 +2345,10 @@ F: package/libtraceevent/ F: package/libtracefs F: package/linux-tools/linux-tool-rtla.mk.in +N: Meena Murthy +F: board/engicam/px30core/ +F: configs/engicam_px30_core_defconfig + N: Michael Durrant F: board/arcturus/ F: configs/arcturus_ucp1020_defconfig diff --git a/board/engicam/px30core/extlinux.conf b/board/engicam/px30core/extlinux.conf new file mode 100644 index 0000000000..6d5a845cb0 --- /dev/null +++ b/board/engicam/px30core/extlinux.conf @@ -0,0 +1,4 @@ +label Engicam-EDIMM linux + kernel /boot/Image + devicetree /boot/px30-engicam-px30-core-ctouch2-of10.dtb + append earlycon=uart8250,mmio32,0xff160000 root=/dev/mmcblk1p1 rootwait diff --git a/board/engicam/px30core/genimage.cfg b/board/engicam/px30core/genimage.cfg new file mode 100644 index 0000000000..966c869273 --- /dev/null +++ b/board/engicam/px30core/genimage.cfg @@ -0,0 +1,22 @@ +image sdcard.img { + hdimage { + } + + partition u-boot-tpl-spl-dtb { + in-partition-table = "no" + image = "idbloader.img" + offset = 32K + } + + partition u-boot-dtb { + in-partition-table = "no" + image = "u-boot.itb" + offset = 8M + size = 30M + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext4" + } +} diff --git a/board/engicam/px30core/patches/linux-headers/linux-headers.hash b/board/engicam/px30core/patches/linux-headers/linux-headers.hash new file mode 120000 index 0000000000..5808d92afe --- /dev/null +++ b/board/engicam/px30core/patches/linux-headers/linux-headers.hash @@ -0,0 +1 @@ +../linux/linux.hash \ No newline at end of file diff --git a/board/engicam/px30core/patches/linux/linux.hash b/board/engicam/px30core/patches/linux/linux.hash new file mode 100644 index 0000000000..db84a5e56b --- /dev/null +++ b/board/engicam/px30core/patches/linux/linux.hash @@ -0,0 +1,2 @@ +# Locally calculated +sha256 9626ec84a39ecb009bf11a271dd520941159c165d4e62f82e3a77b79d20ff27d linux-6.4.16.tar.xz diff --git a/board/engicam/px30core/patches/uboot/uboot.hash b/board/engicam/px30core/patches/uboot/uboot.hash new file mode 100644 index 0000000000..bc999536af --- /dev/null +++ b/board/engicam/px30core/patches/uboot/uboot.hash @@ -0,0 +1,2 @@ +# Locally calculated +sha256 b99611f1ed237bf3541bdc8434b68c96a6e05967061f992443cb30aabebef5b3 u-boot-2024.01.tar.bz2 diff --git a/board/engicam/px30core/post-build.sh b/board/engicam/px30core/post-build.sh new file mode 100755 index 0000000000..d84a5da0b0 --- /dev/null +++ b/board/engicam/px30core/post-build.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +BOARD_DIR="$(dirname "$0")" + +install -m 0644 -D "$BOARD_DIR"/extlinux.conf "$TARGET_DIR"/boot/extlinux/extlinux.conf diff --git a/board/engicam/px30core/readme.txt b/board/engicam/px30core/readme.txt new file mode 100644 index 0000000000..0693792d56 --- /dev/null +++ b/board/engicam/px30core/readme.txt @@ -0,0 +1,60 @@ +ENGICAM PX30-EDIMM2.2 carrier board +=================================== + +Build: + + $ make engicam_px30_core_defconfig + $ make + +Files created in output directory +--------------------------------- + +output/images + +├── bl31.elf +├── idbloader.img +├── Image +├── px30-engicam-px30-core-ctouch2-of10.dtb +├── rootfs.ext2 +├── rootfs.ext4 -> rootfs.ext2 +├── rootfs.tar +├── sdcard.img +├── u-boot.bin +└── u-boot.itb + +How to connect the board and get started: +----------------------------------------- +Ensure that the power supply is stable and provides enough current to handle +the board's needs, especially when peripherals are connected. + +Insert micro SD card on the board micro SD slot J17 + +Creating bootable SD card: +-------------------------- +sudo dd if=output/images/sdcard.img of=/dev/sdX && sync + +/dev/sdX is the path in host via which SD card is detected +Where X is your SD card device + +Connect UART port on the board J26 + +Serial console +-------------- +Launch minicom at host with 1152008N1 + +Power on the kit using J4 + +Refer link on checking board booting + +Program eMMC +------------ +Connect USB otg cable A-type to host pc, Micro USB end to board. + +Close Jumper JM5. + +Boot the Kit with SD boot. + +Program eMMC in U-Boot. (Refer link for the steps) + +Wiki link: +https://wiki.amarulasolutions.com/bsp/rockchip/px30/engicam-px30-edimm2.2.html diff --git a/configs/engicam_px30_core_defconfig b/configs/engicam_px30_core_defconfig new file mode 100644 index 0000000000..f9f8908690 --- /dev/null +++ b/configs/engicam_px30_core_defconfig @@ -0,0 +1,49 @@ +BR2_aarch64=y +BR2_cortex_a72_a53=y +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_4=y +BR2_GNU_MIRROR="http://ftpmirror.gnu.org" +BR2_GLOBAL_PATCH_DIR="board/engicam/px30core/patches" +BR2_DOWNLOAD_FORCE_CHECK_HASHES=y +BR2_TARGET_GENERIC_HOSTNAME="" +BR2_TARGET_GENERIC_ISSUE="" +BR2_ROOTFS_MERGED_USR=y +BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200=y +BR2_ROOTFS_POST_BUILD_SCRIPT="board/engicam/px30core/post-build.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/engicam/px30core/genimage.cfg" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.4.16" +BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="rockchip/px30-engicam-px30-core-ctouch2-of10" +BR2_LINUX_KERNEL_INSTALL_TARGET=y +BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +BR2_TARGET_ROOTFS_EXT2_SIZE="150M" +BR2_TARGET_ROOTFS_EXT2_MKFS_OPTIONS="-O 64bit" +BR2_TARGET_ARM_TRUSTED_FIRMWARE=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_URL="https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION="v2.9" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="px30" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES="" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_ARM32_TOOLCHAIN=y +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y +BR2_TARGET_UBOOT_CUSTOM_VERSION=y +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2024.01" +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="px30-core-ctouch2-of10-px30" +BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_NEEDS_OPENSSL=y +BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y +BR2_TARGET_UBOOT_NEEDS_ATF_BL31_ELF=y +BR2_TARGET_UBOOT_USE_BINMAN=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot.itb" +BR2_TARGET_UBOOT_SPL=y +BR2_TARGET_UBOOT_SPL_NAME="idbloader.img" +BR2_PACKAGE_HOST_DOSFSTOOLS=y +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_MTOOLS=y -- 2.43.0 --===============7155952274487635087== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot --===============7155952274487635087==--