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

Re: [microblaze-uclinux] error setting up sdram memory



Hi Ryan,

A couple of things:

You'd be better off with the newer, PetaLinux BSP tools qather than the old uClinux ones, but that's up to you.

Also, multiCPU is not officially supported, but it can be done.

But, specific to your problem , please see my comments below:

BEGIN opb_ddr

 PARAMETER C_MEM0_BASEADDR = 0x24000000
 PARAMETER C_MEM0_HIGHADDR = 0x25FFFFFF

END


opb_ddr is a banked memory controller ...


BEGIN opb_sdram

 PARAMETER C_BASEADDR = 0x24000000
 PARAMETER C_HIGHADDR = 0x25FFFFFF

opb_sdram is not...

BEGIN OS
 PARAMETER OS_NAME = uclinux
 PARAMETER OS_VER = 1.00.d
 PARAMETER PROC_INSTANCE = microblaze_0
 PARAMETER lmb_memory = dlmb_cntlr_0
 PARAMETER main_memory_bank = 0
 PARAMETER main_memory = sdram_0

so specifying a bank number of the sdram_0 (opb_ddr) controller makes sense...

 PARAMETER stdin = RS232_0
 PARAMETER stdout = RS232_0
 PARAMETER TARGET_DIR = ./linux
END

BEGIN OS
 PARAMETER OS_NAME = uclinux
 PARAMETER OS_VER = 1.00.d
 PARAMETER PROC_INSTANCE = microblaze_1
 PARAMETER lmb_memory = dlmb_cntlr_1
 PARAMETER main_memory_bank = 0
 PARAMETER main_memory = sdram_1

but for sdram_1 (opb_sdram) there should be no bank number.

 PARAMETER stdin = RS232_1
 PARAMETER stdout = RS232_1
 PARAMETER TARGET_DIR = ./linux
END


Also, it's unlikely that you want to use the same TARGET_DIR directive for both CPUs. This will cause a clash in the output of the auto-config.in files (ie the 2nd one will overwrite the first one).

Regards,

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