Sd Card Initialisation


Robster

Dodgy hardware mod maker
Joined
Jul 8, 2003
Messages
439
Location
New Zealand
Website
www.cobbleware.com
Hey all,

I'm just doing this SD driver, and I'm (of course) finding the info a bit patchy.

I'm still mucking around with initialisation and I'm not sure I'm doing it right - certainly the CID numbers aren't what I'm expecting. Could anyone with some hardware and a SD card please try this prog and report the results? Note that it doesn't handle MMC cards.

I get things like this:
Code:
Raw data = 1E41 4253 0000 4400 D602 1000 5183 0300
Manufacturer ID   = 1E
Application ID    = 4142
Product name      = S..D.
Product revision  = 88
Serial Number     = 02100051
Manufacture year  = 2030
Manufacture month = 3
which is obviously crap, well the year is anyway. Also, I get quite a few errors in initialisation like:
Code:
Command = 0x0377
CMD55 Response status 0037, R1 = 0000 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0377
CMD55 Response status 0037, R1 = 0000 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SDSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
SDSendCommandBlocking (41) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SDSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
SDSendCommandBlocking (41) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SDSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
SDSendCommandBlocking (41) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SDSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
SDSendCommandBlocking (41) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SDSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
SDSendCommandBlocking (41) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SDSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
SDSendCommandBlocking (41) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SDSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
SDSendCommandBlocking (41) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SDSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
SDSendCommandBlocking (41) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SDSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
SDSendCommandBlocking (41) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 80FF 8000
Command = 0x0742
Raw data = 1E41 4253 0000 4400 D602 1000 5183 0300
Manufacturer ID   = 1E
Application ID    = 4142
Product name      = S..D.
Product revision  = 88
Serial Number     = 02100051
Manufacture year  = 2030
Manufacture month = 3
which is a bit of a worry.

To run the program, press a key to stop booting at U-Boot. Type "loads" into U-Boot, and then download the file with kermit protocol. When the download is complete, type "go 0x8000" into U-Boot and it'll do its thing.

You'll notice that it flashes the backlight 3 times and then reboots, that's just a convenience thing. I notice that the results (as in number of errors reported) is different when running from a warm boot, than running from a cold boot.

Thanks in advance!
 
try using copy/paste - it's what I used to use.

at 'gp2x' prompt type 'loads' and press enter, and then copy/paste the entire s19 file.
 
## Starting application at 0x00008000 ...
Command = 0x0377
CMD55 Response status 0037, R1 = 0000 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0377
CMD55 Response status 0037, R1 = 0000 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SDSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SDSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SDSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SDSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 80FF 8000
Command = 0x0742
Raw data = 0353 4453 3536 4432 011D 5560 3AD1 3300
Manufacturer ID = 03
Application ID = 5344
Product name = S56D2
Product revision = 01
Serial Number = 1D55603A
Manufacture year = 2013
Manufacture month = 3
InitSD returned 0
CcCcCÿ
 
What are you using as a terminal? If you're on Windows, I'd recommend Teraterm, it's far better than Hyperterminal and it has Kermit download (I think).

On Linux, I couldn't find a nice windowed terminal prog so I'm using C-Kermit. It's quite awful, but it does work. I use a kermit configuration file which says
Code:
set line /dev/ttyS0
set carrier-watch off
set stop-bits 1
set parity none
set flow-control none
set speed 115200
set prefixing all
Without the line "set prefixing all", I get errors whenever I try to download - maybe similar to your problem rlyeh?

Start the program with "kermit /home/rfbrown/config.kermit". Type "c<enter>" to go into interactive mode, and start up the gp2x. Press a key to stop the boot, type "loads<enter>", then press "Ctrl-\" and "c" to get back to kermit mode. Type "xmit /noecho /nowait /binary first.srx2<enter>" and the file will be sent. When it has finished (the command prompt comes back up), type "c<enter>" to go back to interactive mode, type "go 0x8000" to start the program.

Note that kermit has command-line history, so you can press up-arrow a couple of times rather than typing in the "xmit..." line all the time.
 
Well, if you can type "loads" and see it come up in U-Boot, I would guess that your serial port is working?

Hmmm... no ideas here. Perhaps try it with the Squidge cut-and-paste method?
 
OK, I've sorted out the CID stuff and now getting further along. Could you please try this proggie? It will (hopefully) give you output like this:

Code:
Command = 0x0377
CMD55 Response status 0037, R1 = 0000 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0377
CMD55 Response status 0037, R1 = 0000 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 80FF 8000
Command = 0x0742
Raw data = 1E41 4253 4400 0000 1000 D602 0300 5183

Card CID Contents:
Manufacturer ID   = 1E
Application ID    = 4142
Product name      = SD...
Product revision  = 0A
Serial Number     = 00D60203
Manufacture year  = 2005
Manufacture month = 1

Iterations taken  = 0
Command = 0x0343
Raw data = 0001 0520
RCA = 0001
Command = 0x0749
Raw data = 007F 0032 1359 83BF AEB9 8FFF 1640 0061

Card CSD Contents:
CSD Structure Version = 00
Read Access Time #1   = 7F
Read Access Time #2   = 00
Transfer Speed        = 25000 kHz
Command Classes       = 0135
Read Block Length     = 512 bytes
Read Block Partial    = 01
Write Block Misalign  = 00
Read Block Misalign   = 00
DSR Implemented       = 00
CSIZE                 = 0EFE
Vdd Read Current Min  = 35 mA
Vdd Read Current Min  = 80 mA
Vdd Write Current Min = 35 mA
Vdd Write Current Min = 80 mA
CSIZE Multiplier      = 03
Erase Block Enable    = 00
Erase Block Size      = 1F
W-Protect Grp Size    = 7F
W-Protect Grp Enable  = 00
R2W Factor            = 32
Write Block Length    = 512 bytes
Write Block Partial   = 00
File Format Group     = 00
Copy                  = 00
Permanent W-Protect   = 00
Temporary W-Protect   = 00
File Format           = 00

Card Capacity (bytes) = 62898176
Card Capacity (kB)    = 61424
Card Capacity (MB)    = 59

Erase Sector Size     = 16384 bytes

Command = 0x0347
Raw data = 0000 0700
Command = 0x0347
SdSendCommandBlocking (7) failed - code = 1
InitSD returned 5
CcCcC

It still doesn't handle MMC cards, I'll have to look into that.

The source for the prog so far is here. You'll need a newlib/gcc/binutils toolchain as described in my GP32 pages (although you'll want a newer gcc version!), use this script to build gcc (that's if you want to use my way, you can build it any way you like). You'll also need to edit the Makefile for various paths.
 
How did you fix the byte ordering?

Sandisk card (SD256) output:

## Starting application at 0x00008000 ...
Command = 0x0377
CMD55 Response status 0037, R1 = 0000 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0377
CMD55 Response status 0037, R1 = 0000 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 80FF 8000
Command = 0x0742
Raw data = 0353 4453 4432 3536 5560 011D 3300 3AD1

Card CID Contents:

Manufacturer ID = 03
Application ID = 5344
Product name = SD256
Product revision = 37
Serial Number = 60011D33
Manufacture year = 2003
Manufacture month = 10

Iterations taken = 4
Command = 0x0343
Raw data = 8D59 0520
RCA = 8D59
Command = 0x0749
Raw data = 0026 0032 1F59 83C4 ECB6 CFFF 9240 4079

Card CSD Contents:

CSD Structure Version = 00
Read Access Time #1 = 26
Read Access Time #2 = 00
Transfer Speed = 25000 kHz
Command Classes = 01F5
Read Block Length = 512 bytes
Read Block Partial = 01
Write Block Misalign = 00
Read Block Misalign = 00
DSR Implemented = 00
CSIZE = 0F13
Vdd Read Current Min = 35 mA
Vdd Read Current Min = 35 mA
Vdd Write Current Min = 35 mA
Vdd Write Current Min = 45 mA
CSIZE Multiplier = 05
Erase Block Enable = 01
Erase Block Size = 1F
W-Protect Grp Size = 7F
W-Protect Grp Enable = 01
R2W Factor = 16
Write Block Length = 512 bytes
Write Block Partial = 00
File Format Group = 00
Copy = 01
Permanent W-Protect = 00
Temporary W-Protect = 00
File Format = 00

Card Capacity (bytes) = 252968960
Card Capacity (kB) = 247040
Card Capacity (MB) = 241

Erase Sector Size = 16384 bytes

Command = 0x0347
Raw data = 0000 0700
Command = 0x0347
SdSendCommandBlocking (7) failed - code = 1
InitSD returned 5
CcCcCÿ
 
Ah well, a "slight" mistake in the data sheet.

In the register map for the MMC peripheral, it says the 128-bit long responses are placed in this order in the response registers: RSP1, RSP0, RSP2, RSP3, RSP4, RSP5, RSP6, RSP7 (note that 0 and 1 are reversed).

Actually, the order is RSP1, RSP0, RSP3, RSP2, RSP5, RSP4, RSP7, RSP6. All pairs are reversed!

Seems like some odd kind of endianness thing, not sure how it ended up like that but at least I understand now where I was going wrong. :D
 
pasting worked! :p

Code:
U-Boot 1.0.0 (Oct 17 2005 - 15:56:00)

U-Boot code: 03F40000 -> 03F95054  BSS: -> 03F989E8
DRAM Configuration:
Bank #0: 00100000 63 MB
Flash:  0 kB
NAND:Probing at 0x9c000000
Flash chip found:
  Manufacturer ID: 0xEC, Chip ID: 0x76 (Samsung K9F1208 64Mb)
1 flash chips found. Total nand_chip size: 64 MB
Get Environment from NAND offset 0x60000 ... 
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
DPC->DPC_CNTL:0x5
Hit any key to stop autoboot:  1  0 
GP2X# 
GP2X# loads
## Ready for S-Record download ...
............................
## First Load Addr = 0x00008000
## Last  Load Addr = 0x000134F3
## Total Size      = 0x0000B4F4 = 46324 Bytes
## Start Addr      = 0x00008000
GP2X# go 0x8000
## Starting application at 0x00008000 ...
Command = 0x0377
CMD55 Response status 0037, R1 = 0000 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0377
CMD55 Response status 0037, R1 = 0000 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 80FF 8000
Command = 0x0742
Raw data = 0254 4D53 4432 3536 0772 9EE6 0F00 4147

Card CID Contents:

Manufacturer ID   = 02
Application ID    = 544D
Product name      = SD256
Product revision  = 07
Serial Number     = 729EE60F
Manufacture year  = 2004
Manufacture month = 1

Iterations taken  = 18
Command = 0x0343
Raw data = 33FC 0520
RCA = 33FC
Command = 0x0749
Raw data = 002D 0032 1359 83CC F6DA CF80 1640 00EB

Card CSD Contents:

CSD Structure Version = 00
Read Access Time #1   = 2D
Read Access Time #2   = 00
Transfer Speed        = 25000 kHz
Command Classes       = 0135
Read Block Length     = 512 bytes
Read Block Partial    = 01
Write Block Misalign  = 00
Read Block Misalign   = 00
DSR Implemented       = 00
CSIZE                 = 0F33
Vdd Read Current Min  = 60 mA
Vdd Read Current Min  = 80 mA
Vdd Write Current Min = 60 mA
Vdd Write Current Min = 80 mA
CSIZE Multiplier      = 05
Erase Block Enable    = 01
Erase Block Size      = 1F
W-Protect Grp Size    = 00
W-Protect Grp Enable  = 00
R2W Factor            = 32
Write Block Length    = 512 bytes
Write Block Partial   = 00
File Format Group     = 00
Copy                  = 00
Permanent W-Protect   = 00
Temporary W-Protect   = 00
File Format           = 00

Card Capacity (bytes) = 255066112
Card Capacity (kB)    = 249088
Card Capacity (MB)    = 243

Erase Sector Size     = 16384 bytes

Command = 0x0347
Raw data = 0000 0700
Command = 0x0347
SdSendCommandBlocking (7) failed - code = 1
InitSD returned 5
cCcCc
 
Ok,

This is a dump from my dev board with a cheap'o Viking 256MB SD.
I did not bother with MMC's but I have a few so I can test if you want.

No idea about your flashy LCD light trick Rob, no LCD to look at ;-).

Code:
loads

## Ready for S-Record download ...
............................
## First Load Addr = 0x00008000
## Last  Load Addr = 0x000134F3
## Total Size      = 0x0000B4F4 = 46324 Bytes
## Start Addr      = 0x00008000
MMSP2 # go 0x8000

## Starting application at 0x00008000 ...
Command = 0x0377
CMD55 Response status 0037, R1 = 0000 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0377
CMD55 Response status 0037, R1 = 0000 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 00FF 8000
Command = 0x0742
SdSendCommandBlocking (2) failed - code = 1
Command = 0x0377
CMD55 Response status 0037, R1 = 0040 0120
Command = 0x0369
CMD41 Response status 003F, R1 = 80FF 8000
Command = 0x0742
Raw data = 0254 4D53 4432 3536 0779 CAA1 1100 497F

Card CID Contents:

Manufacturer ID   = 02
Application ID    = 544D
Product name      = SD256
Product revision  = 07
Serial Number     = 79CAA111
Manufacture year  = 2004
Manufacture month = 9

Iterations taken  = 19
Command = 0x0343
Raw data = 4BDA 0520
RCA = 4BDA
Command = 0x0749
Raw data = 002D 0032 1359 83CC F6DA CF80 1640 00EB

Card CSD Contents:

CSD Structure Version = 00
Read Access Time #1   = 2D
Read Access Time #2   = 00
Transfer Speed        = 25000 kHz
Command Classes       = 0135
Read Block Length     = 512 bytes
Read Block Partial    = 01
Write Block Misalign  = 00
Read Block Misalign   = 00
DSR Implemented       = 00
CSIZE                 = 0F33
Vdd Read Current Min  = 60 mA
Vdd Read Current Min  = 80 mA
Vdd Write Current Min = 60 mA
Vdd Write Current Min = 80 mA
CSIZE Multiplier      = 05
Erase Block Enable    = 01
Erase Block Size      = 1F
W-Protect Grp Size    = 00
W-Protect Grp Enable  = 00
R2W Factor            = 32
Write Block Length    = 512 bytes
Write Block Partial   = 00
File Format Group     = 00
Copy                  = 00
Permanent W-Protect   = 00
Temporary W-Protect   = 00
File Format           = 00

Card Capacity (bytes) = 255066112
Card Capacity (kB)    = 249088
Card Capacity (MB)    = 243

Erase Sector Size     = 16384 bytes

Command = 0x0347
Raw data = 0000 0700
Command = 0x0347
SdSendCommandBlocking (7) failed - code = 1
InitSD returned 5
CcCcCÿ


U-Boot 1.0.0 (Sep 12 2005 - 03:41:24)

U-Boot code: 03F80000 -> 03F998F4  BSS: -> 03F9D0DC
DRAM Configuration:
Bank #0: 00100000 63 MB
Flash:  0 kB
NAND:Probing at 0x9c000000
Flash chip found:
  Manufacturer ID: 0xEC, Chip ID: 0x76 (Samsung K9F1208 64Mb)
1 flash chips found. Total nand_chip size: 64 MB
Get Environment from NAND offset 0x20000 ... 
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:
 
Back
Top