[FH885xV200] Add sensor libs, fix scripts & configs

pull/244/head
Dmitry Ermakov 2022-06-16 14:53:52 +03:00
parent 3d61eafe75
commit 6d9d1b2642
23 changed files with 103 additions and 29 deletions

View File

@ -719,7 +719,19 @@ CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=y
# CONFIG_OF is not set
CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
# CONFIG_PARPORT is not set
# CONFIG_BLK_DEV is not set
CONFIG_BLK_DEV=y
# CONFIG_BLK_DEV_NULL_BLK is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_LOOP_MIN_COUNT=8
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
# CONFIG_BLK_DEV_DRBD is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_ATA_OVER_ETH is not set
# CONFIG_MG_DISK is not set
# CONFIG_BLK_DEV_RBD is not set
# CONFIG_NVME_TARGET is not set
#
@ -1418,7 +1430,7 @@ CONFIG_USB_WDM=y
# CONFIG_USBIP_CORE is not set
# CONFIG_USB_MUSB_HDRC is not set
# CONFIG_USB_DWC3 is not set
CONFIG_USB_DWC2=y
CONFIG_USB_DWC2=m
CONFIG_USB_DWC2_HOST=y
#

View File

@ -719,7 +719,19 @@ CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=y
# CONFIG_OF is not set
CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
# CONFIG_PARPORT is not set
# CONFIG_BLK_DEV is not set
CONFIG_BLK_DEV=y
# CONFIG_BLK_DEV_NULL_BLK is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_LOOP_MIN_COUNT=8
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
# CONFIG_BLK_DEV_DRBD is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_ATA_OVER_ETH is not set
# CONFIG_MG_DISK is not set
# CONFIG_BLK_DEV_RBD is not set
# CONFIG_NVME_TARGET is not set
#
@ -1418,7 +1430,7 @@ CONFIG_USB_WDM=y
# CONFIG_USBIP_CORE is not set
# CONFIG_USB_MUSB_HDRC is not set
# CONFIG_USB_DWC3 is not set
CONFIG_USB_DWC2=y
CONFIG_USB_DWC2=m
CONFIG_USB_DWC2_HOST=y
#

View File

@ -719,7 +719,19 @@ CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=y
# CONFIG_OF is not set
CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
# CONFIG_PARPORT is not set
# CONFIG_BLK_DEV is not set
CONFIG_BLK_DEV=y
# CONFIG_BLK_DEV_NULL_BLK is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_LOOP_MIN_COUNT=8
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
# CONFIG_BLK_DEV_DRBD is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_ATA_OVER_ETH is not set
# CONFIG_MG_DISK is not set
# CONFIG_BLK_DEV_RBD is not set
# CONFIG_NVME_TARGET is not set
#
@ -1418,7 +1430,7 @@ CONFIG_USB_WDM=y
# CONFIG_USBIP_CORE is not set
# CONFIG_USB_MUSB_HDRC is not set
# CONFIG_USB_DWC3 is not set
CONFIG_USB_DWC2=y
CONFIG_USB_DWC2=m
CONFIG_USB_DWC2_HOST=y
#

View File

@ -719,7 +719,19 @@ CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=y
# CONFIG_OF is not set
CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
# CONFIG_PARPORT is not set
# CONFIG_BLK_DEV is not set
CONFIG_BLK_DEV=y
# CONFIG_BLK_DEV_NULL_BLK is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_LOOP_MIN_COUNT=8
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
# CONFIG_BLK_DEV_DRBD is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_ATA_OVER_ETH is not set
# CONFIG_MG_DISK is not set
# CONFIG_BLK_DEV_RBD is not set
# CONFIG_NVME_TARGET is not set
#
@ -1418,7 +1430,7 @@ CONFIG_USB_WDM=y
# CONFIG_USBIP_CORE is not set
# CONFIG_USB_MUSB_HDRC is not set
# CONFIG_USB_DWC3 is not set
CONFIG_USB_DWC2=y
CONFIG_USB_DWC2=m
CONFIG_USB_DWC2_HOST=y
#

View File

@ -719,7 +719,19 @@ CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=y
# CONFIG_OF is not set
CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
# CONFIG_PARPORT is not set
# CONFIG_BLK_DEV is not set
CONFIG_BLK_DEV=y
# CONFIG_BLK_DEV_NULL_BLK is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_LOOP_MIN_COUNT=8
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
# CONFIG_BLK_DEV_DRBD is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_ATA_OVER_ETH is not set
# CONFIG_MG_DISK is not set
# CONFIG_BLK_DEV_RBD is not set
# CONFIG_NVME_TARGET is not set
#
@ -1418,7 +1430,7 @@ CONFIG_USB_WDM=y
# CONFIG_USBIP_CORE is not set
# CONFIG_USB_MUSB_HDRC is not set
# CONFIG_USB_DWC3 is not set
CONFIG_USB_DWC2=y
CONFIG_USB_DWC2=m
CONFIG_USB_DWC2_HOST=y
#

View File

@ -719,7 +719,19 @@ CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=y
# CONFIG_OF is not set
CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
# CONFIG_PARPORT is not set
# CONFIG_BLK_DEV is not set
CONFIG_BLK_DEV=y
# CONFIG_BLK_DEV_NULL_BLK is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_LOOP_MIN_COUNT=8
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
# CONFIG_BLK_DEV_DRBD is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_ATA_OVER_ETH is not set
# CONFIG_MG_DISK is not set
# CONFIG_BLK_DEV_RBD is not set
# CONFIG_NVME_TARGET is not set
#
@ -1418,7 +1430,7 @@ CONFIG_USB_WDM=y
# CONFIG_USBIP_CORE is not set
# CONFIG_USB_MUSB_HDRC is not set
# CONFIG_USB_DWC3 is not set
CONFIG_USB_DWC2=y
CONFIG_USB_DWC2=m
CONFIG_USB_DWC2_HOST=y
#

View File

@ -67,7 +67,7 @@ BR2_PACKAGE_LIBOGG_OPENIPC=y
BR2_PACKAGE_LIBWEBSOCKETS_OPENIPC=y
BR2_PACKAGE_LIBYAML=y
BR2_PACKAGE_MAJESTIC_FONTS=y
# BR2_PACKAGE_MAJESTIC_FH8852V200=y
BR2_PACKAGE_MAJESTIC_FH8852V200=y
BR2_PACKAGE_MBEDTLS_OPENIPC=y
# BR2_PACKAGE_MBEDTLS_OPENIPC_PROGRAMS is not set
# BR2_PACKAGE_MBEDTLS_OPENIPC_COMPRESSION is not set

View File

@ -67,7 +67,7 @@ BR2_PACKAGE_LIBOGG_OPENIPC=y
BR2_PACKAGE_LIBWEBSOCKETS_OPENIPC=y
BR2_PACKAGE_LIBYAML=y
BR2_PACKAGE_MAJESTIC_FONTS=y
# BR2_PACKAGE_MAJESTIC_FH8852V200=y
BR2_PACKAGE_MAJESTIC_FH8852V200=y
BR2_PACKAGE_MBEDTLS_OPENIPC=y
# BR2_PACKAGE_MBEDTLS_OPENIPC_PROGRAMS is not set
# BR2_PACKAGE_MBEDTLS_OPENIPC_COMPRESSION is not set

View File

@ -67,7 +67,7 @@ BR2_PACKAGE_LIBOGG_OPENIPC=y
BR2_PACKAGE_LIBWEBSOCKETS_OPENIPC=y
BR2_PACKAGE_LIBYAML=y
BR2_PACKAGE_MAJESTIC_FONTS=y
# BR2_PACKAGE_MAJESTIC_FH8852V200=y
BR2_PACKAGE_MAJESTIC_FH8852V200=y
BR2_PACKAGE_MBEDTLS_OPENIPC=y
# BR2_PACKAGE_MBEDTLS_OPENIPC_PROGRAMS is not set
# BR2_PACKAGE_MBEDTLS_OPENIPC_COMPRESSION is not set

View File

@ -35,9 +35,10 @@ start() {
#
logger -s -p daemon.info -t fullhan "Loading of kernel modules and initialization of the video system has started"
export TZ=$(cat /etc/TZ)
#load_fullhan
load_fullhan
#
#load_majestic
export SENSOR=$(fw_printenv -n sensor)
load_majestic
}
stop() {

View File

@ -12,7 +12,8 @@ set_gpio()
cd /lib/modules/4.9.129/fullhan
insmod vmm.ko mmz=anonymous,0,0xA1D00000,33M anony=1
insmod vmm.ko mmz=anonymous,0,0xA2000000,32M anony=1
#insmod vmm.ko mmz=anonymous,0,0xA1D00000,33M anony=1
#insmod vmm.ko mmz=anonymous,0,0xA2000000,64M anony=1
#insmod vmm.ko mmz=anonymous,0,0xA2000000,64M anony=1
@ -21,12 +22,12 @@ set_gpio 13 0
insmod xbus_rpc.ko fn=/lib/firmware/rtthread_arc_FH885xV200.bin fa=0xbff80000
#reset sensor
#unreset sensor
set_gpio 13 1
insmod media_process.ko
insmod isp.ko
insmod vpu.ko vpu_mode=buf_0_2,buf_1_2
insmod vpu.ko #vpu_mode=buf_0_2,buf_1_2
insmod enc.ko
insmod jpeg.ko
insmod bgm.ko
#insmod bgm.ko

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@ -28,8 +28,8 @@ define FULLHAN_OSDRV_FH8852V200_INSTALL_TARGET_CMDS
$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/lib/sensors
$(INSTALL) -m 644 -t $(TARGET_DIR)/usr/lib/sensors $(BR2_EXTERNAL_FULLHAN_PATH)/package/fullhan-osdrv-fh8852v200/files/sensor/*.so
$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/lib/sensors/params
$(INSTALL) -m 644 -t $(TARGET_DIR)/usr/lib/sensors/params $(BR2_EXTERNAL_FULLHAN_PATH)/package/fullhan-osdrv-fh8852v200/files/sensor/params/*
$(INSTALL) -m 755 -d $(TARGET_DIR)/etc/sensors
$(INSTALL) -m 644 -t $(TARGET_DIR)/etc/sensors $(BR2_EXTERNAL_FULLHAN_PATH)/package/fullhan-osdrv-fh8852v200/files/sensor/params/*
endef
$(eval $(generic-package))

View File

@ -4,13 +4,13 @@
#
################################################################################
MAJESTIC_FH8852v200_VERSION = current
MAJESTIC_FH8852v200_SOURCE = majestic.fh8852v200.lite.master.tar.bz2
MAJESTIC_FH8852v200_SITE = https://openipc.s3-eu-west-1.amazonaws.com
MAJESTIC_FH8852v200_LICENSE = MIT
MAJESTIC_FH8852v200_LICENSE_FILES = LICENSE
MAJESTIC_FH8852V200_VERSION = current
MAJESTIC_FH8852V200_SOURCE = majestic.fh8852v200.lite.master.tar.bz2
MAJESTIC_FH8852V200_SITE = https://openipc.s3-eu-west-1.amazonaws.com
MAJESTIC_FH8852V200_LICENSE = MIT
MAJESTIC_FH8852V200_LICENSE_FILES = LICENSE
define MAJESTIC_FH8852v200_INSTALL_TARGET_CMDS
define MAJESTIC_FH8852V200_INSTALL_TARGET_CMDS
$(INSTALL) -m 755 -d $(TARGET_DIR)/etc
$(INSTALL) -m 644 $(@D)/majestic-mini.yaml $(TARGET_DIR)/etc/majestic.yaml
$(INSTALL) -m 644 $(@D)/majestic.yaml $(TARGET_DIR)/etc/majestic.full