Strange behaviour in Linux

SilentBob
Good day,

I am running Linux on 10 identical FriendlyARM Mini2440 boards connected to
one central switch.

The main binary that runs is a program written in C. The binary is started
in the /etc/init.d/rcS startup script. The binary controls an LCD screen so
I can am able to see when it is running and when it is frozen.

For some reason, every single Mini2440's binary frequently freezes (I can
see it freezes when the LCD screen stops responding). It only freezes when
the binary is started up with the script. It does not freeze when I
manually run the binary through SSH.

The even weirder thing - When I check my terminal history (by pressing the
up key in SSH) the history is corrupted. Instead of previous commands I
there are random files names mixed with random characters, Things like
"plg@&#rie&8@7" etc.

The other weird thing is when I do a ls /, there are random garbage in my
root filesystem. Filenames that are just a mixture of random characters.

Other info: I have a cardreader connected to the USB port and buttons to
some of the GPIO pins.

SilentBob
Any guesses are more than welcome.