Where did the original atmospheric oxygen come from?

Mostly from plants.