[llvmlinux] rpi, serial and kgdb

Tinti viniciustinti at gmail.com
Mon Jan 21 23:28:26 UTC 2013


Thank you so much!

It is working like a charm. As you said on #llvmlinux:

CONFIG_HAVE_ARCH_KGDB=y
> CONFIG_KGDB=y
> CONFIG_KGDB_SERIAL_CONSOLE=y
>

Tinti


On Mon, Jan 21, 2013 at 3:37 PM, Jan-Simon Möller <dl9pf at gmx.de> wrote:

> Hi all!
>
> Here's a short documentation on how to use the serial port on the rpi with
> console and gdb:
>
>
> * Build your kernel with debugging symbols and kgdb (over serial) enabled.
>
>
> * Deploy it, boot it.
>
>
> * Change the kernel cmdline and add:
>
> console=ttyAMA0,115200 kgdboc=ttyAMA0,115200
>
> 1st is the serial console, 2nd is the gdb connection.
>
>
> * download and build agent-proxy
> git clone http://git.kernel.org/pub/scm/utils/kernel/kgdb/agent-proxy.git
> cd agent-proxy
> make
> ./agent-proxy 5550^5551 0 /dev/ttyUSB0,115200
>
>
> Now we have console on port 5550 and gdb on port 5551.
> Boot the board and ...
>
> a) telnet 127.0.0.1:5550  -> console
> b) gdb:
>
>    gdb vmlinux
>    - set remotebaud 115200
>    - target remote 127.0.0.1:5551
>
> Et voila!
>
> Best,
> JS
>
> --
>
> Dipl.-Ing.
> Jan-Simon Möller
>
> jansimon.moeller at gmx.de
> _______________________________________________
> LLVMLinux mailing list
> LLVMLinux at lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux
>



-- 
Vinicius Tinti
mail => {viniciustinti at gmail.com, tinti at comp.eng.br}
skype => {viniciustinti}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/llvmlinux/attachments/20130121/c2778177/attachment.html>


More information about the LLVMLinux mailing list