mirror of https://github.com/OpenIPC/firmware.git
[T10/T20] Fix scripts, add modules and packages
parent
d2add8ddfe
commit
b293b76183
|
@ -54,7 +54,7 @@ BR2_PACKAGE_BUSYBOX_CONFIG="$(TOPDIR)/../general/package/busybox/busybox.config"
|
|||
BR2_PACKAGE_DROPBEAR_OPENIPC=y
|
||||
# BR2_PACKAGE_FDK_AAC_OPENIPC is not set
|
||||
BR2_PACKAGE_FWPRINTENV_OPENIPC=y
|
||||
# BR2_PACKAGE_INGENIC_OSDRV_T10=y
|
||||
BR2_PACKAGE_INGENIC_OSDRV_T20=y
|
||||
BR2_PACKAGE_HASERL=y
|
||||
BR2_PACKAGE_HISI_GPIO=y
|
||||
BR2_PACKAGE_IPCTOOL=y
|
||||
|
@ -73,7 +73,7 @@ BR2_PACKAGE_LIBOGG_OPENIPC=y
|
|||
BR2_PACKAGE_LIBWEBSOCKETS_OPENIPC=y
|
||||
BR2_PACKAGE_LIBYAML=y
|
||||
BR2_PACKAGE_MAJESTIC_FONTS=y
|
||||
# BR2_PACKAGE_MAJESTIC_T10 is not set
|
||||
BR2_PACKAGE_MAJESTIC_T21=y
|
||||
BR2_PACKAGE_MBEDTLS_OPENIPC=y
|
||||
# BR2_PACKAGE_MBEDTLS_OPENIPC_PROGRAMS is not set
|
||||
# BR2_PACKAGE_MBEDTLS_OPENIPC_COMPRESSION is not set
|
||||
|
|
|
@ -54,7 +54,7 @@ BR2_PACKAGE_BUSYBOX_CONFIG="$(TOPDIR)/../general/package/busybox/busybox.config"
|
|||
BR2_PACKAGE_DROPBEAR_OPENIPC=y
|
||||
# BR2_PACKAGE_FDK_AAC_OPENIPC is not set
|
||||
BR2_PACKAGE_FWPRINTENV_OPENIPC=y
|
||||
# BR2_PACKAGE_INGENIC_OSDRV_T20=y
|
||||
BR2_PACKAGE_INGENIC_OSDRV_T20=y
|
||||
BR2_PACKAGE_HASERL=y
|
||||
BR2_PACKAGE_HISI_GPIO=y
|
||||
BR2_PACKAGE_IPCTOOL=y
|
||||
|
@ -73,7 +73,7 @@ BR2_PACKAGE_LIBOGG_OPENIPC=y
|
|||
BR2_PACKAGE_LIBWEBSOCKETS_OPENIPC=y
|
||||
BR2_PACKAGE_LIBYAML=y
|
||||
BR2_PACKAGE_MAJESTIC_FONTS=y
|
||||
# BR2_PACKAGE_MAJESTIC_T20 is not set
|
||||
BR2_PACKAGE_MAJESTIC_T21=y
|
||||
BR2_PACKAGE_MBEDTLS_OPENIPC=y
|
||||
# BR2_PACKAGE_MBEDTLS_OPENIPC_PROGRAMS is not set
|
||||
# BR2_PACKAGE_MBEDTLS_OPENIPC_COMPRESSION is not set
|
||||
|
|
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.
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.
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.
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.
|
@ -37,7 +37,9 @@ start() {
|
|||
load_ingenic
|
||||
#
|
||||
#
|
||||
#load_majestic
|
||||
# export SENSOR=$(fw_printenv -n sensor)
|
||||
export SENSOR=$(cat /proc/jz/sinfo/info | sed -e 's/.*://')
|
||||
load_majestic
|
||||
}
|
||||
|
||||
stop() {
|
||||
|
@ -65,10 +67,11 @@ reload() {
|
|||
}
|
||||
|
||||
case "$1" in
|
||||
start|stop|restart|reload)
|
||||
"$1";;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|reload}"
|
||||
exit 1
|
||||
start | stop | restart | reload)
|
||||
"$1"
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|reload}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
|
@ -26,15 +26,48 @@ check_return "get sensor type"
|
|||
|
||||
SENSOR=${SENSOR_INFO#*:}
|
||||
|
||||
case ${SENSOR} in
|
||||
"sc2232")
|
||||
ISP_PARAM="isp_clk=90000000"
|
||||
SENSOR_PARAM=""
|
||||
;;
|
||||
"sc2135")
|
||||
ISP_PARAM="isp_clk=100000000"
|
||||
SENSOR_PARAM=""
|
||||
;;
|
||||
"sc2335")
|
||||
ISP_PARAM="isp_clk=100000000"
|
||||
SENSOR_PARAM=""
|
||||
"gc2053")
|
||||
ISP_PARAM="isp_clk=100000000"
|
||||
SENSOR_PARAM="sensor_max_fps=25 data_interface=1"
|
||||
;;
|
||||
"jxf22")
|
||||
ISP_PARAM="isp_clk=90000000"
|
||||
SENSOR_PARAM=""
|
||||
;;
|
||||
*)
|
||||
ISP_PARAM="isp_clk=90000000"
|
||||
SENSOR_PARAM=""
|
||||
break
|
||||
;;
|
||||
esac
|
||||
|
||||
echo --------------------
|
||||
echo "ISP_PARAM: ${ISP_PARAM}"
|
||||
echo "SENSOR: ${SENSOR}"
|
||||
echo "SENSOR_PARAM: ${SENSOR_PARAM}"
|
||||
echo --------------------
|
||||
|
||||
lsmod | grep "tx_isp" > /dev/null
|
||||
if [ $? -ne 0 ] ;then
|
||||
insmod ${KMOD_PATH/%\//}/tx-isp.ko
|
||||
insmod ${KMOD_PATH/%\//}/tx-isp.ko ${ISP_PARAM}
|
||||
check_return "insmod isp drv"
|
||||
fi
|
||||
|
||||
lsmod | grep ${SENSOR} > /dev/null
|
||||
if [ $? -ne 0 ] ;then
|
||||
insmod ${KMOD_PATH/%\//}/sensor_${SENSOR}.ko
|
||||
insmod ${KMOD_PATH/%\//}/sensor_${SENSOR}.ko ${SENSOR_PARAM}
|
||||
check_return "insmod sensor drv"
|
||||
fi
|
||||
|
||||
|
|
|
@ -21,8 +21,6 @@ define INGENIC_OSDRV_T20_INSTALL_TARGET_CMDS
|
|||
|
||||
$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/bin
|
||||
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(BR2_EXTERNAL_INGENIC_PATH)/package/ingenic-osdrv-t20/files/script/load*
|
||||
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(BR2_EXTERNAL_INGENIC_PATH)/package/ingenic-osdrv-t20/files/script/ircut_demo
|
||||
# $(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(BR2_EXTERNAL_INGENIC_PATH)/package/ingenic-osdrv-t20/files/sample/*
|
||||
|
||||
# $(INSTALL) -m 755 -d $(TARGET_DIR)/usr/lib/sensors/params
|
||||
# $(INSTALL) -m 644 -t $(TARGET_DIR)/usr/lib/sensors/params $(BR2_EXTERNAL_INGENIC_PATH)/package/ingenic-osdrv-t20/files/sensor/params/*.bin
|
||||
|
|
Loading…
Reference in New Issue