gk7205V200
git分支名称:tz_ipc
编译0:
k2@k2-lubuntu:~/work1/gk7205/demo/GKIPCLinuxV100R001C00SPC030$ make build -j16
编译1:
k2@k2-lubuntu:~/work1/gk7205/demo/GKIPCLinuxV100R001C00SPC030 cd ..
k2@k2-lubuntu:~/work1/gk7205/demo make
编译2:
进入fw/app 目录中,执行 ./mkapp 指令。
k2@k2-lubuntu:~/work1/gk7205/demo/GKIPCLinuxV100R001C00SPC030_Porting/fw/app$ ./mkapp
生成 netcamera_v1.0.0.2_240918.fw 和 netcamera_v1.0.0.2_240918_md5.fw 用于给设备刷机。
VLC,视频预览地址:
rtsp://192.168.0.150:8554/netcamera
如何烧写项目到设备上?
k2@k2-lubuntu:~/work1/gk7205/demo/GKIPCLinuxV100R001C00SPC030 cd ..
k2@k2-lubuntu:~/work1/gk7205/demo make clean
k2@k2-lubuntu:~/work1/gk7205/demo/GKIPCLinuxV100R001C00SPC030_Porting/sample/rtspser_v1.0.0.0_n7$ make
GPIO1_5
8+5=13
include "./rtsp/rtsp.h"
else
BT1120(DM8600)
echo 2 > /sys/class/gpio/export #GPIO0_2 ,复位
echo out > /sys/class/gpio/gpio2/direction
echo 54 > /sys/class/gpio/export #GPIO6_6 ,new复位
echo in > /sys/class/gpio/gpio54/direction
echo 0 > /sys/class/gpio/gpio54/value
fi
fi
include <linux/gpio.h>
gpio_num = GPIO组号 * 8 + 组内偏移号,例如GPIO4_2的编号为4 * 8 + 2 = 34.
gpio_request(unsigned gpio, const char *label) 注册GPIO
gpio_direction_output(unsigned gpio, int value) 设置GPIO方向为输出
gpio_set_value(unsigned gpio, int arg) 设置GPIO值。