参考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固件的名称,直接搜索对应的文件名即可。
-
static struct s5p_mfc_variant mfc_drvdata_v5 = {
-
.version = MFC_VERSION,
-
.version_bit = MFC_V5_BIT,
-
.port_num = MFC_NUM_PORTS,
-
.buf_size = &buf_size_v5,
-
.buf_align = &mfc_buf_align_v5,
-
.fw_name[0] = "s5p-mfc.fw",
-
};
-
-
static struct s5p_mfc_buf_size_v6 mfc_buf_size_v6 = {
-
.dev_ctx = MFC_CTX_BUF_SIZE_V6,
-
.h264_dec_ctx = MFC_H264_DEC_CTX_BUF_SIZE_V6,
-
.other_dec_ctx = MFC_OTHER_DEC_CTX_BUF_SIZE_V6,
-
.h264_enc_ctx = MFC_H264_ENC_CTX_BUF_SIZE_V6,
-
.other_enc_ctx = MFC_OTHER_ENC_CTX_BUF_SIZE_V6,
-
};
-
-
static struct s5p_mfc_buf_size buf_size_v6 = {
-
.fw = MAX_FW_SIZE_V6,
-
.cpb = MAX_CPB_SIZE_V6,
-
.priv = &mfc_buf_size_v6,
-
};
-
-
static struct s5p_mfc_buf_align mfc_buf_align_v6 = {
-
.base = 0,
-
};
-
-
static struct s5p_mfc_variant mfc_drvdata_v6 = {
-
.version = MFC_VERSION_V6,
-
.version_bit = MFC_V6_BIT,
-
.port_num = MFC_NUM_PORTS_V6,
-
.buf_size = &buf_size_v6,
-
.buf_align = &mfc_buf_align_v6,
-
.fw_name[0] = "s5p-mfc-v6.fw",
-
/*
-
* v6-v2 firmware contains bug fixes and interface change
-
* for init buffer command
-
*/
-
.fw_name[1] = "s5p-mfc-v6-v2.fw",
-
};
-
-
static struct s5p_mfc_buf_size_v6 mfc_buf_size_v7 = {
-
.dev_ctx = MFC_CTX_BUF_SIZE_V7,
-
.h264_dec_ctx = MFC_H264_DEC_CTX_BUF_SIZE_V7,
-
.other_dec_ctx = MFC_OTHER_DEC_CTX_BUF_SIZE_V7,
-
.h264_enc_ctx = MFC_H264_ENC_CTX_BUF_SIZE_V7,
-
.other_enc_ctx = MFC_OTHER_ENC_CTX_BUF_SIZE_V7,
-
};
-
-
static struct s5p_mfc_buf_size buf_size_v7 = {
-
.fw = MAX_FW_SIZE_V7,
-
.cpb = MAX_CPB_SIZE_V7,
-
.priv = &mfc_buf_size_v7,
-
};
-
-
static struct s5p_mfc_buf_align mfc_buf_align_v7 = {
-
.base = 0,
-
};
-
-
static struct s5p_mfc_variant mfc_drvdata_v7 = {
-
.version = MFC_VERSION_V7,
-
.version_bit = MFC_V7_BIT,
-
.port_num = MFC_NUM_PORTS_V7,
-
.buf_size = &buf_size_v7,
-
.buf_align = &mfc_buf_align_v7,
-
.fw_name[0] = "s5p-mfc-v7.fw",
-
};
其实需要哪个版本的mfc,直接查看firmware的makefile即可,如210的内核源码中有:
fw-shipped-$(CONFIG_VIDEO_MFC50) += samsung_mfc_fw.bin
说明210是MFC50的,所以搜索
s5p-mfc.fw 或
s5p-mfc-v5.fw
最简单的直接到kernel的git页面搜索s5p-mfc:
/>
即可看到: