# Pell equation of the special form

I have tried several times to solve the following equation and finally, I was failed to complete. Help me to find the solutions of Pell equation $y^2-2x^2 = p^m$, where $p$ is prime and $8|(p-1)$ or $8|(p+1)$.