Kernel driver debugging
I am looking for the best way to debug kernel modules/drivers.
I am trying to get a PCI Audio Card (Creative SBLive) working just to do some testing. (ie don't want to spend a lot of time on PCI or this particular card.)
In addition we would like to have a way to read registers and other values from the hardware as we go forward.
What is the best solution?
Are there any good docs on-line for xmon, kgdb, and/or kdb?
I have also read about BDM4GDB and BDI2000. Is BDI2000 worth the cost? Are there other BDM's for the 405 which work well with Linux?
Thanks again,
Ira Weiny
Digital Home Technologies
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 2 lines · In message <[email protected]> you wrote:
I am looking for the best way to debug kernel modules/drivers.
Get a decent debugger :-)
Quoted 2 lines
In addition we would like to have a way to read registers and other values from the hardware as we go forward.
That's one of the basic factions of any BDM/JTAG debugger...
Quoted 1 line
What is the best solution?
Get yourself a BDI2000.
Quoted 2 lines
I have also read about BDM4GDB and BDI2000. Is BDI2000 worth the cost? Are there other BDM's for the 405 which work well with Linux?
The BDM4GDB is working only with MPC8xx CPU's (at least in the current version). I don't know of any effort to adapt it for the 40x.
And yes, the BDI2000 is worth every single dollar you pay for it.
Feel free to contact me for details...
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] Defaults are wonderful, just like fire.
- Larry Wall in <[email protected]>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 1 line · Wolfgang Denk
And yes, the BDI2000 is worth every single dollar you pay for it.
Yep, and then some. We are having great luck with this unit here, and I highly recommend it to anyone doing low-level stuff with the PowerPC and Linux...
Regards,
Bryan
--
Bryan Rittmeyer
mailto:[email protected]
Ixia Communications
26601 W. Agoura Rd.
Calabasas, CA 91302
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
What about IBM's tools: RiscWatch and RiscTrace? Does anyone have any experience with these, and how do they differ from the BDI2000?
Thanks,
John
------------------------------
John Cagle <[email protected]>
Quoted 5 lines · Bryan Rittmeyer
Quoted 1 line · Wolfgang Denk
And yes, the BDI2000 is worth every single dollar you pay for it.
Quoted 7 lines
Yep, and then some. We are having great luck with this unit here, and I highly recommend it to anyone doing low-level stuff with the PowerPC and Linux...
Regards,
Bryan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 3 lines · John Cagle
What about IBM's tools: RiscWatch and RiscTrace? Does anyone have any experience with these, and how do they differ from the BDI2000?
RiscWatch runs on Wintel. It doesn't come anywhere near integrating well with Linux. I also encountered problems because the RiscWatch doesn't give you as much control over the initialization it does to the processor. The bottom line for me is that it is *way* nicer to use ddd on top of gdb debugging a kernel built with -ggdb using the Abatron. RiscTrace should give you the advantage of being able to see the past execution of your code, but in practice, I never found it very useful.
Scott
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/