Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. using Creator to build/debug Linux kernel code
Forum Update on Tuesday, May 27th 2025

using Creator to build/debug Linux kernel code

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 2.0k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mzimmers
    wrote on 28 Jun 2017, 22:22 last edited by mzimmers
    #1

    Hi, all -

    With significant help from some people here, I recently was able to configure Creator to build and debug apps for the Beaglebone Black. I'd like to look into taking this to the next step, which for me is working on code for kernel space.

    I'm trying to run this kernel example on the BBB, but it fails on the read routine. So I'd like to try debugging it through Creator. Is this possible?

    EDIT: I should point out that I'm not even getting it to build right now. I suspect the problem is with the kernel header files. I copied them from the BBB's /usr/src directory to my host, but am getting copious errors.

    So, if I'm trying to perform an unnatural act here, please feel free to discourage me.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 29 Jun 2017, 20:40 last edited by
      #2

      Hi,

      It's been a long time since I've done something like that.

      One thing you can try is to run a gdbserver on the target to debug the module (see here for gdb kernel debugging)

      Maybe take a look at the OpenOCD project.

      You can cross-compile a kernel from your desktop machine but that requires a bit more setup.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mzimmers
        wrote on 29 Jun 2017, 23:22 last edited by
        #3

        It's been a long time since I've done something like that.

        It very well may be a bad idea. It's certainly asking a lot of a GUI library to handle builds for embedded/kernel code. I was just hopeful that I could be lazy and use Creator for everything. I guess I'll have to learn the CLI version of GDB now, something I've been avoiding for years.

        One thing you can try is to run a gdbserver on the target to debug the module (see here for gdb kernel debugging)

        Yeah, that's using a VM and emulating...not a direction I want to go in.

        Thanks for looking, but I think this is one problem I can't solve with Qt tools.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 30 Jun 2017, 21:03 last edited by
          #4

          You can connect to a remote gdbserver from Qt Creator. See the remote debugging documentation.

          I think you misunderstood, what was suggested is that you can do this with QEMU but that is also applicable to hardware. It's just easier to show with the emulator because it's something that everybody can install.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1

          1/4

          28 Jun 2017, 22:22

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved