How to disable MMU for arm64 platforms like imx8 series

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to disable MMU for arm64 platforms like imx8 series

ソリューションへジャンプ
294件の閲覧回数
haamnath
Contributor I

I tried to disable MMU before control gives to Linux kernel.

So the flow is,

U-boot Spl -> ATF -> U-boot -> Bootloader -> Payload -> Linux kernel

End of payload we give control to Linux kernel. Before giving control kernel we need to disable MMU.

I use the below code to disable MMU and the results, kernel gives warning and hang.

// Disable MMU
mrs x0, sctlr_el1 // Read the System Control Register (EL1)
and x0, x0, #1 // Clear the M (MMU enable) bit
msr sctlr_el1, x0 // Write back the modified value to SCTLR_EL1

isb
dsb sy
ret
 
Any suggestion on this ?
タグ(1)
0 件の賞賛
返信
1 解決策
279件の閲覧回数
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

You can disable from kernel menu config or  variable CONFIG_MMU (default value y)in the Kconfig file.

Regards

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
280件の閲覧回数
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

You can disable from kernel menu config or  variable CONFIG_MMU (default value y)in the Kconfig file.

Regards

0 件の賞賛
返信