Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
What's the correct way to suspend an ARM1136 CPU (i.MX35) and its external DDR2 memory in Linux? I tried the following sequence:
1. reserve space in the CPU's internal memory, copy the core assembler function there and jump to it
2. disable interrupts (cpsid if) and I/D cache
3. set the SDRAM controller into precharge power down mode
4. execute a precharge all command and access memory with A10 high (e.g. 0x400) to effectively close all banks
5. suspend the CPU by executing a WFI instruction
Everything works as expected, I can verify code execution with the JTAG debugger. But at the point where memory is accessed with a dummy write, a data abort exception occurs and the CPU gets lost. If I leave this part out, the DDR2 doesn't seem to be put into low power mode, because the current consumption doesn't go down. I also tried to disable the MMU and work with physical addresses, but then the CPU gets lost immediately.
Now I'm totally stuck and out of ideas here. Could someone please give me a hint what I'm doing wrong or what I'm missing?