cfimager "Failed to unlock drive" error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

cfimager "Failed to unlock drive" error

1,689 Views
dlafreniere
Contributor I

I am using an i.MX6 processor and the Nitrogen6x development board. I am trying to get the board to boot from a SD card using a QNX image. However, the cfimager.exe tool always returns this error:

H:\>cfimager -raw -offset 0x400 -skip 0x400 -f ipl-mx6q-nitrogen.bin -d h

Failed to unlock drive, closing anyway!

Exception found: -31 Failed to lock the drive

I've tried both a USB and Internal SD card reader, but the same error keeps appearing.

Thanks for any assistance!

Labels (1)
0 Kudos
2 Replies

900 Views
dlafreniere
Contributor I

Solved. Can't have cfimager on the SD card. The .bin and cfimager.exe in a temp directory on your PC, then execute the command.

0 Kudos

900 Views
LeonardoSandova
Specialist I

Correct. this because the cfimager command formats the SD and if binary is executed from there, the device is already locked and can not proceed the formatting.

Leo

0 Kudos