查看: 294|回复: 8

[求助] 请问一下如何把35系列的sample跑起来?

[复制链接]
发表于 2019-5-15 14:21:56 | 显示全部楼层 |阅读模式
本帖最后由 qn1557475453 于 2019-5-15 14:23 编辑

海思小白一枚,目前是搭好了环境(3516d的产品板,暂时没有搭输出设备),但是无论如何跑不起来sample,也没有找到如何跑sample的readme,更不用说把自己的东西放上来。恳请各位指教一下基本操作。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2019-5-15 14:46:40 | 显示全部楼层
看上去像没有加载海思的驱动
 楼主| 发表于 2019-5-15 16:03:49 | 显示全部楼层
zhuangweiye 发表于 2019-5-15 14:46
看上去像没有加载海思的驱动

哦我加载了但是一直卡死了,请问这是怎么回事?

/tmp/mpp/ko # ./load3516dv300 -i -sensor0 imx327
mmz_start: 0x88000000, mmz_size: 384M
sys_config: loading out-of-tree module taints kernel.

==========chip: hi3516dv300==========
==========sensor0: imx327==========

==========sensor1: NULL==========FUNC:parse_sensor_clock line:184  SNS:[NULL] is not supported !
FUNC:parse_sensor_bus_type line:144  SNS:[NULL] is not supported !
Module himedia: init ok
Hisilicon Media Memory Zone Manager
ERROR: Conflict MMZ:
PHYS(0x88000000, 0x9FFFFFFF), GFP=0, nBYTES=393216KB,    NAME="anonymous"
MMZ conflict to kernel memory (0x80000000, 0x9FFFFFFF)
Add MMZ failed: PHYS(0x88000000, 0x9FFFFFFF), GFP=0, nBYTES=393216KB,    NAME5"anonymous"
hi_osal 1.0 init success!
hi3516cv500_base: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
malloc buffer for SYS sclcoeffset fail!
load sys.ko for Hi3516CV500...FAILURE!
hi35xx_sys: probe of 12010000.sys failed with error -1
load tde.ko for Hi3516CV500...FAILED!
hi35xx_tde: probe of 11210000.tde failed with error -1
Unable to handle kernel NULL pointer dereference at virtual address 0000000c
pgd = dde00000
[0000000c] *pgd=9dde8835, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1] SMP ARM
Modules linked in: hi3516cv500_rgn(PO+) hi3516cv500_tde(PO) hi3516cv500_sys(PO) hi3516cv500_base(PO) hi_osal(O) sys_config(O)
CPU: 0 PID: 162 Comm: insmod Tainted: P           O    4.9.37 #1
Hardware name: Generic DT based system
task: de7fc900 task.stack: ddc56000
PC is at RGN_Init+0x44/0x7c [hi3516cv500_rgn]
LR is at RGN_Init+0x44/0x7c [hi3516cv500_rgn]
pc : [<bf09aa90>]    lr : [<bf09aa90>]    psr: 60070013
sp : ddc57dd0  ip : 1e393000  fp : 00000024
r10: 00000000  r9 : bf09ed00  r8 : 00000000
r7 : ddd4ec40  r6 : bf09ec14  r5 : bf09ec10  r4 : 00000000
r3 : bf02e910  r2 2 bf02e910  r1 : bf02e910  r0 : 00000000
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
Control: 10c5387d  Table: 9de0006a  DAC: 00000051
Process insmod (pid: 162$ stack limit = 0xddc56210)
Stack: (0xddc57dd0 to 0xddc58000)
7dc0:                                     bf02e910 bf09ec84 bf09ec14 bf0285b4
7de0: bf0a0a98 00000000 bf09ec14 bf09ab58 bf0a4000 ffffe000 ddd4e580 bf0a4008
7e00: bf0a4000 c010173c 00000001 de4c5064 de4bd000 bf09ed48 de77a018 bf09ed48
7e20: 00000000 ddc7e180 de4f5000 e0becfff defaa860 c092cac0 0009dcc3 c092cac0
7e40: 00000000 00000000 00000000 c019a888 bf09ed00 00000001 bf09ed00 00000001
7e60: ddd4e580 ddd4ec40 00000001 c01928c4 bf09ed00 ddc57f44 00000001 ddc57f44
7e80: 00000001 ddd4e580 ddd4e5a4 c0184fe8 bf09ed0c 00007fff bf09ed00 c01829dc
7ea0: bf09ed48 00000028 000fc008 e0beb918 bf09ed0c c0601c9c c06b96d4 c06b9738
7ec0: c06b96e0 bf09ee64 de7e6a80 c01c6368 0000001b ddd4ec40 de7e6a80 00000000
7ee0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
7f00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0000a990
7f20: 001169e8 00000000 e0beb990 ddc56000 000fc008 00000051 00000000 c018572c
7f40: de1115b8 e0bd1000 0001a990 e0beb490 e0beb348 e0be41e4 00011aa0 00012d90
7f60: 00000000 00000000 00000000 00004b9c 0000001d 0000001e 00000015 00000000
7f80: 00000011 00000000 0001a990 beba4f2e 00000002 00000080 c01075e8 ddc56000
7fa0: 00000000 c0107400 0001a990 beba4f2e 000fc058 0001a990 000fc008 beba4f2e
7fc0: 0001a990 beba4f2e 00000002 00000080 00000000 00000000 b6f5d000 00000000
7fe0: beba4c88 beba4c78 00031db4 b6e35400 60070010 000fc058 9eff6861 9eff6c61
[<bf09aa90>] (RGN_Init [hi3516cv500_rgn]) from [<bf0285b4>] (CMPI_RegisterModule+0xa4/0x1e0 [hi3516cv500_base])
[<bf0285b4>] (CMPI_RegisterModule [hi3516cv500_base]) from [<bf09ab58>] (RGN_ModInit+0x78/0x1b8 [hi3516cv500_rgn])
[<bf09ab58>] (RGN_MolInit [hi3516cv500_rgn]! from [<bf0a4008>] (rgn_mod_init+0x8/0x10 [hi3516cv500_rgn])
[<bf0a4008>] (rgn_mod_init [hi3516cv500_rgn]) from [<c010173c>] (do_one_initcall+0x44/0x16c)
[<c010173c>] (do_one_initcall) from [<c01928c4>] (do_init_module+0x60/0x37c)
[<c01928c4>] (do_init_module) from [<c0184fe8>] (load_module+0x19ec/0x1fdc)
[<c0184fe8>] (load_module) from [<c018572c>] (SyS_init_module+0x154/0x16c)
[<c018572c>] (SyS_init_module) from [<c0107400>] (ret_fast_syscall+0x0/0x3c)
Code: e8bd8070 e3a00002 e5854000 ebfe361e (e590300c)
---[ end trace b9994bd0e02a8f8f ]---
Segmentation fault
osal_wait_destory - wait->wait is NULL!
load gdc.ko for Hi3516CV500...FAILURE!
Regist vgs module err!
load vgs.ko for Hi3516CV500...err!
------------[ cut here ]------------
WARNING: CPU: 0 PID: 166 at mm/vmalloc.c:1500 DIS_DrvCommDeInit+0x50/0x90 [hi3516cv500_dis]
Trying to vfree() nonexistent vm area (e0a29000)
Modules linked in: hi3516cv500_dis(PO+) hi3516cv500_vgs(PO) hi3516cv500_gdc(PO) hi3516cv500_rgn(PO+) hi3516cv500_tde(PO) hi3516cv500_sys(PO) hi3516cv500_base(PO) hi_osal(O) {ys_config(O)
CPU: 0 PID: 166 Comm: insmod Tainted: P      D    O    4.9.37 #1
Hardware name: Generic DT based system
[<c010f270>] (unwind_backtrace) from [<c010b3d8>] (show_stack+0x10/0x14)
[<c010b3d8>] (show_stack) from [<c02fbb3c>] (dump_stack+0x84/0x98)
[4c02fbb3c>] (dump_stack! from [<c0118000>] (__warn+0xe8/0x100)
[<c0118000>] (__warn) from [<c0118050>] (warn_slowpath_fmt+0x38/0x48)
[<c0118050>] (warn_slowpath_fmt) from [<bf10b5b4>] (DIS_DrvCommDeInit+0x50/0x90 [hi3516cv500_dis])
[<bf10b5b4>] (DIS_DrvCommDeInit [hi3516cv500_dis]) from [<bf10b6ec>] (DIS_DrvCommOpen+0xf8/0x220 [hi3516cv500_dis])
[<bf10b6ec>] (DIS_DrvCommOpen [hi3516cv500_dis]) from [<bf106534>] (DIS_Init+0x5c/0xec [hi3516cv500_dis])
[<bf106534>] (DIS_Init [hi3516cv500_dis]) from [<bf0285b4>] (CMPI_RegisterModule+0xa4/0x1e0 [hi3516cv500_base])
[<bf0285b4>] (CMPI_RegisterModule [hi3516cv500_base]) from [<bf10a07c>] (DIS_ModInit+0x10/0x198 [hi3516cv500_dis])
[<bf10a07c>] (DIS_ModInit [hi3516cv500_dis]) from [<c010173c>] (do_one_initcall+0x44/0x16c)
[<c010173c>] (do_one_initcall) from [<c01928c4>] (do_init_module+0x60/0x37c)
[<c01928c4>] (do_init_module) from [<c0184fe8>] (load_module+0x19ec/0x1fdc)
[<c0184fe8>] (load_module) from [<c018572c>] (SyS_init_module+0x154/0x16c)
[<c018572c>] (SyS_init_module) from [<c0107400>] (ret_fast_syscall+0x0/0x3c)
---[ end trace b9994bd0e02a8f90 ]---
load dis.ko ....fail!
in{mod: can't insert 'hi3516cv500_dis.ko': Operation not permitted
Unable to handle kernel NULL pointer dereference at virtual address 00000014
pgd = ddcd0000
[00000014] *pgd=9de63835, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#2] SMP ARM
Modules linked in: hi3516cv500_vi(PO+) hi3516cv500_vgs(PO) hi3516cv500_gdc(PO) hi3516cv500_rgn(PO+) hi3516cv500_tde(PO) hi3516cv500_sys(PO) hi3516cv500_base(PO) hi_osal(O) sys_config(O)
CPU: 0 PID: 167 Comm: insmod Tainted: P      D W  O    4.9.37 #1
Hardware name: Generic DT based system
task: de7fe880 task.stack: ddd70000
PC is at VI_DRV_BusReset+0x28/0x3c [hi3516cv500_vi]
LR is at VI_DRV_BusReset+0x20/0x3c [hi3516cv500_vi]
pc : [<bf14a544>]    lr : [<bf14a53c>]    psr: 60070013
sp : ddd71cc0  ip : de7e6130  fp : 00000024
r10: 00000000  r9 : bf178940  r8 : 00000009
r7 : 00000000  r6 : 00000000  r5 : 00000000  r4 2 bf179f98
r3 : bf02e910  r2 : ddd71cc4  r1 : 0000002c  r0 : 00000000
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
Control: 10c5387d  Tabde: 9dcd006a  DAC: 00000051
Process insmod (pid: 167, stack limit = 0xddd70210)
Stack: (0xddd71cc0 to 0xddd72000)
1cc0: 00000000 00000001 00000000 00000010 00000000 00000000 00000024 bf14a984
1ce0: bf179f98 00000000 bf179f9c bf13ac88 bf179f98 bf163a1c dddcc080 bf17878c
1d00: bf178800 00000000 fffffdfb bf13ad58 00000009 bf007c2c bf17878c bf12abd4
1d20: bf17878c bf12514c 00000000 fffffdfb bf02e910 bf0285b4 bf178ac0 bf178790
1d402 00000000 bf126210 de520800 de520810 bf1788d0 bf161320 c0700330 435f4956
1d60: 00305041 495688d0 4f52505f 00003043 bf178940 de520810 ffffffed c036b4a0
1d80: c896bb74 de520810 bf1788d0 00000000 00000009 c0369cbc de520810 bf1788d0
1da0: de520844 00000000 00000000 c0369e20 00000000 bf1788d0 c0369d68 c0368098
1dc0: de42a05c de4b2334 bf1788d0 de7e3780 c0916a48 c0369130 bf175ef0 00000000
1de0: bf1788d0 bf1788d0 ffffe000 ddc573c0 ddc57f80 c036a548 bf19e000 ffffe000
1e00: ddc573c0 c010173c 00000001 de4c5064 de4bd000 bf178988 de4cd018 bf178988
1e20: 00000000 ddc7b000 de4f5000 e0e8bfff defaf200 c092cac0 0009df10 c092cac0
1e40: 00000000 00000000 00000000 c019a888 bf178940 00000001 bf178940 00000001
1e60: ddc573c0 ddc57f80 00000001 c01928c4 bf178940 ddd71f44 00000001 ddd71f44
1e80: 00000001 ddc573c0 ddc573e4 c0184fe8 bf17894c 00007fff bf178940 c01829dc
1ea0: bf178988 00000028 000fc008 e0e8a8ac bf17894c c0601c9c c06b96d4 c06b9738
1ec0: c06b96e0 bf178aa4 e0e01000 b6cf8028 0000ff60 464c457f 00010101 00000000
1ee0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1f00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00009924
1f20: b6d8192c 00000000 e0e8a924 ddd70000 000fc008 00000051 00000000 c018572c
1f40: de110658 e0e01000 00089924 e0e8a424 e0e8a2dc e0e65b80 00067694 0006fbb4
1f60: 00000000 00000000 00000000 0001ae30 0000001d 0000001e 00000015 00000000
1f80: 00000011 00000000 00089924 becdef2f 00000002 00000080 c01075e8 ddd70000
1fa0: 00000000 c0107400 00089924 becdef2f b6cf8008 00089924 000fc008 becdef2f
1fc0: 00089924 becdef2f 00000002 00000080 00000000 00000000 b6f7a000 00000000
1fe0: becdec88 becdec78 00031db4 b6e52400 60070010 b6cf8008 00000000 00000000
[<bf14a544>] (VI_DRV_BusReset [hi3516cv500_vi]) from [<bf14a984>] (VI_DRV_CapClkResetInit+0x10/0xe0 [hi3516cv500_vi])
[<bf14a984>] (VI_DRV_CapClkResetInit [hi3516cv500_vi]) from [<bf13ac88>] (VI_CAP_COMM_PerDevInit+0x7c/0x100 [hi3516cv500_vi])
[<bf13ac88>] (VI_CAP_COMM_PerDevInit [hi3516cv500_vi]) from [<bf13ad58>] (VI_CAP_COMM_DevInit+0x18/0x58 [hi3516cv500_vi])
[<bf13ad58>] (VI_CAP_COMM_DevInit [hi3516cv500_vi]) from [<bf12abd4>] (VI_CAP_Init+0x10/0x28 [hi3516cv500_vi])
[<bf12abd<>] (VI_CAP_Init [hi3516cv500_vi]) from [<bf12514c>] (VI_Init+0x28/0x60 [hi3516cv500_vi])
[<bf12514c>] (VI_Init [hi3516cv500_vi]) from [<bf0285b4>] (CMPI_RegisterModule+0xa4/0x1e0 [hi3516cv500_base])
[4bf0285b4>] (CMPI_RegisterModule [hi3516cv500_base]) from [<bf126210>] (VI_ModInit+0xac/0x180 [hi3516cv500_vi])
[<bf126210>] (VI_ModInit [hi3516cv500_vi]) from [<bf161320>] (hi35xx_vi_probe+0pe4/0x12c [hi3516cv500_vi])
[<bf161320>] (hi35xx_vi_probe [hi3516cv500_vi]) from [<c036b4a0>] (platform_drv_probe+0x50/0xb0)
[<c036b4a8>] (platform_drv_probe) from [<c0369cbc>] (draver_probe_device+0x204/0x2b0)
[<c0369cbc>] (driver_probe_device) from [<c0369e20>] (__driver_attach+0xb8/0xbc)
[<c0369e20>] (__driver_attach) from [<c0368098>] (bus_for_each_dev+0x68/0x9c)
[<c0368098>] (bus_for_each_dev) from [<c0369130>] (bus_add_driver+0x108/0x214)
[<c0369130>] (bus_add_driver) from [<c036a548>] (driver_register+0x78/0xf4)
[<c036a548>] (driver_register) from [<c010173c>] (do_one_initcall+0x44/0x16c)
[<c010173c>] (do_one_initcall) from [<c01928c4>] (do_init_module+0x60/0x37c)
[<c01928c4>] (do_init_module) from [<c0184fe8>] (load_module+0x19ec/0x1fdc)
[<c0184fe8>] (load_module) from [<c018572c>] (SyS_init_module+0x154/0x16c)
[<c018572c>] (SyS_init_module) from [<c0107400>] (ret_fast_syscall+0x0/0x3c)
Code: e58d300c ebfb7773 e28d2004 e3a0102c (e5903014)
---[ end trace b9994bd0e02a8f91(]---
Segmentation fault
发表于 2019-5-15 17:00:34 | 显示全部楼层
qn1557475453 发表于 2019-5-15 16:03
哦我加载了但是一直卡死了,请问这是怎么回事?

/tmp/mpp/ko # ./load3516dv300 -i -sensor0 imx327

错误都写得很清楚了
"ERROR: Conflict MMZ:
PHYS(0x88000000, 0x9FFFFFFF), GFP=0, nBYTES=393216KB,    NAME="anonymous"
MMZ conflict to kernel memory (0x80000000, 0x9FFFFFFF)
Add MMZ failed: PHYS(0x88000000, 0x9FFFFFFF), GFP=0, nBYTES=393216KB,    NAME5"anonymous" "

MMZ和OS使用的内存冲突了
 楼主| 发表于 2019-5-15 17:38:56 | 显示全部楼层
zhuangweiye 发表于 2019-5-15 17:00
错误都写得很清楚了
"ERROR: Conflict MMZ:
PHYS(0x88000000, 0x9FFFFFFF), GFP=0, nBYTES=393216KB,   ...


是因为内存设置过大了吗?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2019-5-15 17:41:37 | 显示全部楼层
qn1557475453 发表于 2019-5-15 17:38
是因为内存设置过大了吗?

要看bootargs中设了linux用多少, MMZ要根据那个相应修改,或者反过来
 楼主| 发表于 2019-5-15 17:54:56 | 显示全部楼层
zhuangweiye 发表于 2019-5-15 17:41
要看bootargs中设了linux用多少, MMZ要根据那个相应修改,或者反过来

谢谢,我看一下文档怎么操作,好像我还没有进行uboot烧写
发表于 2019-5-16 15:18:26 | 显示全部楼层
你可以在kernel下command,看bootargs设定中mem=多少
  1. cat /proc/cmdline
复制代码
 楼主| 发表于 2019-5-16 16:50:45 | 显示全部楼层
qn1534489079 发表于 2019-5-16 15:18
你可以在kernel下command,看bootargs设定中mem=多少

我不是很清楚怎么进入uboot查看bootargs……不过我还是找供应商问了一下改了参数跑通了,而且mmz的起始地址也要改变,这个应该其他地方没法查看吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则

© 2008-2017 当前位置 易百纳技术社区论坛 返回 易百纳技术社区 ( 苏ICP备14036084 )   Powered by Discuz! X3.1
快速回复 返回顶部 返回列表