I've just done a little work trying to get to the hardware through a Raspberri Pi or Beaglebone OS. It's possible, but not easy. Funny thing is, though, that I used to have to work through an OS way back in the Apple II and DOS days. It can be quite the struggle.
The Arduino, without an OS, is far easier to use, and in my opinion, a much better educational tool.