Re: Mips Kernel Debugger
From: Robert Kaiser (bitbucket_at_invalid-domain-see-sig.nil)
Date: 04/06/05
- Next message: Robert Kaiser: "Re: Embedded linux boards"
- Previous message: prakash B: "Re: Mips Kernel Debugger"
- In reply to: prakash B: "Re: Mips Kernel Debugger"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 6 Apr 2005 12:36:43 GMT
In article <c66e7e14.0504060259.61d2d72@posting.google.com>,
prakash_bunks@rediffmail.com (prakash B) writes:
> I am using serial port(null modem) connection to my target from host
> machine. The software which embeeded in my target downloads the Image
> from my host machine using ethernet connection. My target has got
> previlage for only one serial port. Actually I have gone through the
> link below mentioned,
> "http://linux.junsun.net/porting-howto/porting-howto.html"
> I followed the steps it has mentioned, but I am getting more undefined
> references as follows.
>
> arch/mips/kernel/kernel.o: In function `getpacket':
> arch/mips/kernel/kernel.o(.text+0x85ac): undefined reference to
> `getDebugChar'
>
>
>
> The site says that, I need to provide board specific UART routines.
> Here I am using Atheros board, where I could find the definitions for
> these routines.
Just look at the source :-)
(# find <sourcetree> -type f | xargs grep getDebugChar)
You'll probably find that getDebugChar() is expected to have this
prototype:
char getDebugChar(void)
You'll also probably find that another function called putDebugChar()
is required:
void putDebugChar(char)
What these functions are supposed to do is not really hard to guess:
getDebugChar should wait until a character is available from the
UART and, as soon as there is, it should return it.
putDebugChar should transmit a character through the UART
(possibly waiting until the UART's transmit hold is ready to accept
another character).
So, what you need to provide is essentially a very simple, polled (i.e.
*not* interrupt-driven) driver for the UART on your board. Your
hardware manual should give hints as to how to do that. Also use
google: you may be lucky find some sample code for your UART that
you can cannibalize...
Rob
-- Robert Kaiser email: rkaiser AT sysgo DOT com SYSGO AG http://www.elinos.com Klein-Winternheim / Germany http://www.sysgo.com
- Next message: Robert Kaiser: "Re: Embedded linux boards"
- Previous message: prakash B: "Re: Mips Kernel Debugger"
- In reply to: prakash B: "Re: Mips Kernel Debugger"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|