This is the essential first step. Without an unlocked bootloader, you cannot flash custom partitions.