In this note by use of the holographic principle together with the equipartition law of energy and the Unruh temperature, we derive the Friedmann equations of a Friedmann-Robertson-Walker universe.