Getting write protected issue while flashing using UUU with command sudo uuu -b sd imx-boot
Kindly suggest on this. Thank you in advance.
Error log:
Fastboot: Normal
Boot from USB for mfgtools
*** Warning - Use default environment for mfg+-----------------------------+
, using default environment
Run bootcmd_mfg: run mfgtool_args;if iminfo ${initrd_addr}; then if test ${tee} = yes; then bootm ${tee_addr} ${initrd_addr} ${fdt_addr}; else booti ${loadaddr} ${initrd_addr} ${fdt_;
Hit any key to stop autoboot: 0
## Checking Image at 83100000 ...
Unknown image format!
Run fastboot ...
auto usb 1
Detect USB boot. Will enter fastboot mode!
flash target is MMC:1
Detect USB boot. Will enter fastboot mode!
switch to partitions #0, OK
mmc1 is current device
Detect USB boot. Will enter fastboot mode!
Starting download of 3402752 bytes
.........................
downloading of 3402752 bytes finished
writing to partition 'bootloader'
Initializing 'bootloader'
switch to partitions #0, OK
mmc1 is current device
Writing 'bootloader'
MMC write: dev # 1, block # 64, count 6646 ...
The SD card is locked. Can not write to a locked card.
mmc write failed
0 blocks written: ERROR
Writing 'bootloader' FAILED!
Hi Sulaiman
from log: "The SD card is locked" one can check lock switch on SD card.
In general recommended to try brand new SD/eMMC device and use latest
BSP and uuu tool : https://github.com/NXPmicro/mfgtools/releases/tag/uuu_1.4.139
Best regards
igor
- how many boards affected by that issue
- had you tried with other sd card
Also may be helpful
https://askubuntu.com/questions/234946/micro-sd-card-automatically-getting-write-protected
https://unix.stackexchange.com/questions/138518/how-to-format-write-protected-sd-card/171238
https://recoverit.wondershare.com/repair-sd-card/microsd-write-protected-fix.html
Best regards
igor