Topic: Format/overwrite of mifare classic doesn't work correctly
I cloned a mifare classic card onto an empty card.Now everytime I write to this card I get a error like this:
failed to write trailer block 3
xnfc_initiator_transceive_bytes: TimeoutI tried to overwrite the card with the empty dump I got from http://www.libnfc.org/_media/libnfc/doc
xample.zip
but it went like this:
thomas@pluto ~ $ nfc-mfclassic w b Downloads/14f1f9d7.mfd clean
Connected to NFC reader: ACS ACR122U 00 00 / ACR122U103 - PN532 v1.6 (0x07)
Found MIFARE Classic card:
ATQA (SENS_RES): 00 04
UID (NFCID1): ec c3 66 d3
SAK (SEL_RES): 08
Guessing size: seems to be a 1024-byte card
Writing 64 blocks |nfc_initiator_transceive_bytes: Timeout
failed to write trailer block 3
xnfc_initiator_transceive_bytes: Timeout
failed to write trailer block 7
xnfc_initiator_transceive_bytes: Timeout
failed to write trailer block 11
xnfc_initiator_transceive_bytes: Timeout
failed to write trailer block 15
xnfc_initiator_transceive_bytes: Timeout
failed to write trailer block 19
xnfc_initiator_transceive_bytes: Timeout
failed to write trailer block 23
xnfc_initiator_transceive_bytes: Timeout
failed to write trailer block 27
xnfc_initiator_transceive_bytes: Timeout
failed to write trailer block 31
xnfc_initiator_transceive_bytes: Timeout
failed to write trailer block 35
xnfc_initiator_transceive_bytes: Timeout
failed to write trailer block 39
xnfc_initiator_transceive_bytes: Timeout
failed to write trailer block 43
xnfc_initiator_transceive_bytes: Timeout
failed to write trailer block 47
xnfc_initiator_transceive_bytes: Timeout
failed to write trailer block 51
xnfc_initiator_transceive_bytes: Timeout
failed to write trailer block 55
xnfc_initiator_transceive_bytes: Timeout
failed to write trailer block 59
x.|
Done, 4 of 64 blocks written.
thomas@pluto ~ $ nfc-mfclassic w b tim-100 Downloads/14f1f9d7.mfd
Connected to NFC reader: ACS ACR122U 00 00 / ACR122U103 - PN532 v1.6 (0x07)
Expected MIFARE Classic card with UID starting as: 14f1f9d7
Found MIFARE Classic card:
ATQA (SENS_RES): 00 04
UID (NFCID1): ec c3 66 d3
SAK (SEL_RES): 08
Guessing size: seems to be a 1024-byte card
Writing 64 blocks |nfc_initiator_transceive_bytes: Mifare Authentication Error
!
Error: authentication failed for block 00
thomas@pluto ~ $ nfc-mfclassic w b tim-100
Connected to NFC reader: ACS ACR122U 00 00 / ACR122U103 - PN532 v1.6 (0x07)
Found MIFARE Classic card:
ATQA (SENS_RES): 00 04
UID (NFCID1): ec c3 66 d3
SAK (SEL_RES): 08
Guessing size: seems to be a 1024-byte card
Writing 64 blocks |nfc_initiator_transceive_bytes: Mifare Authentication Error
nfc_initiator_transceive_bytes: Mifare Authentication Error
nfc_initiator_transceive_bytes: Mifare Authentication Error
nfc_initiator_transceive_bytes: Mifare Authentication Error
nfc_initiator_transceive_bytes: Mifare Authentication Error
nfc_initiator_transceive_bytes: Mifare Authentication Error
nfc_initiator_transceive_bytes: Mifare Authentication Error
nfc_initiator_transceive_bytes: Mifare Authentication Error
nfc_initiator_transceive_bytes: Mifare Authentication Error
!
Error: authentication failed for block 00
thomas@pluto ~ $ mifare-classic-format
Found Mifare Classic 1k with UID ecc366d3. Format [yN] y
Formatting 16 sectors [.mifare-classic-format: No known authentication key for sector 0I also added the keys that were used to write to the card to the default keys of mifare-classic-format.
I'm using a touchatag pad 072f:2200 with the acsccid 1.0.2 driver.
Last edited by BlackLotus (2011-11-24 18:11:05)