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

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



John,

Thank you very much, that solved the problem. I'm now able to get the auto-config.in file to compile uClinux. However when I run the image, it only gets so far then hangs after it prints the Mount cach hash table entries. I believe next it is supposed to print info about the buffer cache hash table entries. Do you have any ideas what I need to be looking for in my configuration? Here is a capture of the boot:

Linux version 2.4.32-uc0 (devel@localhost) (gcc version 3.4.1 ( Xilinx EDK 8.2 Build EDK_Im.12 180506 )) #131 Fri Jun 22 01:29:57 EDT 2007
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
CPU: MICROBLAZE
Kernel command line: ¸
Console: xmbserial on UARTLite
Calibrating delay loop... 3.46 BogoMIPS
Memory: 32MB = 32MB total
Memory: 28932KB available (1324K code, 2149K data, 64K init)
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)

-Ryan

John Williams wrote:
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/




--
Ryan Marotz <rmarotz@xxxxxxxxxx>
Architecture Technology Corp
952.829.5864 x160
___________________________
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/