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,516件の閲覧回数
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 解決策
1,030件の閲覧回数
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 返答(返信)
1,030件の閲覧回数
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.

1,031件の閲覧回数
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 件の賞賛
返信
1,030件の閲覧回数
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 件の賞賛
返信
1,030件の閲覧回数
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 件の賞賛
返信