We derived consistently, according to the second order perturbation approach, the extended KdV equation for an uneven bottom for the case of α = O(β) and δ = O(β 2 ). This equation can be obtained only when the bottom is given by a piecewise linear function. For the case of α = O(β) and δ = O(β) a unidirectional wave equation is derived in first order approach with the same limitation for the bottom profile.