mirror of
https://github.com/nikdoof/builder.git
synced 2025-12-14 16:12:15 +00:00
add gk7102c_a boards for devs
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
#
|
||||
Experimental system for building OpenIPC firmware for known devices
|
||||
#
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
mknod /dev/gk_video -m 666 c 248 0
|
||||
mknod /dev/gk_log -m 666 c 248 249
|
||||
mknod /dev/gk_fw -m 666 c 248 1
|
||||
mknod /dev/debug -m 666 c 248 248
|
||||
mknod /dev/ai_dev -m 666 c 245 0
|
||||
mknod /dev/ao_dev -m 666 c 245 1
|
||||
BIN
devices/gk7102ca_lite-vstarcam-g8896wip/general/overlay/usr/bin/sensordetect
Executable file
BIN
devices/gk7102ca_lite-vstarcam-g8896wip/general/overlay/usr/bin/sensordetect
Executable file
Binary file not shown.
@@ -0,0 +1,34 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Perform basic settings on a known IP camera
|
||||
#
|
||||
#
|
||||
# Set custom upgrade url
|
||||
#
|
||||
fw_setenv upgrade 'https://github.com/OpenIPC/builder/releases/download/latest/gk7102ca_lite-vstarcam-g8896wip-nor.tgz'
|
||||
#
|
||||
#
|
||||
# Set custom majestic settings
|
||||
#
|
||||
#cli -s .system.webAdmin disabled
|
||||
#cli -s .system.staticDir /var/www/majestic
|
||||
#cli -s .nightMode.enabled true
|
||||
#cli -s .nightMode.irSensorPin ??
|
||||
#cli -s .nightMode.irCutPin1 ??
|
||||
#cli -s .nightMode.irCutPin2 ??
|
||||
#cli -s .nightMode.backlightPin ??
|
||||
#cli -s .audio.speakerPin ??
|
||||
#cli -s .video0.codec h264
|
||||
#
|
||||
#
|
||||
# Set wlan device and credentials if need
|
||||
#
|
||||
#fw_setenv wlandev rtl8189es-generic
|
||||
#fw_setenv wlanssid Router
|
||||
#fw_setenv wlanpass 12345678
|
||||
#
|
||||
#
|
||||
# reset gpio - ?
|
||||
# wifi gpio - ?
|
||||
#
|
||||
exit 0
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,32 @@
|
||||
#!/bin/sh
|
||||
|
||||
kernel_ver=$(uname -r)
|
||||
cd /lib/modules/$kernel_ver/goke
|
||||
|
||||
USE_OLD_SENSOR_DRIVER=NO #YES or NO, default no use.
|
||||
USE_LOAD_HAL_DRIVER=YES #YES or NO, default no use.
|
||||
|
||||
if [ $USE_LOAD_HAL_DRIVER = "YES" ];then
|
||||
insmod hal.ko
|
||||
fi
|
||||
|
||||
insmod hw_crypto.ko
|
||||
insmod media.ko
|
||||
insmod audio.ko
|
||||
|
||||
if [ $USE_OLD_SENSOR_DRIVER = "YES" ]; then
|
||||
if [ -e ${1}.ko ];then
|
||||
insmod ${1}.ko
|
||||
else
|
||||
echo "${1}.ko is no exist."
|
||||
exit 0
|
||||
fi
|
||||
else
|
||||
insmod sensor.ko
|
||||
|
||||
sensordetect
|
||||
|
||||
if [ -e /tmp/sensor_ex.ko ]; then
|
||||
insmod /tmp/sensor_ex.ko
|
||||
fi
|
||||
fi
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,47 @@
|
||||
################################################################################
|
||||
#
|
||||
# goke-osdrv-gk710x
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GOKE_OSDRV_GK710X_VERSION =
|
||||
GOKE_OSDRV_GK710X_SITE =
|
||||
GOKE_OSDRV_GK710X_LICENSE = MIT
|
||||
GOKE_OSDRV_GK710X_LICENSE_FILES = LICENSE
|
||||
|
||||
ifeq ($(OPENIPC_SOC_MODEL),gk7102)
|
||||
GOKE_OSDRV_GK710X_FIRMWARE = gk_fw_710x.bin
|
||||
else ifeq ($(OPENIPC_SOC_MODEL),gk7102s)
|
||||
GOKE_OSDRV_GK710X_FIRMWARE = gk_fw_710xs.bin
|
||||
else ifeq ($(OPENIPC_SOC_MODEL),gk7102c)
|
||||
GOKE_OSDRV_GK710X_FIRMWARE = gk_fw_7102c.bin
|
||||
else ifeq ($(OPENIPC_SOC_MODEL),gk7102ca)
|
||||
GOKE_OSDRV_GK710X_FIRMWARE = gk_fw_7102c_a.bin
|
||||
endif
|
||||
|
||||
define GOKE_OSDRV_GK710X_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -m 755 -d $(TARGET_DIR)/etc/sensors
|
||||
# $(INSTALL) -m 644 -t $(TARGET_DIR)/etc/sensors $(GOKE_OSDRV_GK710X_PKGDIR)/files/sensor/config/*.bin
|
||||
$(INSTALL) -m 644 -t $(TARGET_DIR)/etc/sensors $(GOKE_OSDRV_GK710X_PKGDIR)/files/sensor/config/color_matrix.bin
|
||||
$(INSTALL) -m 644 -t $(TARGET_DIR)/etc/sensors $(GOKE_OSDRV_GK710X_PKGDIR)/files/sensor/config/color_reg.bin
|
||||
$(INSTALL) -m 644 -t $(TARGET_DIR)/etc/sensors $(GOKE_OSDRV_GK710X_PKGDIR)/files/sensor/config/lens_shading.bin
|
||||
$(INSTALL) -m 644 -t $(TARGET_DIR)/etc/sensors $(GOKE_OSDRV_GK710X_PKGDIR)/files/sensor/config/gc2033.bin
|
||||
$(INSTALL) -m 644 -t $(TARGET_DIR)/etc/sensors $(GOKE_OSDRV_GK710X_PKGDIR)/files/sensor/config/gc2033_hw.bin
|
||||
$(INSTALL) -m 644 -t $(TARGET_DIR)/etc/sensors $(GOKE_OSDRV_GK710X_PKGDIR)/files/sensor/config/sensor_detect.bin
|
||||
|
||||
$(INSTALL) -m 755 -d $(TARGET_DIR)/lib/firmware
|
||||
cp $(GOKE_OSDRV_GK710X_PKGDIR)/files/sensor/fw/$(GOKE_OSDRV_GK710X_FIRMWARE) $(TARGET_DIR)/lib/firmware/gk_fw.bin
|
||||
|
||||
$(INSTALL) -m 755 -d $(TARGET_DIR)/lib/modules/3.4.43-Goke/goke
|
||||
$(INSTALL) -m 644 -t $(TARGET_DIR)/lib/modules/3.4.43-Goke/goke $(GOKE_OSDRV_GK710X_PKGDIR)/files/kmod/*.ko
|
||||
$(INSTALL) -m 644 -t $(TARGET_DIR)/lib/modules/3.4.43-Goke/goke $(GOKE_OSDRV_GK710X_PKGDIR)/files/sensor/gc2033_ex.ko
|
||||
# $(INSTALL) -m 644 -t $(TARGET_DIR)/lib/modules/3.4.43-Goke/goke $(GOKE_OSDRV_GK710X_PKGDIR)/files/sensor/*.ko
|
||||
|
||||
$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/bin
|
||||
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(GOKE_OSDRV_GK710X_PKGDIR)/files/script/load*
|
||||
|
||||
$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/lib
|
||||
$(INSTALL) -m 644 -t $(TARGET_DIR)/usr/lib/ $(GOKE_OSDRV_GK710X_PKGDIR)/files/lib/*.so
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user