[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] New board port
Hi Scott,
Scott Thibault wrote:
> I'm working on a new port (V2Pro board) and I have couple of questions.
> I've built an EDK project like the mbvanilla_net project. The only
> difference is I have 64MB of SDRAM instead of DDR, no flash, and only 8KB of
> BRAM. I've tested the memory with a simple test application and all is
> okay.
>
> Next, I tried downloading the demo image.bin. After waiting a long time
> (jtag connection), it finish and started to boot but got stuck at
> "Calibrating delay loop..." Any ideas what the cause might be?
As Aurash indicates, this usually means timer interrupts are not getting
through. It's also appeared from mismatches between the presence (or
absence) of the hardware multipler in the MHS file vs the uClinux kernel
configuration.
In your new platform, can you confirm that you have the interrupt
signals into the intrerrupt controller, in the same order as the
standard mbvanilla_net? The timer should be interrupt zero, then two
serial ports, then the ethernet MAC.
I would recommend you maybe take the mbvanilla_net MHS file, and morph
it minimally to match your boarc - it's less error-prone.
> My other questions are, how do I configure a kernel for my variation? That
> is increase memory to 64MB and remove flash? I could not find any settings
> for the amount of memory. The flash, I think, is an option to disable, but
> does the system dependent on the flash in anyway?
Change the kernel linker script as Aurash suggsted -
linux-2.4.x/arch/microblaze/mbvanilla.ld, and also the ERAM_START and
ERAM_SIZE #defines in linux-2.4.x/include/asm-microblaze/mbvanilla.h
> As far as the BRAM is concerned, it doesn't seem to be used for anything is
> it?
Currently, once uClinux boots the only role of the BRAM is to hold the
interrupt and system call vectors. However, the BRAM address space is
not managed by the kernel, so you can access it directly if you are careful.
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/