Re: Help with building gdb with BDM support for the Coldfire

Chris Johns <[email protected]> Fri, 02 May 2008 10:39:15 +1000
Newsgroups gmane.comp.hardware.motorola.microcontrollers.coldfire
Message-ID <[email protected]>
Mark Giacobbe wrote:
> Before (see below), I could not use the test of
> 
>     telnet localhost bdm
> 
> I would get a refused connection.  I found the issue for that.  The bdm 
> file for xinetd.d was incorrect.  I had to change the path to the 
> server.  The included one in the README was incorrect for my system.
> 
> I changed it from
> service bdm
>       {
>         socket_type  = stream
>         port    = 6543
>         wait    = no
>         user    = root
>         server    = /usr/sbin/bdmd
>         server_args  = -n
>         log_on_failure  += USERID
>         disable    = no
>       }
> 
> to
> service bdm
>       {
>         socket_type  = stream
>         port    = 6543
>         wait    = no
>         user    = root
>         server    = /usr/local/sbin/bdmd
>         server_args  = -n
>         log_on_failure  += USERID
>         disable    = no
>       }
> 
> for the server I had to add 'local' to the path.
> 

Interesting. I think the doco should be changed to include local as this is 
the default prefix the package should build for. I prefer we build for local 
and keep the package out of the operating system paths.

Thanks for the feed back.

> Now telnet works (for both user and root) and gdb works for both user 
> and root.   Also I changed the owner/group for m68k-bdm-elf-gdb, and 
> m68k-gdb-server to user (not sure if this was needed, but I did it 
> anyway).  I did this because I configured/compiled/installed everything 
> as root.

You should not need to change the owner/group as the permissions should allow 
any user to run the program.

Regards
Chris
---
[email protected]              Send a post to the list.
[email protected]        Join the list.
[email protected]    Join the list in digest mode.
[email protected]     Leave the list.