[HD2 Android NAND Development] lukedunk:
I was also having this problem but famewolf's post tipped me off to the problem. It seems the new CWM 1.3 has an error in the flash.cfg file for the 400MB partition layout. If you're flashing via DFT this won't apply to you. Fix as follows:

1. Backup your rom using CWM if needed.

2. Go into CWM "Recovery_400M" folder

3. Open file "flash.cfg" (make sure its the .cfg file, not the .txt file)

4. Change line "cache ya 4M" to "cache ya 40M"

5. Save file

6. Run DAF to reflash CWM with this new partition layout

7. Recover your ROM from backup, or re-flash via CWM

8. Market now works

Note: famewolf originally suggested a 10MB cache size, but i checked out the cache size on Motoman's DAF version and found it was 40MB. Seems to give snappier performance.

famewolf's full post below. I don't fully understand the bits at the end. Thanks famewolf!!

---------------------------------------------------------

The default cwm 400mb partition only allocates 4mb to cache. When I recently reflashed the partition sizes for magldr 1.13 and clockworks 1.3 I increased the cache size to 10mb and was able to install a handful of apps that had been sitting for days.

*clarification* Download clockworkmod 1.3.....make a backup of your rom.....edit the flash.cfg that comes in clockworkmod 1.3 prior to running the dft flash step and change cache to 10mb....flash using magldr option.....do a restore so your rom is loaded into the new sized partitions....try your downloads again. I noted that the problem mostly appeared with larger downloads..can't guarantee it's a permanent solution but right now I can install everything.

The other solution I found that also helped some was to rename/delete a file that was in .android-secure on the sd card...apparently it can occasionally get corrupted.

Finally I found this paragraph in the clockworkmod main post:

The cache partition flashed is only 10MB so that recovery can still use it, to get cache to work in android, make a directory in data called cachemnt and on boot symlink /cache to /data/cachemnt

and I note that /data/cachemnt symlink does not exist to /cache.....this can be fixed via adb by sending "adb shell ln -s /cache /data/cachemnt" ....since the symlink doesn't take up any space I chose to add it as "insurance".

The default cwm 400mb partition only allocates 4mb to cache. When I recently reflashed the partition sizes for magldr 1.13 and clockworks 1.3 I increased the cache size to 10mb and was able to install a handful of apps that had been sitting for days.

*clarification* Download clockworkmod 1.3.....make a backup of your rom.....edit the flash.cfg that comes in clockworkmod 1.3 prior to running the dft flash step and change cache to 10mb....flash using magldr option.....do a restore so your rom is loaded into the new sized partitions....try your downloads again. I noted that the problem mostly appeared with larger downloads..can't guarantee it's a permanent solution but right now I can install everything.

The other solution I found that also helped some was to rename/delete a file that was in .android-secure on the sd card...apparently it can occasionally get corrupted.

Finally I found this paragraph in the clockworkmod main post:

The cache partition flashed is only 10MB so that recovery can still use it, to get cache to work in android, make a directory in data called cachemnt and on boot symlink /cache to /data/cachemnt

and I note that /data/cachemnt symlink does not exist to /cache.....this can be fixed via adb by sending "adb shell ln -s /cache /data/cachemnt" ....since the symlink doesn't take up any space I chose to add it as "insurance".