6248
- 收藏
- 点赞
- 分享
- 举报
[已解决]Hi3516a rcS启动脚本
本帖最后由 2272943826 于 2016-10-14 14:20 编辑
Enable the Network on board Kernel
Putty command : configure IP address on interface use iproute2 (ipconfig not available on kernel)
Solution :
1 set up putty network ,
1.1 $ ip link set eth0 up
1.2 $ ip addr add 192.168.1.40/24 dev eth0
1.3 $ ip route add default via 192.168.1.1
1.4 $ ip route show
2 Virtual Box Ubuntu 16.04 terminal:
2.1 $ sudo apt-get install nfs-kernel-server // install software
2.2 $ sudo apt-get install nfs-common
2.3 $ sudo service nfs-kernel-server restart // Start service
2.4 $ sudo service portmap restart
3 Virtual Box Ubuntu 16.04 terminal:
3.1 $ mkdir home/tt/nfs
3.2 $ sudo gedit /etc/exports /home/tt/nfs *(rw,sync,no_root_squash)
4 Putty Mount the NFS by running the following command:
mount -t nfs -o nolock -o tcp -o rsize=32768, wsize=32768 192.168.1.112:/home/tt/nfs /mnt
mount -t nfs -o nolock 192.168.1.112:/home/tt/nfs /mnt
5 Linux SDK/mpp/sample makefile.param
SENSOR_TYPE ?= SONY_IMX178_LVDS_1080P_30FPS //according to your own sensor type.
6 Load the driver
6.1 $ cd mpp/ko ./load3516a -i -sensor imx178 -osmem 64
6.2 $ cd mpp/sample/vio ./sample_vio 0
不想每次restart 都要输入 上面的command,怎么做?
已解决
Method 1 :
Putty Init :
Write the ip address in /etc/init.d/rcS for initiating environment
1 cd /etc/init.d/
2 vi rcS
3
if[];
then
echo
$initscript
ifconfig eth0 hw ether 00:e0:88:37:fa:b1 //please check your board configuration mac address when you're setting up the fastboot
ifconfig eth0 192.168.1.40 netmask 255.255.255.0 //give you Hi3516A board ip address
route add default gw 192.168.1.1
mount -t nfs -o noclock 192.168.1.42:/home/tt/nfs /mnt // 192.168.1.42 my virtual box Ubuntu 16.04 ip address
telnetd&
fi
4 Esc :wq
Method 2 :
1 create a file
/etc/init.d # ls
S00devs S80network S90hibernate
S01udev S82loaddriver rcS
/etc/init.d #
2 /etc/init.d # vi S82loaddriver
#------ Network Setup ------
ifconfig eth0 hw ether 00:e0:88:37:fa:b1
ifconfig eth0 192.168.1.32 netmask 255.255.255.0
route add default gw 192.168.1.1
mount -t nfs -o nolock 192.168.1.33:/home/tt/Hi3516A_SDK_V1.0.5.0/mpp /mnt
telnetd&
# ------ Load Drivers ------
cd ..
cd /mnt/ko/
./load3516a -i -sensor imx178 -osmem 64
# ./load3516a -i -sensor imx178 -osmem 64 -offline
~
~
3 quit the vi S82loaddriver : Esc first then :wq // save your configuration
4 reboot // restart your computer
Enable the Network on board Kernel
Putty command : configure IP address on interface use iproute2 (ipconfig not available on kernel)
Solution :
1 set up putty network ,
1.1 $ ip link set eth0 up
1.2 $ ip addr add 192.168.1.40/24 dev eth0
1.3 $ ip route add default via 192.168.1.1
1.4 $ ip route show
2 Virtual Box Ubuntu 16.04 terminal:
2.1 $ sudo apt-get install nfs-kernel-server // install software
2.2 $ sudo apt-get install nfs-common
2.3 $ sudo service nfs-kernel-server restart // Start service
2.4 $ sudo service portmap restart
3 Virtual Box Ubuntu 16.04 terminal:
3.1 $ mkdir home/tt/nfs
3.2 $ sudo gedit /etc/exports /home/tt/nfs *(rw,sync,no_root_squash)
4 Putty Mount the NFS by running the following command:
mount -t nfs -o nolock -o tcp -o rsize=32768, wsize=32768 192.168.1.112:/home/tt/nfs /mnt
mount -t nfs -o nolock 192.168.1.112:/home/tt/nfs /mnt
5 Linux SDK/mpp/sample makefile.param
SENSOR_TYPE ?= SONY_IMX178_LVDS_1080P_30FPS //according to your own sensor type.
6 Load the driver
6.1 $ cd mpp/ko ./load3516a -i -sensor imx178 -osmem 64
6.2 $ cd mpp/sample/vio ./sample_vio 0
不想每次restart 都要输入 上面的command,怎么做?
已解决
Method 1 :
Putty Init :
Write the ip address in /etc/init.d/rcS for initiating environment
1 cd /etc/init.d/
2 vi rcS
3
if[];
then
echo
$initscript
ifconfig eth0 hw ether 00:e0:88:37:fa:b1 //please check your board configuration mac address when you're setting up the fastboot
ifconfig eth0 192.168.1.40 netmask 255.255.255.0 //give you Hi3516A board ip address
route add default gw 192.168.1.1
mount -t nfs -o noclock 192.168.1.42:/home/tt/nfs /mnt // 192.168.1.42 my virtual box Ubuntu 16.04 ip address
telnetd&
fi
4 Esc :wq
Method 2 :
1 create a file
/etc/init.d # ls
S00devs S80network S90hibernate
S01udev S82loaddriver rcS
/etc/init.d #
2 /etc/init.d # vi S82loaddriver
#------ Network Setup ------
ifconfig eth0 hw ether 00:e0:88:37:fa:b1
ifconfig eth0 192.168.1.32 netmask 255.255.255.0
route add default gw 192.168.1.1
mount -t nfs -o nolock 192.168.1.33:/home/tt/Hi3516A_SDK_V1.0.5.0/mpp /mnt
telnetd&
# ------ Load Drivers ------
cd ..
cd /mnt/ko/
./load3516a -i -sensor imx178 -osmem 64
# ./load3516a -i -sensor imx178 -osmem 64 -offline
~
~
3 quit the vi S82loaddriver : Esc first then :wq // save your configuration
4 reboot // restart your computer
我来回答
回答15个
时间排序
认可量排序
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片![alt](url)
相关问答
-
2022-06-12 03:16:28
-
2023-03-25 15:53:00
-
2016-10-10 14:51:52
-
2016-06-22 18:03:34
-
2017-08-28 22:06:44
-
2016-09-14 12:22:26
-
2017-03-24 15:50:15
-
2016-03-14 17:14:53
-
2016-01-19 10:04:57
-
2022-02-08 10:58:57
-
2017-02-16 21:14:52
-
2015-06-22 16:00:33
-
2016-06-23 23:27:37
-
2017-10-27 22:35:34
-
2016-11-04 09:38:18
-
2015-06-23 09:39:53
-
2017-05-16 09:16:48
-
2019-12-11 16:06:03
-
2016-08-29 11:56:03
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
5Hi3516CV610 如何使用SD卡升级固件
-
5cat /dev/logmpp 报错 <3>[ vi] [func]:vi_send_frame_node [line]:99 [info]:vi pic queue is full!
-
50如何获取vpss chn的图像修改后发送至vo
-
5FPGA通过Bt1120传YUV422数据过来,vi接收不到数据——3516dv500
-
50SS928 运行PQtools 拼接 推到设备里有一半画面会异常
-
53536AV100的sample_vdec输出到CVBS显示
-
10海思板子mpp怎么在vi阶段改变视频数据尺寸
-
10HI3559AV100 多摄像头同步模式
-
9海思ss928单路摄像头vio中加入opencv处理并显示
-
10EB-RV1126-BC-191板子运行自己编码的程序
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认