From: "Calò Massimo" <m.calo@ctsgroup.it>
To: "ucLinux-Mtd@Lists. Infradead. Org" <Linux-Mtd@Lists.Infradead.Org>
Cc: dedekind@yandex.ru
Subject: Newly-erased Block...
Date: Fri, 23 Sep 2005 15:29:07 +0200 [thread overview]
Message-ID: <002001c5c042$c76f1e90$050213ac@MCaloMobile> (raw)
Hi Artem,
do you remember about my flash problem?
>>/>mount -t jffs2 /dev/mtdblock5 /mnt
>>/>Newly-erased block contained word 0x4c004c at offest 0x00040000
>>Newly-erased block contained word 0x4c004c at offest 0x00030000
I have found the cause : the Samsung S3C4510b when access to the memory use
the "cache" by default.
If you have to disable it (like while you program the flash) you have to 'or
0x4000000 to the base address.
So I have modifyed the file "cfi_cmdset_0002.c" as follow :
for esample: "do_erase_chip" function
...
chip->start |= 0x4000000; //my modify!!!!!!!!!!!!!
chip->state = FL_ERASING;
ENABLE_VPP(map);
cfi_send_gen_cmd(0xAA,cfi->addr_unlock1,chip->start,map,cfi,......
I did the same for every "cfi_send_gen_cmd" : the 3rd parameter has been
ored to 0x4000000.
What do you think about this modify? Do you know a better way?
Now I still have one warning msg :
"Warning: DQ5 raised while program operation was in progress,
however operation completed OK"
Can I ignore this msg?
Thanks!
Massimo.
next reply other threads:[~2005-09-23 13:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-23 13:29 Calò Massimo [this message]
2005-09-23 13:32 ` Newly-erased Block Artem B. Bityutskiy
-- strict thread matches above, loose matches on Subject: below --
2005-07-28 16:20 Calò Massimo
2005-07-31 6:08 ` Artem B. Bityuckiy
2005-08-01 8:38 ` Calò Massimo
2005-08-02 8:12 ` Artem B. Bityuckiy
2005-08-01 12:36 ` David Woodhouse
2005-08-01 13:03 ` Calò Massimo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='002001c5c042$c76f1e90$050213ac@MCaloMobile' \
--to=m.calo@ctsgroup.it \
--cc=Linux-Mtd@Lists.Infradead.Org \
--cc=dedekind@yandex.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox