* Can't disassemble my device driver
@ 2002-09-04 22:19 Tom Stefanski
2002-09-05 7:29 ` Wolfgang Denk
2002-09-05 11:03 ` Neil Horman
0 siblings, 2 replies; 3+ messages in thread
From: Tom Stefanski @ 2002-09-04 22:19 UTC (permalink / raw)
To: linuxppc-embedded
I have a adatron bdi 2000 connected to my target board and have
successfully load the linux kernel and set breakpoint in schedule
However when I load my device driver, it's text section is a 0xD11D6060
and the kernel is a 0xC00xxxxx. When is disassemble any routine in my
driver, I get all zeros.
I have MMU xlate set in the config file and I program the mmu correctly
since I can break a schedule. Any help would be apprecciated
Tom
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Can't disassemble my device driver
2002-09-04 22:19 Can't disassemble my device driver Tom Stefanski
@ 2002-09-05 7:29 ` Wolfgang Denk
2002-09-05 11:03 ` Neil Horman
1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2002-09-05 7:29 UTC (permalink / raw)
To: Tom Stefanski; +Cc: linuxppc-embedded
Hi Tom,
in message <3D76870E.5244CED5@seranoa.com> you wrote:
>
> I have a adatron bdi 2000 connected to my target board and have
> successfully load the linux kernel and set breakpoint in schedule
> However when I load my device driver, it's text section is a 0xD11D6060
> and the kernel is a 0xC00xxxxx. When is disassemble any routine in my
> driver, I get all zeros.
See the hints (and utility scripts) in section "8.2.2. Dynamically
Loaded Device Drivers (Modules)" of our documentation at
http://www.denx.de/doc/TQM8xxL/debugging.html
> I have MMU xlate set in the config file and I program the mmu correctly
> since I can break a schedule. Any help would be apprecciated
You also have to use PTBASE in combination with a kernel that updates
these pointers. See the BDI2000 documentation.
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
In theory, there is no difference between theory and practice. In
practice, however, there is.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Can't disassemble my device driver
2002-09-04 22:19 Can't disassemble my device driver Tom Stefanski
2002-09-05 7:29 ` Wolfgang Denk
@ 2002-09-05 11:03 ` Neil Horman
1 sibling, 0 replies; 3+ messages in thread
From: Neil Horman @ 2002-09-05 11:03 UTC (permalink / raw)
To: Tom Stefanski; +Cc: linuxppc-embedded
Tom Stefanski wrote:
> I have a adatron bdi 2000 connected to my target board and have
> successfully load the linux kernel and set breakpoint in schedule
> However when I load my device driver, it's text section is a 0xD11D6060
> and the kernel is a 0xC00xxxxx. When is disassemble any routine in my
> driver, I get all zeros.
>
> I have MMU xlate set in the config file and I program the mmu correctly
> since I can break a schedule. Any help would be apprecciated
>
>
> Tom
>
>
>
Did you remember to specify the text address when you added the symbol file in
gdb? If you didn't type 'help add-symbol-file' in gdb and it will explain where
you can specify the starting text address of your device driver module.
Neil
--
/******************************************************************
*Neil Horman
*Software Engineer
*LVL7 Systems
*13000 Weston Pkwy.
*Cary, NC 27513
*(919)-865-2915
*nhorman@lvl7.com
*PGP keyID 0xB5E1020A
*http://www.keyserver.net/en
*******************************************************************/
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-09-05 11:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-04 22:19 Can't disassemble my device driver Tom Stefanski
2002-09-05 7:29 ` Wolfgang Denk
2002-09-05 11:03 ` Neil Horman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).