[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [linux_var] Compact flash "grandi" ed ext2



Elena of Valhalla wrote:
> Ciao
> 
> Mettendo un sistema linux su compact flash sto assistendo ad un
> fenomeno curioso (per usare un eufemismo): esistono alcune compact
> flash, a quanto pare dai 4GB in su, che non possono essere formattate
> in ext2: fdisk e mkfs.ext2 vanno a buon fine, ma quando si cerca di
> scriverci sopra dei dati ad un certo punto cominciano a dare una serie
> di input output error e non funzionano piu` fino ad una successiva
> formattazione
> 
> non e` un problema di singola compact flash: e` successo piu` volte
> con compact flash anche nuove e che successivamente ho provato
> riformattandole in fat32 senza piu` avere problemi
> 
> non succede con _tutte_ le compact flash: ho trovato delle compact
> flash da 4 e 8 gb che funzionavano senza problemi (cosi` come tutte
> quelle da 2 GB o meno che ho provato)
> 
> googlando non si trova niente, il che fa pensare che io abbia delle
> allucinazioni da abuso di caffeina, ma ho dei testimoni affidabili :D
> 
> qualcuno ha delle esperienze in proposito?
> 
Ciao Elena.
Non capisco se il problema di "io error" te lo da sul sistema
(embedded??) o sul tuo pc.
Perchè magari è una questione di driver...

Io ho smanettato solo con card SD e openwrt e questo è quello che si
dice del driver:

// INIZIO
The original mmc.o driver for OpenWrt does not supports 4 GB SD cards
because the byte address sent to the mmc/sd card is 32 bits, and the
arithmetic that calculates this from the block address uses a SIGNED
number. Therefore, the original mmc.o driver only supports cards whose
size is between -2 GB and +2 GB. This is a common problem with most
devices that use SD, because the SD specification only goes up to 2 GB,
and 4 GB SD cards are outside the spec and are therefore non-standard.
The new SD 2.0 (SDHC) standard supports 4 GB and larger cards using
sector-addressing rather than byte-addressing. I have made extensive
changes to MY copy of mmc.c, and I added support for 4 GB SD cards. I
plan to add SDHC support to the mmc.o driver as well...
// FINE

Forse sono andato oltre e anche un pò OT. La domanda è: sei su un
sistema embedded?

ciao
JohnnyRun


-- 
Per cancellare l'iscrizione: <talking-unsubscribe at ml.linuxvar.it>
Archivi web e configurazione: http://ml.linuxvar.it/ml/