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

Re: [microblaze-uclinux] auto-config question



Hi William,

wlovell wrote:

> I am handing the config file. It appears that the auto-config generator 
> looks at the EMC says ok 4 banks and the largest is 0x00000000 - 
> 0xFFFFFFFF (default value from the IP I presume) I only have one bank on 
> each of the EMC IPs. The programmer can not get the kernel built with 
> the file, I presume from his complaints because his system looks at all 
> the different addresses and sees all sorts of over laps.

 From your auto-config.in:

# MAIN_MEMORY Settings
define_hex CONFIG_XILINX_ERAM_START 0xffffffff
define_hex CONFIG_XILINX_ERAM_SIZE 0x00000002

# FLASH_MEMORY Settings
define_hex CONFIG_XILINX_FLASH_START 0xffffffff
define_hex CONFIG_XILINX_FLASH_SIZE 0x00000002

The MAIN_MEMORY and FLASH_MEMORY settings in your MSS file are wrong, 
you are missing the _BANK=... option.  This is necessary to specify 
which specific bank of the memory controller instance controls the memory.

It should probably look something ilke this:

BEGIN OS
...

   PARAMETER MAIN_MEMORY=sram
   PARAMETER MAIN_MEMORY_BANK=0
   PARAMETER FLASH_MEMORY=flash
   PARAMETER FLASH_MEMORY_BANK=0
...
END

Also you have other wierdness in your MHS file:

define_hex CONFIG_XILINX_MICROBLAZE0_ICACHE_BASEADDR 0x00000000
define_hex CONFIG_XILINX_MICROBLAZE0_ICACHE_HIGHADDR 0x00000FFF
...
define_hex CONFIG_XILINX_MICROBLAZE0_DCACHE_BASEADDR 0x00001000
define_hex CONFIG_XILINX_MICROBLAZE0_DCACHE_HIGHADDR 0x00001FFF
define_int CONFIG_XILINX_MICROBLAZE0_USE_DCACHE 1

Your cacheable address ranges overlap with the LMB memory space.  While 
not strictly wrong, this is just a waste of BRAM.  Caching LMB memory 
has no effect, you'll be much better to cache the cacheable address 
range to match the SRAM region.

Regards,

John

___________________________
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/