TT: FULL (RW) MMC CARD SUPPORT
Finally ... it's here ... BLOW CHAMPAGNE!!! I've made TT MMC driver working 
So TT (and after changing all TT to TT2 and tt to tt2 in the driver, TT2) has FULL RW MMC support!!!
Thanks belongs to:
1) Nikolay Petukhov - for writing basic driver (RO)
2) Gabriel Weber - for adding RW support
Grab latest driver here:
http://zabor.org/marex/palmtt.c
... or if that syntax highlighting damages that file, grab it here and rename
http://zabor.org/marex/palmtt.d
----ORIGINAL (that was here before ; deprecated)----
MMC card slot on TT (and TT2) is nearly working. I can mount first (!and only first - this is the prob) partition and read data from it. Writing should work, but is UNTESTED (not anymore
)!!! Howto follows...
(This is copy of mail I sent to Gabriel Weber this morning, explaining everything)
Hi, Gabriel
I have some progress with that mmc driver. The problem was probably cuz of
timing out of CMD18 and how I fixed it? I changed
if ( (i=mmc_palmtt2_response(host, 520, 3, 0xfe) )!=-1 ) {
to
if ( (i=mmc_palmtt2_response(host, 530, 10, 0xfe) )!=-1 ) {
on line 927 and 973. This made cmd17 (unused though) and cmd18 timeout much less and so I can read right data from the card all the time
(Partition table is recognized, fdisk -l shows right data, od -x /dev/mmcblk0 shows right data too
) It still timeouts from time to time, but itВґs not so bad anymore
Try it.
Why is it so - cuz when mmc has some data in buffer they look like
fffffffffe and so when there was 3 if was looking for the 0xfe on 4th place of those data in buffer max., not further. And that 0xfe was further in most of cases. So changing it to 10 and reading bigger block of
data (itВґs necessary to read at least (512+10+1) fixed it.
There is still small problem I dunno how to fix yet ... itВґs really weird ...
if I do od -x /dev/mmcblk0 | head -N20 then it returns right data but when I
od -x /dev/mmcblk0p2 | head -N20 then it doesnt return right data from the
beginning of that partition ... thatВґs still quite weird for me 
btw if you wanna discuss it and dont want to install any programs you can join our irc channel (#hackndev) over web interface here http://hackndev.com/cgi-bin/irc/irc.cgi
Best regards
Marek
Ad. weird problem - the problem is that I can only use the first partition ... dunno why yet.
UPDATE:
I can mount second partition if I boot from initramfs, but I still cant boot from it ... dunno why :S
UPDATE2:
I can do nearly anything now
))
I had just one DMA TX timeout, but that'd be fast to fix I guess.
Grab latest driver here:
http://zabor.org/marex/palmtt.c
... or if that syntax highlighting damages that file, grab it here and rename
http://zabor.org/marex/palmtt.d







