You need the clean, unmodified .z64 file.
If you are having trouble finding a safe link, consider these alternatives: baseromusz64 link
: If your file ends in .v64 or .n64 , it has the wrong endianness. You can use tools like the Hack64 ROM Swapper to convert it to the required .z64 format. You need the clean, unmodified