I'm trying to lock QSPI Flash.
Test on s32g274ardb2 board with bsp39. But when run command "flash_lock -i /dev/mtd0", it return error like this:
flash_lock: error!: could not check lock status device: /dev/mtd0
error 95 (Operation not supported)
It seems flash_lock operation doesn't supported by this driver.
However, flash_erase is OK.
I also try sf protect lock in u-boot. It doesn't work too.
So is NOR flash lock operation supported on current S32G BSP?
Thansk!
Hello, @Guangyu_D
Thanks for the question.
I have checked the BSP user manual, as well as the latest code in kernel drivers, the locking operations are not supported, hence the flash_lock utility cannot be used.
Best Regards
Chenyin