Experimenting with Bats

Posted on Sun 08 July 2018 in Ada Linux Kernel Module View Comments • Tagged with bats, linux, kernel, testing, bash

I had some progress with my Ada Kernel Module Framework. Currently, what I have is a demo of a kernel module opening a character device.

While finishing that part, I realized that a good automatic testing strategy needs to be developed. At current stage, I do not even know which …


Continue reading

Writing Linux Modules in Ada - Part 3

Posted on Fri 25 November 2016 in Ada Linux Kernel Module View Comments • Tagged with ada, linux, kernel, os

In this article I will continue to extend the runtime running in the kernel module. We have not touched the kernel module part itself yet, just laying the infrastructure.
The next step is to implement the Image attribute. This requires some work as this attribute is implemented differently for each basic type it can be used on.


Continue reading

Writing Linux Modules in Ada - Part 2

Posted on Sat 05 November 2016 in Ada Linux Kernel Module View Comments • Tagged with ada, linux, kernel, os

In this article I will focus on implementing the secondary stack of the runtime.
Secondary stack is required if we desire functions to return objects of unconstrained types. This in turn required for the 'Image attribute, which is used extensively in the Interfaces.C package.


Continue reading

Writing Linux Modules in Ada - Part 1

Posted on Sun 23 October 2016 in Ada Linux Kernel Module View Comments • Tagged with ada, linux, kernel, os

In the following series of blog posts I will document my attempts to write Linux modules using the Ada language.
In part 1, I will demonstrate how to write in Ada and build a simple "hello world" Linux kernel module.
Additionally, I will introduce a basic customized Ada runtime to support our "hello world" module. This runtime will be extended in subsequent articles in the series.


Continue reading

Making Legacy Software Work On Windows

Posted on Sat 09 November 2013 in misc View Comments • Tagged with Linux, Windows, Wine

It sometimes happens that programs written for old versions of Windows will not work on new versions even with compatibility mode enabled. It is not uncommon for such program to crash and show some cryptic message that even a person of technical background can not understand. Sometimes only a simple …


Continue reading

Combining ls and cat Commands

Posted on Sat 17 August 2013 in misc View Comments • Tagged with shell, sh, linux

Very often, when exploring contents of directory trees, I find myself confused between the the "ls" and "cat" commands and mistakenly type one instead of the other. Both these commands are used pretty often and conceptually they have similar meanings. One says "print out a content of directory". The other …


Continue reading

OpenNI2 Samples and Dynamic Library Problems

Posted on Fri 02 August 2013 in misc View Comments • Tagged with openni, linux

While experimenting with the OpenNI2 samples, I sometimes would get the following error when trying to run one of the executables:

~/OpenNI-Linux-x86-2.2$ Samples/Bin/SimpleViewer
Samples/Bin/SimpleViewer: error while loading shared libraries: libOpenNI2.so: cannot open shared object file: No such file or directory

The dynamic library file …


Continue reading

How to Install an Acer Scanner Under Linux

Posted on Mon 12 November 2012 in misc View Comments • Tagged with Linux

I own an old Acer szw4300U scanner. Making it work with Linux is not exactly a plug and play, but not very complex either. Here is how it is done.

Drivers

An easy way is to use SANE which is a framework that connects scanning software (frontends) with the scanners' …


Continue reading