linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Flash Device Driver
@ 2001-03-24  1:13 kingseft
  2001-03-28 19:26 ` Stability of MontaVista's 2.4.0-test2-1.2.2-1 Sébastien Côté
  0 siblings, 1 reply; 14+ messages in thread
From: kingseft @ 2001-03-24  1:13 UTC (permalink / raw)
  To: linuxppc-embedded


 Hello,

 I found Flash Device driver related files in linux-2.4.3-pre3-2001-03-11
 I have Intel TE28F160B3(2MBytes, 16bit port size, bottom boot type) flash memory.

 Question1:
 Can I use my intel flash memory for your flash device driver?
 I got flash vendor id : CFI_VENDOR_INTEL_STANDARD
 so , I modified your code like this.
  } else if ((primary_vendor == CFI_VENDOR_INTEL_SHARP_EXTENDED) ||
           (primary_vendor == CFI_VENDOR_INTEL_STANDARD) ) {
 Is it possible ??

 Question2:
 when kernel booted, I found this messages.
 Found 1x16bit 2MBytes CFI Flash device of type Intel Standard at 0xFFE00000
 registered flash device /dev/flasha (minor 0, 4 partitions)
 and when I got shell prompt. I made like this.
 mknod /dev/flasha c 60 0
 mknod /dev/flasha1 c 60 1
 mknod /dev/flasha2 c 60 2
 mknod /dev/flaaha3 c 60 3
 mknod /dev/flasha4 c 60 4

 I tried like this.
 ls -al >> result.txt
 cat result.txt >> /dev/flasha4
 cat /dev/flasha4
 but I coudn't find my result.txt contents..
 Is it impossible??

 Questions3:
 I read your README but I had a question.
 Where can I find flash_erase ??
 W. Denx wrote flash_erase /dev/flasha start_addr end_addr
 Thanks for any comments and replyings...

 kingseft


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: Flash Device Driver
@ 2001-03-24  1:37 Wolfgang Denk
  0 siblings, 0 replies; 14+ messages in thread
From: Wolfgang Denk @ 2001-03-24  1:37 UTC (permalink / raw)
  To: kingseft; +Cc: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 1933 bytes --]

In message <H00002af04b2e173@MHS> kingseft wrote:
>
>  I found Flash Device driver related files in linux-2.4.3-pre3-2001-03-11
>  I have Intel TE28F160B3(2MBytes, 16bit port size, bottom boot type) flash memory.
>
>  Question1:
>  Can I use my intel flash memory for your flash device driver?

I think it should run without any modifications.

>  I got flash vendor id : CFI_VENDOR_INTEL_STANDARD
>  so , I modified your code like this.
>   } else if ((primary_vendor == CFI_VENDOR_INTEL_SHARP_EXTENDED) ||
>            (primary_vendor == CFI_VENDOR_INTEL_STANDARD) ) {
>  Is it possible ??

Where did you modify code? Please show the  output  of  a  "diff  -u"
command!

>  Question2:
>  when kernel booted, I found this messages.
>  Found 1x16bit 2MBytes CFI Flash device of type Intel Standard at 0xFFE00000
>  registered flash device /dev/flasha (minor 0, 4 partitions)
>  and when I got shell prompt. I made like this.

This looks good, the flash has correctly been recognized.

>  I tried like this.
>  ls -al >> result.txt
>  cat result.txt >> /dev/flasha4

To use the auto-erase feature of the driver, you must  write  with  a
blocksize  that  is  a  multiple of the erase block size of the flash
chips.

Try something like

	dd if=result.txt of=/dev/flasha4 bs=128k conv=sync

>  cat /dev/flasha4
>  but I coudn't find my result.txt contents..
>  Is it impossible??

Probably the flash was not erased? Were there any error messages?

>  Questions3:
>  I read your README but I had a question.
>  Where can I find flash_erase ??
>  W. Denx wrote flash_erase /dev/flasha start_addr end_addr
>  Thanks for any comments and replyings...

See attachment.

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
Not one hundred percent efficient, of course ... but nothing ever is.
	-- Kirk, "Metamorphosis", stardate 3219.8


[-- Attachment #2: flash_tools.tar.bz2 --]
[-- Type: application/x-bzip2 , Size: 2713 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2001-03-31  0:25 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-24  1:13 Flash Device Driver kingseft
2001-03-28 19:26 ` Stability of MontaVista's 2.4.0-test2-1.2.2-1 Sébastien Côté
2001-03-28 21:10   ` Mark A. Greer
2001-03-29 14:33     ` Alex Shnitman
2001-03-29 15:28       ` Tom Rini
2001-03-29 16:40       ` Sébastien Côté
2001-03-29 18:11         ` Mark A. Greer
2001-03-29 17:29       ` Mark A. Greer
2001-03-30  1:08         ` Alex Shnitman
2001-03-30 22:52     ` Sébastien Côté
2001-03-30 23:19       ` Mark A. Greer
2001-03-30 23:29         ` Mark A. Greer
2001-03-31  0:25         ` Ron Bianco
  -- strict thread matches above, loose matches on Subject: below --
2001-03-24  1:37 Flash Device Driver Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).