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

[microblaze-uclinux] Re: [microblaze-uclinux] Re: [microblaze-uclinux] Re: [microblaze-uclinux] Re: [microblaze-uclinux] [microblaze-uclinux] U-boot can’t download “image.ub”



Hi


> Hi,
> I managed to send petaLinux using a TFTP server. I plugged the FPGA card
> directly to PC.
> Concerning my petaLinux speed, I select caches on my EDK project but I
> never select any option on menuconfig to explain at system petaLinux
> must use this caches. Where can I valid the caches memories at software
> level and not at hardware level?

There are only some function for cache handling. Kernel works with information from Kconfig.auto.

> 
>  
> 
> Here the Microblaze part of “.mhs” file:
> 
> _________________________________________________________
> 
> BEGIN microblaze
> 
>  PARAMETER INSTANCE = microblaze_0
> 
>  PARAMETER HW_VER = 7.00.a
> 
>  PARAMETER C_DEBUG_ENABLED = 1
> 
>  PARAMETER C_USE_ICACHE = 1
> 
>  PARAMETER C_USE_DCACHE = 1
> 
>  PARAMETER C_FAMILY = virtex4
> 
>  PARAMETER C_INSTANCE = microblaze_0
> 
>  PARAMETER C_CACHE_BYTE_SIZE = 2048
> 
>  PARAMETER C_DCACHE_BYTE_SIZE = 2048
> 
>  PARAMETER C_ICACHE_BASEADDR = 0x88a00000
> 
>  PARAMETER C_ICACHE_HIGHADDR = 0x88afffff
> 
>  PARAMETER C_DCACHE_BASEADDR = 0x88a00000
> 
>  PARAMETER C_DCACHE_HIGHADDR = 0x88aFFFFF
> 
>  BUS_INTERFACE IPLB = mb_plb
> 
>  BUS_INTERFACE DPLB = mb_plb
> 
>  BUS_INTERFACE DEBUG = debug_module_MBDEBUG_0
> 
>  BUS_INTERFACE DXCL = microblaze_0_DXCL
> 
>  BUS_INTERFACE IXCL = microblaze_0_IXCL
> 
>  BUS_INTERFACE DLMB = dlmb
> 
>  BUS_INTERFACE ILMB = ilmb
> 
>  PORT INTERRUPT = Interrupt
> 
>  PORT MB_RESET = mb_reset
> 
> END


You have 1MB cached memory. How big memory do you have?


> ________________________________________________________
> 
>  
> 
> Michal, where is the “bogomips in kernel log “ ?

Memory: 253312k/262144k available
Calibrating delay loop... 61.03 BogoMIPS (lpj=305152)
Mount-cache hash table entries: 512

Regards,
Michal


> 
>  
> 
> Cordially, Thierry
> 
> 
> 
> 2009/4/3 Michal Simek <michal.simek@xxxxxxxxxxxxx
> <mailto:michal.simek@xxxxxxxxxxxxx>>
> 
>     Hi Thierry,
>     > Hi and thank you for help,
>     >
>     >
>     >
>     > When I send petaLinux by R232 and I use a simple command line as
>     “ls” or
>     > “cd” I see that petaLinux is very very slow. For example, the command
>     > “ls” put 2 seconds to display the file system.
>     >
>     >
>     >
>     > I am using a Virtex 4 with a Microblaze clocked at 100Mhz.
>     petaLinux is
>     > built with a 2.6 kernel. On ‘OS’ part of ‘.mss’ file I write
>     66666667 on
>     > CORE_CLOCK_FREQ_HZ parameter.
>     >
>     >
>     >
>     > I think the origin of my problem stems from that. What can I do for
>     > petaLinux get a better speed? I would like fix this petaLinux slowly
>     > problem before seeking something else.
> 
>     I think you don't use caches. Look at bogomips in kernel log -> if
>     is there something below 10
>     you don't use caches. You should enable them in hw design.
> 
>     Regards,
>     Michal
>     >
>     >
>     >
>     > Cordially,
>     >
>     > Thierry.
>     >
>     >
>     >
>     > 2009/4/2 Dr. Johann Pfefferl <j.pfefferl@xxxxxxxxx
>     <mailto:j.pfefferl@xxxxxxxxx>
>     > <mailto:j.pfefferl@xxxxxxxxx <mailto:j.pfefferl@xxxxxxxxx>>>
>     >
>     >     Hello,
>     >
>     >     I have found out that it depends also on the tftp server I use.
>     >     If I install the normal "tftpd" from the debian archive I had
>     the same
>     >     problems. Now I use the "atftpd" package (advanced TFTP
>     server) and
>     >     there are no longer any difficulties. u-boot sends some
>     "timeout" and
>     >     "blksize" information to the tftp server. The normal tftpd
>     ignores this
>     >     but the atftpd server honors this (especially the timeout stuff).
>     >
>     >     Hope this helps,
>     >      Hans
>     >
>     >     Thierry BESSIERE <t.bessiere@xxxxxxxxxxxxxxxxxxxxx
>     <mailto:t.bessiere@xxxxxxxxxxxxxxxxxxxxx>
>     >     <mailto:t.bessiere@xxxxxxxxxxxxxxxxxxxxx
>     <mailto:t.bessiere@xxxxxxxxxxxxxxxxxxxxx>>> wrote:
>     >     > Hi,
>     >     >
>     >     >
>     >     >
>     >     >
>     >     >
>     >     > I would like download “image.ub” with a TFTP server but
>     u-boot can’t
>     >     > download this file. Here is what I have in the hyper terminal:
>     >     >
>     >     >
>     >     >
>     >     > _______________________________________________________
>     >     >
>     >     > Load address: 0x8c000100
>     >     >
>     >     > Loading:
>     >     #################################################################
>     >     >
>     >     >          ##########T #T ###########T T T T T T T T
>     >     >
>     >     > Retry count exceeded; starting again
>     >     >
>     >     > TFTP from server 192.168.0.71; our IP address is 192.168.0.10
>     >     >
>     >     > Filename 'image.ub'.
>     >     >
>     >     > Load address: 0x8c000100
>     >     >
>     >     > Loading: #########################T #############T T T T
>     >     > #######################
>     >     >
>     >     > ####
>     >     >
>     >     >          ############T T T T T ###
>     >     >
>     >     > Retry count exceeded; starting again
>     >     >
>     >     > TFTP from server 192.168.0.71; our IP address is 192.168.0.10
>     >     >
>     >     > Filename 'image.ub'.
>     >     >
>     >     > Load address: 0x8c000100
>     >     >
>     >     > Loading: ############################T T T T T T T T T T
>     >     >
>     >     > Retry count exceeded; starting again
>     >     >
>     >     > TFTP from server 192.168.0.71; our IP address is 192.168.0.10
>     >     >
>     >     > Filename 'image.ub'.
>     >     >
>     >     > Load address: 0x8c000100
>     >     >
>     >     > Loading: T #T ####T T T T
>     >     > ######################################################
>     >     >
>     >     > ######
>     >     >
>     >     >          #############################T T T T
>     >     >
>     >     > Retry count exceeded; starting again
>     >     >
>     >     > _______________________________________________________
>     >     >
>     >     >
>     >     >
>     >     > I use these command lines before starting the download:
>     >     >
>     >     > _______________________________________________________
>     >     >
>     >     > setenv serverip 192.168.0.71
>     >     >
>     >     > setenv ipaddr 192.168.0.10
>     >     >
>     >     > setenv bootfile image.ub
>     >     >
>     >     > ________________________________________________________
>     >     >
>     >     > My questions ar the next :
>     >     >
>     >     >
>     >     > 1] Should I validate an option in menuconfig for the TFTP
>     protocol?
>     >     >
>     >     >
>     >     >
>     >     > 2] On EDK, I must modify the parameters of EMAC?
>     >     >
>     >     >
>     >     >
>     >     > 3] PetaLinux is very slow on the FPGA, The lost packets can
>     be the
>     >     > consequence of this?
>     >     >
>     >     >
>     >     >
>     >     > Best regards.
>     >     >
>     >     > Thierry
>     >
>     >     --
>     >     Dr. Johann Pfefferl   ------------   mailto j.pfefferl at
>     eubus dot net
>     >     Eubus GmbH          http://www.eubus.net
>     <http://www.eubus.net/> <http://www.eubus.net/>
>     >     ++++ http://www.ebmhydraxc.com <http://www.ebmhydraxc.com/>
>     <http://www.ebmhydraxc.com/>
>     >     Gollierstr. 70
>     >     D-80339 Muenchen
>     >     Phone: +49 (0)89 45 22 578-67     Fax: +49 (0)89 45 22 578-55
>     >     Registergericht Muenchen HRB 145 336, Ust-Id Nr. DE 225 783 933
>     >     Geschaeftsfuehrer: Volker Ulrich
>     >     ==
>     >      -o)   A computer program does what you tell it to do,
>     >      /\\        not what you want it to do.
>     >     _\_v-
>     >
>     >     ___________________________
>     >     microblaze-uclinux mailing list
>     >     microblaze-uclinux@xxxxxxxxxxxxxx
>     <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>
>     >     <mailto:microblaze-uclinux@xxxxxxxxxxxxxx
>     <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>>
>     >     Project Home Page :
>     http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
>     >     Mailing List Archive :
>     >     http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
>     >
>     >
> 
>     --
>     Michal Simek, Ing. (M.Eng)
>     PetaLogix - Linux Solutions for a Reconfigurable World
>     w: www.petalogix.com <http://www.petalogix.com/> p:
>     +61-7-30090663,+42-0-721842854 f: +61-7-30090663
>     ___________________________
>     microblaze-uclinux mailing list
>     microblaze-uclinux@xxxxxxxxxxxxxx
>     <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>
>     Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
>     Mailing List Archive :
>     http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> 
> 

-- 
Michal Simek, Ing. (M.Eng)
PetaLogix - Linux Solutions for a Reconfigurable World
w: www.petalogix.com p: +61-7-30090663,+42-0-721842854 f: +61-7-30090663
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/