diff --git a/projects/hi3516cv500_lite_caminos/br-ext-chip-hisilicon/configs/hi3516cv500_lite_caminos_defconfig b/projects/hi3516cv500_lite_caminos/br-ext-chip-hisilicon/configs/hi3516cv500_lite_caminos_defconfig new file mode 100644 index 0000000..ab8fd11 --- /dev/null +++ b/projects/hi3516cv500_lite_caminos/br-ext-chip-hisilicon/configs/hi3516cv500_lite_caminos_defconfig @@ -0,0 +1,123 @@ +# Architecture +BR2_arm=y +BR2_cortex_a7=y +BR2_ARM_EABI=y +BR2_ARM_FPU_NEON_VFPV4=y +BR2_ARM_INSTRUCTIONS_THUMB2=n +BR2_KERNEL_HEADERS_VERSION=y +BR2_DEFAULT_KERNEL_VERSION="4.9.37" +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9=y + +# Toolchain +BR2_PER_PACKAGE_DIRECTORIES=y +BR2_GCC_VERSION_12_X=y +BR2_TOOLCHAIN_USES_GLIBC=y +BR2_TOOLCHAIN_BUILDROOT_GLIBC=y +BR2_TOOLCHAIN_BUILDROOT_LIBC="glibc" +BR2_TOOLCHAIN_BUILDROOT_CXX=y +BR2_TOOLCHAIN_BUILDROOT_LOCALE=y +BR2_TOOLCHAIN_BUILDROOT_USE_SSP=y + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_TARBALL=y +BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/openipc/linux/archive/$(OPENIPC_KERNEL).tar.gz" +BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y +BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(EXTERNAL_VENDOR)/board/hi3516cv500/kernel/hi3516cv500.generic.config" +BR2_LINUX_KERNEL_UIMAGE=y +BR2_LINUX_KERNEL_XZ=y + +# OpenIPC +BR2_OPENIPC_SOC_VENDOR="hisilicon" +BR2_OPENIPC_SOC_MODEL="hi3516cv500" +BR2_OPENIPC_SOC_FAMILY="hi3516cv500" +BR2_OPENIPC_FLAVOR="lite" +BR2_OPENIPC_FLASH_SIZE="16" + +# 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_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 Caminos" +BR2_TARGET_GENERIC_HOSTNAME="caminos-hi3516cv500" +BR2_GLOBAL_PATCH_DIR="$(BR2_EXTERNAL)/package/all-patches" + +# OpenIPC packages +BR2_PACKAGE_AWS_WEBRTC=y +BR2_PACKAGE_BUSYBOX_CONFIG="$(BR2_EXTERNAL)/package/busybox/busybox.config" +BR2_PACKAGE_DROPBEAR_OPENIPC=y +# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set +BR2_PACKAGE_UBOOT_TOOLS=y +BR2_PACKAGE_HASERL=y +# BR2_PACKAGE_HISI_GPIO is not set +BR2_PACKAGE_HISILICON_OSDRV_HI3516CV500=y +BR2_PACKAGE_IPCTOOL=y +BR2_PACKAGE_JSON_C=y +BR2_PACKAGE_JSONFILTER=y +BR2_PACKAGE_LIBCURL_OPENIPC=y +BR2_PACKAGE_LIBCURL_OPENIPC_CURL=y +# BR2_PACKAGE_LIBCURL_OPENIPC_VERBOSE is not set +# BR2_PACKAGE_LIBCURL_OPENIPC_PROXY_SUPPORT is not set +# BR2_PACKAGE_LIBCURL_OPENIPC_COOKIES_SUPPORT is not set +# BR2_PACKAGE_LIBCURL_OPENIPC_EXTRA_PROTOCOLS_FEATURES is not set +BR2_PACKAGE_LIBCURL_OPENIPC_MBEDTLS=y +BR2_PACKAGE_LIBEVENT_OPENIPC=y +BR2_PACKAGE_LIBEVENT_OPENIPC_REMOVE_PYSCRIPT=y +BR2_PACKAGE_LIBOGG_OPENIPC=y +BR2_PACKAGE_LIBYAML=y +BR2_PACKAGE_MAJESTIC_FONTS=y +BR2_PACKAGE_MAJESTIC=y +BR2_PACKAGE_MBEDTLS_OPENIPC=y +# BR2_PACKAGE_MBEDTLS_OPENIPC_PROGRAMS is not set +# 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_OPUS_OPENIPC=y +BR2_PACKAGE_OPUS_OPENIPC_FIXED_POINT=y +# BR2_PACKAGE_SSHPASS is not set +# BR2_PACKAGE_UACME_OPENIPC is not set +BR2_PACKAGE_VTUND_OPENIPC=y +BR2_PACKAGE_YAML_CLI=y + +# WiFi +# BR2_PACKAGE_WIRELESS_TOOLS is not set +# BR2_PACKAGE_WPA_SUPPLICANT is not set +# BR2_PACKAGE_WPA_SUPPLICANT_CLI is not set +# BR2_PACKAGE_WPA_SUPPLICANT_NL80211 is not set +# BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE is not set +# BR2_PACKAGE_LINUX_FIRMWARE_OPENIPC is not set +# BR2_PACKAGE_LINUX_FIRMWARE_OPENIPC_MEDIATEK_MT7601U is not set +# BR2_PACKAGE_RTL8188EU is not set + +# WIREGUARD +BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y +BR2_PACKAGE_WIREGUARD_TOOLS=y + +# DEBUG +# BR2_PACKAGE_HOST_GDB is not set +# BR2_PACKAGE_GDB is not set + +# CCACHE +BR2_CCACHE=y +BR2_CCACHE_DIR="$(HOME)/.ccache" + +# Compression +BR2_PACKAGE_ZLIB=y + +# External +BR2_TOOLCHAIN_EXTERNAL=y +BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y +BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y +BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="arm-openipc-linux-gnueabi" +BR2_TOOLCHAIN_EXTERNAL_CXX=y +BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y +BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_9=y +# BR2_TOOLCHAIN_EXTERNAL_INET_RPC is not set +BR2_TOOLCHAIN_EXTERNAL_URL="https://github.com/openipc/firmware/releases/download/$(OPENIPC_TOOLCHAIN).tgz" diff --git a/projects/hi3516cv500_lite_caminos/general/overlay/etc/TZ b/projects/hi3516cv500_lite_caminos/general/overlay/etc/TZ new file mode 100644 index 0000000..6e00cdb --- /dev/null +++ b/projects/hi3516cv500_lite_caminos/general/overlay/etc/TZ @@ -0,0 +1 @@ +CET-1CEST,M3.5.0,M10.5.0/3 \ No newline at end of file diff --git a/projects/hi3516cv500_lite_caminos/general/overlay/etc/composer.ini b/projects/hi3516cv500_lite_caminos/general/overlay/etc/composer.ini new file mode 100644 index 0000000..ee20cba --- /dev/null +++ b/projects/hi3516cv500_lite_caminos/general/overlay/etc/composer.ini @@ -0,0 +1,5 @@ +# +composer_message="This firmware was created with the Composer project." +# +default_timezone="CET-1CEST,M3.5.0,M10.5.0/3 | Europe/Brussels" +# diff --git a/projects/hi3516cv500_lite_caminos/general/overlay/etc/timezone b/projects/hi3516cv500_lite_caminos/general/overlay/etc/timezone new file mode 100644 index 0000000..48f5e2e --- /dev/null +++ b/projects/hi3516cv500_lite_caminos/general/overlay/etc/timezone @@ -0,0 +1 @@ +Europe/Brussels \ No newline at end of file diff --git a/projects/hi3516cv500_lite_caminos/general/package/all-patches/linux/0017-hi3516cv500-caminos-ether-phy.patch b/projects/hi3516cv500_lite_caminos/general/package/all-patches/linux/0017-hi3516cv500-caminos-ether-phy.patch new file mode 100644 index 0000000..47d1d57 --- /dev/null +++ b/projects/hi3516cv500_lite_caminos/general/package/all-patches/linux/0017-hi3516cv500-caminos-ether-phy.patch @@ -0,0 +1,13 @@ +--- a/arch/arm/boot/dts/hi3516cv500-demb.dts 2023-06-02 13:57:21.000000000 +0300 ++++ b/arch/arm/boot/dts/hi3516cv500-demb.dts 2023-10-30 22:41:51.579713883 +0300 +@@ -116,8 +116,8 @@ + + &mdio0 { + hisilicon,phy-reset-delays-us = <10000 20000 150000>; +- phy0: ethernet-phy@1 { +- reg = <1>; ++ phy0: ethernet-phy@0 { ++ reg = <0>; + }; + }; +