logo

Could not compile stylesheet for simplistic. Using last compiled stylesheet.

kparams for kgdb kernel debugging

posted in Uncategorized
Monday, March 12 2012, 12:46 PM
olra
olra
Offline
0
Hi, I use IGEP0020 board with x-loader-1.4.4-3 + u-boot-arm-2010.06-3. For remote kernel debugging with kgdb and arm-*-gnueabi-gdb I apply this parameter on u-boot environment: setenv nfs-bootargs setenv bootargs ${bootargs-base} root=/dev/nfs nfsroot=${serverip}:/srv/nfs/${distro}/${project}/${machine} kgdboc=ttyS2,115200n8 kgdbwait ; run addip it works fine. Now I want to upgrade the board to IGEP-X-Loader 2.4.0-2 with zImage. How can I configure igep.ini file for remote kernel debugging with kgdb ? best regards olra
Responses (5)
  • Accepted Answer

    Monday, March 12 2012, 01:06 PM - #permalink
    0
    Try append following line into igep.ini kparams section [code] kgdboc=ttyS2,115200n8 kgdbwait [/code]
    The reply is currently minimized Show
  • Accepted Answer

    olra
    olra
    Offline
    Monday, March 12 2012, 01:36 PM - #permalink
    0
    Thanks for quick reply, but I\\\'ve been tried it with this .ini file it isn\\\'t work. [kernel] ; Kernel load address, NOT Modify kaddress=0x80008000 ; RAM disk load Address, NOT Modify ;rdaddress=0x84000000 ; Board Serial ID serial.low=00000001 serial.high=00000000 ; Board Revision revision=0003 ; Kernel Image Name kImageName=zImage ; Define Machine ID (2344 = IGEP0020, 2717 = IGEP0030) ; 2344 = IGEP0020 ; 2717 = IGEP0030 ; 3203 = IGEP0032 MachineID=2344 ; Mode = uboot or kernel Mode=kernel [kparams] ; Setup the Kernel console params console=ttyO2,115200n8 console=tty0 ; Enable early printk earlyprintk=serial,ttyO2,115200 ; Setup the Board Memory Configuration ;mem=430M mem=512M ; Setup the Boot Delay boot_delay=3 ; Setup the ARM Processor Speed ;mpurate=800 ; Setup the loglevel ;loglevel=7 ; Enable Kernel Debug Output debug=1 ; Fix RTC Variable ;fixrtc=1 ; Configure nocompcache variable ;nocompcache=1 ; Configure Frame Buffer Configuration omapfb.mode=dvi:1024x768MR-16@60 ; Configure Video Ram assigned vram=40M ; Configure Video RAM assigned to every frame buffer omapfb.vram=0:12M,1:16M,2:12M ; Configure the Board Ethernet Mac Address smsc911x.mac=0xb2,0xb0,0x14,0xb5,0xcd,0xde ;smsc911x.mac=0xac,0xde,0x48,0x00,0x02,0x54 ; --- Configure NFS boot --- ;IP set you IP settings :::::: ip=192.168.254.254:192.168.254.10:192.168.254.10:255.255.255.0::eth0: ;Set root as nfs root=/dev/nfs ;Set your NFS root path as : ;nfsroot=192.168.254.10:/srv/nfs/myrootfs nfsroot=192.168.254.10:/srv/nfs/poky/poky-image-sato/igep0020 kgdboc=ttyO2,115200n8 kgdbwait ; --- Configure MMC boot --- ;root=/dev/mmcblk0p2 rw rootwait ; Machine configuration buddy=igep0022
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, March 13 2012, 08:44 AM - #permalink
    0
    As I see you\\\'re now using kernel 2.6.37 instead of 2.6.35. I guess that 2.6.37 hasn\\\'t the kgdb option enabled in the kernel by default. Can you try enable debug options in kernel ?
    The reply is currently minimized Show
  • Accepted Answer

    olra
    olra
    Offline
    Tuesday, March 13 2012, 12:45 PM - #permalink
    0
    Yes, you\\\'re right it\\\'s work with 2.6.35-13: IGEP-X-Loader 2.4.0-2 (Mar 1 2012 - 13:53:01) XLoader: Processor OMAP3530 XLoader: Memory Manufacturer: Numonyx XLoader: Configuration file igep.ini Loaded from MMC XLoader: try load kernel from MMC XLoader: kernel zImage loaded from MMC at 0x80008000 size = 2941980 XLoader: IGEPv2 : kernel boot ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.35.13 (oleg@oleg-laptop) (gcc version 4.3.3 (GCC) ) #1 Tue Mar 13 12:57:20 IST 2012 [ 0.000000] CPU: ARMv7 Processor [411fc083] revision 3 (ARMv7), cr=10c53c7f [ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache [ 0.000000] Machine: IGEP0020 board [ 0.000000] IGEP: IGEP0020 machine + IGEP0022 (buddy) . . . [ 0.471801] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 0.493835] serial8250.0: ttyS0 at MMIO 0x4806a000 (irq = 72) is a ST16654 [ 0.514862] serial8250.1: ttyS1 at MMIO 0x4806c000 (irq = 73) is a ST16654 [ 0.535614] serial8250.2: ttyS2 at MMIO 0x49020000 (irq = 74) is a ST16654 [ 1.536193] console [ttyS2] enabled [ 1.540252] kgdb: Registered I/O driver kgdboc. [ 1.544891] kgdb: Waiting for connection from remote gdb... + and one more question : as you can see I\\\'m using poky x-toolchain with gcc v.4.3.3 which toolchain you\\\'ll recommend me to use? may be (linaro-toolchain-binaries v.4.6-2012.02 release-12.02) Thank you.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, March 15 2012, 10:19 AM - #permalink
    0
    For some projects I\\\'m using linaro toolchain 4.5
    The reply is currently minimized Show
Your Reply

SUPPORT


This email address is being protected from spambots. You need JavaScript enabled to view it.
This email address is being protected from spambots. You need JavaScript enabled to view it.
IGEP Community Wiki
IGEP Community Forum
IGEP Community Online Chat