SD corruption(no suspend and sd_max_clk tested)

GNUtoo at no-log.org GNUtoo at no-log.org
Fri Sep 19 14:57:29 CEST 2008


> If you can amend the kernel commandline in U-Boot to have
>
> ~ glamo_mci.sd_max_clk=10000000
>
> then the change will have effect from the first time the card is looked
> at in Linux and I guess it will work around it.
>
> I just ordered a bunch of 8GB cards to see if I can reproduce this and
> finally solve it.
here's the result of cat /proc/cmdline:
glamo_mci.sd_max_clk=10000000 rootfstype=jffs2 root=/dev/mtdblock6
console=ttySAC2,115200 console=tty0 loglevel=8 regular_boot
mtdparts=physmap-flash:-(nor);neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000(rootfs)
cat /sys/module/glamo_mci/parameters/sd_max_clk
10000000

I tried to install debian:
SD_PART1_FS=vfat ./install.sh all

then it hanged after fdisk process:
Writing superblocks and filesystem accounting information:
Warning, had trouble writing out superblocks.done

This filesystem will be automatically checked every 33 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
then:

# dmesg
cblk0, sector 7882296
end_request: I/O error, dev mmcblk0, sector 7882304
end_request: I/O error, dev mmcblk0, sector 7882312
glamo-mci glamo-mci.0: Error after cmd: 0x8122
mmcblk0: error -84 sending read/write command
glamo-mci glamo-mci.0: Error after cmd: 0x4302
end_request: I/O error, dev mmcblk0, sector 7882320
end_request: I/O error, dev mmcblk0, sector 7882328
end_request: I/O error, dev mmcblk0, sector 7882336
end_request: I/O error, dev mmcblk0, sector 7882344
end_request: I/O error, dev mmcblk0, sector 7882352
end_request: I/O error, dev mmcblk0, sector 7882360
end_request: I/O error, dev mmcblk0, sector 7882368
end_request: I/O error, dev mmcblk0, sector 7882376
etc...





More information about the community mailing list