My Raspberry Pi is equipped with Debian 6 (dated 2012-04-19). I'm working on a program that controls an expansion board connected to the GPIO connector. The board is wired to the I2C bus. My program accesses /dev/mem to control to BCM2835 I2C part.
My concern now is that my program is built as an armv6l/armel executable and it runs on other computers as well (including the BeagleBoard) but it needs the BCM2835 specifically so this means trouble when not run on a Raspberry Pi. So I'm looking for a way to detect whether my program is running on a Raspberry or not. Any ideas?