Linux Kernel Debugging with User mode linux (UML)


Author: EmbWiz Embedded Solutions
6865 View
20m 32s Lenght
28 Rating


Learning linux kernel debugging with 1.GDB 2.User Mode Linux (UML) This video shows 1.How to configure the linux kernel for uml 2.How to build 3.Booting the uml kernel 4.Debugging the uml kernel through GDB UML official website: http://user-mode-linux.sourceforge.net Pre-built 32-bit / 64 bit filesystem for UML: http://fs.devloop.org.uk/ If you are using 64-bit kernel, make sure to download the 64-bit filesystem. Trying a 32-bit filesystem will result in kernel panic.


Comments

  1. sir this commend is not working why? in my pc
    ./linux ubd0=~/Debian-Squeeze-AMD64-root_fs
  2. Very nice, thanks very much. But in my case, the debugging function symbol sometimes is not showed, it says "optimized out". What could be the problem?:)
  3. Hello Ganesh sir, A nice tutorial about Linux kernel debugging.Thanks for your great support.
  4. Hi Mark, Thanks for the comment and sharing the issue. we've updated the video description with your suggestion.
  5. Nice tutorial! Quick comment; I found that when trying the Debian AMD64 rootfs from the user mode linux pages I had issues with running the init program until I set UML-specific options/64-bit kernel through make ARCH=um menuconfig. The defconfig for ARH=um seemed to default to a 32 bit only ABI. (my build host is 13.04 x86_64, uname -a: Linux mgross-G62 3.10.1 #3 SMP PREEMPT Sat Jul 20 19:45:51 PDT 2013 x86_64 x86_64 x86_64 GNU/Linux)