主题中讨论的其他器件:AM4372
工具/软件:Linux
似乎对于新内核4.9.69、我们必须注释掉代码 arch/arm/mach-omap2 /omap_hwmod_43xx_data.c 的以下行才能引导内核。 AM437上未使用内部 RTC、但 AM437上的 I2C 连接了外部 RTC。 内核4.4.3.36中不存在此代码。 您能否解释一下为什么将此红色代码添加到新内核中? 另外、为什么通过删除它、我们可以引导内核??
我能够完全支持 Linux 的 omap_hwmod_43xx_data.c。
静态结构 omap_hwmod_opc_if * am43xx_rtc_hwmod_opc_ifs[]__initdata ={
am33xx_L4_wkup__RTC、
null、
};
int __init am43xx_hwmod_init (void)
{
内转台;
omap_hwmod_am43xx_reg();
omap_hwmod_init();
RET = OMA_hwmod_register_links (am43xx_hwmod_OCP_IFS);
#if 0
***** 此代码不在4.4.36内核中-如果未执行、则使用引导内核
否则、我们的硬件似乎无法引导 Linux (无控制台输出)。
***
if (!ret && of _machine_is_compatible ("ti、am4372"))
RET = OMA_hwmod_register_links (am43xx_rtc_hwmod_opc_IFS);
#endif
回程;
}
谢谢