9952
- 收藏
- 点赞
- 分享
- 举报
hi3516a+178 load3516a加载错误问题
本帖最后由 24kshanji 于 2017-4-5 21:29 编辑
首先,说一下硬件环境,硬件买的是这种,hi3516a+178,16M spi flash,256M 内存 淘宝链接如下https://item.taobao.com/item.htm?spm=a1z09.2.0.0.X2Lsug&id=524104785734&_u=5q2qfhb8bac(后悔当初没有买开发板,哎),商家基本啥都没提供,全是自己一把鼻涕一把泪找到sdk,现在用的是Hi3516A_V100R001C01SPC060,电脑是win7 64位系统,虚拟机安装的是ubuntu12.04
问题主要就是load3516a一运行就会卡死,刚开始以为内存没又正确分配,重新分配内存后,还是卡死。load3516a内存分配如下
####################Variables Definition##########################
SNS_TYPE=imx178 # sensor type
mem_total=256; # 512M, total mem
mem_start=0x80000000; # phy mem start
os_mem_size=128; # 64M, os mem
mmz_start=0x88000000; # mmz start addr
mmz_size=128M; # 128M, mmz size
##################################################################
内核和uboot用的是淘宝店家的,只是自己下载了新的文件系统(之所以不挂载使用是因为学校的校园网下虚拟机和单板怎么都ping不通),在uboot里边输入printenv,输出信息如下
hisilicon # printenv
bootdelay=1
baudrate=115200
ethaddr=00:00:23:34:45:66
bootfile="uImage"
filesize=B2AED8
fileaddr=82000000
netmask=255.255.255.0
ipaddr=192.168.55.116
serverip=192.168.55.51
bootcmd=sf probe 0;sf read 0x82000000 0x80000 0x280000;bootm 0x82000000
bootargs=mem=128M console=ttyAMA0,115200 root=/dev/mtdblock1 rootfstype=jffs2 mtdparts=hi_sfc:3M(boot),13M(rootfs)
configFlag=ok
cpuFlag=okb
cpuType=3516a
sensorFlag=no
sensorType=66
stdin=serial
stdout=serial
stderr=serial
verify=n
ver=U-Boot 2010.06 (Aug 26 2015 - 12:47:59)
mdio_intf=rmii
hisicpu=hi3516a
测试了很久,用了各种方法,几乎看完了有关hi3516a的所有帖子,可是还是解决不了,但是有以一些进展,直接运行/123/ko # ./load3516a -a -sensor imx178 -osmem 128,会卡死如下
123/ko # ./load3516a -a -sensor imx178 -osmem 64
mmz_start: 0x84000000, mmz_size: 448M
rmmod: can't unload 'hi3516a_adec': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_aenc': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_ao': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_ai': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_aio': unknown symbol in module, or unknown parameter
rmmod: can't unload 'acodec': unknown symbol in module, or unknown parameter
remove audio
rmmod: can't unload 'pwm': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_ive': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_vda': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_rc': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_jpege': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_h264e': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_h265e': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_chnl': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_venc': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hifb': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_vou': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_vpss': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_viu': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi_mipi': unknown symbol in module, or unknown parameter
rmmod: can't unload 'ssp_ad9020': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_vgs': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_region': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_tde': unknown symbol in module, or unknown parameter
rmmod: can't unload 'sensor_i2c': unknown symbol in module, or unknown parameter
rmmod: can't unload 'piris': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_isp': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_sys': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_base': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi_media': unknown symbol in module, or unknown parameter
rmmod: can't unload 'mmz': unknown symbol in module, or unknown parameter
看了网友说的,说将load3516a的insmod extdrv/sil9024.ko norm=12屏蔽掉后,会有反应,尝试了没放应,后来逐条代码分析,发现load3516a卡死是因为sys_config卡死,再研究sys_config发现是因为前两句执行不了,屏蔽掉发现load3516a可以执行了,但是执行一个例层还是有问题(例层应该是没问题的,所以感觉sys_config()这几条很重要,是设置引脚,时钟的,不能屏蔽),所以现在困在这里了,不知道该怎么做,请各路大神指教,
sys_config()
{
# pinmux configuration
sh pinmux_hi3516a.sh > /dev/null
# clock configuration
sh clkcfg_hi3516a.sh > /dev/null
# system configuration
sh sysctl_hi3516a.sh $b_arg_online > /dev/null
}
insert_ko()
{
# sys config
sys_config;
# driver load
insmod mmz.ko mmz=anonymous,0,$mmz_start,$mmz_size anony=1 || report_error
insmod hi_media.ko
insmod hi3516a_base.ko
insmod hi3516a_sys.ko vi_vpss_online=$b_arg_online sensor=$SNS_TYPE
if [[ $? -ne 0 ]]; then
exit;
fi
insmod hi3516a_tde.ko
insmod hi3516a_region.ko
insmod hi3516a_vgs.ko
insmod hi3516a_isp.ko
insmod hi3516a_viu.ko detect_err_frame=10;
insmod hi3516a_vpss.ko
insmod hi3516a_vou.ko lowPowerMode=0
#insmod hi3516a_vou.ko detectCycle=0 #close dac detect
insmod hifb.ko video="hifb:vram0_size:1620" # default pal
insmod hi3516a_rc.ko
insmod hi3516a_venc.ko
insmod hi3516a_chnl.ko
insmod hi3516a_h264e.ko
insmod hi3516a_h265e.ko
insmod hi3516a_jpege.ko
insmod hi3516a_vda.ko
insmod hi3516a_ive.ko
insmod extdrv/sensor_i2c.ko
insmod extdrv/pwm.ko
insmod extdrv/piris.ko
#insmod extdrv/adv_7441.ko
insmod extdrv/sil9024.ko norm=12 #1080P@30fps
echo "==== Your input Sensor type is $SNS_TYPE ===="
#insert_sns > /dev/null
insert_sns
insert_audio
echo "==== Your input Sensor type is $SNS_TYPE ===="
insmod hi_mipi.ko
#insmod hi3516a_pm.ko
}
首先,说一下硬件环境,硬件买的是这种,hi3516a+178,16M spi flash,256M 内存 淘宝链接如下https://item.taobao.com/item.htm?spm=a1z09.2.0.0.X2Lsug&id=524104785734&_u=5q2qfhb8bac(后悔当初没有买开发板,哎),商家基本啥都没提供,全是自己一把鼻涕一把泪找到sdk,现在用的是Hi3516A_V100R001C01SPC060,电脑是win7 64位系统,虚拟机安装的是ubuntu12.04
问题主要就是load3516a一运行就会卡死,刚开始以为内存没又正确分配,重新分配内存后,还是卡死。load3516a内存分配如下
####################Variables Definition##########################
SNS_TYPE=imx178 # sensor type
mem_total=256; # 512M, total mem
mem_start=0x80000000; # phy mem start
os_mem_size=128; # 64M, os mem
mmz_start=0x88000000; # mmz start addr
mmz_size=128M; # 128M, mmz size
##################################################################
内核和uboot用的是淘宝店家的,只是自己下载了新的文件系统(之所以不挂载使用是因为学校的校园网下虚拟机和单板怎么都ping不通),在uboot里边输入printenv,输出信息如下
hisilicon # printenv
bootdelay=1
baudrate=115200
ethaddr=00:00:23:34:45:66
bootfile="uImage"
filesize=B2AED8
fileaddr=82000000
netmask=255.255.255.0
ipaddr=192.168.55.116
serverip=192.168.55.51
bootcmd=sf probe 0;sf read 0x82000000 0x80000 0x280000;bootm 0x82000000
bootargs=mem=128M console=ttyAMA0,115200 root=/dev/mtdblock1 rootfstype=jffs2 mtdparts=hi_sfc:3M(boot),13M(rootfs)
configFlag=ok
cpuFlag=okb
cpuType=3516a
sensorFlag=no
sensorType=66
stdin=serial
stdout=serial
stderr=serial
verify=n
ver=U-Boot 2010.06 (Aug 26 2015 - 12:47:59)
mdio_intf=rmii
hisicpu=hi3516a
测试了很久,用了各种方法,几乎看完了有关hi3516a的所有帖子,可是还是解决不了,但是有以一些进展,直接运行/123/ko # ./load3516a -a -sensor imx178 -osmem 128,会卡死如下
123/ko # ./load3516a -a -sensor imx178 -osmem 64
mmz_start: 0x84000000, mmz_size: 448M
rmmod: can't unload 'hi3516a_adec': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_aenc': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_ao': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_ai': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_aio': unknown symbol in module, or unknown parameter
rmmod: can't unload 'acodec': unknown symbol in module, or unknown parameter
remove audio
rmmod: can't unload 'pwm': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_ive': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_vda': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_rc': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_jpege': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_h264e': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_h265e': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_chnl': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_venc': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hifb': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_vou': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_vpss': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_viu': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi_mipi': unknown symbol in module, or unknown parameter
rmmod: can't unload 'ssp_ad9020': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_vgs': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_region': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_tde': unknown symbol in module, or unknown parameter
rmmod: can't unload 'sensor_i2c': unknown symbol in module, or unknown parameter
rmmod: can't unload 'piris': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_isp': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_sys': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_base': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi_media': unknown symbol in module, or unknown parameter
rmmod: can't unload 'mmz': unknown symbol in module, or unknown parameter
看了网友说的,说将load3516a的insmod extdrv/sil9024.ko norm=12屏蔽掉后,会有反应,尝试了没放应,后来逐条代码分析,发现load3516a卡死是因为sys_config卡死,再研究sys_config发现是因为前两句执行不了,屏蔽掉发现load3516a可以执行了,但是执行一个例层还是有问题(例层应该是没问题的,所以感觉sys_config()这几条很重要,是设置引脚,时钟的,不能屏蔽),所以现在困在这里了,不知道该怎么做,请各路大神指教,
sys_config()
{
# pinmux configuration
sh pinmux_hi3516a.sh > /dev/null
# clock configuration
sh clkcfg_hi3516a.sh > /dev/null
# system configuration
sh sysctl_hi3516a.sh $b_arg_online > /dev/null
}
insert_ko()
{
# sys config
sys_config;
# driver load
insmod mmz.ko mmz=anonymous,0,$mmz_start,$mmz_size anony=1 || report_error
insmod hi_media.ko
insmod hi3516a_base.ko
insmod hi3516a_sys.ko vi_vpss_online=$b_arg_online sensor=$SNS_TYPE
if [[ $? -ne 0 ]]; then
exit;
fi
insmod hi3516a_tde.ko
insmod hi3516a_region.ko
insmod hi3516a_vgs.ko
insmod hi3516a_isp.ko
insmod hi3516a_viu.ko detect_err_frame=10;
insmod hi3516a_vpss.ko
insmod hi3516a_vou.ko lowPowerMode=0
#insmod hi3516a_vou.ko detectCycle=0 #close dac detect
insmod hifb.ko video="hifb:vram0_size:1620" # default pal
insmod hi3516a_rc.ko
insmod hi3516a_venc.ko
insmod hi3516a_chnl.ko
insmod hi3516a_h264e.ko
insmod hi3516a_h265e.ko
insmod hi3516a_jpege.ko
insmod hi3516a_vda.ko
insmod hi3516a_ive.ko
insmod extdrv/sensor_i2c.ko
insmod extdrv/pwm.ko
insmod extdrv/piris.ko
#insmod extdrv/adv_7441.ko
insmod extdrv/sil9024.ko norm=12 #1080P@30fps
echo "==== Your input Sensor type is $SNS_TYPE ===="
#insert_sns > /dev/null
insert_sns
insert_audio
echo "==== Your input Sensor type is $SNS_TYPE ===="
insmod hi_mipi.ko
#insmod hi3516a_pm.ko
}
我来回答
回答9个
时间排序
认可量排序
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片![alt](url)
相关问答
-
2017-03-24 21:31:49
-
2017-03-09 12:14:00
-
2015-12-07 14:49:03
-
2016-09-13 15:53:08
-
2016-05-17 20:42:57
-
2016-06-15 14:54:55
-
2015-06-16 15:17:10
-
2015-11-27 10:12:09
-
2015-11-16 12:08:41
-
2018-03-14 14:18:49
-
2016-07-08 11:28:46
-
142017-10-27 11:19:22
-
2017-01-11 11:11:14
-
2017-02-08 09:32:44
-
122017-07-12 11:05:27
-
2015-07-06 19:04:37
-
2013-05-07 14:03:01
-
2013-08-17 09:01:24
-
2015-05-10 19:22:27
无更多相似问答 去提问
点击登录
-- 积分
-- 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币)
取消
确认