[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Problem downloading kernel
On Apr 8, 2005 10:19 PM, Steve Sanders <akasanders@yahoo.com> wrote:
>
> From my experience with using the MicroBlaze, I can definitely say that
> a memory test returning PASS does not necessarily mean that your memory
> subsystem is working. (Of course, this applies to processors other
> than the MicroBlaze.)
>
> Does the memory test code execute from block RAM? Or does it execute
> from external memory? These are two entirely different memory access
> "use cases" that can give you different levels of confidence in your
> external memory subsystem.
It executes from block RAM I think. I used the automatically generated
TestApp which carries several tests on the DDR RAM. It uses the test
functions from the xilinx libraries.
>
> Steve
>
>
> --- Bertrand Rousseau <bertrand.rousseau@gmail.com> wrote:
>
> > On Apr 8, 2005 5:28 PM, Kristian Chaplin
> > <kristian.chaplin@xilinx.com> wrote:
> > > Hello Bertrand,
> > >
> > > It is vital to ensure that the system is "known good" before
> > starting
> > > out trying to run uclinux on the board.
> > >
> > > Have you tried the testapp application that gets built when you run
> > the
> > > Base System Builder?
> >
> > Yes I did, it tests the memory and return "PASSED" to every test, so
> > I
> > supposed it is alright. Do you have advise concerning the testing of
> > the platform? Until now I only made use of theses "builtin" tests.
> >
> > >
> > > I see you are running at 100 MHz. It would be worth checking that
> > the
> > > timing is met also.
> >
> > Maybe I should try to lower the frequency. I just used the default
> > value provided by BSB.
> >
> > >
> > > Once you download the binary to the target, does the memory
> > contents
> > > look reasonable when you command XMD with the MRD and MWR commands?
> >
> > Well, when the binary (I mean the "testapp" application) is first
> > downloaded, I can use the mrd and mrw commands on my systems, and it
> > works fine. But once the kernel has been downloaded with the 'dow
> > -data ...' command, I'm unable to use these commands anymore, xmd
> > always answer "operation not supported", so I suspect that the
> > download corrupts my hardware design, even I don't have any proof of
> > that.
> >
> > Bertrand.
> >
> > >
> > > Best regards
> > >
> > > Kris
> > >
> > > --
> > >
> >
> ------------------------------------------------------------------------
> > > ----
> > > / /\/ Kris Chaplin
> > > \ \ Application Engineer - Embedded Processors
> > > / / Xilinx Europe
> > > \_\/\ +44 (0)870-7356-563
> > >
> > >
> > > -----Original Message-----
> > > From: owner-microblaze-uclinux@itee.uq.edu.au
> > > [mailto:owner-microblaze-uclinux@itee.uq.edu.au] On Behalf Of
> > Bertrand
> > > Rousseau
> > > Sent: 08 April 2005 07:00
> > > To: microblaze-uclinux@itee.uq.edu.au
> > > Subject: [microblaze-uclinux] Problem downloading kernel
> > >
> > > Hi everyone,
> > >
> > > I have some problems downloading the kernel into the DDR memory.
> > I'm
> > > using the XMD 'dow -data' command in order to do it. And xmd
> > connects
> > > fine to the microblaze:
> > >
> > > seraphin:~/TFE/no_ethernet_uclinux> xmd
> > > WARNING: fr_BE:fr_FR:fr:en_GB:en is not supported as a language.
> > > Using usenglish.
> > > Xilinx Microprocessor Debug (XMD) Engine
> > > Xilinx EDK 6.3 Build EDK_Gmm.12.3
> > > Copyright (c) 1995-2004 Xilinx, Inc. All rights reserved.
> > >
> > > XMD%
> > > XMD% xload mhs system.mhs
> > > Loading MHS File..
> > > Processor(s) in System ::
> > >
> > > Microblaze(1) : microblaze_0
> > > Address Map for Processor microblaze_0
> > > (0x00000000-0x00003fff) dlmb_cntlr dlmb
> > > (0x00000000-0x00003fff) ilmb_cntlr ilmb
> > > (0x84000000-0x8400ffff) opb_timer_1 mb_opb
> > > (0x84010000-0x8401ffff) opb_intc_0 mb_opb
> > > (0x84020000-0x8402ffff) debug_module mb_opb
> > > (0x84030000-0x8403ffff) RS232 mb_opb
> > > (0x84040000-0x8404ffff) Push_Button_SW4 mb_opb
> > > (0x84050000-0x8405ffff) LEDs mb_opb
> > > (0x84060000-0x8406ffff) DIP_Switches mb_opb
> > > (0x84800000-0x84ffffff) FLASH mb_opb
> > > (0x86000000-0x87ffffff) DDR_SDRAM_16Mx16 mb_opb
> > >
> > > XMD% connect mb mdm
> > > Connecting to cable (Parallel Port - parport0).
> > > WinDriver v6.23 Jungo (c) 1997 - 2004 Build Date: Nov 17 2004 X86
> > > 11:07:00.
> > > parport0: baseAddress=0x378, ecpAddress=0x778
> > > LPT base address = 0378h.
> > > ECP base address = 0778h.
> > > ECP hardware is detected.
> > > Cable connection established.
> > > Connecting to cable (Parallel Port - parport0) in ECP mode.
> > > Module xpc4drvr is not loaded.
> > > Cable connection failed.
> > > Connecting to cable (Parallel Port - parport0).
> > > WinDriver v6.23 Jungo (c) 1997 - 2004 Build Date: Nov 17 2004 X86
> > > 11:07:00.
> > > LPT base address = 0378h.
> > > ECP base address = 0778h.
> > > Cable connection established.
> > > ECP port test failed. Using download cable in compatibility mode.
> > >
> > > JTAG chain configuration
> > > --------------------------------------------------
> > > Device ID Code IR Length Part Name
> > > 1 05057093 16 XCF08P
> > > 2 0167c093 10 XC4VLX25
> > > Assuming, Device No: 2 contains the MicroBlaze system
> > > Connected to the JTAG MicroBlaze Debug Module (MDM)
> > > No of processors = 1
> > >
> > > MicroBlaze Processor 1 Configuration :
> > > -------------------------------------
> > > Version............................3.00.a
> > > No of PC Breakpoints...............2
> > > No of Read Addr/Data Watchpoints...1
> > > No of Write Addr/Data Watchpoints..1
> > > Instruction Cache Support..........off
> > > Data Cache Support.................off
> > > MBsfsl(0)-MDMmfsl(0) Connected..........Yes
> > > JTAG MDM Connected to MicroBlaze 1
> > > Connected to "mb" target. id = 0
> > > Starting GDB server for "mb" target (id = 0) at TCP port no 1234
> > > XMD%
> > >
> > > But once it is done, I get this message when I run the program:
> > >
> > > XMD% dow -data /home/bertrand/TFE/uClinux-dist/images/image.bin
> > > 0x86000000
> > > XMD% con 0x86000000
> > > Processor started. Type "stop" to stop processor
> > > RUNNING>
> > > XMD%
> > > ERROR:EDK - MicroBlaze Pipeline Stalled executing Instruction at >>
> > PC:
> > > 0x00000000
> > > Try Resetting the Processor to Continue..
> > >
> > > So I can't even check if the download was right. I'm not sure, but
> > it
> > > seems that the configuration of my FPGA is completely broken after
> > > that, because when I try basic command after the download I alway
> > > these errors:
> > >
> > > XMD% rrd
> > > Target Cannot perform the Operation
> > >
> > > XMD% mrd 0x86000000
> > > Target Cannot perform the Operation
> > >
> > > Could anyone help me to find what the problem is? This problem is a
> > > real nightmare for me now. Oh, and I'm using EDK 6.3i under linux.
> > >
> > > Here are my system.mhs and system.mss files:
> > >
> > > ___________________________
> > > 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/
>
>
___________________________
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/