Nikita

Nikita

1个粉丝

35

问答

0

专栏

1

资料

Nikita  发布于  2014-04-20 00:58:40
采纳率 0%
35个问答
13444

himm command, mmz.ko and hifb.ko

 
Could somebody explain me what himm command do?
Example from SDK
[code]#VO VGA
himm 0x200f00e4 0x1   #VGA_HS
himm 0x200f00e8 0x1   #VGA_VS
[/code]

what is params of mmz.ko
[code] insmod mmz.ko mmz=anonymous,0,0x84000000,442M:jpeg,0,0x9fa00000,5M:ddr1,0,0xC0000000,511M anony=1 || report_error[/code]

what is params of himm.ko
[code]nsmod hifb.ko video="hifb:vram0_size:7200,vram1_size:7200,vram2_size:3240,vram3_size:3240,\
                vram4_size:7200,vram5_size:128,vram6_size:128" softcursor="off" u32VcmpBufNum=2\
                apszLayerMmzNames="mmzname0","mmzname1",,"graphics",,"mmzname0"
[/code]
我来回答
回答12个
时间排序
认可量排序

david

41个粉丝

368

问答

253

专栏

229

资料

david 2014-04-20 13:38:42
认可0
1,himm: if you wanna know the value and write the value to the register manually, you can use this command in bash .General for debug.
2,mmz.ko  ,you know a part of  the DDR memory is managed by OS, mmz manage the memory related with Media.
Q:
what is params of mmz.ko
insmod mmz.ko mmz=anonymous,0,0x84000000,442M:jpeg,0,0x9fa00000,5M:ddr1,0,0xC0000000,511M anony=1 || report_error
It's mean the mmz have three memory zone. The first named "anonymous" start at 0x84000000,the size is 442M. The second named jped.....

david

41个粉丝

368

问答

253

专栏

229

资料

david 2014-04-20 13:50:21
认可0
本帖最后由 david 于 2014-4-20 14:19 编辑

your second question must pay attention bootargs for OS memory.
the params of hifb.ko?  video display memory for each layer.more detail, please read the doc " Graphics development user guide".

david

Nikita

1个粉丝

35

问答

0

专栏

1

资料

Nikita 2014-04-20 18:10:07
认可0
So, As I understand some memory managed by Linux kernel (OS) and some memory managed by MMZ. Memory managed via MMZ used by HI3531*.ko modules.
Memory adress of DDR begins from 0x80000000.
Kernel is loaded from 0x80008000 and than I have some memory (my board have 128M).
For example TDE and HiFB needs some memory, and I allocate memory for them via MMZ.

Ad I right that, if I have total 128M on my board, and I want to give 64M of memory for OS and other 64M for Media. I need load kernel with parameter mem=64M, after
insert mmz.ko with params like mmz=anonymous,0,0x84000000,64M?


What does mean anony=1 parameter?

david

41个粉丝

368

问答

253

专栏

229

资料

david 2014-04-22 19:51:22
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=6763&ptid=3303]Nikita 发表于 2014-4-20 18:10[/url]
So, As I understand some memory managed by Linux kernel (OS) and some memory managed by MMZ. Memory  ...[/quote]

hi Nikita. It's right. "annony=1" I am not care this parameters. maybe a control paramters,like control debug report ,error message report ..
anybody know it?
如果有知道的朋友解释下,谢谢。

hilinux

0个粉丝

17

问答

0

专栏

0

资料

hilinux 2014-04-26 19:40:21
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=6763&ptid=3303]Nikita 发表于 2014-4-20 18:10[/url]
So, As I understand some memory managed by Linux kernel (OS) and some memory managed by MMZ. Memory  ...[/quote]

”annoy=1“ was used to tag your memory

in fact ,it's no use!

Nikita

1个粉丝

35

问答

0

专栏

1

资料

Nikita 2014-04-26 22:47:06
认可0
What do you mean tag memory?

sanqiandian

0个粉丝

3

问答

0

专栏

0

资料

sanqiandian 2014-05-30 20:17:12
认可0
annoy is a switch. ”annoy = 1" means  malloc buffer from mmz named "anonymous".  
For example, VI need one buffer, and you don't appoint one mmz for it, then VI aquires one from "anonymous".
So you just always set annoy to 1.

sanqiandian

0个粉丝

3

问答

0

专栏

0

资料

sanqiandian 2014-05-30 20:21:43
认可0
himm is a tool. "himm addr value" means writing  value to addr.
"himd addr" means reading value from addr.

city25

0个粉丝

3

问答

0

专栏

0

资料

city25 2015-01-15 15:29:27
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=7207&ptid=3303]sanqiandian 发表于 2014-5-30 20:21[/url]
himm is a tool. "himm addr value" means writing  value to addr.
"himd addr" means reading value fro ...[/quote]

"himd addr" means reading value from addr.

How can I save the value then?

david

41个粉丝

368

问答

253

专栏

229

资料

david 2016-04-06 18:14:50
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=11365&ptid=3303]city25 发表于 2015-1-15 15:29[/url]
"himd addr" means reading value from addr.

How can I save the value then?[/quote]

放在脚本里面呗

kent_ly

0个粉丝

8

问答

0

专栏

0

资料

kent_ly 2017-03-07 16:26:38
认可0
好文章阿,支持阿。

hewenwu

1个粉丝

5

问答

1

专栏

0

资料

hewenwu 2018-01-23 14:19:58
认可0
thank you for your help, I learned
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

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

Markdown 语法

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

举报类型

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

详细说明

易百纳技术社区