add TRASSIR TR-D4121IR1 v2
This commit is contained in:
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Executable
+52
@@ -0,0 +1,52 @@
|
||||
#!/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
|
||||
# Use sensor.ko
|
||||
rm /tmp/sensor_hw.bin -f
|
||||
rm /tmp/sensor_ex.ko -f
|
||||
if [ $# -ne 1 ] ;then
|
||||
sensordetect
|
||||
else
|
||||
if [ -e /etc/sensors/$1"_hw.bin" ];then
|
||||
if [ -e /tmp/sensor_hw.bin ]; then
|
||||
rm /tmp/sensor_hw.bin -f
|
||||
fi
|
||||
ln -s /etc/sensors/$1"_hw.bin" /tmp/sensor_hw.bin
|
||||
else
|
||||
echo "\"/etc/sensors/${1}_hw.bin\" is no exist."
|
||||
exit 0
|
||||
fi
|
||||
if [ -e $1"_ex.ko" ];then
|
||||
if [ -e /tmp/sensor_ex.ko ]; then
|
||||
rm /tmp/sensor_ex.ko -f
|
||||
fi
|
||||
ln -s $1"_ex.ko" /tmp/sensor_ex.ko
|
||||
else
|
||||
echo "\"${1}_ex.ko\" is no exist."
|
||||
fi
|
||||
fi
|
||||
if [ -e /tmp/sensor_ex.ko ];then
|
||||
insmod /tmp/sensor_ex.ko
|
||||
fi
|
||||
fi
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+41
@@ -0,0 +1,41 @@
|
||||
################################################################################
|
||||
#
|
||||
# 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),gk7102c_a)
|
||||
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 755 -d $(TARGET_DIR)/lib/firmware
|
||||
# $(INSTALL) -m 644 -t $(TARGET_DIR)/lib/firmware $(GOKE_OSDRV_GK710X_PKGDIR)/files/sensor/fw/$(GOKE_OSDRV_GK710X_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/*.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