Tag Archives: kernel

ARM Tiny Linux Emulated in QEMU

Free Electrons has an excellent example of a tiny ARM Linux demo that runs in QEMU. The footprint, including everything, is about 2.1 M.┬áThe full text below is for your convenience, be sure to visit the original site. From this … Continue reading

Posted in All, C/C++, Hardware, Tools | Tagged , , , , , , , , , | Leave a comment

ARM C/C++ Software Stack Back Trace

Printing stack trace pragmatically from C/C++ code is an efficient way to speed up troubleshooting and debugging. Since testing, debugging, and sustaining cost more than half of software total cost, printing backtrace is very important to producing quality software quickly. … Continue reading

Posted in All, C/C++, Hardware | Tagged , , , , , , | 3 Comments

ARM Cache Flush on mmap’d Buffers with __clear_cache()

Memory mapped operation from user space on devices is a powerful technique to improve runtime performance. Some ARM processors use caches keyed to virtual addresses, instead of normally to physical addresses. The problem, is that if the kernel maps the … Continue reading

Posted in All, C/C++, Hardware | Tagged , , , , , , , | 2 Comments

ARM MMU Theory and Practice

In his blog “Turning on an ARM MMU” Andrew Murry listed the schemes: a memory manager would use in their combination form: Split the entire virtual range into pages and point them all to one same physical page. This is … Continue reading

Posted in All, C/C++, Hardware | Tagged , , , , , , , , | 2 Comments

Mapping DMA Buffers to User Space on Linux with mmap

Memory mapped operation from user space on devices is a powerful technique to improve runtime performance of a user space application. The technique, conceptually is simple, yet is often hard to do correctly.

Posted in All, C/C++, Hardware | Tagged , , , , , , | 2 Comments

Dr Dobbs Volatile The Multithreaded Programmers Best Friend

Check this out, it ties a volatile qualifier into the C++ type system thus use of volatile is type checked at compile. How exactly it is done? … http://www.drdobbs.com/cpp/volatile-the-multithreaded-programmers-b/184403766

Posted in All, C/C++ | Tagged , , , , , , | Leave a comment

NetBeans Setup and GNU Cross-Toolchain Configuration for ARM Developmen

My previous post showed how to setup for ARM cross development in Eclipse. Similarly NetBeans can easily setup to host ARM development too. Here is how you can do it on a Windows machine.

Posted in All, C/C++, Tools | Tagged , , , , , , , , , | Leave a comment