Let be an odd prime and be a positive integer. For any positive integer , let and . In this paper, we provide a method to determine the weight distributions of binary cyclic codes of length generated by the polynomials and , which is effective for small values of and .