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

Re: [microblaze-uclinux] uclinux on microblaze



Hi Sebastien,

The name of the memory interface controller on the ML505 board is
DDR2_SDRAM_32Mx32 (Multi-CHannel OPB Double Data Rate 2 (DDR2)
Synchronous DRAM (SDRAM) Controller). The version of the core is mch_opb_ddr2 v1.01.a
I have tried with uclinux BSPs and petalinux BSPs and for these two
packages, I can't select the main_memory parameter.
Could you tell me how to fix it for the two BSPs?

Replace the file ${PETALINUX}/hardware/edk_user_repository/PetaLogix/bsp/petalinux_v1_00_a/data/petalinux_v2_1_0.mld

with the attached file, and you should then be able to select the DDR2 memory controller.

Regards,

John
#---------------------------------------------------------------------------
#
#   File:       petalinux_v2_1_0.mld
#   Created:    
#   Creator:    
#
#       ===================================================================
#       Copyright C - 2004-2006 All rights reserved. PetaLogix.
#
#       No part of this program may be reproduced or adapted in any form
#       or by any means, electronic or mechanical, without permission from 
#       PetaLogix. This program is confidential and may not be disclosed, 
#       decompiled or reverse engineered without permission in writing from 
#       PetaLogix.
#       ===================================================================
#
#     PetaLogix auto-config BSP Generation tool
#

OPTION psf_version = 2.1;

BEGIN OS petalinux

OPTION DRC = petalinux_drc;
OPTION SUPPORTED_PERIPHERALS = (microblaze ppc405 ppc405_virtex4);
OPTION DESC = "Generate BSP for PetaLogix / PetaLinux kernel 2.4";

PARAMETER name = TARGET_DIR, desc = "Destination directory for PetaLinux BSP (auto-config.in)", type = string;

PARAMETER name = stdout, desc = "stdout peripheral for bootloader", type = peripheral_instance, requires_interface=stdout, default = none;
PARAMETER name = stdin, desc = "stdin peripheral for bootloader", type = peripheral_instance, requires_interface=stdin, default = none;

PARAMETER name = main_memory, desc ="Name of Main Memory used with PetaLinux", type = peripheral_instance, range=(opb_ddr,opb_emc,plb_ddr,plb_emc,opb_sdram,plb_sdram,mch_opb_sdram,mch_opb_ddr, mch_opb_ddr2, plb_ddr2), default = none;
PARAMETER name = main_memory_bank, desc="Bank Nr. within memory controller of main memory", type = integer, default = -1;
PARAMETER name = main_memory_start, desc="Manual override of main memory start address",type = integer, default = -1;
PARAMETER name = main_memory_size, desc="Manual override of main memory size", type = integer, default = 0;
PARAMETER name = main_memory_offset, desc="Manual override of main memory start offset", type = integer, default = 0;

PARAMETER name = flash_memory, desc ="Name of Flash Memory Controller used with PetaLinux", type = peripheral_instance, range=(opb_emc,plb_emc,none), default = none;
PARAMETER name = flash_memory_bank, desc="Bank Nr. within memory controller of flash memory", type = integer, default = -1;
PARAMETER name = flash_memory_start, desc="Manual override of flash memory startaddress", type=integer, default=-1;
PARAMETER name = flash_memory_size, desc="Manual override of flash memory size", type = integer, default = 0;
PARAMETER name = flash_memory_offset, desc="Manual override of flash memory start offset", type = integer, default = 0;

PARAMETER name = lmb_memory, desc = "Name of LMB Memory used with PetaLinux", type = peripheral_instance, range=(lmb_bram_if_cntlr,opb_bram_if_cntlr,none), default = none;

PARAMETER name = periph_type_overrides, desc = "List of peripheral type overrides", type = string, default = "";

BEGIN CATEGORY microblaze_exceptions
        PARAM name = microblaze_exceptions, type = bool, default = false, desc = "Setting ignored", permit = none, dep = (special = microblaze);

BEGIN ARRAY microblaze_exception_vectors
        PROPERTY desc = "Unused. Exception handling managed by PetaLinux kernel";
        PROPERTY size = 1;
        PROPERTY default = ((XEXC_NONE, default, 1));
        PARAM name = exception, type = enum, values = ("Unused" = XEXC_NONE), desc = "Unused", permit=none;
        PARAM name = handler, type = string, desc = "Unused";
        PARAM name = callback, desc = "Unused";

END ARRAY
END CATEGORY


END OS