mirror of https://github.com/OpenIPC/composer.git
t31_ultimate_adiance
parent
9daab7481a
commit
29a7e61d78
|
@ -0,0 +1,143 @@
|
|||
# Architecture
|
||||
BR2_mipsel=y
|
||||
BR2_mips_xburst=y
|
||||
# BR2_MIPS_SOFT_FLOAT is not set
|
||||
BR2_MIPS_FP32_MODE_32=y
|
||||
# BR2_MIPS_FP32_MODE_XX is not set
|
||||
BR2_MIPS_NAN_LEGACY=y
|
||||
BR2_MIPS_OABI32=y
|
||||
BR2_KERNEL_HEADERS_VERSION=y
|
||||
BR2_DEFAULT_KERNEL_VERSION="3.10.14"
|
||||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_10=y
|
||||
|
||||
# Toolchain
|
||||
BR2_PER_PACKAGE_DIRECTORIES=y
|
||||
BR2_GCC_VERSION_12_X=y
|
||||
# BR2_TOOLCHAIN_USES_UCLIBC is not set
|
||||
# BR2_TOOLCHAIN_BUILDROOT_UCLIBC is not set
|
||||
# BR2_TOOLCHAIN_BUILDROOT_LIBC="uclibc"
|
||||
BR2_EXTRA_GCC_CONFIG_OPTIONS="--with-float=hard"
|
||||
BR2_TOOLCHAIN_USES_MUSL=y
|
||||
BR2_TOOLCHAIN_BUILDROOT_MUSL=y
|
||||
BR2_TOOLCHAIN_BUILDROOT_LIBC="musl"
|
||||
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/t31/kernel/t31.generic.config"
|
||||
BR2_LINUX_KERNEL_UIMAGE=y
|
||||
BR2_LINUX_KERNEL_LZMA=y
|
||||
|
||||
# OpenIPC
|
||||
BR2_OPENIPC_SOC_VENDOR="ingenic"
|
||||
BR2_OPENIPC_SOC_MODEL="t31"
|
||||
BR2_OPENIPC_SOC_FAMILY="t31"
|
||||
BR2_OPENIPC_FLAVOR="ultimate"
|
||||
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 OpenIPC"
|
||||
BR2_TARGET_GENERIC_HOSTNAME="openipc-t31"
|
||||
BR2_GLOBAL_PATCH_DIR="$(BR2_EXTERNAL)/package/all-patches"
|
||||
|
||||
# OpenIPC packages
|
||||
BR2_PACKAGE_BUSYBOX_CONFIG="$(BR2_EXTERNAL)/package/busybox/busybox.config"
|
||||
BR2_PACKAGE_DROPBEAR_OPENIPC=y
|
||||
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
||||
# BR2_PACKAGE_FDK_AAC_OPENIPC is not set
|
||||
BR2_PACKAGE_UBOOT_TOOLS=y
|
||||
BR2_PACKAGE_INGENIC_OPENSDK=y
|
||||
BR2_PACKAGE_INGENIC_OSDRV_T31=y
|
||||
BR2_PACKAGE_IPCTOOL=y
|
||||
BR2_PACKAGE_JSON_C=y
|
||||
BR2_PACKAGE_JSONFILTER=y
|
||||
BR2_PACKAGE_LAME_OPENIPC=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_LIBWEBSOCKETS_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=y
|
||||
BR2_PACKAGE_OPUS_OPENIPC=y
|
||||
BR2_PACKAGE_OPUS_OPENIPC_FIXED_POINT=y
|
||||
# BR2_PACKAGE_SSHPASS is not set
|
||||
BR2_PACKAGE_UACME_OPENIPC=y
|
||||
BR2_PACKAGE_VTUND_OPENIPC=y
|
||||
BR2_PACKAGE_YAML_CLI=y
|
||||
BR2_PACKAGE_QUIRC_OPENIPC=y
|
||||
# BR2_PACKAGE_AUTONIGHT is not set
|
||||
BR2_PACKAGE_INGENIC_LIBIMP_CONTROL=y
|
||||
|
||||
# WiFi
|
||||
BR2_PACKAGE_WIRELESS_TOOLS=y
|
||||
BR2_PACKAGE_WPA_SUPPLICANT=y
|
||||
BR2_PACKAGE_WPA_SUPPLICANT_CLI=y
|
||||
BR2_PACKAGE_WPA_SUPPLICANT_NL80211=y
|
||||
BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y
|
||||
BR2_PACKAGE_LINUX_FIRMWARE_OPENIPC=y
|
||||
BR2_PACKAGE_LINUX_FIRMWARE_OPENIPC_MEDIATEK_MT7601U=y
|
||||
BR2_PACKAGE_ATBM60XX=y
|
||||
BR2_PACKAGE_RTL8189FS_OPENIPC=y
|
||||
# BR2_PACKAGE_RTL8188EU is not set
|
||||
|
||||
# WIREGUARD
|
||||
BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y
|
||||
BR2_PACKAGE_WIREGUARD_TOOLS=y
|
||||
|
||||
# MQTT
|
||||
BR2_PACKAGE_MOSQUITTO=y
|
||||
# BR2_PACKAGE_MOSQUITTO_BROKER is not set
|
||||
|
||||
# ZEROTIER
|
||||
BR2_PACKAGE_ZEROTIER_ONE=y
|
||||
|
||||
# NABTO
|
||||
# BR2_PACKAGE_NABTO is not set
|
||||
|
||||
# DEBUG
|
||||
BR2_PACKAGE_LOGCAT_OPENIPC=y
|
||||
BR2_PACKAGE_INGENIC_PWM=y
|
||||
# BR2_PACKAGE_HOST_GDB is not set
|
||||
# BR2_PACKAGE_GDB is not set
|
||||
|
||||
# CCACHE
|
||||
BR2_CCACHE=y
|
||||
BR2_CCACHE_DIR="$(HOME)/.ccache"
|
||||
|
||||
# External
|
||||
BR2_TOOLCHAIN_EXTERNAL=y
|
||||
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
|
||||
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_MUSL=y
|
||||
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="mipsel-openipc-linux-musl"
|
||||
BR2_TOOLCHAIN_EXTERNAL_CXX=y
|
||||
BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
|
||||
BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_10=y
|
||||
BR2_TOOLCHAIN_EXTERNAL_URL="https://github.com/openipc/firmware/releases/download/$(OPENIPC_TOOLCHAIN).tgz"
|
|
@ -0,0 +1,3 @@
|
|||
#
|
||||
composer_message="This firmware was created with the OpenIPC Composer project"
|
||||
#
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
|
||||
if [ /usr/bin/dn-monitor.sh ]; then
|
||||
/usr/bin/dn-monitor.sh > /dev/null 2>&1 &
|
||||
else
|
||||
echo "The day/night monitor DISABLED"
|
||||
fi
|
||||
|
||||
exit 0
|
|
@ -0,0 +1,50 @@
|
|||
#!/bin/sh
|
||||
|
||||
again_high_target=120
|
||||
again_low_target=50
|
||||
pollingInterval=4
|
||||
led_state=0
|
||||
again_led=0
|
||||
|
||||
led_on(){
|
||||
curl http://localhost/night/on && \
|
||||
echo LIGHT IS ON
|
||||
}
|
||||
|
||||
led_off(){
|
||||
curl http://localhost/night/off && \
|
||||
echo LIGHT IS OFF
|
||||
}
|
||||
|
||||
main(){
|
||||
|
||||
echo "...................."
|
||||
echo "Watching at isp_again > ${again_high_target} to LED ON"
|
||||
echo "Watching at isp_again < ${again_low_target} to LED OFF"
|
||||
echo "Polling interval: ${pollingInterval} sec"
|
||||
echo "...................."
|
||||
|
||||
sleep 10
|
||||
led_off
|
||||
|
||||
while true; do
|
||||
|
||||
led_state=$(curl -s http://localhost/metrics | grep ^night_enabled | cut -d' ' -f2)
|
||||
again_led=$(curl -s http://localhost/metrics | grep ^isp_again | cut -d' ' -f2)
|
||||
|
||||
echo "again_led: "$again_led
|
||||
|
||||
if [ $again_led -lt $again_low_target -a $led_state -eq 1 ] ;then
|
||||
led_off
|
||||
fi
|
||||
|
||||
if [ $again_led -gt $again_high_target -a $led_state -eq 0 ] ;then
|
||||
led_on
|
||||
fi
|
||||
|
||||
sleep ${pollingInterval}
|
||||
echo "...................."
|
||||
done
|
||||
}
|
||||
|
||||
main
|
|
@ -0,0 +1,106 @@
|
|||
|
||||
etc/sensor/gc2053-t31.bin
|
||||
etc/sensor/gc2053.yaml
|
||||
lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_gc2053_t31.ko
|
||||
|
||||
|
||||
etc/sensor/gc2083-t31.bin
|
||||
etc/sensor/gc2083.yaml
|
||||
lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_gc2083_t31.ko
|
||||
|
||||
|
||||
etc/sensor/gc4023-t31.bin
|
||||
etc/sensor/gc4023.yaml
|
||||
lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_gc4023_t31.ko
|
||||
|
||||
|
||||
etc/sensor/gc4653-t31.bin
|
||||
etc/sensor/gc4653.yaml
|
||||
lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_gc4653_t31.ko
|
||||
|
||||
|
||||
etc/sensor/imx307-t31.bin
|
||||
etc/sensor/imx307.yaml
|
||||
lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_imx307_t31.ko
|
||||
|
||||
|
||||
etc/sensor/imx327-t31.bin
|
||||
etc/sensor/imx327.yaml
|
||||
lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_imx327_t31.ko
|
||||
|
||||
|
||||
etc/sensor/jxf37-t31.bin
|
||||
etc/sensor/jxf37.yaml
|
||||
lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_jxf37_t31.ko
|
||||
|
||||
|
||||
etc/sensor/jxh62-t31.bin
|
||||
etc/sensor/jxh62.yaml
|
||||
lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_jxh62_t31.ko
|
||||
|
||||
|
||||
etc/sensor/jxh63.yaml
|
||||
lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_jxh63_t31.ko
|
||||
|
||||
|
||||
etc/sensor/jxq03p-t31.bin
|
||||
etc/sensor/jxq03p.yaml
|
||||
lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_jxq03p_t31.ko
|
||||
|
||||
|
||||
etc/sensor/jxq03-t31.bin
|
||||
etc/sensor/jxq03.yaml
|
||||
lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_jxq03_t31.ko
|
||||
|
||||
|
||||
etc/sensor/sc200ai-t31.bin
|
||||
etc/sensor/sc200ai.yaml
|
||||
lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_sc200ai_t31.ko
|
||||
|
||||
|
||||
etc/sensor/sc2232h-t31.bin
|
||||
etc/sensor/sc2232h.yaml
|
||||
lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_sc2232h_t31.ko
|
||||
|
||||
|
||||
etc/sensor/sc2335-t31.bin
|
||||
etc/sensor/sc2335.yaml
|
||||
lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_sc2335_t31.ko
|
||||
|
||||
|
||||
etc/sensor/sc2336-t31.bin
|
||||
etc/sensor/sc2336.yaml
|
||||
lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_sc2336_t31.ko
|
||||
|
||||
|
||||
etc/sensor/sc3335-t31.bin
|
||||
etc/sensor/sc3335.yaml
|
||||
|
||||
|
||||
etc/sensor/sc3338-t31.bin
|
||||
etc/sensor/sc3338.yaml
|
||||
lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_sc3338_t31.ko
|
||||
|
||||
|
||||
etc/sensor/sc4236-t31.bin
|
||||
etc/sensor/sc4236.yaml
|
||||
lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_sc4236_t31.ko
|
||||
|
||||
|
||||
etc/sensor/sc5235-t31.bin
|
||||
etc/sensor/sc5235.yaml
|
||||
lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_sc5235_t31.ko
|
||||
|
||||
|
||||
|
||||
etc/sensor/imx335.yaml
|
||||
etc/sensor/jxf22.yaml
|
||||
etc/sensor/jxf23.yaml
|
||||
etc/sensor/jxh42.yaml
|
||||
etc/sensor/jxk04.yaml
|
||||
etc/sensor/os03b10.yaml
|
||||
etc/sensor/ov2735b.yaml
|
||||
etc/sensor/ov2735.yaml
|
||||
etc/sensor/ov4689.yaml
|
||||
etc/sensor/ps5260.yaml
|
||||
etc/sensor/sc2232.yaml
|
|
@ -0,0 +1,45 @@
|
|||
etc/sensor/imx307-t31.bin
|
||||
etc/sensor/imx307.yaml
|
||||
lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_imx307_t31.ko
|
||||
etc/sensor/imx327-t31.bin
|
||||
etc/sensor/imx327.yaml
|
||||
lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_imx327_t31.ko
|
||||
etc/sensor/jxf37-t31.bin
|
||||
etc/sensor/jxf37.yaml
|
||||
lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_jxf37_t31.ko
|
||||
etc/sensor/jxh62-t31.bin
|
||||
etc/sensor/jxh62.yaml
|
||||
lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_jxh62_t31.ko
|
||||
etc/sensor/jxh63.yaml
|
||||
lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_jxh63_t31.ko
|
||||
etc/sensor/jxq03-t31.bin
|
||||
etc/sensor/jxq03.yaml
|
||||
lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_jxq03_t31.ko
|
||||
etc/sensor/sc200ai-t31.bin
|
||||
etc/sensor/sc200ai.yaml
|
||||
lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_sc200ai_t31.ko
|
||||
etc/sensor/sc2232h-t31.bin
|
||||
lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_sc2232h_t31.ko
|
||||
etc/sensor/sc2336-t31.bin
|
||||
etc/sensor/sc2336.yaml
|
||||
lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_sc2336_t31.ko
|
||||
etc/sensor/sc3335-t31.bin
|
||||
etc/sensor/sc3335.yaml
|
||||
etc/sensor/sc3338-t31.bin
|
||||
etc/sensor/sc3338.yaml
|
||||
lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_sc3338_t31.ko
|
||||
etc/sensor/sc4236-t31.bin
|
||||
etc/sensor/sc4236.yaml
|
||||
lib/modules/3.10.14__isvp_swan_1.0__/ingenic/sensor_sc4236_t31.ko
|
||||
etc/sensor/imx335.yaml
|
||||
etc/sensor/jxf22.yaml
|
||||
etc/sensor/jxf23.yaml
|
||||
etc/sensor/jxh42.yaml
|
||||
etc/sensor/jxk04.yaml
|
||||
etc/sensor/os03b10.yaml
|
||||
etc/sensor/ov2735b.yaml
|
||||
etc/sensor/ov2735.yaml
|
||||
etc/sensor/ov4689.yaml
|
||||
etc/sensor/ps5260.yaml
|
||||
etc/sensor/sc2232h.yaml
|
||||
etc/sensor/sc2232.yaml
|
Loading…
Reference in New Issue