In this article, we consider a single-antenna orthogonal frequency division multiplexing-based multihop relaying system over frequency selective fading channels employing subcarrier grouping and linear constellation precoding at the source, and linear detection at the destination. We derive closed-form expressions of the diversity-multiplexing tradeoff relation, and propose the optimal precoder design and symbol loading strategy to achieve the optimal diversity performance. Simulation results are presented to verify our theoretical analysis.