Re: KGDB on beagle

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 02 March 2009, Mark Underwood wrote:
> I'm looking at getting KGDB running on the Beagleboard
> (http://beagleboard.org/). The Beagleboard only has one
> serial port and USB OTG port for connectivity. At the
> moment the only methods for connection to the target
> device are serial port (using a 2nd serial port) or
> using an Ethernet adapter. Unfortunately the beagle has nether.     

Several serial ports are available on the expansion
connector, if you kick in 1.8V level shifters.

There's also JTAG (at 1.8V) which is probably the
most common solution for such boards.


> I would like to run KGDB over the USB device connection
> using the g_ether driver as I mount my rootfs over NFS.

I'd suggest g_composite, so you have the NFS root plus
a CDC-ACM serial-model link.

I don't know that's possible, but if it is then that's
how to do it.  KGDB over ssh or telnet sounds like a
neck-deep mess, instead of only a waist-deep one.


> Looking at KGDB sources I see that the g_ether driver
> would need to provide a rx_poll function. I assume this
> is due to the fact the interrupts could be disabled.

Erm, the whole USB driver stack would need to handle that.
That is, the musb_hdrc driver is the starting point for
such things.  I'd guess that's a real mess to deliver,
but you say there's some MontaVista code for it.  I'd
suggest you get their (GPL) code and look at it.

- Dave

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux