mirror of https://github.com/OpenIPC/wiki.git
Add files via upload
parent
f588ecc997
commit
e4b72f32eb
translated_sandbox/hi3536dv100
usr/bin
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Start gpio monitor
|
||||
#
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo "Starting gpio_monitor daemon..."
|
||||
/root/gpio_monitor.sh &
|
||||
;;
|
||||
stop)
|
||||
echo "Stopping gpio_monitor daemon..."
|
||||
kill -9 $(pidof {exe} ash /root/gpio_monitor.sh)
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop}"
|
||||
exit 1
|
||||
esac
|
|
@ -0,0 +1,23 @@
|
|||
#!/bin/sh
|
||||
|
||||
start() {
|
||||
/usr/bin/rcjoystick -t 25 -c 16 -i wlan0 &
|
||||
}
|
||||
|
||||
stop() {
|
||||
killall rcjoystick
|
||||
}
|
||||
|
||||
restart() {
|
||||
stop
|
||||
sleep 1
|
||||
start
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start|stop|restart)
|
||||
"$1";;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
exit 1
|
||||
esac
|
|
@ -0,0 +1,21 @@
|
|||
[General]
|
||||
TcpServerPort = 0
|
||||
DebugLogLevel = error
|
||||
|
||||
[UdpEndpoint qgroundcontrol]
|
||||
Mode = Server
|
||||
Address = 0.0.0.0
|
||||
Port = 14550
|
||||
|
||||
[UdpEndpoint telemetry_tx]
|
||||
Group=wfb
|
||||
Mode = Normal
|
||||
Address = 127.0.0.1
|
||||
Port = 14650
|
||||
|
||||
[UdpEndpoint telemetry_rx]
|
||||
Group=wfb
|
||||
Mode = Server
|
||||
Address = 127.0.0.1
|
||||
Port = 14651
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
serial=/dev/ttyAMA0
|
||||
baud=115200
|
||||
### router: use simple mavfwd (0) or classic mavlink-routerd (1)
|
||||
router=1
|
||||
|
||||
wlan=wlan0
|
||||
bandwidth=20
|
||||
stbc=1
|
||||
ldpc=1
|
||||
mcs_index=1
|
||||
stream_rx=16
|
||||
stream_tx=144
|
||||
link_id=7669206
|
||||
port_rx=14651
|
||||
port_tx=14650
|
||||
fec_k=1
|
||||
fec_n=2
|
||||
fec_timeout=0
|
||||
guard_interval=long
|
||||
one_way=false
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,138 @@
|
|||
# Architecture
|
||||
BR2_arm=y
|
||||
BR2_cortex_a7=y
|
||||
BR2_ARM_EABI=y
|
||||
BR2_ARM_FPU_NEON_VFPV4=y
|
||||
BR2_ARM_INSTRUCTIONS_THUMB2=y
|
||||
BR2_KERNEL_HEADERS_VERSION=y
|
||||
BR2_DEFAULT_KERNEL_VERSION="4.9.37"
|
||||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9=y
|
||||
|
||||
# Toolchain
|
||||
BR2_PER_PACKAGE_DIRECTORIES=y
|
||||
BR2_GCC_VERSION_8_X=y
|
||||
# BR2_TOOLCHAIN_USES_UCLIBC is not set
|
||||
# BR2_TOOLCHAIN_BUILDROOT_UCLIBC is not set
|
||||
# BR2_TOOLCHAIN_BUILDROOT_LIBC="uclibc"
|
||||
# BR2_TOOLCHAIN_USES_MUSL is not set
|
||||
# BR2_TOOLCHAIN_BUILDROOT_MUSL is not set
|
||||
# BR2_TOOLCHAIN_BUILDROOT_LIBC="musl"
|
||||
BR2_TOOLCHAIN_USES_GLIBC=y
|
||||
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
|
||||
BR2_TOOLCHAIN_BUILDROOT_LIBC="glibc"
|
||||
BR2_PACKAGE_GLIBC_UTILS=y
|
||||
BR2_TOOLCHAIN_BUILDROOT_CXX=y
|
||||
# BR2_TOOLCHAIN_BUILDROOT_LOCALE is not set
|
||||
BR2_TOOLCHAIN_BUILDROOT_USE_SSP=y
|
||||
BR2_PIC_PIE=y
|
||||
BR2_GCC_ENABLE_LTO=y
|
||||
BR2_INSTALL_LIBSTDCPP=y
|
||||
|
||||
# Kernel
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.9.37"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(BR2_EXTERNAL_HISILICON_PATH)/board/hi3536dv100/kernel/hi3536dv100.generic.config"
|
||||
BR2_LINUX_KERNEL_UIMAGE=y
|
||||
BR2_LINUX_KERNEL_UIMAGE_LOADADDR="0x80008000"
|
||||
BR2_LINUX_KERNEL_XZ=y
|
||||
BR2_LINUX_KERNEL_EXT_HISI_PATCHER=y
|
||||
BR2_LINUX_KERNEL_EXT_HISI_PATCHER_LIST="$(BR2_EXTERNAL_HISILICON_PATH)/board/hi3536dv100/kernel/patches/ $(BR2_EXTERNAL_HISILICON_PATH)/board/hi3536dv100/kernel/overlay"
|
||||
|
||||
# Filesystem
|
||||
# BR2_TARGET_TZ_INFO is not set
|
||||
# BR2_TARGET_ROOTFS_CPIO is not set
|
||||
BR2_TARGET_ROOTFS_SQUASHFS=y
|
||||
BR2_TARGET_ROOTFS_SQUASHFS4_XZ=y
|
||||
BR2_ROOTFS_OVERLAY="$(TOPDIR)/../general/overlay"
|
||||
BR2_ROOTFS_POST_BUILD_SCRIPT="$(TOPDIR)/../scripts/executing_commands_for_$(BR2_TOOLCHAIN_BUILDROOT_LIBC).sh"
|
||||
|
||||
# OpenIPC configuration
|
||||
BR2_TOOLCHAIN_BUILDROOT_VENDOR="openipc"
|
||||
BR2_TARGET_GENERIC_ISSUE="Welcome to OpenIPC"
|
||||
BR2_TARGET_GENERIC_HOSTNAME="openipc-hi3536dv100"
|
||||
BR2_GLOBAL_PATCH_DIR="$(TOPDIR)/../general/package/all-patches"
|
||||
|
||||
# OpenIPC packages
|
||||
BR2_PACKAGE_HISILICON_OSDRV_HI3536DV100=y
|
||||
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_HASERL is not set
|
||||
# BR2_PACKAGE_HISI_GPIO is not set
|
||||
BR2_PACKAGE_IPCTOOL=y
|
||||
# BR2_PACKAGE_JSON_C is not set
|
||||
# BR2_PACKAGE_JSONFILTER is not set
|
||||
# BR2_PACKAGE_LAME_OPENIPC is not set
|
||||
BR2_PACKAGE_LIBCURL_OPENIPC=y
|
||||
BR2_PACKAGE_LIBCURL_OPENIPC_CURL=y
|
||||
# BR2_PACKAGE_LIBCURL_OPENIPC_VERBOSE is not set
|
||||
# BR2_PACKAGE_LIBCURL_OPENIPC_PROXY_SUPPORT is not set
|
||||
# BR2_PACKAGE_LIBCURL_OPENIPC_COOKIES_SUPPORT is not set
|
||||
# BR2_PACKAGE_LIBCURL_OPENIPC_EXTRA_PROTOCOLS_FEATURES is not set
|
||||
BR2_PACKAGE_LIBCURL_OPENIPC_MBEDTLS=y
|
||||
# BR2_PACKAGE_LIBEVENT_OPENIPC is not set
|
||||
# BR2_PACKAGE_LIBEVENT_OPENIPC_REMOVE_PYSCRIPT is not set
|
||||
# BR2_PACKAGE_LIBOGG_OPENIPC is not set
|
||||
# BR2_PACKAGE_LIBWEBSOCKETS_OPENIPC is not set
|
||||
# BR2_PACKAGE_LIBYAML is not set
|
||||
# BR2_PACKAGE_MAJESTIC_FONTS is not set
|
||||
BR2_PACKAGE_MBEDTLS_OPENIPC=y
|
||||
# BR2_PACKAGE_MBEDTLS_OPENIPC_PROGRAMS is not set
|
||||
# BR2_PACKAGE_MBEDTLS_OPENIPC_COMPRESSION is not set
|
||||
# BR2_PACKAGE_MICROBE_WEB is not set
|
||||
# BR2_PACKAGE_MINI_SNMPD is not set
|
||||
# BR2_PACKAGE_OPUS_OPENIPC is not set
|
||||
# BR2_PACKAGE_OPUS_OPENIPC_FIXED_POINT is not set
|
||||
# BR2_PACKAGE_SSHPASS is not set
|
||||
# BR2_PACKAGE_UACME_OPENIPC is not set
|
||||
BR2_PACKAGE_VTUND_OPENIPC=y
|
||||
# BR2_PACKAGE_YAML_CLI is not set
|
||||
# BR2_PACKAGE_XMDP is not set
|
||||
|
||||
# WiFi
|
||||
BR2_PACKAGE_WIRELESS_TOOLS=y
|
||||
BR2_PACKAGE_WPA_SUPPLICANT=y
|
||||
# BR2_PACKAGE_WPA_SUPPLICANT_CLI is not set
|
||||
BR2_PACKAGE_WPA_SUPPLICANT_NL80211=y
|
||||
BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y
|
||||
BR2_PACKAGE_LINUX_FIRMWARE_OPENIPC=y
|
||||
# BR2_PACKAGE_LINUX_FIRMWARE_OPENIPC_MT7601U is not set
|
||||
# BR2_PACKAGE_RTL8188EU is not set
|
||||
BR2_PACKAGE_LINUX_FIRMWARE_OPENIPC_ATHEROS_9271=y
|
||||
BR2_PACKAGE_RTL8812AU_OPENIPC=y
|
||||
|
||||
# FPV
|
||||
BR2_PACKAGE_DATALINK=y
|
||||
BR2_PACKAGE_WIFIBROADCAST=y
|
||||
# BR2_PACKAGE_WFBOPENHD is not set
|
||||
BR2_PACKAGE_MAVLINK_ROUTER=y
|
||||
# BR2_PACKAGE_MAVFWD is not set
|
||||
|
||||
#FFMPEG
|
||||
BR2_PACKAGE_FFMPEG_OPENIPC=y
|
||||
|
||||
|
||||
# ZEROTIER
|
||||
BR2_PACKAGE_ZEROTIER_ONE=y
|
||||
|
||||
# IPTABLES
|
||||
# BR2_PACKAGE_IPTABLES is not set
|
||||
|
||||
# WIREGUARD
|
||||
# BR2_PACKAGE_WIREGUARD_LINUX_COMPAT is not set
|
||||
# BR2_PACKAGE_WIREGUARD_TOOLS is not set
|
||||
|
||||
# DEBUG
|
||||
BR2_PACKAGE_HOST_GDB=y
|
||||
BR2_PACKAGE_GDB=y
|
||||
|
||||
BR2_PACKAGE_ZLIB=y
|
||||
|
||||
# SDL2
|
||||
# BR2_PACKAGE_SDL2 is not set
|
||||
# BR2_PACKAGE_SDL2_IMAGE is not set
|
||||
# BR2_PACKAGE_SDL2_TTF is not set
|
||||
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,35 @@
|
|||
=== original ENV
|
||||
hisilicon # printenv
|
||||
bootcmd=sf probe 0;sf read 0x84000000 0xf60000 0x20000;logoload 0x84000000;decjpg;sf read 0x82000000 0x50000 0x500000;squashfsload 82000000;bootm 0x81000000
|
||||
bootdelay=0
|
||||
baudrate=115200
|
||||
ethaddr=00:0b:3f:00:00:01
|
||||
ipaddr=192.168.1.10
|
||||
serverip=192.168.1.1
|
||||
netmask=255.255.0.0
|
||||
bootfile="uImage"
|
||||
da=mw.b 0x82000000 ff 1000000;tftp 0x82000000 u-boot.bin.img;sf probe 0;flwrite
|
||||
du=mw.b 0x82000000 ff 1000000;tftp 0x82000000 user-x.cramfs.img;sf probe 0;flwrite
|
||||
dr=mw.b 0x82000000 ff 1000000;tftp 0x82000000 romfs-x.cramfs.img;sf probe 0;flwrite
|
||||
dw=mw.b 0x82000000 ff 1000000;tftp 0x82000000 web-x.cramfs.img;sf probe 0;flwrite
|
||||
dl=mw.b 0x82000000 ff 1000000;tftp 0x82000000 logo-x.cramfs.img;sf probe 0;flwrite
|
||||
dc=mw.b 0x82000000 ff 1000000;tftp 0x82000000 custom-x.cramfs.img;sf probe 0;flwrite
|
||||
up=mw.b 0x82000000 ff 1000000;tftp 0x82000000 update.img;sf probe 0;flwrite
|
||||
tk=mw.b 0x82000000 ff 1000000;tftp 0x82000000 zImage.img; bootm 0x82000000
|
||||
dd=mw.b 0x82000000 ff 1000000;tftp 0x82000000 mtd-x.jffs2.img;sf probe 0;flwrite
|
||||
de=mw.b 0x82000000 ff 1000000;tftp 0x82000000 u-boot.env.bin.img;sf probe 0;flwrite
|
||||
jpeg_addr=0x8dc00000
|
||||
jpeg_size=0xb85f9
|
||||
vobuf=0x8dd00000
|
||||
loadlogo=sf probe 0;sf read 0x84000000 0xF60000 0x20000;logoload 0x84000000;decjpg
|
||||
bootargs=mem=139M console=ttyAMA0,115200 root=/dev/mtdblock1 rootfstype=squashfs mtdparts=hi_sfc:320K(boot),3968K(romfs),7040K(usr),1600K(web),2816K(custom),128K(logo),512K(mtd) coherent_pool=2M
|
||||
appVideoStandard=PAL
|
||||
appSystemLanguage=English
|
||||
appCloudExAbility=E7nsOhUNSfs=
|
||||
stdin=serial
|
||||
stdout=serial
|
||||
stderr=serial
|
||||
verify=n
|
||||
ver=U-Boot 2010.06-svn1560 (May 06 2021 - 19:15:51)
|
||||
|
||||
Environment size: 1617/65532 bytes
|
Binary file not shown.
|
@ -0,0 +1,82 @@
|
|||
##IR
|
||||
##Y2 !17
|
||||
##Y1 !6
|
||||
##X2 !13
|
||||
##Y3 !8
|
||||
##X1 !7
|
||||
##ALARM 10
|
||||
##REC 11
|
||||
|
||||
function gpio_setup {
|
||||
if [ ! -e /sys/class/gpio/gpio$1 ]; then
|
||||
echo $1 > /sys/class/gpio/export
|
||||
fi
|
||||
echo $2 > /sys/class/gpio/gpio$1/direction
|
||||
}
|
||||
|
||||
function set_gpio {
|
||||
echo $2 > /sys/class/gpio/gpio$1/value
|
||||
}
|
||||
|
||||
|
||||
function get_gpio {
|
||||
return `cat /sys/class/gpio/gpio${1}/value`
|
||||
}
|
||||
|
||||
#buttons
|
||||
for i in 6 7 8 13 17
|
||||
do
|
||||
gpio_setup $i in
|
||||
done
|
||||
|
||||
#ALARM led
|
||||
gpio_setup 10 out
|
||||
|
||||
while [ true ]
|
||||
do
|
||||
get_gpio 6
|
||||
if [ "$?" -eq 0 ]; then
|
||||
set_gpio 10 1
|
||||
echo 6 >>/tmp/gpio.log
|
||||
#ifdown usb0
|
||||
#ifup usb0
|
||||
/usr/bin/wifibroadcast restart
|
||||
sleep .1
|
||||
set_gpio 10 0
|
||||
fi
|
||||
|
||||
get_gpio 7
|
||||
if [ "$?" -eq 0 ]; then
|
||||
set_gpio 10 1
|
||||
echo 7 >>/tmp/gpio.log
|
||||
ifconfig eth0:1 192.168.11.1
|
||||
sleep .5
|
||||
set_gpio 10 0
|
||||
fi
|
||||
|
||||
get_gpio 8
|
||||
if [ "$?" -eq 0 ]; then
|
||||
set_gpio 10 1
|
||||
echo 8 >>/tmp/gpio.log
|
||||
sleep .5
|
||||
set_gpio 10 0
|
||||
fi
|
||||
|
||||
get_gpio 13
|
||||
if [ "$?" -eq 0 ]; then
|
||||
set_gpio 10 1
|
||||
echo 13 >>/tmp/gpio.log
|
||||
sleep .5
|
||||
set_gpio 10 0
|
||||
fi
|
||||
|
||||
get_gpio 17
|
||||
if [ "$?" -eq 0 ]; then
|
||||
set_gpio 10 1
|
||||
echo 17 >>/tmp/gpio.log
|
||||
sleep .5
|
||||
set_gpio 10 0
|
||||
fi
|
||||
|
||||
sleep .2
|
||||
done
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
ARG="`cat /etc/vdec.conf`"
|
||||
value=${ARG#*mode=}
|
||||
value2=${value%%p60*}
|
||||
if [ $value2 == '720' ]; then
|
||||
sed -i -e 's/mode=720p60/mode=1080p60/g' /etc/vdec.conf
|
||||
elif [ $value2 == '1080' ]; then
|
||||
sed -i -e 's/mode=1080p60/mode=720p60/g' /etc/vdec.conf
|
||||
fi
|
||||
reboot # Please probe this for re-read config: killall -1 vdec
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue