lu richard | 1 Dec 2005 02:25
Picon
Favicon

Hotplugging about MMC

	I have a MMC card with FAT filesystem.
	I copy a file to it(first open, then write).
	During writing, I pulled out MMC card and an uncomplete file have been 
	created on it.
	I open and read this uncomplete file later, printing error messages as 
below:

	FAT: Filesystem panic (dev mmcblk0p1)
	    fat_bmap_cluster: request beyond EOF (i_pos 3655251)
	    File system has been set read-only
	FAT: Filesystem panic (dev mmcblk0p1)
	    fat_bmap_cluster: request beyond EOF (i_pos 3655251)

Now I expect kernel don't create an uncomplete file when pulling out MMC 
card,
How can I do?

Regards,
Richard

_________________________________________________________________
免费下载 MSN Explorer:   http://explorer.msn.com/lccn/  

lu richard | 1 Dec 2005 04:16
Picon
Favicon

Hotplugging about MMC

Hotplugging about MMC

	I have a MMC card with FAT filesystem.
	I copy a file to it(first open, then write).
	During writing, I pulled out MMC card and an uncomplete file have been 
created on it.
	I open and read this uncomplete file later, printing error messages as 
below:

	FAT: Filesystem panic (dev mmcblk0p1)
	    fat_bmap_cluster: request beyond EOF (i_pos 3655251)
	    File system has been set read-only
	FAT: Filesystem panic (dev mmcblk0p1)
	    fat_bmap_cluster: request beyond EOF (i_pos 3655251)

Now I expect kernel don't create an uncomplete file when pulling out MMC 
card,
How can I do?

Regards,
Richard

_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com  

Pierre Ossman | 1 Dec 2005 07:57

Re: Hotplugging about MMC

lu richard wrote:
> Now I expect kernel don't create an uncomplete file when pulling out MMC
> card,
> How can I do?
> 

Then you expect too much. Only journaling filesystems that also journal
data (like ext3) can handle something like that.

This is not the forum for a question like this anyway since this list is
about wbsd, not vfat. Please direct your question to
linux-kernel <at> vger.kernel.org.

Rgds
Pierre

Pierre Ossman | 6 Dec 2005 12:45

Re: 1 GB SD reading problem

Lorincz Barna wrote:
> Hi !
> 
> I have a SD card 1 GB capacity and my HP compaq nx7000 with integrated sd 
> reader doesn't want to read the card. The reader is working, because i 
> have tried with an other 
> 32 MB card and is reading/writing perfectly, after i have patched the 
> kernel with 2 patches sent to me.

A few points.

1. If I send you patches I expect you to report the results. How am I
supposed to know if they solve your problem and should be included in
future versions otherwise?

2. Use the mailing list for questions. Other people might be able to
answer your questions and it will be stored in the archive for future
people to see.

> I have 2.6.13.3 kernel and here is the dmesg :
> 
> /sbin/modprobe mmc-block
> /sbin/modprobe wbsd
> 
> 
> wbsd: Winbond W83L51xD SD/MMC card interface driver, 1.3
> wbsd: Copyright(c) Pierre Ossman
> pnp: Device 00:01 activated.
> wbsd [wbsd_pnp_probe()]: PnP resources: port 248 irq 6 dma 2
> wbsd [wbsd_set_ios()]: clock 0Hz busmode 1 powermode 0 Vdd 0
(Continue reading)

Lorincz Barna | 6 Dec 2005 13:34
Picon

Re: Re: 1 GB SD reading problem

Hi!

1. If I don't load the modules, there is happening nothing.
2. If I load the modules, appear in dmesg the following :
wbsd: Winbond W83L51xD SD/MMC card interface driver, 1.3
wbsd: Copyright(c) Pierre Ossman
pnp: Device 00:01 activated.
wbsd [wbsd_pnp_probe()]: PnP resources: port 248 irq 6 dma 2
wbsd [wbsd_set_ios()]: clock 0Hz busmode 1 powermode 0 Vdd 0
mmc0: W83L51xD id 7112 at 0x248 irq 6 dma 2 PnP
wbsd [wbsd_set_ios()]: clock 0Hz busmode 1 powermode 1 Vdd 21
wbsd [wbsd_set_ios()]: clock 375000Hz busmode 1 powermode 2 Vdd 21
MMC: starting cmd 00 arg 00000000 flags 00000000
wbsd [wbsd_send_command()]: Sending cmd (0)
wbsd [wbsd_send_command()]: Sent cmd (0), res 0
wbsd [wbsd_request_end()]: Ending request, cmd (0)
MMC: req done (00): 0: 00000000 00000000 00000000 00000000
MMC: starting cmd 01 arg 00000000 flags 00000001
wbsd [wbsd_send_command()]: Sending cmd (1)
wbsd [wbsd_send_command()]: Sent cmd (1), res 1
wbsd [wbsd_request_end()]: Ending request, cmd (1)
MMC: req done (01): 1: 00000000 00000000 00000000 00000000
wbsd [wbsd_set_ios()]: clock 0Hz busmode 1 powermode 0 Vdd 0

If i remove it :

wbsd: Card removed
wbsd [wbsd_set_ios()]: clock 0Hz busmode 1 powermode 1 Vdd 21
wbsd [wbsd_set_ios()]: clock 375000Hz busmode 1 powermode 2 Vdd 21
MMC: starting cmd 00 arg 00000000 flags 00000000
(Continue reading)

Pierre Ossman | 6 Dec 2005 13:47

Re: Re: 1 GB SD reading problem

Lorincz Barna wrote:
> Hi!
>
> 1. If I don't load the modules, there is happening nothing.
> 2. If I load the modules, appear in dmesg the following :
> wbsd: Winbond W83L51xD SD/MMC card interface driver, 1.3
> wbsd: Copyright(c) Pierre Ossman
> pnp: Device 00:01 activated.
> wbsd [wbsd_pnp_probe()]: PnP resources: port 248 irq 6 dma 2
> wbsd [wbsd_set_ios()]: clock 0Hz busmode 1 powermode 0 Vdd 0
> mmc0: W83L51xD id 7112 at 0x248 irq 6 dma 2 PnP
> wbsd [wbsd_set_ios()]: clock 0Hz busmode 1 powermode 1 Vdd 21
> wbsd [wbsd_set_ios()]: clock 375000Hz busmode 1 powermode 2 Vdd 21
> MMC: starting cmd 00 arg 00000000 flags 00000000
> wbsd [wbsd_send_command()]: Sending cmd (0)
> wbsd [wbsd_send_command()]: Sent cmd (0), res 0
> wbsd [wbsd_request_end()]: Ending request, cmd (0)
> MMC: req done (00): 0: 00000000 00000000 00000000 00000000
> MMC: starting cmd 01 arg 00000000 flags 00000001
> wbsd [wbsd_send_command()]: Sending cmd (1)
> wbsd [wbsd_send_command()]: Sent cmd (1), res 1
> wbsd [wbsd_request_end()]: Ending request, cmd (1)
> MMC: req done (01): 1: 00000000 00000000 00000000 00000000
> wbsd [wbsd_set_ios()]: clock 0Hz busmode 1 powermode 0 Vdd 0
>
>   

I see the problem. The kernel you're running doesn't have SD support.
You should install 2.6.14 or newer.

(Continue reading)

Stian B. Barmen | 11 Dec 2005 12:08
Picon

Compal CL56 / Zepto Znote 4200

I have this computer and I get the driver loaded (running ubuntu). When
I load it with irq 10 and dma / fifo I get it up in dmesg but it seems
not to see when I insert a card. 

Here is some info from /sys. The most disturbing is the disabled status,
but where do I enable?

stian <at> porty:/sys/bus/pnp/devices/00:0a$ ls
bus  id  options  power  resources
stian <at> porty:/sys/bus/pnp/devices/00:0a$ cat id
WEC0518
stian <at> porty:/sys/bus/pnp/devices/00:0a$ cat resources
state = disabled
stian <at> porty:/sys/bus/pnp/devices/00:0a$ cat options
Dependent: 01 - Priority acceptable
   port 0x248-0x248, align 0x7, size 0x8, 16-bit address decoding
   irq 6 High-Edge
Dependent: 02 - Priority acceptable
   port 0x200-0x2ff, align 0x7, size 0x8, 16-bit address decoding
   irq 6,10,11 High-Edge
stian <at> porty:/sys/bus/pnp/devices/00:0a$

Hope you have some tips!

More console output:
dmesg:
[4381954.752000] wbsd: Winbond W83L51xD SD/MMC card interface driver,
1.2
[4381954.752000] wbsd: Copyright(c) Pierre Ossman
[4381954.761000] mmc1: W83L51xD id 7112 at 0x248 irq 10 dma 2
(Continue reading)

Pierre Ossman | 11 Dec 2005 12:47

Re: Compal CL56 / Zepto Znote 4200

Stian B. Barmen wrote:
> I have this computer and I get the driver loaded (running ubuntu). When
> I load it with irq 10 and dma / fifo I get it up in dmesg but it seems
> not to see when I insert a card. 
> 
> Here is some info from /sys. The most disturbing is the disabled status,
> but where do I enable?
> 

The problem is that you've loaded wbsd without pnp support. What flags
are you giving the module?

Rgds
Pierre

Pierre Ossman | 11 Dec 2005 15:59

Re: Compal CL56 / Zepto Znote 4200

Stian B. Barmen wrote:

>søn, 11,.12.2005 kl. 12.47 +0100, skrev Pierre Ossman:
>
>  
>
>>Stian B. Barmen wrote:
>>    
>>
>>>I have this computer and I get the driver loaded (running ubuntu). When
>>>I load it with irq 10 and dma / fifo I get it up in dmesg but it seems
>>>not to see when I insert a card. 
>>>
>>>Here is some info from /sys. The most disturbing is the disabled status,
>>>but where do I enable?
>>>
>>>      
>>>
>>The problem is that you've loaded wbsd without pnp support. What flags
>>are you giving the module?
>>
>>Rgds
>>Pierre
>>    
>>
>
>You are right I tried to load it without PNP support, now I tried with
>PNP by loading the module with only the irq=10 option. This is the
>dmesg:
>  
(Continue reading)

Stian B. Barmen | 11 Dec 2005 15:45
Picon

SV: Compal CL56 / Zepto Znote 4200


>>>
>>
>>You are right I tried to load it without PNP support, now I tried with
>>PNP by loading the module with only the irq=10 option. This is the
>>dmesg:
>>  
>>
>
>It only uses the irq and port parameter when not in pnp mode. Otherwise
>it gets that information from the pnp system.
>
>>[4386455.875000] wbsd: Winbond W83L51xD SD/MMC card interface driver,
>>1.2
>>[4386455.875000] wbsd: Copyright(c) Pierre Ossman
>>[4386455.884000] pnp: Device 00:0a activated.
>>[4386455.889000] mmc3: W83L51xD id 7112 at 0x248 irq 6 FIFO PnP
>>
>>When I insert the SD/MMC card it still does not detect anything. Do you
>>have any more tips?
>>
>>Thanks for answering me so rapidly! :)
>>
>>  
>>
>
>Are you using MMC or SD? It is possible to wire the controller to only
>detect SD unfortunately. :-/

I am using an SD card. The reader is internal so how they have set it up I dont know, but it is said to read both SD
(Continue reading)


Gmane