Embedded Development Tools and Debuggers for XC2000, TriCore, PowerPC, ARM, Cortex, SH-2A » Support & Updates » FAQ » Linux Support FAQ » How can I debug a Linux Kernel Module Driver with the UDE?
| Print |

How can I debug a Linux Kernel Module Driver with the UDE?

Load a kernel module and debug from the first line:

  1. Start UDE
  2. Create a new workspace or load an existing
  3. After creating a new workspace, click on default to load a default configuration file
  4. Select your target and load the "<Target> Linux kernel debugging support" configuration
  5. Save the config file
  6. After the workspace was created, load the uncompressed Linux kernel image (vmlinux_<Target>_ram.elf)
  7. Load the Linux kernel module driver file (e.g.: led_driver.ko)
  8. UDE uploads the driver module to the target and halts the target at the driver module init-function
  9. Set your desired breakpoints and click on GO to start the target again

Unload a kernel module:

  1. Load the kernel module driver (see above)
  2. Set a breakpoint at the driver modul exit-function if desired
  3. Click on Views - Simulated I/O to open the terminal window
  4. Login into the terminal window
  5. Enter "rmmod <kernel module>" (without double quotation marks)
  6. The target halts at the exit-function


Reload a kernel module:

  1. Look at "Load the kernel module driver" (see above)

- or -

  1. Click on Views - Simulated I/O to open the terminal window
  2. Login into the terminal window
  3. Enter "modprobe <kernel module>" (without double quotation marks)
  4. The target halts at the init-function (if a breakpoint was set)


 

Events

4. Elektronik automotive congress
Development Platforms for ARM/Cortex, TriCore, PowerArchitecture

Read more ...

embedded world 2012
Eclipse based development platform for Qorivva microcontrollers, for Kinetis (Cortex-M4) applications

Read more ...

One-Day Crash Course
Multicore Debug Solution MCDS, TriCore Hardware und Treiber-Programming

Read more ...


News

Optimized debug
tools for the
new XMC4000
microcontroller
family
of Infineon
available now

Read more...
 

UDE 3.2:
Efficient multicore
control, unique
visualization
capabilities
and support for the
latest 32-bit SoCs
from different
manufacturers

Read more...
 

Complete debug
solution for the
Development
Device of the
new TriCore
Multicore
Architecture

Read more...
 
Optimized tools
for the new
TC1791, TC1793
and TC1798
AUDO MAX
microcontrollers
Read more...
 
netX controllers
and rcX RTOS
from Hilscher
now supported by UDE
Read more...
 
Dual-core debugging
of NXP's LPC4300
under the single user
interface of UDE
Read more...
 

Kinetis MCUs
from Freescale
based on Cortex-
M4 core supported
by UDE

Read more...
 

UDE version 3.0:
More visualization
capabilities, enhanced
Eclipse integration
and dedicated
support for a wide
range of MCUs

Read more...
 

Complete new
toolchain for
Power Architecture
SoCs
from
STMicroelectronics
and Freescale
based on Eclipse,
GNU and
Universal Debug Engine

Read more...
 
UAD3+ sets new standards in the field of high-end trace and multi-core / multi-target debugging
Read more...