mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Ptxdist menu config -> GDBServer
@ 2013-01-03 11:48 Ruben Louw
  2013-01-03 12:04 ` Juergen Beisert
  0 siblings, 1 reply; 7+ messages in thread
From: Ruben Louw @ 2013-01-03 11:48 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 618 bytes --]

Hi everyone

Got a question. I followed the quickstart doc for the newest bsp 2012.12.0
and built everything, ptxdist, toolchain and the rootfilesystem. everything
works great, boot via nfs etc...

now i want to start developing some neat apps using qt creator. It seeems i
missed something, I have no gdbserver on my mini2440. Playing around with
ptxdist menuconfig, i saw there is a gdbserver option, i suppose this is
where i enable it. the only thing thats bugging my is, do i have to re
build everything now and reinstall ptxdist, or is there some short cut i
can take?

Thank you in advanced

Regards
Ruben Louw

[-- Attachment #1.2: Type: text/html, Size: 653 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ptxdist] Ptxdist menu config -> GDBServer
  2013-01-03 11:48 [ptxdist] Ptxdist menu config -> GDBServer Ruben Louw
@ 2013-01-03 12:04 ` Juergen Beisert
       [not found]   ` <CAOP6b3gWL-4xBAXc-8x90eE_1ujHY5=W_W8UgX8KVL_ZGM9k5w@mail.gmail.com>
  0 siblings, 1 reply; 7+ messages in thread
From: Juergen Beisert @ 2013-01-03 12:04 UTC (permalink / raw)
  To: ptxdist; +Cc: Ruben Louw

Hi Ruben,

Ruben Louw wrote:
> Got a question. I followed the quickstart doc for the newest bsp 2012.12.0
> and built everything, ptxdist, toolchain and the rootfilesystem. everything
> works great, boot via nfs etc...

\o/

> now i want to start developing some neat apps using qt creator. It seeems i
> missed something, I have no gdbserver on my mini2440. Playing around with
> ptxdist menuconfig, i saw there is a gdbserver option, i suppose this is
> where i enable it. the only thing thats bugging my is, do i have to re
> build everything now and reinstall ptxdist, or is there some short cut i
> can take?

This option is project centric. Just enabled the GDB option in the menu of 
this project and run the "ptxdist go" in the BSP directory again. After that 
everything is in place. Now it depends on your usecase how to proceed. If you 
are using NFS root and you have exported the "platform-mini2440/root" 
directory you are done. If you are using your Mini2440's NAND you need the 
additional "ptxdist images" step and to store the updated jffs2-image into 
the NAND again to get gdbserver into your Mini2440.

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ptxdist] Ptxdist menu config -> GDBServer
       [not found]   ` <CAOP6b3gWL-4xBAXc-8x90eE_1ujHY5=W_W8UgX8KVL_ZGM9k5w@mail.gmail.com>
@ 2013-01-03 14:00     ` Ruben Louw
  2013-01-03 14:38       ` Juergen Beisert
  0 siblings, 1 reply; 7+ messages in thread
From: Ruben Louw @ 2013-01-03 14:00 UTC (permalink / raw)
  To: Juergen Beisert


[-- Attachment #1.1: Type: text/plain, Size: 1961 bytes --]

Hi Juergen

I executed ptxdist go but I received an error, I attatched the terminal log
file. I copied from more or less where i could see the first error occured.
Not sure what its complaining about, looks like somthing in gdb itself.

any advice is appreciated, thank you.

Regrads
Ruben Louw

On Thu, Jan 3, 2013 at 2:18 PM, Ruben Louw <lfxciii@gmail.com> wrote:

> Hi Juergen
>
> you are the man! I will try it and report back.
>
> Thanks ALOT for your help.
>
> Ruben Louw
>
>
> On Thu, Jan 3, 2013 at 2:04 PM, Juergen Beisert <jbe@pengutronix.de>wrote:
>
>> Hi Ruben,
>>
>> Ruben Louw wrote:
>> > Got a question. I followed the quickstart doc for the newest bsp
>> 2012.12.0
>> > and built everything, ptxdist, toolchain and the rootfilesystem.
>> everything
>> > works great, boot via nfs etc...
>>
>> \o/
>>
>> > now i want to start developing some neat apps using qt creator. It
>> seeems i
>> > missed something, I have no gdbserver on my mini2440. Playing around
>> with
>> > ptxdist menuconfig, i saw there is a gdbserver option, i suppose this is
>> > where i enable it. the only thing thats bugging my is, do i have to re
>> > build everything now and reinstall ptxdist, or is there some short cut i
>> > can take?
>>
>> This option is project centric. Just enabled the GDB option in the menu of
>> this project and run the "ptxdist go" in the BSP directory again. After
>> that
>> everything is in place. Now it depends on your usecase how to proceed. If
>> you
>> are using NFS root and you have exported the "platform-mini2440/root"
>> directory you are done. If you are using your Mini2440's NAND you need the
>> additional "ptxdist images" step and to store the updated jffs2-image into
>> the NAND again to get gdbserver into your Mini2440.
>>
>> Regards,
>> Juergen
>>
>> --
>> Pengutronix e.K.                              | Juergen Beisert
>>   |
>> Linux Solutions for Science and Industry      |
>> http://www.pengutronix.de/  |
>>
>
>

[-- Attachment #1.2: Type: text/html, Size: 2815 bytes --]

[-- Attachment #2: Terminal Log for GDB --]
[-- Type: application/octet-stream, Size: 3162 bytes --]

/home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/build-target/gdb-7.2/gdb/linux-nat.h:63:18: error: field 'siginfo' has incomplete typeIn file included from /home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/build-target/gdb-7.2/gdb/linux-nat.c:32:0:
/home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/build-target/gdb-7.2/gdb/linux-nat.h:63:18: error: field 'siginfo' has incomplete type
In file included from /home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/build-target/gdb-7.2/gdb/linux-thread-db.c:42:0:
/home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/build-target/gdb-7.2/gdb/linux-nat.h:63:18: error: field 'siginfo' has incomplete type

In file included from /home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/build-target/gdb-7.2/gdb/linux-fork.c:31:0:
/home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/build-target/gdb-7.2/gdb/linux-nat.h:63:18: error: field 'siginfo' has incomplete type
make[3]: *** [arm-linux-nat.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [linux-fork.o] Error 1
make[3]: *** [linux-thread-db.o] Error 1
/home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/build-target/gdb-7.2/gdb/linux-nat.c: In function 'siginfo_fixup':
/home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/build-target/gdb-7.2/gdb/linux-nat.c:3864:40: error: invalid application of 'sizeof' to incomplete type 'struct siginfo'
/home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/build-target/gdb-7.2/gdb/linux-nat.c:3866:40: error: invalid application of 'sizeof' to incomplete type 'struct siginfo'
/home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/build-target/gdb-7.2/gdb/linux-nat.c: In function 'linux_xfer_siginfo':
/home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/build-target/gdb-7.2/gdb/linux-nat.c:3876:18: error: storage size of 'siginfo' isn't known
/home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/build-target/gdb-7.2/gdb/linux-nat.c:3877:32: error: invalid application of 'sizeof' to incomplete type 'struct siginfo'
/home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/build-target/gdb-7.2/gdb/linux-nat.c: In function 'linux_nat_get_siginfo':
/home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/build-target/gdb-7.2/gdb/linux-nat.c:5667:1: warning: control reaches end of non-void function [-Wreturn-type]
make[3]: *** [linux-nat.o] Error 1
make[3]: Leaving directory `/home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/build-target/gdb-7.2-build/gdb'
make[2]: *** [all-gdb] Error 2
make[2]: Leaving directory `/home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/build-target/gdb-7.2-build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/build-target/gdb-7.2-build'
make: *** [/home/orbit/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/state/gdb.compile] Error 2


[-- Attachment #3: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ptxdist] Ptxdist menu config -> GDBServer
  2013-01-03 14:00     ` Ruben Louw
@ 2013-01-03 14:38       ` Juergen Beisert
       [not found]         ` <CAOP6b3jYpUcZjmGtiYcgkaxbwArwNTNnxNo6cqJmVOBkWbKeFg@mail.gmail.com>
  0 siblings, 1 reply; 7+ messages in thread
From: Juergen Beisert @ 2013-01-03 14:38 UTC (permalink / raw)
  To: Ruben Louw, ptxdist

Hi Ruben,

please keep the mailing list at least on CC.

Ruben Louw wrote:
> I executed ptxdist go but I received an error, I attatched the terminal log
> file. I copied from more or less where i could see the first error occured.
> Not sure what its complaining about, looks like somthing in gdb itself.

Same here, when I enable the gdbserver.

The default setting of gdb-7.2 is too old for Linux 3.7. Use a more recent 
one. With the OSELAS.Toolchain-2012.12 comes the gdb-7.5 at the host side. 
So, run

 1) ptxdist clean gdbserver
 2) ptxdist menuconfig

and change:

Debug Tools --->
       gdb --->
           (7.5) gdb version
           (24a6779a9fe0260667710de1b082ef61) gdb source md5sum

 3) ptxdist go

Should work now.

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ptxdist] Ptxdist menu config -> GDBServer
       [not found]           ` <201301040913.35970.jbe@pengutronix.de>
@ 2013-01-04  8:19             ` Ruben Louw
  2013-01-04  8:28               ` Juergen Beisert
  0 siblings, 1 reply; 7+ messages in thread
From: Ruben Louw @ 2013-01-04  8:19 UTC (permalink / raw)
  To: Juergen Beisert; +Cc: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 826 bytes --]

Sorry bout that, gmail doesnt add the cc i hvw to do it myself. I also
enabled the gdbserver, and rebuilding. Do you have any tips on how to debug
with qt creator and setting up the compiler for the mini2440?

You BSP will definitely help, havent had time to read the ptxdist guru doc,
but i will, as soon as i get this going.

Thanks

Ruben

On Fri, Jan 4, 2013 at 10:13 AM, Juergen Beisert <jbe@pengutronix.de> wrote:

> Hi Ruben,
>
> Ruben Louw wrote:
> > Thanks for the solution,
>
> \o/
>
> > appologies for the CC wil make sure I reply all.
>
> You still didn't :))
>
> > It worked, thank you.
>
> Hope my BSP helps you with your tasks.
>
> Regards,
> Juergen
>
> --
> Pengutronix e.K.                              | Juergen Beisert
>   |
> Linux Solutions for Science and Industry      | http://www.pengutronix.de/ |
>

[-- Attachment #1.2: Type: text/html, Size: 1336 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ptxdist] Ptxdist menu config -> GDBServer
  2013-01-04  8:19             ` Ruben Louw
@ 2013-01-04  8:28               ` Juergen Beisert
  2013-01-04  8:36                 ` Ruben Louw
  0 siblings, 1 reply; 7+ messages in thread
From: Juergen Beisert @ 2013-01-04  8:28 UTC (permalink / raw)
  To: Ruben Louw; +Cc: ptxdist

Ruben Louw wrote:
> Sorry bout that, gmail doesnt add the cc i hvw to do it myself. I also
> enabled the gdbserver, and rebuilding. Do you have any tips on how to debug
> with qt creator and setting up the compiler for the mini2440?

Hmm, I think you should develop your Qt4 application on your host first. You 
have access to all little helpers you need in this case.

And when the application does its job perfectly, just cross compile it again 
with PTXdist for the Mini2440.

But sorry, I'm a kernel hacker, not a Qt expert.

Regads,
Juergen

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ptxdist] Ptxdist menu config -> GDBServer
  2013-01-04  8:28               ` Juergen Beisert
@ 2013-01-04  8:36                 ` Ruben Louw
  0 siblings, 0 replies; 7+ messages in thread
From: Ruben Louw @ 2013-01-04  8:36 UTC (permalink / raw)
  To: Juergen Beisert


[-- Attachment #1.1: Type: text/plain, Size: 856 bytes --]

Thanks, I'll investigate.

regards
Ruben

On Fri, Jan 4, 2013 at 10:28 AM, Juergen Beisert <jbe@pengutronix.de> wrote:

> Ruben Louw wrote:
> > Sorry bout that, gmail doesnt add the cc i hvw to do it myself. I also
> > enabled the gdbserver, and rebuilding. Do you have any tips on how to
> debug
> > with qt creator and setting up the compiler for the mini2440?
>
> Hmm, I think you should develop your Qt4 application on your host first.
> You
> have access to all little helpers you need in this case.
>
> And when the application does its job perfectly, just cross compile it
> again
> with PTXdist for the Mini2440.
>
> But sorry, I'm a kernel hacker, not a Qt expert.
>
> Regads,
> Juergen
>
> --
> Pengutronix e.K.                              | Juergen Beisert
>   |
> Linux Solutions for Science and Industry      | http://www.pengutronix.de/ |
>

[-- Attachment #1.2: Type: text/html, Size: 1319 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-01-04  8:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-03 11:48 [ptxdist] Ptxdist menu config -> GDBServer Ruben Louw
2013-01-03 12:04 ` Juergen Beisert
     [not found]   ` <CAOP6b3gWL-4xBAXc-8x90eE_1ujHY5=W_W8UgX8KVL_ZGM9k5w@mail.gmail.com>
2013-01-03 14:00     ` Ruben Louw
2013-01-03 14:38       ` Juergen Beisert
     [not found]         ` <CAOP6b3jYpUcZjmGtiYcgkaxbwArwNTNnxNo6cqJmVOBkWbKeFg@mail.gmail.com>
     [not found]           ` <201301040913.35970.jbe@pengutronix.de>
2013-01-04  8:19             ` Ruben Louw
2013-01-04  8:28               ` Juergen Beisert
2013-01-04  8:36                 ` Ruben Louw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox