Chinaunix首页 | 论坛 | 博客
  • 博客访问: 466906
  • 博文数量: 100
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 955
  • 用 户 组: 普通用户
  • 注册时间: 2014-11-21 09:30
文章分类

全部博文(100)

文章存档

2017年(1)

2016年(16)

2015年(83)

我的朋友

分类: 嵌入式

2015-10-15 10:12:44

参考liukun321的博客
http://blog.csdn.net/liukun321/article/details/38236521

/>
谷歌s5p-mfc-v8.fw关键字,可以找到
/>
基本上可以搜索samsung_mfc_fw.bin s5p-mfc这些关键字就能找到。

/>
/>

210的mfc固件大概是900多K的。注意ihex格式的固件是由bin转换而来的,210的ihex格式大概900多K,而如果是bin格式的话,只有300多K。

这里说明了v7和v8对应的cpu
/>
事实上,linux最新内核4.2中的了linux-4.2.1/drivers/media/platform/s5p-mfc/s5p_mfc.c中就有mfc固件的名称,直接搜索对应的文件名即可。

点击(此处)折叠或打开

  1. static struct s5p_mfc_variant mfc_drvdata_v5 = {
  2.     .version    = MFC_VERSION,
  3.     .version_bit    = MFC_V5_BIT,
  4.     .port_num    = MFC_NUM_PORTS,
  5.     .buf_size    = &buf_size_v5,
  6.     .buf_align    = &mfc_buf_align_v5,
  7.     .fw_name[0]    = "s5p-mfc.fw",
  8. };

  9. static struct s5p_mfc_buf_size_v6 mfc_buf_size_v6 = {
  10.     .dev_ctx    = MFC_CTX_BUF_SIZE_V6,
  11.     .h264_dec_ctx    = MFC_H264_DEC_CTX_BUF_SIZE_V6,
  12.     .other_dec_ctx    = MFC_OTHER_DEC_CTX_BUF_SIZE_V6,
  13.     .h264_enc_ctx    = MFC_H264_ENC_CTX_BUF_SIZE_V6,
  14.     .other_enc_ctx    = MFC_OTHER_ENC_CTX_BUF_SIZE_V6,
  15. };

  16. static struct s5p_mfc_buf_size buf_size_v6 = {
  17.     .fw    = MAX_FW_SIZE_V6,
  18.     .cpb    = MAX_CPB_SIZE_V6,
  19.     .priv    = &mfc_buf_size_v6,
  20. };

  21. static struct s5p_mfc_buf_align mfc_buf_align_v6 = {
  22.     .base = 0,
  23. };

  24. static struct s5p_mfc_variant mfc_drvdata_v6 = {
  25.     .version    = MFC_VERSION_V6,
  26.     .version_bit    = MFC_V6_BIT,
  27.     .port_num    = MFC_NUM_PORTS_V6,
  28.     .buf_size    = &buf_size_v6,
  29.     .buf_align    = &mfc_buf_align_v6,
  30.     .fw_name[0] = "s5p-mfc-v6.fw",
  31.     /*
  32.      * v6-v2 firmware contains bug fixes and interface change
  33.      * for init buffer command
  34.      */
  35.     .fw_name[1] = "s5p-mfc-v6-v2.fw",
  36. };

  37. static struct s5p_mfc_buf_size_v6 mfc_buf_size_v7 = {
  38.     .dev_ctx    = MFC_CTX_BUF_SIZE_V7,
  39.     .h264_dec_ctx    = MFC_H264_DEC_CTX_BUF_SIZE_V7,
  40.     .other_dec_ctx    = MFC_OTHER_DEC_CTX_BUF_SIZE_V7,
  41.     .h264_enc_ctx    = MFC_H264_ENC_CTX_BUF_SIZE_V7,
  42.     .other_enc_ctx    = MFC_OTHER_ENC_CTX_BUF_SIZE_V7,
  43. };

  44. static struct s5p_mfc_buf_size buf_size_v7 = {
  45.     .fw    = MAX_FW_SIZE_V7,
  46.     .cpb    = MAX_CPB_SIZE_V7,
  47.     .priv    = &mfc_buf_size_v7,
  48. };

  49. static struct s5p_mfc_buf_align mfc_buf_align_v7 = {
  50.     .base = 0,
  51. };

  52. static struct s5p_mfc_variant mfc_drvdata_v7 = {
  53.     .version    = MFC_VERSION_V7,
  54.     .version_bit    = MFC_V7_BIT,
  55.     .port_num    = MFC_NUM_PORTS_V7,
  56.     .buf_size    = &buf_size_v7,
  57.     .buf_align    = &mfc_buf_align_v7,
  58.     .fw_name[0] = "s5p-mfc-v7.fw",
  59. };
其实需要哪个版本的mfc,直接查看firmware的makefile即可,如210的内核源码中有:
fw-shipped-$(CONFIG_VIDEO_MFC50) += samsung_mfc_fw.bin
说明210是MFC50的,所以搜索s5p-mfc.fws5p-mfc-v5.fw

最简单的直接到kernel的git页面搜索s5p-mfc:
/> 即可看到:

Commit message ( Author Files Lines
2014-06-04 s5p-mfc-v6-v2.fw    This is the newer version of mfc-v6 firmware which can be used in exynos5250 based boards.
s5p-mfc-v7.fw: Used in exynos 5420
s5p-mfc-v8.fw: Used in exynos 5800





阅读(4090) | 评论(0) | 转发(0) |
0

上一篇:Makefile模板分析

下一篇:wolfson linux driver

给主人留下些什么吧!~~