Write a bash shell script that consumes a constant amount of RAM for a user defined time [closed]

Even if traditional Bash arrays are not supported, it may still be possible to create array-like variables using the eval command built into the particular shell. The following example script is based on some scripting I did when using BusyBox in an embedded Linux project. BusyBox uses the Almquist shell (also known as A Shell, … Read more

How to add a Linux kernel driver module as a Buildroot package?

Fully automated out-of-tree QEMU example A version of the setup below is also present here: https://github.com/cirosantilli/linux-kernel-module-cheat/tree/753cbe68ff50bea0982e1791c8a2178a999d8377/buildroot_packages/kernel_modules and documented at: https://cirosantilli.com/linux-kernel-module-cheat/kernel-modules-buildroot-package The setup below is full extracted from that repository however, and will work standalone. Source tree: buildroot/: Buildroot 2017.02, ideally as a git submodule kernel_module/: external package with some modules, ideally tracked in the git … Read more

What does request_mem_region() actually do and when it is needed?

request_mem_region tells the kernel that your driver is going to use this range of I/O addresses, which will prevent other drivers to make any overlapping call to the same region through request_mem_region. This mechanism does not do any kind of mapping, it’s a pure reservation mechanism, which relies on the fact that all kernel device … Read more

How do I find ARM Linux entry point when it fails to uncompress?

We seem to have ported Das U-Boot successfully. There’s evidence that that is a faulty assumption. Just before calling the kernel, the pointer theKernel is 10008000 and not 10800000. Which version of U-Boot are you using? In both 2012.10 and 2013.04 versions of U-Boot, the variable theKernel is only declared and used by code for … Read more