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

Re: [microblaze-uclinux] Compiling uClinux on MicroBlaze



Ashish,

Ashish Darbari wrote:

Have been struggling with this for a while, does anyone have a clue? My .mhs and .mss is attached.

What Jose was trying to explain to you, is that you still have not connected the interrupt signal from the opb_timer to the interrupt controller. See below:


BEGIN opb_intc
 PARAMETER INSTANCE = opb_intc_0
 PARAMETER HW_VER = 1.00.c
 PARAMETER C_BASEADDR = 0x41200000
 PARAMETER C_HIGHADDR = 0x4120ffff
 BUS_INTERFACE SOPB = mb_opb
 PORT Irq = Interrupt
 PORT Intr = RS232_Uart_1_Interrupt & SysACE_CompactFlash_SysACE_IRQ & LEDs_4Bit_IP2INTC_Irpt
END


BEGIN opb_timer
 PARAMETER INSTANCE = opb_timer_0
 PARAMETER HW_VER = 1.00.b
 PARAMETER C_ONE_TIMER_ONLY = 1
 BUS_INTERFACE SOPB = mb_opb

  PARAMETER C_BASEADDR = ????
  PARAMETER C_HIGHADDR = ???

  PORT Interrupt = timer_irq

END


There are several problems here.

1. You haven't assigned base or high addresses to the OPB_TIMER - this is why the BASEADDR was 0xffffffff - basically for EDK that means it was unassigned. Use EDK / platform studio to assign an address.

2. There is no connection from the timer's interrupt port - again use EDK to do this

3. The (missing) timer interrupt port, is not connected to the interrupt controller. The line in the opb_intc block, shold be something like this:

PORT Intr = RS232_Uart_1_Interrupt & SysACE_CompactFlash_SysACE_IRQ & LEDs_4Bit_IP2INTC_Irpt & timer_irq

That will get your hardware pretty much sorted out.

I recommend you take a look at the reference designs provided by Xilinx, or in PetaLinux (hardware/reference-designs) - they show the basic requried structure of a microblaze system required if you want to run Linux on it.

Also, it sounds like you would benefit from doing some of the EDK tutorials on things like adding peripherals, assigning base addresses and so on. It will make your life a lot easier if you have a strong understanding of what's going on underneath.

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/