depthcharge: Fix a firmware update failure in Netboot

During netboot ,the 'chromeos-firmwareupdate' uses 'futility update' to
update the AP & EC firmware (Please refer to CL:1343618).

The futility would call 'mosys' which needs to read FDT node
"/proc/device-tree/firmware/chromeos/nonvolatile-context-storage" to get
the correct platform information.

Unfortunately deptcharge does not export it into device tree and the
firmware update process in netboot would fail.

This CL would call crossystem_setup() in depthcharge stage of netboot
firmware to export some mandatory nodes into device tree.

BUG=b:125176300
TEST=1.) Build netboot firmware of flapjpack locally
     2.) Do the netboot process and check the firmware had been
updated successfully.

BRANCH=none

Change-Id: I97d3cf64c59c03c38e33fbf9a4ae969c3dce728a
Reviewed-on: https://chromium-review.googlesource.com/1496184
Commit-Ready: Kaka Ni <nigang@huaqin.corp-partner.google.com>
Tested-by: Kaka Ni <nigang@huaqin.corp-partner.google.com>
Reviewed-by: Julius Werner <jwerner@chromium.org>
4 files changed