Skip to content

Commit e128c1b

Browse files
committed
Add openipc-thinker-aio profile
1 parent 48038d9 commit e128c1b

File tree

5 files changed

+165
-1
lines changed

5 files changed

+165
-1
lines changed

.github/workflows/master.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ jobs:
5656
- ssc337de_ultimate_foscam-x5
5757
- ssc338q_fpv_caddx-fly
5858
- ssc338q_fpv_emax-wyvern-link
59-
- ssc338q_fpv_openipc-urllc-aio
6059
- ssc338q_fpv_openipc-mario-aio
60+
- ssc338q_fpv_openipc-thinker-aio
61+
- ssc338q_fpv_openipc-urllc-aio
6162
- ssc338q_fpv_runcam-wifilink
6263
- t10_lite_hb-wifi-z6
6364
- t10_lite_jvs-ingt10-gqs60ep
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Architecture
2+
BR2_arm=y
3+
BR2_cortex_a7=y
4+
BR2_ARM_FPU_NEON_VFPV4=y
5+
BR2_ARM_INSTRUCTIONS_THUMB2=y
6+
7+
# Toolchain
8+
BR2_TOOLCHAIN_EXTERNAL=y
9+
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
10+
BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
11+
BR2_TOOLCHAIN_EXTERNAL_URL="https://github.com/openipc/firmware/releases/download/$(OPENIPC_TOOLCHAIN).tgz"
12+
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="arm-openipc-linux-gnueabihf"
13+
BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_9=y
14+
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y
15+
# BR2_TOOLCHAIN_EXTERNAL_INET_RPC is not set
16+
BR2_TOOLCHAIN_EXTERNAL_CXX=y
17+
18+
# Kernel
19+
BR2_LINUX_KERNEL=y
20+
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
21+
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/openipc/linux/archive/$(OPENIPC_KERNEL).tar.gz"
22+
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
23+
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(EXTERNAL_VENDOR)/board/$(OPENIPC_SOC_FAMILY)/infinity6e-ssc012b.config"
24+
BR2_LINUX_KERNEL_UIMAGE=y
25+
BR2_LINUX_KERNEL_XZ=y
26+
27+
# Filesystem
28+
BR2_PACKAGE_BUSYBOX_CONFIG="$(BR2_EXTERNAL)/package/busybox/busybox.config"
29+
BR2_PACKAGE_EXFATPROGS=y
30+
BR2_PACKAGE_UBOOT_TOOLS=y
31+
BR2_PACKAGE_ZLIB=y
32+
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
33+
BR2_PACKAGE_WIRELESS_TOOLS=y
34+
BR2_PACKAGE_WPA_SUPPLICANT=y
35+
BR2_PACKAGE_WPA_SUPPLICANT_AP_SUPPORT=y
36+
BR2_PACKAGE_WPA_SUPPLICANT_CLI=y
37+
BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y
38+
BR2_TARGET_ROOTFS_CPIO=y
39+
BR2_TARGET_ROOTFS_SQUASHFS=y
40+
BR2_TARGET_ROOTFS_SQUASHFS4_XZ=y
41+
42+
# OpenIPC
43+
BR2_OPENIPC_SOC_VENDOR="sigmastar"
44+
BR2_OPENIPC_SOC_MODEL="ssc338q"
45+
BR2_OPENIPC_SOC_FAMILY="infinity6e"
46+
BR2_OPENIPC_VARIANT="fpv"
47+
BR2_OPENIPC_FLASH_SIZE="16"
48+
49+
# Packages
50+
BR2_PACKAGE_DROPBEAR_OPENIPC=y
51+
BR2_PACKAGE_EXFAT_OPENIPC=y
52+
BR2_PACKAGE_IPCTOOL=y
53+
BR2_PACKAGE_JSONFILTER=y
54+
BR2_PACKAGE_LIBCURL_OPENIPC=y
55+
BR2_PACKAGE_LIBCURL_OPENIPC_CURL=y
56+
# BR2_PACKAGE_LIBCURL_OPENIPC_PROXY_SUPPORT is not set
57+
# BR2_PACKAGE_LIBCURL_OPENIPC_COOKIES_SUPPORT is not set
58+
# BR2_PACKAGE_LIBCURL_OPENIPC_EXTRA_PROTOCOLS_FEATURES is not set
59+
BR2_PACKAGE_LIBOGG_OPENIPC=y
60+
BR2_PACKAGE_MAJESTIC_FONTS=y
61+
BR2_PACKAGE_MAJESTIC_WEBUI=y
62+
BR2_PACKAGE_MAJESTIC=y
63+
BR2_PACKAGE_MAVFWD=y
64+
BR2_PACKAGE_MBEDTLS_OPENIPC=y
65+
BR2_PACKAGE_MSPOSD=y
66+
BR2_PACKAGE_OPUS_OPENIPC=y
67+
BR2_PACKAGE_OPUS_OPENIPC_FIXED_POINT=y
68+
BR2_PACKAGE_RTL8733BU_OPENIPC=y
69+
BR2_PACKAGE_RTL8812AU_OPENIPC=y
70+
BR2_PACKAGE_SIGMASTAR_OSDRV_INFINITY6E=y
71+
BR2_PACKAGE_VTUND_OPENIPC=y
72+
BR2_PACKAGE_WIFIBROADCAST=y
73+
BR2_PACKAGE_YAML_CLI=y
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
# Set custom upgrade url
4+
fw_setenv upgrade 'https://github.com/OpenIPC/builder/releases/download/latest/ssc338q_fpv_openipc-thinker-aio-nor.tgz'
5+
6+
exit 0
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
#!/bin/sh
2+
#
3+
# OpenIPC.org | 2024
4+
#
5+
6+
MODULE=/lib/modules/4.9.84/sigmastar
7+
8+
detect_sensor() {
9+
insmod $MODULE/sensor_config.ko
10+
if [ -e /dev/srcfg ]; then
11+
echo srcfg 0 1 0 0 0 0 > /dev/srcfg
12+
rmmod sensor_config
13+
fi
14+
SENSOR=$(ipcinfo -s)
15+
}
16+
17+
set_sensor() {
18+
case $SENSOR in
19+
imx307|imx335|imx347|imx415)
20+
insmod $MODULE/sensor_${SENSOR}_mipi.ko chmap=1
21+
;;
22+
*)
23+
echo -e "\n\e[1;31mUNSUPPORTED sensor - $SENSOR\e[0m\n" | logger -s -t OpenIPC
24+
;;
25+
esac
26+
}
27+
28+
insert_ko() {
29+
insmod $MODULE/mhal.ko
30+
insmod $MODULE/mi_common.ko
31+
insmod $MODULE/mi_sys.ko cmdQBufSize=768 logBufSize=256
32+
insmod $MODULE/mi_rgn.ko
33+
insmod $MODULE/mi_ldc.ko
34+
insmod $MODULE/mi_ai.ko
35+
insmod $MODULE/mi_ao.ko
36+
insmod $MODULE/mi_mipitx.ko
37+
insmod $MODULE/mi_sensor.ko
38+
insmod $MODULE/mi_shadow.ko
39+
insmod $MODULE/mi_divp.ko
40+
insmod $MODULE/mi_vif.ko
41+
insmod $MODULE/mi_vpe.ko
42+
insmod $MODULE/mi_venc.ko fw_path=/etc/firmware/chagall.bin
43+
44+
MAJOR=$(awk '$2=="mi_poll" {print $1}' /proc/devices)
45+
mknod /dev/mi_poll c "$MAJOR" 0
46+
echo isproot /etc/firmware > /dev/ispmid
47+
}
48+
49+
if [ ! -e /sys/module/mi_common ]; then
50+
insert_ko
51+
fi
52+
53+
echo -e "\n\e[1;33mAutodetect sensor\e[0m\n" | logger -s -t OpenIPC
54+
detect_sensor
55+
56+
if [ -z "$SENSOR" ]; then
57+
echo -e "\n\e[1;31mSensor parameter MISSING\e[0m\n" | logger -s -t OpenIPC
58+
exit 1
59+
fi
60+
61+
DRIVER=$(ls /sys/module | grep $SENSOR)
62+
if [ -n "$DRIVER" ]; then
63+
rmmod $DRIVER
64+
fi
65+
66+
echo -e "\n\e[1;32mSensor assigned - $SENSOR\e[0m\n" | logger -s -t OpenIPC
67+
set_sensor
68+
69+
# Custom settings
70+
gpio set 29
71+
72+
exit 0
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/etc/sensors/gc2053.bin
2+
/etc/sensors/gc4653.bin
3+
/etc/sensors/sc501ai.bin
4+
/lib/modules/4.9.84/kernel/fs/lockd/*.ko
5+
/lib/modules/4.9.84/kernel/fs/nfs/*.ko
6+
/lib/modules/4.9.84/kernel/fs/nfs_common/*.ko
7+
/lib/modules/4.9.84/kernel/net/sunrpc/*.ko
8+
/lib/modules/4.9.84/sigmastar/sensor_gc2053_mipi.ko
9+
/lib/modules/4.9.84/sigmastar/sensor_gc4653_mipi.ko
10+
/lib/modules/4.9.84/sigmastar/sensor_os04c10_mipi.ko
11+
/lib/modules/4.9.84/sigmastar/sensor_sc501ai_mipi.ko
12+
/lib/modules/4.9.84/sigmastar/sensor_sc8235_mipi.ko

0 commit comments

Comments
 (0)