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

Re: [microblaze-uclinux] Flash memory in microblaze Uclinux



hi,
thx for ur help, but I have no idea now to modify the script for 8
bits mode, can you show me how to do so?

thx
SKY


On Wed, 16 Mar 2005 13:35:28 +0100, Schunke Jan-Hendrik
<Schunke@shf-communication.de> wrote:
> Hi Sky,
> 
> You have to "source" the xmdflash.tcl script. After you started xmd enter:
> 
> XMD% source /path_to_script/xmdflash.tcl
> 
> Press "fhelp" to get some information about the provided commands.
> Set the base address of your flash memory controller (mine was 0x81800000):
> 
> XMD% base 0x81800000
> 
> Then try to earse the whole chip
> 
> XMD% face
> 
> Then you can try to write:
> 
> %XMD fmwr 0x81800000 0xdeadc0de
> 
> Then try to read
> 
> %XMD fmrd 0x81800000
> 
> You might have to change the defines at the start of the script for 8 Bit mode:
> 
> -- snip --
> 
> # = 555 shifted by  2 bit because lower 2 address lines are not connected (Word Access Mode)
> set FLASH_COMMAND_ADDR_555 [expr $FLASH_BASEADDR + 0x01554]
> # = 2AA shifted by  2 bit because lower 2 address lines are not connected (Word Access Mode)
> set FLASH_COMMAND_ADDR_2AA [expr $FLASH_BASEADDR + 0x0aa8]
> set FLASH_COMMAND_AA               0x00AA00AA
> set FLASH_COMMAND_55               0x00550055
> set FLASH_COMMAND_READ_RESET       0x00F000F0
> set FLASH_COMMAND_ERASE            0x00800080
> set FLASH_COMMAND_AUTO_CHIP_ERASE  0x00100010
> set FLASH_COMMAND_AUTO_BLOCK_ERASE 0x00300030
> set FLASH_COMMAND_AUTO_PROGRAM     0x00A000A0
> set FLASH_DQ7                      0x00800080
> set FLASH_DQ5                      0x00200020
> 
> -- snip --
> 
> Hope that helps
> 
> Jan
> 
> > -----Ursprüngliche Nachricht-----
> > Von: owner-microblaze-uclinux@itee.uq.edu.au
> > [mailto:owner-microblaze-uclinux@itee.uq.edu.au] Im Auftrag
> > von sky sky
> > Gesendet: Dienstag, 15. März 2005 20:20
> > An: microblaze-uclinux@itee.uq.edu.au
> > Betreff: Re: [microblaze-uclinux] Flash memory in microblaze Uclinux
> >
> >
> > hi jan,
> >
> > Yeah, the DQ15  will select LSB in x8 mode. How can I use the
> > two file that u have gave me to check the flash chip, in xmd?
> >
> > SKY
> >
> >
> > On Tue, 15 Mar 2005 09:21:31 +0100, Schunke Jan-Hendrik
> > <Schunke@shf-communication.de> wrote:
> > > Hi Sky,
> > >
> > > A long time ago I wrote some tcl tools to write to flash
> > using xmd. If
> > > you want to verify your flash is working it might be a good idea to
> > > check out
> > >
> > >
> > http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux/Downloads/_files/f
> > > lashtools.tar.gz
> > >
> > > This is for AMD like flashes but I guess the M29W320 DT should be
> > > compatible. For AMD flash D15 is used as an extra address
> > (A-1, LSB)
> > > in x8 mode. Is that connected right?
> > >
> > > You might need to change the above flashtools because of x8
> > mode but
> > > that should be quite simple.
> > >
> > > Jan
> > >
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: owner-microblaze-uclinux@itee.uq.edu.au
> > > > [mailto:owner-microblaze-uclinux@itee.uq.edu.au] Im
> > Auftrag von sky
> > > > tam
> > > > Gesendet: Dienstag, 15. März 2005 05:56
> > > > An: microblaze-uclinux@itee.uq.edu.au
> > > > Betreff: Re: [microblaze-uclinux] Flash memory in
> > microblaze Uclinux
> > > >
> > > >
> > > > Hi Steve,
> > > >
> > > > The flash that I am using is from ST, it is M29W320DT, I have
> > > > connect it as x8. How can u check whether the flash is
> > working. is
> > > > there any read/write method to check it? can u tell me
> > which files
> > > > in MBvanilia are need to modify for flash.
> > > >
> > > > thx
> > > > SKY
> > > >
> > > >
> > > > On Mon, 14 Mar 2005 09:34:25 -0800 (PST), Steve Sanders
> > > > <akasanders@yahoo.com> wrote:
> > > > >
> > > > > Can you provide some detail about the type of flash
> > you're using
> > > > > (e.g., AMD, Intel, etc.) and how it is connected (e.g., x8,
> > > > x16, x32)?
> > > > > Just went through this yesterday for a Virtex 4 board
> > and got it
> > > > > working OK...  You may need to change the bus width expected in
> > > > > the MBVanilla flash probe to match your board.  We also removed
> > > > > the "JEDEC" configuration option(s) from the OS config.  Wasn't
> > > > needed for
> > > > > probing Intel Strataflash.
> > > > >
> > > > > Steve
> > > > >
> > > > > --- sky tam <waimingsky1@gmail.com> wrote:
> > > > > > Hi,
> > > > > >
> > > > > > I am using uClinux on microblaze, I am trying to add a flash
> > > > > > chip memory to my system to make it portable from everytime
> > > > downloading
> > > > > > kernel into my system. From john website, the flash part is
> > > > > > still underconstruction, so is there anyone successfully
> > > > > > integrated a flash into your system?
> > > > > >
> > > > > > I tried to read some value out from my flash chip, by
> > using "mrd
> > > > > > 0xff000000" in XMD (0xff000000 is my flash base
> > address) , there
> > > > > > were FFFFFFFF comming out. is it alright? When I plot a
> > > > uClinux into
> > > > > > my system, something like this:
> > > > > >
> > > > > > MBVanilla flash probe(0xff000000,8388608,4): 800000
> > at ff000000
> > > > > > CFI: Found no Flash device at location zero
> > > > > > Search for id:(ffff ffff) interleave(2) type(2)
> > > > > > Search for id:(ffff ffff) interleave(2) type(2)
> > > > > > Search for id:(ffff ffff) interleave(2) type(2)
> > > > > > Search for id:(ff ff) interleave(2) type(1)
> > > > > > Search for id:(ff ff) interleave(2) type(1)
> > > > > > Search for id:(ff ff) interleave(2) type(1)
> > > > > > Search for id:(ffff ffff) interleave(4) type(2)
> > > > > > Search for id:(ffff ffff) interleave(4) type(2)
> > > > > > Search for id:(ffff ffff) interleave(4) type(2)
> > > > > > Search for id:(ff ff) interleave(4) type(1)
> > > > > > Search for id:(ff ff) interleave(4) type(1)
> > > > > > Search for id:(ff ff) interleave(4) type(1)
> > > > > > JEDEC: Found no Flash device at location zero
> > > > > > MBVanilla ram probe(0x80176754,634880,4): 9b000 at
> > > > 80176754 Creating
> > > > > > 1 MTD partitions on "RAM": 0x00000000-0x0009b000 : "Romfs"
> > > > > >
> > > > > > does it mean, found flash or not??
> > > > > > how can I check the flash chip avaliability under uClinux??
> > > > > >
> > > > > > thx
> > > > > > SKY
> > > > > > ___________________________
> > > > > > microblaze-uclinux mailing list
> > > > > > microblaze-uclinux@itee.uq.edu.au Project Home Page :
> > > > > > http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> > > > > > Mailing List Archive :
> > > > > > http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> > > > > >
> > > > > >
> > > > > ___________________________
> > > > > microblaze-uclinux mailing list
> > microblaze-uclinux@itee.uq.edu.au
> > > > > Project Home Page :
> > > > http://www.itee.uq.edu.au/> ~jwilliams/mblaze-uclinux
> > > > > Mailing
> > > > List Archive :
> > > > http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> > > > >
> > > > >
> > > > ___________________________
> > > > microblaze-uclinux mailing list microblaze-uclinux@itee.uq.edu.au
> > > > Project Home Page :
> > > > http://www.itee.uq.edu.au/> ~jwilliams/mblaze-uclinux
> > > > Mailing
> > > > List Archive :
> > > > http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> > > >
> > > >
> > > >
> > > > --
> > > > This message has been scanned for viruses and
> > > > dangerous content by MailScanner, and is
> > > > believed to be clean.
> > > >
> > > >
> > >
> > > --
> > > This message has been scanned for viruses and
> > > dangerous content by MailScanner, and is
> > > believed to be clean.
> > >
> > >
> > > ___________________________
> > > microblaze-uclinux mailing list
> > > microblaze-uclinux@itee.uq.edu.au
> > > Project Home Page :
> > http://www.itee.uq.edu.au/> ~jwilliams/mblaze-uclinux
> > > Mailing
> > List Archive :
> > http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> > >
> > >
> >
> > ___________________________
> > microblaze-uclinux mailing list
> > microblaze-uclinux@itee.uq.edu.au
> > Project Home Page :
> > http://www.itee.uq.edu.au/> ~jwilliams/mblaze-uclinux
> > Mailing
> > List Archive :
> > http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> >
> >
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> >
> >
> 
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 
> ___________________________
> microblaze-uclinux mailing list
> microblaze-uclinux@itee.uq.edu.au
> Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> 
>

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/