How to disable MMU for arm64 platforms like imx8 series

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

How to disable MMU for arm64 platforms like imx8 series

跳至解决方案
296 次查看
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 解答
281 次查看
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 回复
282 次查看
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 项奖励
回复