He had traveled overland about 2,000 miles from Ghana , largely on foot , to arrive within sight of his goal : an eightsquare-mile patch of Spanish territory on Africa 's Mediterranean coast called Melilla .