It doesn't need to be that complicated. If a single cell with chlorophyll can convert light to matter then that is all you need. Cells die, something evolves to use that dead matter to feed on. Voilą you have a food chain.
Admittedly, your method makes much more sense than my hare-brained idea