Re: [beagleboard] Debugging with beaglebone black

2016-03-20 Thread William Hermans
https://www.google.com/search?q=how+to+debug+linux+kernel+modules Just like you would on any platform. On Thu, Mar 17, 2016 at 8:46 PM, John Syne wrote: > To debug kernel modules with JTAG, you have to have a debugger which is > kernel aware like Lauterbach. If you don’t want to use JTAG, then

Re: [beagleboard] Debugging with beaglebone black

2016-03-19 Thread John Syne
CCSV4 was partially aware, but CCSV5 and CCSV6 are not. http://processors.wiki.ti.com/index.php/Linux_Aware_Debug_(CCSv4.x) Regards, John > On Mar 18, 2016, at 2:29 PM, Mark Lazarewicz wrote: > > John I remember using La

Re: [beagleboard] Debugging with beaglebone black

2016-03-19 Thread John Syne
Problem with GDB, is you cannot start the debugger until after the kernel module is loaded, which means no debugging of init or probe sections. The reason is GDB doesn’t know where in memory the kernel module is loaded until after it is loaded. This is why you need a kernel aware debugger like

[beagleboard] Debugging with beaglebone black

2016-03-19 Thread cmajor . merchant
I have a question about the beaglebone black. How am suppose to debug with it? I really would prefer not to have to solder a JTAG header. Also the JTAG header would be under the board which is really inconvenient. The case that came with my board also has no room for the JTAG header so it would

Re: [beagleboard] Debugging with beaglebone black

2016-03-19 Thread John Syne
Oh, and one more thing, CCSV4 won’t work with the V4 kernels because of data structure changes in the kernel. Regards, John > On Mar 18, 2016, at 2:51 PM, John Syne wrote: > > CCSV4 was partially aware, but CCSV5 and CCSV6 are not. > > http://processors.wiki.ti.com/index.php/Linux_Aware_D

Re: [beagleboard] Debugging with beaglebone black

2016-03-19 Thread 'Mark Lazarewicz' via BeagleBoard
John I remember using Lauterbach to do this isn't CCS  kernel aware?  Sent from Yahoo Mail on Android On Fri, Mar 18, 2016 at 1:24 PM, John Syne wrote: Problem with GDB, is you cannot start the debugger until after the kernel module is loaded, which means no debugging of init or probe sec

Re: [beagleboard] Debugging with beaglebone black

2016-03-19 Thread John Syne
To debug kernel modules with JTAG, you have to have a debugger which is kernel aware like Lauterbach. If you don’t want to use JTAG, then use printk or dev-dbg, dev-err, etc. You can also use ftrace, which requires you to build your own kernel and add support for the various ftrace features. Rea

Re: [beagleboard] Debugging with beaglebone black

2016-03-18 Thread William Hermans
That is, kgdb . . . On Fri, Mar 18, 2016 at 1:50 AM, William Hermans wrote: > https://www.google.com/search?q=how+to+debug+linux+kernel+modules > > Just like you would on any platform. > > On Thu, Mar 17, 2016 at 8:46 PM, John Syne wrote: > >> To debug kernel modules with JTAG, you have to have