Re: Mips Kernel Debugger

From: Robert Kaiser (bitbucket_at_invalid-domain-see-sig.nil)
Date: 04/06/05


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


Relevant Pages

  • carnt remove rndis connection
    ... I have been trying a build to use rndis and in the past this has worked. ... PB and the rndis connection over usb no longer works. ... target to host the target appears to run fine getting an ip address and ... The host PC though shows a new network card but ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Not able to connect to Device using Platform Builder
    ... the DHCP, assigned static IP address. ... have the target system connected to the same router. ... I checked the IP traffic from my host PC to target and I am seeing host PC ... connection. ...
    (microsoft.public.windowsce.embedded)
  • Re: Connect Host and target on Vxworks
    ... connected and debugged from the pc host. ... What are changes in files & also the settings to be done at both target ... professional operating system. ... through ethernet LAN connection. ...
    (comp.os.vxworks)
  • Re: Build your own Forth for Microchip PIC (Episode 837)
    ... put those tokens in RAM. ... This is the reason I'm wanting to use the host as a remote execution ... Test/Debug code on target recompiling and reloading as necessary. ... of implementing anything other than a batch forth compiler for it. ...
    (comp.lang.forth)
  • Re: User Creation problem in AD
    ... is any connection with RID because im not able to create new ... SOA record data from server: ... Performing upstream analysis. ... Performing downstream (of target) analysis. ...
    (microsoft.public.windows.server.active_directory)