Both the two have their own ways. The first one is only for flashing and the later one is for patching.