From patchwork Tue Apr 1 09:50:03 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Meena Murthy X-Patchwork-Id: 3890 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 65FC33FA49 for ; Tue, 1 Apr 2025 11:50:23 +0200 (CEST) Received: by mail-pl1-f200.google.com with SMTP id d9443c01a7336-22412127fd7sf76486285ad.0 for ; Tue, 01 Apr 2025 02:50:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1743501022; cv=pass; d=google.com; s=arc-20240605; b=VojyVJFRCM1CkLnbGd3hvpj1205icHEg6X4hu9btOd75fY8vXUlZEb4XnD0IqxQqSr Sge1yq+/VJ2NRu6dKHoOVv/DSLOsZInf3Z8NPVj15Puf1ANf6ufY6wQx37idBdl91TEW WVsKN6OMIE20XwO+vB+RWuvlf+l9LzCJt/eH/anoKZRMv7Hw8dMKDBWCdgpgYmk7RN5A A6xr2K8lpCYHGLzXQkPVremhlOnyFiLcvePOMCWKScEgfQihaVYWknX/5MPrr4giardw hEJG2Et+TAURmwWBO+cY/zK+kGYy6OBL/zTuQ46DyUmznSUkKYHr0RCOoTwBTQuL5hM1 Rjyw== 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:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=/JAuAtAJFw/kDjx0/Icdxe4DhdY4ySm6aeSdaG5bPUY=; fh=RIwip3lHfUZoaFr6AoFBIej2qlOIRYDN7amLGUBmBl8=; b=Zc4HPNP4Kznmcw11vLFqGegMGtNdru1vAPLJYuxglxgylYTP/u2yY58cxygCvIox0t 5ig7dUGXl0MArC+jK6fKvEYxL+eSP4QdS+9xNv9pgfWYJhARD89jFBH9lAzbx9yWUAiZ 8ACT1IV5BQUig/k0pgWyrZ7b+l2h4Obbw4GQNhlswFk6R8puvJly0swcz3OQ1YjkgHL8 /EPxL+VLYfMzFPuqOkqMSJbBebDGJFvOJOnzLZ7yEkQTGDdctuxSg29c+hpgr38FJwRG NBcAuwCehCfjLgPbJCu7wNrE1aPUi7Hn42EMsI0TUYGOmDFoZG8SCryJIbgcqET9fdD7 nePA==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IEn1g8kJ; spf=pass (google.com: domain of meena.murthy@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=meena.murthy@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=1743501022; x=1744105822; 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:content-transfer-encoding:mime-version:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=/JAuAtAJFw/kDjx0/Icdxe4DhdY4ySm6aeSdaG5bPUY=; b=QdzM2aya9hXmzhCjqnQuJvXPbkASNqaWY8ZzNyftping0jGu3yNeirAIohS1VMdKep nP0FbDmV0WpU25zK5nB2nH6Qmc1GNRRCZqXLllUc0TfF0fjp+2UoWEWenggCoVPfzAKw GLsaiWmoYs8P7w2kBWlXP656Hg9tEe6rNer+c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743501022; x=1744105822; 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 :content-transfer-encoding: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=/JAuAtAJFw/kDjx0/Icdxe4DhdY4ySm6aeSdaG5bPUY=; b=vCpiKanbm8BPwKbe8exXQdL+5zN8m6XcWMZCEGd4Rujg1oxDn3HJ1fm3IDjj8ka4Vi joFYIuJWptXs7TJQBlBZtVOerEMBJZ6B6BjD/oU+jr+9PG3abB097S30Fobd3ClyBJ85 Y0Rh7EG45AJNFSFLjAvkwZiSTg98pGhOnO0I01mBzw7ldNGWv8DrZJBPUK+ae2YCWumr J3k6LiTD3pB5rRdK7EHM2u9W0982zX8/cOz8V18nImx04mjWXl8FwgAGrhGmbm5zoBlJ hDsGchLggU89nn8m0WMnCpyeR8YBleieUrvApbgqxiP5T995vvUg9BFY8UeXekd2JhQ5 UENw== X-Forwarded-Encrypted: i=2; AJvYcCWrNXPso/ef6WYRwL2o4hApmDNeBwG6ig2o0mScliEDk//JTvGP9i9jUxl0aSU8ModVMdlcIcpmQ3nwtlTG@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YxQSN8GgljjJCU/L6DEg61z1t2kGYH/3AptlmWK42fd8Rur9r5O 01wFVtzwzdvWXMvIZeHzN/RoJG2R07rC/guZB6AgkW0pN9q+SDE3FIcPb/3GEwI0iQ== X-Google-Smtp-Source: AGHT+IFONUdpomFVUw8NYPQ8f6FBaGwBL6YkXtSLkF/iXvOE4dhYf/Qb0P6YDMjIHpdPto3H4FISEA== X-Received: by 2002:a17:903:2311:b0:224:191d:8a87 with SMTP id d9443c01a7336-2292f979b51mr173350195ad.26.1743501021842; Tue, 01 Apr 2025 02:50:21 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h=ARLLPAKMXbelaDYVXhAMRSPaj8gbv5nDWcXKUFF620lGFZB/Iw== Received: by 2002:a17:903:90f:b0:227:e537:7e0 with SMTP id d9443c01a7336-2280469a4ebls15556565ad.0.-pod-prod-07-us; Tue, 01 Apr 2025 02:50:20 -0700 (PDT) X-Received: by 2002:a17:902:ebc7:b0:224:160d:3f54 with SMTP id d9443c01a7336-2292f97caa0mr208593985ad.31.1743501020517; Tue, 01 Apr 2025 02:50:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1743501020; cv=none; d=google.com; s=arc-20240605; b=NbVkUuatxQOHKrOqEBuMl0CvUlNqL+CoOvsukYVG02AwEnPTl/yrKZNC0w/GMCVRCs gUnELI5fRSCGm2nyNI6lnAyxPXP+Lr/xU4HOHnUEoUQO6PfEYtW06gvmM2XWbcqQfTdr GJ6lKlxvEBeCL1zzSLq0HAhY4qXelfDjwCQomr8/Clxmpjp6E16ufu7DDDYxf8yxM5cU FNJ5ZAbDo5PDS0gnxcVKVyT/UYG9DZEQveFy7SSMiPyCmzRerZKO6uo/2o/kiIX23jRv rlhx7mPsvlY0AfQJZg8660j01zIqEw1WXhmCA8+QjoXakVzZYkMaRK3lCCakC5omv4G6 YfNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=OprsWPvo45BkH1Xk6WwOrdtZIZtl7psNTkIULu4hk5I=; fh=ddrGRTvWIlLOnCdA6kd+0gspYqIdgfXZ5C4e36ujId4=; b=SI5r6ab6+e4MPDZV+oZNFhuJvfMgHztsIbkHQ+b+4cbVxh4yghGVX2ShgL+pF8UHgA 3nIqvviF3+9wxsD4pV2qhRrEadfUT+R4oeZTowpdlGVDJwmoKO6nzW8g4y0YzfNMqfvj TYF2+w6WI25pAQzDClUzdKJUw+4m7BTFILKSfo87HQ71Xnxnc0yT2VbgftAFvP9JQERh VEzESf4zBkDlGf7VtfFNxQxtdybrP69M4UtlNvVj0KSJnccV+9PlFsKOzAGATV4gdBjz NdNeEJObhBgM1upc5hhOO6cM00kCPLrDH6iEo2ulzhu1L4UiEqjhg1AGi5nIpwcKpJpv bNTw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IEn1g8kJ; spf=pass (google.com: domain of meena.murthy@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=meena.murthy@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 d9443c01a7336-22921390c50sor54898895ad.3.2025.04.01.02.50.20 for (Google Transport Security); Tue, 01 Apr 2025 02:50:20 -0700 (PDT) Received-SPF: pass (google.com: domain of meena.murthy@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Gm-Gg: ASbGncuR4tIuXzIdncPa3M7myVtWNVw9Vo9WZWh7dE0uiz4xmILblskvS3Mgi7VH9mp j15ukUiV93a4RZpwjkJjyMUF/FhzhgS4yjYnkk5kysYQZBDdfJuUdYBa3kVUBuv2cZ5XCQTWtDl hfKDLfQW27SPMg500JassMLRD9EBCrI4Qos8ZL0SO4yxDV+NkPKBBva9euaCv7SPL0A7voF8kxt 39ho5onejDDjh6IgSzOmURqXXr7X5KZExXkZ5Y/iuc8CDINb7gcQNgyPj11lvzxuSU0T2Lb722Y GM/vcWdhDNh1gAKWNnnwEVTUAA0Q/11Bh97a1jrTEd8KdmbW1rFfb2HvJVGj6526X90lrcOkFFt SwyLg X-Received: by 2002:a17:903:2f86:b0:223:2361:e855 with SMTP id d9443c01a7336-2292f9f19f5mr201434545ad.39.1743501019712; Tue, 01 Apr 2025 02:50:19 -0700 (PDT) Received: from meena-ThinkPad-E14-Gen-3.. ([49.207.50.235]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2291f1cec2fsm84111815ad.117.2025.04.01.02.50.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Apr 2025 02:50:19 -0700 (PDT) From: Meena Murthy To: linux-amarula@amarulasolutions.com Cc: Michael Trimarchi , Meena Murthy Subject: [PATCH v4] configs/engicam_px30_core_defconfig: new defconfig Date: Tue, 1 Apr 2025 15:20:03 +0530 Message-ID: <20250401095008.488570-1-meena.murthy@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Original-Sender: meena.murthy@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IEn1g8kJ; spf=pass (google.com: domain of meena.murthy@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=meena.murthy@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com 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: , 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 Signed-off-by: Meena Murthy Signed-off-by: Michael Trimarchi --- Changes v3 -> v4: Based on code review comments: changed the commit title to align with the convention linux.hash: updated the upstream kernel link containing the linux hash defconfig: correct CPU architecture a35 updated removed config options that were blank updated latest or long term versions wherever applicable Changes v2 -> v3: Used BR2_ROOTFS_POST_IMAGE_SCRIPT_ARGS so tht arguments are passed only to BR2_ROOTFS_POST_IMAGE_SCRIPT 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 --- 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 | 44 ++++++++++++++ 9 files changed, 144 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 44f7684c97..e12d1b0f4d 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2383,6 +2383,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..b0fc6ffdd5 --- /dev/null +++ b/board/engicam/px30core/patches/linux/linux.hash @@ -0,0 +1,2 @@ +# From https://www.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc +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..1f820fc44b --- /dev/null +++ b/configs/engicam_px30_core_defconfig @@ -0,0 +1,44 @@ +BR2_aarch64=y +BR2_cortex_a35=y +BR2_TOOLCHAIN_EXTERNAL=y +BR2_GLOBAL_PATCH_DIR="board/engicam/px30core/patches" +BR2_DOWNLOAD_FORCE_CHECK_HASHES=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_IMAGE_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.12.19" +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_VERSION=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE="lts-v2.12.1" +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="2025.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