From 0d602dd47c5a7c07bae851984cd185c57b5e3a75 Mon Sep 17 00:00:00 2001 From: "Igor Zalatov (from Citadel PC)" Date: Sun, 6 Aug 2023 14:22:26 +0300 Subject: [PATCH] Update ssc338q_lite_ask project --- building.sh | 4 ++-- .../configs/ssc338q_lite_ask_defconfig} | 12 +++--------- .../general/overlay/etc/composer.ini | 0 .../package/motors/0001-change-port-to-AMA1.patch | 11 +++++++++++ 4 files changed, 16 insertions(+), 11 deletions(-) rename projects/{ssc338q_lite_pilot/br-ext-chip-sigmastar/configs/ssc338q_lite_pilot_defconfig => ssc338q_lite_ask/br-ext-chip-sigmastar/configs/ssc338q_lite_ask_defconfig} (90%) rename projects/{ssc338q_lite_pilot => ssc338q_lite_ask}/general/overlay/etc/composer.ini (100%) create mode 100644 projects/ssc338q_lite_ask/general/package/motors/0001-change-port-to-AMA1.patch diff --git a/building.sh b/building.sh index d05a115..dcd5d0d 100755 --- a/building.sh +++ b/building.sh @@ -28,7 +28,7 @@ echo_c() { } copy_to_archive() { - echo_c 32 "Copy files to archive" + echo_c 32 "Copying files to local archive" mkdir -p "${COMPOSER_DIR}/archive/${PROJECT}/${TIMESTAMP}" cp -a \ ${FIRMWARE_DIR}/output/images/rootfs.squashfs.* \ @@ -46,7 +46,7 @@ copy_to_archive() { } copy_to_tftp() { - echo_c 32 "\nCopy files to TFTP server" + echo_c 32 "\nCopying files to a TFTP server using SCP protocol" scp -r \ ${FIRMWARE_DIR}/output/images/rootfs.squashfs.* \ ${FIRMWARE_DIR}/output/images/uImage.* \ diff --git a/projects/ssc338q_lite_pilot/br-ext-chip-sigmastar/configs/ssc338q_lite_pilot_defconfig b/projects/ssc338q_lite_ask/br-ext-chip-sigmastar/configs/ssc338q_lite_ask_defconfig similarity index 90% rename from projects/ssc338q_lite_pilot/br-ext-chip-sigmastar/configs/ssc338q_lite_pilot_defconfig rename to projects/ssc338q_lite_ask/br-ext-chip-sigmastar/configs/ssc338q_lite_ask_defconfig index 8bb1f3d..168cae4 100644 --- a/projects/ssc338q_lite_pilot/br-ext-chip-sigmastar/configs/ssc338q_lite_pilot_defconfig +++ b/projects/ssc338q_lite_ask/br-ext-chip-sigmastar/configs/ssc338q_lite_ask_defconfig @@ -32,24 +32,20 @@ BR2_OPENIPC_SOC_VENDOR="sigmastar" BR2_OPENIPC_SOC_MODEL="ssc338q" BR2_OPENIPC_SOC_FAMILY="infinity6e" BR2_OPENIPC_FLAVOR="lite" +BR2_OPENIPC_FLASH_SIZE="8" # Filesystem # BR2_TARGET_TZ_INFO is not set BR2_TARGET_ROOTFS_CPIO=y BR2_TARGET_ROOTFS_SQUASHFS=y BR2_TARGET_ROOTFS_SQUASHFS4_XZ=y -BR2_TARGET_ROOTFS_UBI=y -BR2_TARGET_ROOTFS_UBI_SUBSIZE=2048 -BR2_TARGET_ROOTFS_UBI_USE_CUSTOM_CONFIG=y -BR2_TARGET_ROOTFS_UBI_CUSTOM_CONFIG_FILE="$(BR2_EXTERNAL)/scripts/ubifs/ubinize_sigmastar.cfg" -BR2_TARGET_ROOTFS_UBIFS_LEBSIZE=0x1f000 BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL)/overlay" BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL)/scripts/rootfs_script.sh" # OpenIPC configuration BR2_TOOLCHAIN_BUILDROOT_VENDOR="openipc" BR2_TARGET_GENERIC_ISSUE="Welcome to OpenIPC" -BR2_TARGET_GENERIC_HOSTNAME="openipc-ssc338q" +BR2_TARGET_GENERIC_HOSTNAME="openipc-ssc338q-ask" BR2_GLOBAL_PATCH_DIR="$(BR2_EXTERNAL)/package/all-patches" # OpenIPC packages @@ -79,12 +75,10 @@ BR2_PACKAGE_MBEDTLS_OPENIPC=y # BR2_PACKAGE_MBEDTLS_OPENIPC_COMPRESSION is not set BR2_PACKAGE_MICROBE_WEB=y # BR2_PACKAGE_MINI_SNMPD is not set -# BR2_PACKAGE_MOTORS is not set +BR2_PACKAGE_MOTORS=y BR2_PACKAGE_OPUS_OPENIPC=y BR2_PACKAGE_OPUS_OPENIPC_FIXED_POINT=y BR2_PACKAGE_SIGMASTAR_OSDRV_INFINITY6E=y -# BR2_PACKAGE_DOSFSTOOLS is not set -# BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT is not set # BR2_PACKAGE_EXFAT_OPENIPC is not set # BR2_PACKAGE_EXFATPROGS is not set # BR2_PACKAGE_SSHPASS is not set diff --git a/projects/ssc338q_lite_pilot/general/overlay/etc/composer.ini b/projects/ssc338q_lite_ask/general/overlay/etc/composer.ini similarity index 100% rename from projects/ssc338q_lite_pilot/general/overlay/etc/composer.ini rename to projects/ssc338q_lite_ask/general/overlay/etc/composer.ini diff --git a/projects/ssc338q_lite_ask/general/package/motors/0001-change-port-to-AMA1.patch b/projects/ssc338q_lite_ask/general/package/motors/0001-change-port-to-AMA1.patch new file mode 100644 index 0000000..a195a46 --- /dev/null +++ b/projects/ssc338q_lite_ask/general/package/motors/0001-change-port-to-AMA1.patch @@ -0,0 +1,11 @@ +--- a/xm-uart/main.c 2021-11-06 21:52:52.000000000 +0300 ++++ b/xm-uart/main.c 2022-12-11 19:22:03.322193742 +0300 +@@ -132,7 +132,7 @@ + ctrl.c_lflag &= ~ECHO; // disable echo + tcsetattr(STDIN_FILENO, TCSANOW, &ctrl); + +- int uart = open("/dev/ttyAMA0", O_RDWR | O_NOCTTY); ++ int uart = open("/dev/ttyS1", O_RDWR | O_NOCTTY); + if (uart == -1) { + printf("Error no is : %d\n", errno); + printf("Error description is : %s\n", strerror(errno));