On Thu, Jan 18, 2007 at 05:17:43PM +0000, Daniel Ribeiro wrote:
> I am not able to mount a 2gb SD using the openezx kernel on my a780.
> The same card works with the original motorola kernel. Are there any
> known issues about that?
> 

Possible it's same issue as with 2Gb SD card. Such cards reports that they
can use block size > 512 bytes but they can't. As a result I got I/O
error. Little patch to force 512 bytes block size can help.. There are a
lot of such patches available. I just set blocksize to 512 bytes after
detection and printk() old value. 

-- 
WBR, Dmitry
--- ./mmc/mmc_block.c.orig	2006-04-27 13:14:07.000000000 +0300
+++ ./mmc/mmc_block.c	2006-12-21 01:36:02.000000000 +0200
@@ -364,6 +364,12 @@ static struct mmc_blk_data *mmc_blk_allo
 		ret = -EINVAL;
 		goto err_kfree;
 	}
+	/*
+	 * Fix for 2Gb SD cards
+	 */
+	printk(KERN_WARNING "mmc_block: detected block size is %u bytes. Forcing 512 bytes\n",
+		1 << md->block_bits);
+	md->block_bits = 9;
 
 	md->disk = alloc_disk(1 << MMC_SHIFT);
 	if (md->disk == NULL) {

Attachment: signature.asc
Description: Digital signature

Reply via email to