coenzyme F420 biosynthesis. {ECO:0000255|HAMAP-Rule:MF_01257}.