How to disable MMU for arm64 platforms like imx8 series

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to disable MMU for arm64 platforms like imx8 series

Jump to solution
110 Views
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 ?
Tags (1)
0 Kudos
1 Solution
95 Views
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

View solution in original post

0 Kudos
1 Reply
96 Views
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 Kudos