qn1557475453

qn1557475453

0个粉丝

1

问答

0

专栏

0

资料

qn1557475453  发布于  2019-05-15 14:21:56
采纳率 0%
1个问答
3235

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

 
本帖最后由 qn1557475453 于 2019-5-15 14:23 编辑

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

zhuangweiye

8个粉丝

0

问答

0

专栏

0

资料

zhuangweiye 2019-05-15 14:46:40
认可0
看上去像没有加载海思的驱动

qn1557475453

0个粉丝

1

问答

0

专栏

0

资料

qn1557475453 2019-05-15 16:03:49
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=143188&ptid=74617]zhuangweiye 发表于 2019-5-15 14:46[/url]
看上去像没有加载海思的驱动[/quote]

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

/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 : []    lr : []    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
[] (RGN_Init [hi3516cv500_rgn]) from [] (CMPI_RegisterModule+0xa4/0x1e0 [hi3516cv500_base])
[] (CMPI_RegisterModule [hi3516cv500_base]) from [] (RGN_ModInit+0x78/0x1b8 [hi3516cv500_rgn])
[] (RGN_MolInit [hi3516cv500_rgn]! from [] (rgn_mod_init+0x8/0x10 [hi3516cv500_rgn])
[] (rgn_mod_init [hi3516cv500_rgn]) from [] (do_one_initcall+0x44/0x16c)
[] (do_one_initcall) from [] (do_init_module+0x60/0x37c)
[] (do_init_module) from [] (load_module+0x19ec/0x1fdc)
[] (load_module) from [] (SyS_init_module+0x154/0x16c)
[] (SyS_init_module) from [] (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
[] (unwind_backtrace) from [] (show_stack+0x10/0x14)
[] (show_stack) from [] (dump_stack+0x84/0x98)
[4c02fbb3c>] (dump_stack! from [] (__warn+0xe8/0x100)
[] (__warn) from [] (warn_slowpath_fmt+0x38/0x48)
[] (warn_slowpath_fmt) from [] (DIS_DrvCommDeInit+0x50/0x90 [hi3516cv500_dis])
[] (DIS_DrvCommDeInit [hi3516cv500_dis]) from [] (DIS_DrvCommOpen+0xf8/0x220 [hi3516cv500_dis])
[] (DIS_DrvCommOpen [hi3516cv500_dis]) from [] (DIS_Init+0x5c/0xec [hi3516cv500_dis])
[] (DIS_Init [hi3516cv500_dis]) from [] (CMPI_RegisterModule+0xa4/0x1e0 [hi3516cv500_base])
[] (CMPI_RegisterModule [hi3516cv500_base]) from [] (DIS_ModInit+0x10/0x198 [hi3516cv500_dis])
[] (DIS_ModInit [hi3516cv500_dis]) from [] (do_one_initcall+0x44/0x16c)
[] (do_one_initcall) from [] (do_init_module+0x60/0x37c)
[] (do_init_module) from [] (load_module+0x19ec/0x1fdc)
[] (load_module) from [] (SyS_init_module+0x154/0x16c)
[] (SyS_init_module) from [] (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 : []    lr : []    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
[] (VI_DRV_BusReset [hi3516cv500_vi]) from [] (VI_DRV_CapClkResetInit+0x10/0xe0 [hi3516cv500_vi])
[] (VI_DRV_CapClkResetInit [hi3516cv500_vi]) from [] (VI_CAP_COMM_PerDevInit+0x7c/0x100 [hi3516cv500_vi])
[] (VI_CAP_COMM_PerDevInit [hi3516cv500_vi]) from [] (VI_CAP_COMM_DevInit+0x18/0x58 [hi3516cv500_vi])
[] (VI_CAP_COMM_DevInit [hi3516cv500_vi]) from [] (VI_CAP_Init+0x10/0x28 [hi3516cv500_vi])
[] (VI_CAP_Init [hi3516cv500_vi]) from [] (VI_Init+0x28/0x60 [hi3516cv500_vi])
[] (VI_Init [hi3516cv500_vi]) from [] (CMPI_RegisterModule+0xa4/0x1e0 [hi3516cv500_base])
[4bf0285b4>] (CMPI_RegisterModule [hi3516cv500_base]) from [] (VI_ModInit+0xac/0x180 [hi3516cv500_vi])
[] (VI_ModInit [hi3516cv500_vi]) from [] (hi35xx_vi_probe+0pe4/0x12c [hi3516cv500_vi])
[] (hi35xx_vi_probe [hi3516cv500_vi]) from [] (platform_drv_probe+0x50/0xb0)
[] (platform_drv_probe) from [] (draver_probe_device+0x204/0x2b0)
[] (driver_probe_device) from [] (__driver_attach+0xb8/0xbc)
[] (__driver_attach) from [] (bus_for_each_dev+0x68/0x9c)
[] (bus_for_each_dev) from [] (bus_add_driver+0x108/0x214)
[] (bus_add_driver) from [] (driver_register+0x78/0xf4)
[] (driver_register) from [] (do_one_initcall+0x44/0x16c)
[] (do_one_initcall) from [] (do_init_module+0x60/0x37c)
[] (do_init_module) from [] (load_module+0x19ec/0x1fdc)
[] (load_module) from [] (SyS_init_module+0x154/0x16c)
[] (SyS_init_module) from [] (ret_fast_syscall+0x0/0x3c)
Code: e58d300c ebfb7773 e28d2004 e3a0102c (e5903014)
---[ end trace b9994bd0e02a8f91(]---
Segmentation fault

zhuangweiye

8个粉丝

0

问答

0

专栏

0

资料

zhuangweiye 2019-05-15 17:00:34
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=143204&ptid=74617]qn1557475453 发表于 2019-5-15 16:03[/url]
哦我加载了但是一直卡死了,请问这是怎么回事?

/tmp/mpp/ko # ./load3516dv300 -i -sensor0 imx327
[/quote]

错误都写得很清楚了
"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使用的内存冲突了

qn1557475453

0个粉丝

1

问答

0

专栏

0

资料

qn1557475453 2019-05-15 17:38:56
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=143207&ptid=74617]zhuangweiye 发表于 2019-5-15 17:00[/url]
错误都写得很清楚了
"ERROR: Conflict MMZ:
PHYS(0x88000000, 0x9FFFFFFF), GFP=0, nBYTES=393216KB,   ...[/quote]

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

zhuangweiye

8个粉丝

0

问答

0

专栏

0

资料

zhuangweiye 2019-05-15 17:41:37
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=143210&ptid=74617]qn1557475453 发表于 2019-5-15 17:38[/url]
是因为内存设置过大了吗?[/quote]

要看bootargs中设了linux用多少, MMZ要根据那个相应修改,或者反过来

qn1557475453

0个粉丝

1

问答

0

专栏

0

资料

qn1557475453 2019-05-15 17:54:56
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=143211&ptid=74617]zhuangweiye 发表于 2019-5-15 17:41[/url]
要看bootargs中设了linux用多少, MMZ要根据那个相应修改,或者反过来[/quote]

谢谢,我看一下文档怎么操作,好像我还没有进行uboot烧写

qn1534489079

0个粉丝

12

问答

0

专栏

2

资料

qn1534489079 2019-05-16 15:18:26
认可0
你可以在kernel下command,看bootargs设定中mem=多少
[code]cat /proc/cmdline[/code]

qn1557475453

0个粉丝

1

问答

0

专栏

0

资料

qn1557475453 2019-05-16 16:50:45
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=143243&ptid=74617]qn1534489079 发表于 2019-5-16 15:18[/url]
你可以在kernel下command,看bootargs设定中mem=多少[/quote]

我不是很清楚怎么进入uboot查看bootargs……不过我还是找供应商问了一下改了参数跑通了,而且mmz的起始地址也要改变,这个应该其他地方没法查看吧
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
相关问答
无更多相似问答 去提问
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区