[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Porting help
Hi Richard,
Richard Klosinski wrote:
> Anyway, I have modified the heartbeat routine in mbvanilla to just toggle the state of the output pin, and i get the led's blinking at 1x a second. so something is working. Oldly, the heartbeat does not blink using the stock code. However the parameter 'value' is passed to it, it must not be changing.
The heartbeat functionality is split across two functions -
mach_heartbeat(value) is a machine dependent function that is used to
"drive" the value in some physical way, and LED or whatever. This
function is called from time.c:timer_interrupt().
The problem in the existing codebase with the heartbeat is not that it's
not blinking, but that the mach_heartbeat function for mbvanilla is
driving the wrong bit in the GPIO. There is a historical reason for
this, a change in the way EDK/platgen handled bit positions between
EDK3.2 and 6.1. I've corrected it in my local tree, one day I'll upload
it to the CVS>
> During the boot process, I see a few printk message being executed, but none ever appear on my terminal. I verified operation of the ports outside of linux.
I'll have a closer look at the files you posted, see if there's clues in
there.
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/