Need an Introduction to Tiny Core? Or peruse Core Concepts.
You could probably hack the script in the x86 version to work for RPi?