[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[microblaze-uclinux] Re: [uClinux-dev] New to uClinux building
Richard Klosinski wrote:
> I'm trying to port uClinux for the Microblaze softcore to a new platform, and have a few questions that would help me understand more about what I'm doing. I have 4MBX16 of ram in my design.
> 1) What is the relationship between the amount of memory stated in the .ld file (mbvanilla.lb in my case) and the amount of memory used in root file system, ram file systems, and program memory?
The link script (ld file) is used when creating the kernel image. It
describes the memory map to the linker, for the purposes of creating the
kernel .elf image.
The only change to the link script is right at the top, where the
physical memory size is specified. If you have also changed the memory
base address (mbvanilla default is 0x80000000) then change that as well.
> 2) Im confused on how to get the memory laid out correctly. I would like a root file system and one ram disk, plus program memory in my 4Mx16 memory block. Which file system and mtd do I specify to get this done?
This is already the default configuration. Assuming that the only thing
different between your platform and the mbvanilla_net reference platform
is the physical memory base address and size, you should be able to
change just the ERAM_SIZE and ERAM_ADDR #defines in the file
> How someone can help me, as my system boots up to the shell prompt, but dies as some background task alocates memory.
Without seeing any error messages it's hard to know, but what you
describe is often a symptom of a memory size mismatch. Try the
suggestions above, and send a copy of the kernel boot log that results.
It may help us to better diagnose the problem.
microblaze-uclinux mailing list
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/