You require something more.
The known equation of state provides a relationship between pressure, temperature, and molar volume $(v)$:
$$
\frac{p}{T}=\frac{R}{v-b} -\frac{a}{v^2} \frac{1}{T}
$$
From that equation alone, it is impossible to get a unique fundamental function, either the molar entropy, $s(u,v)$ or the molar energy, $u(s,v)$. The reason is that temperature and pressure are connected to the first partial derivatives of one of these fundamental equations. The resulting equation will determine the molar entropy only within an arbitrary energy function.
Therefore, in addition to the usual van der Waals equation of state, one has to provide a thermal equation. The simplest is the relation between internal energy, volume, and temperature. In Callen's textbook (I strongly recommend it to get a better understanding of the formal structure of Thermodynamics), there is a worked example where that molar energy is assumed to be connected to the temperature and volume through the following relation
$$
\frac{1}{T}=\frac{cR}{u+a/v},
$$
where $c$ is a constant.
From these two equations and using the Gibbs-Duhem equation, one gets the fundamental equation for the molar entropy:
$$
s = R\log\left[ \left(v-b\right) \left( u+\frac{a}{v} \right)^c \right] + s_0. \tag{1}
$$
where $s_0$ is an arbitrary additive constant.
It is trivial to invert equation $(1)$ to get $u(s,v)$.
However, as expected, this is not a convex function over the whole domain ( $v>b$, and $s>0$). There is a convex intruder that an affine region (the coexistence region) should substitute via the usual Maxwell construction or a double Legendre-Fenchel transformation.