<div dir="ltr"><div>The options you suggested are not clear to me. Can you elaborate how I would debug live kernel when all I have on the two systems is usb. Can you list the cable that I can use/order.<br><br></div>Thanks.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 26, 2017 at 5:49 AM, Greg KH <span dir="ltr">&lt;<a href="mailto:greg@kroah.com" target="_blank">greg@kroah.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, Apr 26, 2017 at 01:23:55PM +0200, Oliver Graute wrote:<br>
&gt; On 26/04/17, Greg KH wrote:<br>
&gt; &gt; On Tue, Apr 25, 2017 at 11:11:38PM +0200, Oliver Graute wrote:<br>
&gt; &gt; &gt; Hello list,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; i&#39;am using a null modem cable with two usb to serial converts on both<br>
&gt; &gt; &gt; ends between my develop and my target machine. The connection is fine.<br>
&gt; &gt; &gt; On both machines the serial interface is /dev/ttyUSB0 for this connection.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On the target machine I try to enable kgdboc<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; echo ttyUSB0 &gt; /sys/module/kgdboc/parameters/<wbr>kgdboc<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; but only got:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; echo write error: No such device<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; if I try:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; echo ttyS0 &gt; /sys/module/kgdboc/parameters/<wbr>kgdboc<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; is not complaining. Some ideas why ttyUSB0 can&#39;t be used with kgdb?<br>
&gt; &gt;<br>
&gt; &gt; USB needs interrupts in order to run properly, which kgdb doesn&#39;t enable<br>
&gt; &gt; when you stop the target, for obvious reasons :)<br>
&gt;<br>
&gt; ok that make sense<br>
&gt;<br>
&gt; &gt; Stick to a &quot;real&quot; serial connection and you should be fine.<br>
&gt;<br>
&gt; thats not so easy. Even the old notebooks today lacks a &quot;real&quot; serial<br>
&gt; connection. Perhaps I should use a raspberry as target. There I can get<br>
&gt; a serial over the gpios.<br>
<br>
</span>Why do you need to use a notebook where Linux works already for kgdb?<br>
That&#39;s traditionally only used to bring up new hardware platforms.<br>
<br>
Also, there is USB serial debugging cables as there is a special mode in<br>
the USB 2 and 3 controllers that can be enabled to handle serial<br>
messages without interrupts for console/printk early messages that<br>
people use.  The cables are not cheap to enable this, but worth it if<br>
you have to debug this type of target system.<br>
<br>
Good luck!<br>
<br>
greg k-h<br>
<div class="HOEnZb"><div class="h5"><br>
______________________________<wbr>_________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.<wbr>org</a><br>
<a href="https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">https://lists.kernelnewbies.<wbr>org/mailman/listinfo/<wbr>kernelnewbies</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">JS</div>
</div>