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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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?