Hi Jonathan,

Thanks for the assistance.
On stty I get:
root@dm814x:/media/sda1# stty
speed 115200 baud; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt =
^R;
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-brkint ixoff -imaxbel
-iexten
So I tried to *ttyS0,115200N8*  , but I get the same error pointing to
function uart_get_baud_rate  (That;s strage, doesn't uart_get_baud_rate is
called when using stty too ?)
root@dm814x:~# *echo ttyS0,115200N8* > /sys/module/kgdboc/parameters/kgdboc
------------[ cut here ]------------
WARNING: at drivers/serial/serial_core.c:399
uart_get_baud_rate+0x124/0x138()
Modules linked in:
Backtrace:

I later tried to define it all from boot, but I get the same exception at
boot.
I've added complete log below.
Thanks,
Ran



Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.37 (ubuntu@ubuntu-laptop) (gcc version 4.5.3 20110311
(prerelease) (GCC) ) #6 Thu Jul 31 09:12:03 IDT 2014
CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: ti8148evm
bootconsole [earlycon0] enabled
vram size = 52428800 at 0x0
ti81xx_reserve: ### Reserved DDR region @87f00000
reserved size = 52428800 at 0x0
FB: Reserving 52428800 bytes SDRAM for VRAM
Memory policy: ECC disabled, Data cache writeback
OMAP chip is TI8148 2.1
SRAM: Mapped pa 0x402f1000 to va 0xfe400000 size: 0xf000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 19456
Kernel command line: console=ttyO0,115200n8 ip=10.0.0.2
nfsroot=10.0.0.1:/mnt/DVR_NEW/DVRRDK_04.01.00.02/target/rfs_814x,nolock
root=/dev/nfs rw rootdelay=15 earlyprintk notifyk.vpssm3_sva=0xBFD00000
mem=128M ddr_mem=512M vram=50M
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 76MB 1MB = 77MB total
Memory: 71620k/71620k available, 59452k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xc8800000 - 0xf8000000   ( 760 MB)
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .init : 0xc0008000 - 0xc0042000   ( 232 kB)
      .text : 0xc0042000 - 0xc0551000   (5180 kB)
      .data : 0xc0552000 - 0xc05a8c80   ( 348 kB)
SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:407
IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
Total of 128 interrupts on 1 active controller
GPMC revision 6.0
Trying to install interrupt handler for IRQ400
Trying to install interrupt handler for IRQ401
Trying to install interrupt handler for IRQ402
Trying to install interrupt handler for IRQ403
Trying to install interrupt handler for IRQ404
Trying to install interrupt handler for IRQ405
Trying to install interrupt handler for IRQ406
Trying to install type control for IRQ407
Trying to set irq flags for IRQ407
OMAP clockevent source: GPTIMER1 at 20000000 Hz
Console: colour dummy device 80x30
Calibrating delay loop... 719.25 BogoMIPS (lpj=3596288)
pid_max: default: 32768 minimum: 301
Security Framework initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
devtmpfs: initialized
TI81XX: Map 0x87f00000 to 0xfe500000 for dram barrier
TI81XX: Map 0x40300000 to 0xfe600000 for sram barrier
omap_voltage_early_init: voltage driver support not added
regulator: core version 0.5
regulator: dummy:
NET: Registered protocol family 16
omap_voltage_domain_lookup: Voltage driver init not yet happened.Faulting!
omap_voltage_add_dev: VDD specified does not exist!
OMAP GPIO hardware version 0.1
OMAP GPIO hardware version 0.1
OMAP GPIO hardware version 0.1
OMAP GPIO hardware version 0.1
omap_mux_init: Add partition: #1: core, flags: 4
NOR: Can't request GPMC CS
clk get on i2c3 fck failed
Cannot clk_get ck_32
Debugfs: Only enabling/disabling deep sleep and wakeup timer is supported
now
registered ti81xx_vpss device
registered ti81xx_vidout device
registered ti81xx on-chip HDMI device
registered ti81xx_fb device
registered ti81xx_vin device
NSS Crypto DMA hardware revision 1.9 @ IRQ 116
ti81xx_pcie: Invoking PCI BIOS...
ti81xx_pcie: Setting up Host Controller...
ti81xx_pcie: Register base mapped @0xc8830000
ti81xx_pcie: forcing link width - x1
ti81xx_pcie: Starting PCI scan...
PCI: bus0: Fast back to back transfers enabled
ti81xx_pcie: PCI scan done.
bio: create slab <bio-0> at 0
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
USBSS revision 4ea2080b
registerd cppi-dma Intr @ IRQ 17
Cppi41 Init Done
omap_i2c omap_i2c.1: bus 1 rev4.0 at 400 kHz
pcf857x 1-0021: gpios 128..143 on a pcf8575
regulator: VRTC: 1800 mV
regulator: VIO: 1500 mV
regulator: VDD1: 600 <--> 1500 mV at 1200 mV
regulator: VDD2: 600 <--> 1500 mV at 1200 mV
regulator: VDDCTRL: 600 <--> 1400 mV at 1200 mV
regulator: LDO1: 1100 <--> 3300 mV at 1800 mV
regulator: LDO2: 1100 <--> 3300 mV at 1800 mV
regulator: LDO3: 1100 <--> 3300 mV at 3300 mV
regulator: LDO4: 1100 <--> 3300 mV at 1800 mV
regulator: LDO5: 1100 <--> 3300 mV at 3300 mV
regulator: LDO6: 1100 <--> 3300 mV at 3300 mV
regulator: LDO7: 1100 <--> 3300 mV at 3300 mV
regulator: LDO8: 1100 <--> 3300 mV at 1800 mV
tps65910 1-002d: No interrupt support, no core IRQ
omap_i2c omap_i2c.3: bus 3 rev4.0 at 400 kHz
Advanced Linux Sound Architecture Driver Version 1.0.23.
Switching to clocksource gp timer
musb-hdrc: version 6.0, host, debug=0
musb-hdrc musb-hdrc.0: dma type: dma-cppi41
MUSB controller-0 revision 4ea20800
usb2phy: computed values rxcalib(15)DACs(34 13 13)
usb2phy: override computed values rxcalib(15)DACs(34 13 13)
usb2phy_config: musb(0) rxcalib done, rxcalib read value 6f715b6e
musb-hdrc musb-hdrc.0: MUSB HDRC host driver
musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: MUSB HDRC host driver
usb usb1: Manufacturer: Linux 2.6.37 musb-hcd
usb usb1: SerialNumber: musb-hdrc.0
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
musb-hdrc musb-hdrc.0: USB Host mode controller at c881e000 using DMA, IRQ
18
musb-hdrc musb-hdrc.1: dma type: dma-cppi41
MUSB controller-1 revision 4ea20800
usb2phy: computed values rxcalib(15)DACs(31 13 12)
usb2phy: override computed values rxcalib(15)DACs(31 13 12)
usb2phy_config: musb(1) rxcalib done, rxcalib read value 6f6fdb66
musb-hdrc musb-hdrc.1: MUSB HDRC host driver
musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: MUSB HDRC host driver
usb usb2: Manufacturer: Linux 2.6.37 musb-hcd
usb usb2: SerialNumber: musb-hdrc.1
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
musb-hdrc musb-hdrc.1: USB Host mode controller at c882a800 using DMA, IRQ
19
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
NetWinder Floating Point Emulator V0.97 (double precision)
PMU: registered new PMU device of type 0
omap-iommu omap-iommu.0: ducati registered
omap-iommu omap-iommu.1: sys registered
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 139
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
nss_rng nss_rng: NSS Random Number Generator ver. 2.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
omap_uart.0: ttyO0 at MMIO 0x48020000 (irq = 72) is a OMAP UART0
console [ttyO0] enabled, bootconsole disabled
console [ttyO0] enabled, bootconsole disabled
omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
brd: module loaded
loop: module loaded
ahci probe: devid name is ahci
ahci CAP register dump =0x6726ff80
Modified ahci CAP register dump =0x6f26ff80
ahci ahci.0: forcing PORTS_IMPL to 0x1
ahci: SSS flag set, parallel bus scan disabled
ahci ahci.0: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
ahci ahci.0: flags: ncq sntf stag pm led clo only pmp pio slum part ccc apst
scsi0 : ahci_platform
ata1: SATA max UDMA/133 irq_stat 0x00400040, connection status changed irq
16
omap2-nand driver initializing
ONFI param page 0 valid
ONFI flash detected
NAND device: Maf ID: 0x2c, Chip ID: 0xca (Micron, NAND 256MiB 3,3V 16-bit)
 erasesize: 0x20000, writesize: 2048, oobsize: 64
omap2-nand: detected x16 NAND flash
Creating 7 MTD partitions on "omap2-nand.0":
0x000000000000-0x000000020000 : "U-Boot-min"
0x000000020000-0x000000260000 : "U-Boot"
0x000000260000-0x000000280000 : "U-Boot Env"
0x000000280000-0x000000580000 : "U-Boot Logo"
0x000000580000-0x0000009c0000 : "Kernel"
0x0000009c0000-0x00000d1e0000 : "File System"
0x00000d1e0000-0x000010000000 : "Reserved"
davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
davinci_mdio davinci_mdio.0: detected phy mask fffffffc
davinci_mdio.0: probed
davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown
davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown
CAN device driver interface
CAN bus driver for Bosch D_CAN controller 1.0
d_can d_can: d_can device registered (irq=52, irq_obj=53)
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver dm9601
console [netcon0] enabled
netconsole: network logging started
usbcore: registered new interface driver cdc_acm
cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN
adapters
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
qt602240_ts 1-004a: __qt602240_read_reg: i2c transfer failed
qt602240_ts: probe of 1-004a failed with error -5
omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
i2c /dev entries driver
Linux video capture interface: v2.00
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v1.0.0)
OMAP Watchdog Timer Rev 0x00: initial timeout 60 sec
nss_aes_mod_init: loading NSS AES driver
nss-aes nss-aes: NSS AES hw accel rev: 3.2 (context 0 @0x41140000)
nss-aes nss-aes: NSS AES hw accel rev: 3.2 (context 1 @0x41141000)
nss-aes nss-aes: NSS AES hw accel rev: 3.2 (context 2 @0x411a0000)
nss-aes nss-aes: NSS AES hw accel rev: 3.2 (context 3 @0x411a1000)
nss_aes_probe: probe() done
nss_des_mod_init: loading NSS DES driver
nss-des nss-des: NSS DES hw accel rev: 2.2 (context 0 @0x41160000)
nss-des nss-des: NSS DES hw accel rev: 2.2 (context 1 @0x41161000)
nss_des_probe: probe() done
nss_sham_mod_init: loading NSS SHA/MD5 driver
nss-sham nss-sham: NSS SHA/MD5 hw accel rev: 4.03 (context 0 @0x41100000)
nss-sham nss-sham: NSS SHA/MD5 hw accel rev: 4.03 (context 1 @0x41101000)
nss-sham nss-sham: NSS SHA/MD5 hw accel rev: 4.03 (context 2 @0x411c0000)
nss-sham nss-sham: NSS SHA/MD5 hw accel rev: 4.03 (context 3 @0x411c1000)
nss_sham_probe: probe() done
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
notify_init : notify drivercreated  for  remote proc id 2 at physical
Address 0xbfd00000
usbcore: registered new interface driver snd-usb-audio
Registered tvp5158 audio codec
*** Forcing SW CTS!
asoc: tvp5158-hifi <-> davinci-mcasp.0 mapping ok
asoc: tlv320aic3x-hifi <-> davinci-mcasp.2 mapping ok
asoc: HDMI-DAI-CODEC <-> hdmi-dai mapping ok
ALSA device list:
  #0: TI81XX SOUND0
  #1: TI81XX SOUND1
TCP cubic registered
NET: Registered protocol family 17
can: controller area network core (rev 20090105 abi 8)
NET: Registered protocol family 29
can: raw protocol (rev 20090105)
can: broadcast manager protocol (rev 20090105 t)
Registering the dns_resolver key type
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
omap_voltage_late_init: Voltage driver support not added
Power Management for TI81XX.
Detected MACID=40:5f:c2:8:45:ef
omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC
(946684800)
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.00: ATA-8: WDC SSD-S0008S-7100, 2.1ME, max UDMA/133
ata1.00: 15625008 sectors, multi 1: LBA48

CPSW phy found : id is : 0x4dd074

CPSW phy found : id is : 0x4dd074
ata1.00: configured for UDMA/133
scsi 0:0:0:0: Direct-Access     ATA      WDC SSD-S0008S-7 2.1M PQ: 0 ANSI: 5
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] 15625008 512-byte logical blocks: (8.00 GB/7.45 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't
support DPO or FUA
 sda: sda1
sd 0:0:0:0: [sda] Attached SCSI disk
IP-Config: Guessing netmask 255.0.0.0
IP-Config: Complete:
     device=eth0, addr=10.0.0.2, mask=255.0.0.0, gw=255.255.255.255,
     host=10.0.0.2, domain=, nis-domain=(none),
     bootserver=255.255.255.255, rootserver=10.0.0.1, rootpath=
Waiting 15sec before mounting root device...
PHY: 0:01 - Link is Up - 0/Half
PHY: 0:01 - Link is Down
PHY: 0:00 - Link is Up - 100/Full
VFS: Mounted root (nfs filesystem) on device 0:15.
devtmpfs: mounted
Freeing init memory: 232K
INIT: version 2.88 booting
 Mounting /dev/shm              :  Mounting /dev/pts          :  Mounting
other filesystems :  Mounting /dev/sda1              : EXT3-fs: barriers
not enabled
kjournald starting.  Commit interval 5 seconds
EXT3-fs (sda1): using internal journal
EXT3-fs (sda1): recovery complete
EXT3-fs (sda1): mounted filesystem with writeback data mode
Sync command ...Error opening /dev/fb0: No such file or directory
remove /media/sdb1
Starting udev
udev[117]: starting version 164
Starting Bootlog daemon: bootlogd.
Applying sync command

 _____                    _____           _         _
|  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
|     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
|__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|
              |___|                    |___|

Arago Project http://arago-project.org dm814x ttyO0

Arago 2012.10 dm814x ttyO0

dm814x login: root
root@dm814x:~# echo ttyS0,115200N8 > /sys/module/kgdboc/parameters/kgdboc
------------[ cut here ]------------
WARNING: at drivers/serial/serial_core.c:399
uart_get_baud_rate+0x124/0x138()
Modules linked in:
Backtrace:
[<c004ffc4>] (dump_backtrace+0x0/0x110) from [<c03ee140>]
(dump_stack+0x18/0x1c)
 r6:c04f4d9f r5:0000018f r4:00000000 r3:60000013
[<c03ee128>] (dump_stack+0x0/0x1c) from [<c0076480>]
(warn_slowpath_common+0x54/0x6c)
[<c007642c>] (warn_slowpath_common+0x0/0x6c) from [<c00764bc>]
(warn_slowpath_null+0x24/0x2c)
 r8:00000000 r7:00000001 r6:00009600 r5:00000000 r4:c3679de4
r3:00000009
[<c0076498>] (warn_slowpath_null+0x0/0x2c) from [<c0229a3c>]
(uart_get_baud_rate+0x124/0x138)
[<c0229918>] (uart_get_baud_rate+0x0/0x138) from [<c022cc40>]
(serial8250_do_set_termios+0x84/0x380)
[<c022cbbc>] (serial8250_do_set_termios+0x0/0x380) from [<c022cf60>]
(serial8250_set_termios+0x24/0x28)
[<c022cf3c>] (serial8250_set_termios+0x0/0x28) from [<c0228184>]
(uart_set_options+0xec/0x110)
[<c0228098>] (uart_set_options+0x0/0x110) from [<c0229908>]
(uart_poll_init+0xb4/0xc4)
 r7:c05de7f0 r6:c05878f8 r5:00000000 r4:c05db19c
[<c0229854>] (uart_poll_init+0x0/0xc4) from [<c020ce10>]
(tty_find_polling_driver+0xe4/0x134)
 r4:c4980540
[<c020cd2c>] (tty_find_polling_driver+0x0/0x134) from [<c022ec30>]
(configure_kgdboc+0x84/0x14c)
[<c022ebac>] (configure_kgdboc+0x0/0x14c) from [<c022eda0>]
(param_set_kgdboc_var+0xa8/0xc4)
 r5:00000000 r4:00000000
[<c022ecf8>] (param_set_kgdboc_var+0x0/0xc4) from [<c008ae64>]
(param_attr_store+0x4c/0x6c)
 r8:c4898380 r7:c40efa40 r6:c40f7000 r5:0000000f r4:c4898450
r3:c022ecf8
[<c008ae18>] (param_attr_store+0x0/0x6c) from [<c008ac5c>]
(module_attr_store+0x28/0x34)
 r6:0000000f r5:c3679f70 r4:c4898380 r3:0000000f
[<c008ac34>] (module_attr_store+0x0/0x34) from [<c0116504>]
(sysfs_write_file+0x110/0x144)
 r4:c4894d50 r3:0000000f
[<c01163f4>] (sysfs_write_file+0x0/0x144) from [<c00d11d4>]
(vfs_write+0xbc/0x148)
[<c00d1118>] (vfs_write+0x0/0x148) from [<c00d1458>] (sys_write+0x44/0x70)
 r8:0000000f r7:00000000 r6:00000000 r5:000d3408 r4:c439e200
[<c00d1414>] (sys_write+0x0/0x70) from [<c004c3c0>]
(ret_fast_syscall+0x0/0x30)
 r8:c004c568 r7:00000004 r6:402d95d0 r5:000d3408 r4:0000000f
---[ end trace 7e0af2776481cc19 ]---
Division by zero in kernel.
Backtrace:
[<c004ffc4>] (dump_backtrace+0x0/0x110) from [<c03ee140>]
(dump_stack+0x18/0x1c)
 r6:00000013 r5:c3679de4 r4:c05db19c r3:60000013
[<c03ee128>] (dump_stack+0x0/0x1c) from [<c00500ec>] (__div0+0x18/0x20)
[<c00500d4>] (__div0+0x0/0x20) from [<c01dfb04>] (Ldiv0+0x8/0x10)
[<c0226dd0>] (uart_get_divisor+0x0/0x40) from [<c022cc78>]
(serial8250_do_set_termios+0xbc/0x380)
[<c022cbbc>] (serial8250_do_set_termios+0x0/0x380) from [<c022cf60>]
(serial8250_set_termios+0x24/0x28)
[<c022cf3c>] (serial8250_set_termios+0x0/0x28) from [<c0228184>]
(uart_set_options+0xec/0x110)
[<c0228098>] (uart_set_options+0x0/0x110) from [<c0229908>]
(uart_poll_init+0xb4/0xc4)
 r7:c05de7f0 r6:c05878f8 r5:00000000 r4:c05db19c
[<c0229854>] (uart_poll_init+0x0/0xc4) from [<c020ce10>]
(tty_find_polling_driver+0xe4/0x134)
 r4:c4980540
[<c020cd2c>] (tty_find_polling_driver+0x0/0x134) from [<c022ec30>]
(configure_kgdboc+0x84/0x14c)
[<c022ebac>] (configure_kgdboc+0x0/0x14c) from [<c022eda0>]
(param_set_kgdboc_var+0xa8/0xc4)
 r5:00000000 r4:00000000
[<c022ecf8>] (param_set_kgdboc_var+0x0/0xc4) from [<c008ae64>]
(param_attr_store+0x4c/0x6c)
 r8:c4898380 r7:c40efa40 r6:c40f7000 r5:0000000f r4:c4898450
r3:c022ecf8
[<c008ae18>] (param_attr_store+0x0/0x6c) from [<c008ac5c>]
(module_attr_store+0x28/0x34)
 r6:0000000f r5:c3679f70 r4:c4898380 r3:0000000f
[<c008ac34>] (module_attr_store+0x0/0x34) from [<c0116504>]
(sysfs_write_file+0x110/0x144)
 r4:c4894d50 r3:0000000f
[<c01163f4>] (sysfs_write_file+0x0/0x144) from [<c00d11d4>]
(vfs_write+0xbc/0x148)
[<c00d1118>] (vfs_write+0x0/0x148) from [<c00d1458>] (sys_write+0x44/0x70)
 r8:0000000f r7:00000000 r6:00000000 r5:000d3408 r4:c439e200
[<c00d1414>] (sys_write+0x0/0x70) from [<c004c3c0>]
(ret_fast_syscall+0x0/0x30)
 r8:c004c568 r7:00000004 r6:402d95d0 r5:000d3408 r4:0000000f
Division by zero in kernel.
Backtrace:
[<c004ffc4>] (dump_backtrace+0x0/0x110) from [<c03ee140>]
(dump_stack+0x18/0x1c)
 r6:00000013 r5:c3679de4 r4:c05db19c r3:60000093
[<c03ee128>] (dump_stack+0x0/0x1c) from [<c00500ec>] (__div0+0x18/0x20)
[<c00500d4>] (__div0+0x0/0x20) from [<c01dfb04>] (Ldiv0+0x8/0x10)
[<c0226d70>] (uart_update_timeout+0x0/0x60) from [<c022cd0c>]
(serial8250_do_set_termios+0x150/0x380)
 r4:c05db19c r3:00000000
[<c022cbbc>] (serial8250_do_set_termios+0x0/0x380) from [<c022cf60>]
(serial8250_set_termios+0x24/0x28)
[<c022cf3c>] (serial8250_set_termios+0x0/0x28) from [<c0228184>]
(uart_set_options+0xec/0x110)
[<c0228098>] (uart_set_options+0x0/0x110) from [<c0229908>]
(uart_poll_init+0xb4/0xc4)
 r7:c05de7f0 r6:c05878f8 r5:00000000 r4:c05db19c
[<c0229854>] (uart_poll_init+0x0/0xc4) from [<c020ce10>]
(tty_find_polling_driver+0xe4/0x134)
 r4:c4980540
[<c020cd2c>] (tty_find_polling_driver+0x0/0x134) from [<c022ec30>]
(configure_kgdboc+0x84/0x14c)
[<c022ebac>] (configure_kgdboc+0x0/0x14c) from [<c022eda0>]
(param_set_kgdboc_var+0xa8/0xc4)
 r5:00000000 r4:00000000
[<c022ecf8>] (param_set_kgdboc_var+0x0/0xc4) from [<c008ae64>]
(param_attr_store+0x4c/0x6c)
 r8:c4898380 r7:c40efa40 r6:c40f7000 r5:0000000f r4:c4898450
r3:c022ecf8
[<c008ae18>] (param_attr_store+0x0/0x6c) from [<c008ac5c>]
(module_attr_store+0x28/0x34)
 r6:0000000f r5:c3679f70 r4:c4898380 r3:0000000f
[<c008ac34>] (module_attr_store+0x0/0x34) from [<c0116504>]
(sysfs_write_file+0x110/0x144)
 r4:c4894d50 r3:0000000f
[<c01163f4>] (sysfs_write_file+0x0/0x144) from [<c00d11d4>]
(vfs_write+0xbc/0x148)
[<c00d1118>] (vfs_write+0x0/0x148) from [<c00d1458>] (sys_write+0x44/0x70)
 r8:0000000f r7:00000000 r6:00000000 r5:000d3408 r4:c439e200
[<c00d1414>] (sys_write+0x0/0x70) from [<c004c3c0>]
(ret_fast_syscall+0x0/0x30)
 r8:c004c568 r7:00000004 r6:402d95d0 r5:000d3408 r4:0000000f
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c3400000
[00000000] *pgd=836c1031, *pte=00000000, *ppte=00000000
Internal error: Oops: 80000007 [#1]
last sysfs file: /sys/module/kgdboc/parameters/kgdboc
Modules linked in:
CPU: 0    Tainted: G        W    (2.6.37 #6)
PC is at 0x0
LR is at serial8250_do_set_termios+0x238/0x380
pc : [<00000000>]    lr : [<c022cdf4>]    psr: 40000093
sp : c3679d90  ip : c3679c44  fp : c3679dcc
r10: 00000000  r9 : 40000013  r8 : 00000000
r7 : 00000000  r6 : 00000013  r5 : c3679de4  r4 : c05db19c
r3 : 00000000  r2 : 00000000  r1 : 00000001  r0 : c05db19c
Flags: nZcv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 10c5387d  Table: 83400019  DAC: 00000015
Process sh (pid: 639, stack limit = 0xc36782e8)
Stack: (0xc3679d90 to 0xc367a000)
9d80:                                     00000000 c01e4220 c3679dcc
c3679da8
9da0: c00aa474 c05db19c 00000000 0001c200 0000004e 00000004 c03f92f4
c3679e94
9dc0: c3679ddc c3679dd0 c022cf60 c022cbc8 c3679e2c c3679de0 c0228184
c022cf48
9de0: c05de7f6 00000000 00000000 00000cb0 00000000 00000000 00000000
00000000
9e00: 00000000 00000000 00000000 00000000 c05db19c 00000000 c05878f8
c05de7f0
9e20: c3679e5c c3679e30 c0229908 c02280a4 00000008 0000006e 0000006e
0000004e
9e40: 00000008 0001c200 c01e696c c4980540 c3679e8c c3679e60 c020ce10
c0229860
9e60: c00b0240 c05de7f5 c05de7e8 00000000 c05de7f6 0000000e c40f7000
c40efa58
9e80: c3679eac c3679e90 c022ec30 c020cd38 c3679f5c 00000000 00000000
00000000
9ea0: c3679ed4 c3679eb0 c022eda0 c022ebb8 c022ecf8 c4898450 0000000f
c40f7000
9ec0: c40efa40 c4898380 c3679ef4 c3679ed8 c008ae64 c022ed04 0000000f
c4898380
9ee0: c3679f70 0000000f c3679f0c c3679ef8 c008ac5c c008ae24 0000000f
c4894d50
9f00: c3679f3c c3679f10 c0116504 c008ac40 c3679f70 0000000f c439e200
000d3408
9f20: c3679f70 0000000f c3678000 00000000 c3679f6c c3679f40 c00d11d4
c0116400
9f40: c3679f6c 00000000 c439e200 c439e200 000d3408 00000000 00000000
0000000f
9f60: c3679fa4 c3679f70 c00d1458 c00d1124 00000000 00000000 c439e200
00000000
9f80: c3679fa4 0000000f 000d3408 402d95d0 00000004 c004c568 00000000
c3679fa8
9fa0: c004c3c0 c00d1420 0000000f 000d3408 00000001 000d3408 0000000f
00000000
9fc0: 0000000f 000d3408 402d95d0 00000004 0000000f 4004c7f0 000c2d48
00000000
9fe0: 00000000 bed62a68 402163b8 4026915c 60000010 00000001 00000000
00000000
Backtrace:
[<c022cbbc>] (serial8250_do_set_termios+0x0/0x380) from [<c022cf60>]
(serial8250_set_termios+0x24/0x28)
[<c022cf3c>] (serial8250_set_termios+0x0/0x28) from [<c0228184>]
(uart_set_options+0xec/0x110)
[<c0228098>] (uart_set_options+0x0/0x110) from [<c0229908>]
(uart_poll_init+0xb4/0xc4)
 r7:c05de7f0 r6:c05878f8 r5:00000000 r4:c05db19c
[<c0229854>] (uart_poll_init+0x0/0xc4) from [<c020ce10>]
(tty_find_polling_driver+0xe4/0x134)
 r4:c4980540
[<c020cd2c>] (tty_find_polling_driver+0x0/0x134) from [<c022ec30>]
(configure_kgdboc+0x84/0x14c)
[<c022ebac>] (configure_kgdboc+0x0/0x14c) from [<c022eda0>]
(param_set_kgdboc_var+0xa8/0xc4)
 r5:00000000 r4:00000000
[<c022ecf8>] (param_set_kgdboc_var+0x0/0xc4) from [<c008ae64>]
(param_attr_store+0x4c/0x6c)
 r8:c4898380 r7:c40efa40 r6:c40f7000 r5:0000000f r4:c4898450
r3:c022ecf8
[<c008ae18>] (param_attr_store+0x0/0x6c) from [<c008ac5c>]
(module_attr_store+0x28/0x34)
 r6:0000000f r5:c3679f70 r4:c4898380 r3:0000000f
[<c008ac34>] (module_attr_store+0x0/0x34) from [<c0116504>]
(sysfs_write_file+0x110/0x144)
 r4:c4894d50 r3:0000000f
[<c01163f4>] (sysfs_write_file+0x0/0x144) from [<c00d11d4>]
(vfs_write+0xbc/0x148)
[<c00d1118>] (vfs_write+0x0/0x148) from [<c00d1458>] (sys_write+0x44/0x70)
 r8:0000000f r7:00000000 r6:00000000 r5:000d3408 r4:c439e200
[<c00d1414>] (sys_write+0x0/0x70) from [<c004c3c0>]
(ret_fast_syscall+0x0/0x30)
 r8:c004c568 r7:00000004 r6:402d95d0 r5:000d3408 r4:0000000f
Code: bad PC value
---[ end trace 7e0af2776481cc1a ]---


On Thu, Jul 31, 2014 at 10:21 AM, Jegathesan Durairaj <itje...@gmail.com>
wrote:

> Send your full trace. I am also facing similar problem. Is it SMP?
> On 31/07/2014 11:56 am, "Ran Shalit" <ransha...@gmail.com> wrote:
>
>> Hi Jegathesan,
>>
>> I am using TI's DM8148 (armv7 based soc), and I'm using the same UART
>> (ttyS0 for both console and kgdb debugger)
>> Now I get the exception already in tring to set the baud rate, according
>> to the lines below it happens in uart_get_baud_rate.
>> Maybe it is illegal to use same UART for both console and debugger ? Or
>> is it maybe that I need to do some other actions before, or the set
>> something in kernel config ?
>>
>>
>>  _____                    _____           _         _
>> |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
>> |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
>> |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|
>>               |___|                    |___|
>>
>> Arago Project http://arago-project.org dm814x ttyO0
>>
>> Arago 2012.10 dm814x ttyO0
>>
>> dm814x login: root
>> root@dm814x:~# echo ttyS0,115200 > /sys/module/kgdboc/parameters/kgdboc
>> ------------[ cut here ]------------
>> WARNING: at drivers/serial/serial_core.c:399
>> uart_get_baud_rate+0x124/0x138()
>> Modules linked in:
>> Backtrace:
>> [<c004ffc4>] (dump_backtrace+0x0/0x110) from [<c03ee140>]
>> (dump_stack+0x18/0x1c)
>>  r6:c04f4d9f r5:0000018f r4:00000000 r3:60000013
>>
>>
>> This is the .config relevant flags:
>> -dvr-rdk$ cat .config | grep "KGDB"
>> CONFIG_HAVE_ARCH_KGDB=y
>> CONFIG_KGDB=y
>> CONFIG_KGDB_SERIAL_CONSOLE=y
>> # CONFIG_KGDB_TESTS is not set
>> # CONFIG_KGDB_KDB is not set
>> ubuntu@ubuntu-laptop
>> :~/dvrrdk/DVRRDK_04.01.00.02/ti_tools/linux_lsp/kernel/linux
>>
>>
>> Thanks for any suggestion to make the kgdb work....
>>
>> Ran
>>
>>
>>
>> On Thu, Jul 31, 2014 at 8:44 AM, Jegathesan Durairaj <itje...@gmail.com>
>> wrote:
>>
>>> What is your processor? Try to mention the baud rate while configuring
>>> kgdb.
>>> On 31/07/2014 10:14 am, "Ran Shalit" <ransha...@gmail.com> wrote:
>>>
>>>>  Hello,
>>>>
>>>> I am using kgdb with serial connection and recieve the following error
>>>> immediately after starting the kgdb. I am using kernel which is based on
>>>> git 2.6.37. It support only serial as I see (I don't have
>>>> CONFIG_KGDB_ETH),
>>>> so I could test the kgdb only with serial.
>>>>
>>>>  I would appreciate any idea. Thanks, Ran
>>>>
>>>>
>>>> root@dm814x:~# echo ttyS0 > /sys/module/kgdboc/parameters/kgdboc
>>>> kgdb: Registered I/O driver kgdboc.
>>>>
>>>> root@dm814x:~# echo g > /proc/sysrq-trigger
>>>> SysRq : DEBUG
>>>> Entering KGDB
>>>> Unable to handle kernel NULL pointer dereference at virtual address
>>>> 00000000
>>>> pgd = c4368000
>>>> [00000000] *pgd=84042031, *pte=00000000, *ppte=00000000
>>>> Internal error: Oops: 80000007 [#1]
>>>> last sysfs file: /sys/module/kgdboc/parameters/kgdboc
>>>> KGDB: re-enter exception: ALL breakpoints killed
>>>> Backtrace:
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Infragistics Professional
>>>> Build stunning WinForms apps today!
>>>> Reboot your WinForms applications with our WinForms controls.
>>>> Build a bridge from your legacy apps to the future.
>>>>
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> Kgdb-bugreport mailing list
>>>> Kgdb-bugreport@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport
>>>>
>>>
>>
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Kgdb-bugreport mailing list
Kgdb-bugreport@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport

Reply via email to