The freight railroad company CSX is donating 5.2 miles of the Kanawha Canal to Henrico County.