Here is a shortcut on your hunt for ready-to-use 1/4" homasote roadbed:
Except for yards, you will be using narrow (about 2" wide for H0) beveled strips just under the tracks. Railroad tracks are commonly raised a bit about the surrounding area with balast. The homabed roadbed simulates most of this balast and the actual fine ground stones between the ties adds to the last bit. You will probably putting in scenery mix and whatnot on the bare foam (I assume you are not modeling a scene with flat blue ground (and what planet would that be on?)).