Closed chenSevenHalf closed 2 years ago
Seem you are invoking plat_init()
from sel4test-driver/src/plat/imx6/plat.c
and clk_regs
is not mapped properly. The i.MX6ull might be different to the i.MX6 Dual/Quad here.
Well,It's OK when I do the same things On the aarch64 platform Cortex A55. This means the code is OK and caused by hardware problems. I have not succeed on IMX6UL(CORTEX A7) platform.
What do you mean by working on "aarch64 platform Cortex A55". Are you building exactly the same target there and just deplay the same image on a Cortex-A55 system? Or are you building different target there with a different device tree and just different mapping?
@chenSevenHalf: Is there any update here, could you fix this timer porting? I'd close this issue due to inactivity otherwise.
Closing due to inactivity.
In particular, this fault is an Synchronous external abort caused by the mapping of CCM_ANALOG
in clock_sys_init
. This MMIO region is defined as #define CCM_ANALOG_PADDR 0x020C8000
for all imx6 platforms. If your platform has a different physical address for these registers, or they have a different layout from the other imx6 platforms then this would cause the error you see.
Hello: I have ported the sel4 to my im6ull board. It runs will before dropping to the user space. after that, serical com arise errors like:
Errors trigger by Location
file:sel4test/projects/sel4test/apps/sel4test-driver/src/main.c
Errors tracing:main->main_continued->plat_init->clk_set_freq->_arm_set_freq->clk_get_freq(_arm_get_freq):uint32_t v = clk_regs.alg->pll_arm.val;
then it jump tokernel like:arm_vector_table-> arm_data_abort_exception->c_handle_data_fault->c_handle_data_fault->c_handle_vm_fault->handleVMFaultEvent->handleFault->handleDoubleFault
then the above error occurs.How could I do? and the problem also occurs when init the GPT and UART. those device can be access correctly in the kernel but not the root server.