Is it possible to build the kernel for iMX6 hardware that does not have a PMIC?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Is it possible to build the kernel for iMX6 hardware that does not have a PMIC?

跳至解决方案
1,302 次查看
EdSutter
Senior Contributor II

My custom iMX6 board does not have a PMIC (power manager) chip.

Actually it doesn't have much io, so I'm trying to turn off most of it in the kernel.

I edit .config to change this...

CONFIG_IMX_HAVE_PLATFORM_VIV_GPU=y

CONFIG_IMX_HAVE_PLATFORM_MXC_HDMI=y

CONFIG_IMX_HAVE_PLATFORM_IMX_ANATOP_THERMAL=y

CONFIG_IMX_HAVE_PLATFORM_FSL_OTG=y

CONFIG_IMX_HAVE_PLATFORM_FSL_USB_WAKEUP=y

CONFIG_IMX_HAVE_PLATFORM_IMX_PM=y

CONFIG_IMX_HAVE_PLATFORM_IMX_ASRC=y

CONFIG_IMX_HAVE_PLATFORM_IMX_MIPI_DSI=y

CONFIG_IMX_HAVE_PLATFORM_IMX_MIPI_CSI2=y

CONFIG_IMX_HAVE_PLATFORM_IMX_VDOA=y

CONFIG_IMX_HAVE_PLATFORM_IMX_PCIE=y

to this...

# CONFIG_IMX_HAVE_PLATFORM_VIV_GPU is not set

# CONFIG_IMX_HAVE_PLATFORM_MXC_HDMI is not set

# CONFIG_IMX_HAVE_PLATFORM_IMX_ANATOP_THERMAL is not set

# CONFIG_IMX_HAVE_PLATFORM_FSL_OTG is not set

# CONFIG_IMX_HAVE_PLATFORM_FSL_USB_WAKEUP is not set

# CONFIG_IMX_HAVE_PLATFORM_IMX_PM is not set

# CONFIG_IMX_HAVE_PLATFORM_IMX_ASRC is not set

# CONFIG_IMX_HAVE_PLATFORM_IMX_MIPI_DSI is not set

# CONFIG_IMX_HAVE_PLATFORM_IMX_MIPI_CSI2 is not set

# CONFIG_IMX_HAVE_PLATFORM_IMX_VDOA is not set

# CONFIG_IMX_HAVE_PLATFORM_IMX_PCIE is not set

but then 'make' seems to automatically re-enable these in the .config.

Is there a way to avoid this?

标签 (2)
0 项奖励
回复
1 解答
816 次查看
EdSutter
Senior Contributor II

Hi, thanks for responding.  Just this past Friday I managed to get the board booted.

See this thread: Re: kernel boot problems with iMX6D running with 16bit DDR

The problem ended up to have nothing to do with PMIC (although my board does not have one); it was

caused by the fact that the kernel is configured by default to allocate .25G of RAM for contiguous memory.

My board currently only has .25G, so this obviously was failing and as a result; every driver that tried to

init and allocate some DMA memory from this pool failed.

Ed

在原帖中查看解决方案

0 项奖励
回复
4 回复数
816 次查看
AnsonHuang
NXP Employee
NXP Employee

Hi, Ed

     Seems like these setting are irrelated to external PMIC, as we have internal LDO in SOC, so I don't think you need to change these config if your board did NOT have external PMIC, actually, sabrelite board also do NOT have external PMIC, you can refer to its config file. For example, on our SabreSD board which has an external PMIC called PFuze, if we want to disable it, we can just remove the config of CONFIG_MFD_PFUZE.

817 次查看
EdSutter
Senior Contributor II

Hi, thanks for responding.  Just this past Friday I managed to get the board booted.

See this thread: Re: kernel boot problems with iMX6D running with 16bit DDR

The problem ended up to have nothing to do with PMIC (although my board does not have one); it was

caused by the fact that the kernel is configured by default to allocate .25G of RAM for contiguous memory.

My board currently only has .25G, so this obviously was failing and as a result; every driver that tried to

init and allocate some DMA memory from this pool failed.

Ed

0 项奖励
回复
816 次查看
YixingKong
Senior Contributor IV

Ed

Had your issue got resolved? If yes, we are going to close the discussion in 3 days. If you still need help please feel

free to contact Freescale.

Thanks,
Yixing

0 项奖励
回复
816 次查看
EdSutter
Senior Contributor II

Yixing,

I'll just mark my above response as the correct answer...

The .25G allocation ended up being the primary problem.

Ed

0 项奖励
回复