Help with building gdb with BDM support for the Coldfire
"Mark Giacobbe" <[email protected]> Mon, 28 Apr 2008 16:47:11 -0400
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers.coldfire |
|---|---|
| Message-ID | <[email protected]> |
Hi all - I'm trying to build gdb with bdm support for the Coldfire. I'm not a linux power user, but know enough to muddle my way through things. I'm using Fedora 8 (linux 2.6.24). I configured gdb 6.7 (--target=m68k-bdm-elf) and gdb seems to work. I then followed the README file in m68k-bdm-1.4-pre2 from sourceforge. It took a while to get the ioperm working, but it is working so far (I can connect to my custom target board at least). But it will only work if I run m68k-bdm-elf-gdb as root. This is how I start: [root@localhost bin]# ./m68k-bdm-elf-gdb GNU gdb 6.7 Copyright (C) 2007 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html > This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=i686-pc-linux-gnu --target=m68k-bdm-elf". (gdb) target remote | m68k-bdm-gdbserver pipe /dev/bdmcf0 Remote debugging using | m68k-bdm-gdbserver pipe /dev/bdmcf0 m68k-bdm: architecture 68000 connected to /dev/bdmcf0 m68k-bdm: Coldfire debug module version is 1 (5307/5407(e)) Process /dev/bdmcf0 created; pid = 0 0xb6eb7912 in ?? () (gdb) And this is what I get if I try to use it from my regular account: [pcmadm@localhost bin]$ ./m68k-bdm-elf-gdb GNU gdb 6.7 Copyright (C) 2007 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html > This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=i686-pc-linux-gnu --target=m68k-bdm-elf". (gdb) target remote | m68k-bdm-gdbserver pipe /dev/bdmcf0 Remote debugging using | m68k-bdm-gdbserver pipe /dev/bdmcf0 trying kernel driver: /dev/bdmcf0 trying bdm server: localhost:/dev/bdmcf0 Ignoring packet error, continuing... warning: unrecognized item "timeout" in "qSupported" response m68k-bdm: error: No such device or address m68k-bdm-gdbserver: Exiting Remote communication error: Resource temporarily unavailable. (gdb) What do I have to change so I can run this from my regular user account? Thanks in advance. Mark