Hi all,
I am trying to take kernel crash backup log using kexec and kdump, using "kexec -l vmlinux/uImage" i can able to load the image after that if i am giving "kexec -e" board is rebooting immediately.
If i want to use "kexec -p vmlinux/uImage" it is giving like
root@(none) /home$ kexec -p vmlinux
Memory for crashkernel is not reserved
Please reserve memory by passing"crashkernel=X@Y" parameter to kernel
Then try to loading kdump kernel
I given in boot args like "crashkernel=128M@64M", Now kernel is not booting log i copied below.
MMC read: dev # 2, block # 2048, count 8192 ... 8192 blocks read: OK
## Booting kernel from Legacy Image at 10800000 ...
Image Name: Linux-3.0.35-2666-gbdde708-svn20
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3462204 Bytes = 3.3 MB
Load Address: 10008000
Entry Point: 10008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
What address i need to pass for crashkernel, can anyone help me please..
FYI : board is similar to imx6-sabresd
DRAM:512M
I cross compiled "kexec-tools-2.0.7" to get /sbin/kexec /sbin/kdump
https://www.kernel.org/doc/Documentation/kdump/kdump.txt
Thanks & Regards,
Lavanya.B
Hi All,
SUCCESSFUL CASE :
In bootargs i am passing "crashkernel=50M@0x13000000"
kexec -d -l /boot/zImage --command-line="console=ttymxc2,115200 init=/init root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait reset_devices" --atags
which is starting new kernel
LOG:
kexec -d -l /boot/zImage --command-line="console=ttymxc2,115200 init=/init root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait reset_devices" --atags
kexec -e
starting new kernel
Bye!
Linux version 3.0.35-2666-gbdde708-svn200 (root@fossilshale-desktop) (gcc version 4.6.2 20110630 (prerelease) (Freescale MAD -- Linaro 2011.076
CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Freescale i.MX 6Quad/DualLite/Solo Sabre-SD Board
Ignoring unrecognised tag 0x54410008
Memory policy: ECC disabled, Data cache writealloc
CPU identified as i.MX6DL/SOLO, unknown revision
PERCPU: Embedded 7 pages/cpu @8bc06000 s5824 r8192 d14656 u32768
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
Kernel command line: console=ttymxc2,115200 init=/init root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait reset_devices
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 512MB = 512MB total
UNSUCCESSFUL :
kexec -d -p /boot/zImage --command-line="console=ttymxc2,115200 init=/init root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait reset_devices" --atags
kernel: 0x2acaf008 kernel_size: 0x2eeabc
phys_offset: 0x10000000
kernel symbol _stext vaddr = 80008000
page_offset is set to 80000000
get_crash_notes_per_cpu: crash_notes addr = 1bc0c14c, size = 1024
Elf header: p_type = 4, p_offset = 0x1bc0c14c p_paddr = 0x1bc0c14c p_vaddr = 0x0 p_filesz = 0x400 p_memsz = 0x400
vmcoreinfo header: p_type = 4, p_offset = 0x10949c18 p_paddr = 0x10949c18 p_vaddr = 0x0 p_filesz = 0x1000 p_memsz = 0x1000
Elf header: p_type = 1, p_offset = 0x10000000 p_paddr = 0x10000000 p_vaddr = 0x80000000 p_filesz = 0x3000000 p_memsz = 0x3000000
Elf header: p_type = 1, p_offset = 0x16200000 p_paddr = 0x16200000 p_vaddr = 0x86200000 p_filesz = 0x19e00000 p_memsz = 0x19e00000
elfcorehdr: 0x16100000
crashkernel: [0x13000000 - 0x161fffff] (50M)
memory range: [0x10000000 - 0x12ffffff] (48M)
memory range: [0x16200000 - 0x2fffffff] (414M)
kernel command line: "console=ttymxc2,115200 init=/init root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait reset_devices elfcorehdr=0x16100000 me"
kexec_load: entry = 0x13008000 flags = 0x280001
nr_segments = 3
segment[0].buf = 0x349c0
segment[0].bufsz = 0xf4
segment[0].mem = 0x13001000
segment[0].memsz = 0x1000
segment[1].buf = 0x2acaf008
segment[1].bufsz = 0x2eeabc
segment[1].mem = 0x13008000
segment[1].memsz = 0x2ef000
segment[2].buf = 0x34580
segment[2].bufsz = 0x400
segment[2].mem = 0x16100000
segment[2].memsz = 0x1000
root@(none) ~$ echo c > /proc/sysrq-trigger
SysRq : Trigger a crash
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = 9f934000
[00000000] *pgd=2f875831, *pte=00000000, *ppte=00000000
Internal error: Oops: 817 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 Not tainted (3.0.35-2666-gbdde708-svn200 #7)
PC is at sysrq_handle_crash+0x30/0x40
LR is at sysrq_handle_crash+0x28/0x40
pc : [<80218cdc>] lr : [<80218cd4>] psr: 60000093
sp : 9fecff10 ip : a08ba000 fp : 00000000
r10: 00000000 r9 : 9fece000 r8 : 00000007
r7 : 60000013 r6 : 809296e8 r5 : 00000063 r4 : 8091a78c
r3 : 00000000 r2 : 00000001 r1 : a0000093 r0 : 80940b30
Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment user
Control: 10c53c7d Table: 2f93404a DAC: 00000015
Process sh (pid: 2089, stack limit = 0x9fece2f0)
Stack: (0x9fecff10 to 0x9fed0000)
ff00: 80218cac 80219300 9fecff80 00000002
ff20: 9f921c80 80219370 9fecff80 00000002 000a9408 80219394 9fe5a600 801287f0
ff40: 9fecff80 9f921c80 00000002 000a9408 9fecff80 00000002 00000000 800e750c
ff60: 9f921c80 9ffc3460 9f921c80 000a9408 00000000 00000000 00000002 800e777c
ff80: 00000000 00000000 9ffc34a0 00000000 2acb85d0 00000002 000a9408 00000004
ffa0: 80039144 80038fc0 2acb85d0 00000002 00000001 000a9408 00000002 00000000
ffc0: 2acb85d0 00000002 000a9408 00000004 00000002 00000000 000a7808 00000000
ffe0: 00000000 7e8caac8 2abfa20c 2ac4ac0c 60000010 00000001 00000000 00000000
[<80218cdc>] (sysrq_handle_crash+0x30/0x40) from [<80219300>] (__handle_sysrq+0x104/0x174)
[<80219300>] (__handle_sysrq+0x104/0x174) from [<80219394>] (write_sysrq_trigger+0x24/0x34)
[<80219394>] (write_sysrq_trigger+0x24/0x34) from [<801287f0>] (proc_reg_write+0x70/0x94)
[<801287f0>] (proc_reg_write+0x70/0x94) from [<800e750c>] (vfs_write+0xa8/0x138)
[<800e750c>] (vfs_write+0xa8/0x138) from [<800e777c>] (sys_write+0x40/0x6c)
[<800e777c>] (sys_write+0x40/0x6c) from [<80038fc0>] (ret_fast_syscall+0x0/0x30)
Code: 0a000000 e12fff33 e3a03000 e3a02001 (e5c32000)
Loading crashdump kernel...
Bye!
Linux version 3.0.35-2666-gbdde708-svn200 (root@fossilshale-desktop) (gcc version 4.6.2 20110630 (prerelease) (Freescale MAD -- Linaro 2011.076
CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Freescale i.MX 6Quad/DualLite/Solo Sabre-SD Board
Ignoring unrecognised tag 0x54410008
Memory policy: ECC disabled, Data cache writealloc
CPU identified as i.MX6DL/SOLO, unknown revision
PERCPU: Embedded 7 pages/cpu @80a0a000 s5824 r8192 d14656 u32768
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 12446
Kernel command line: console=ttymxc2,115200 init=/init root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait reset_devices elfcorehdr=0x16100000 memK
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 49MB = 49MB total
Memory: 39812k/39812k available, 10364k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xf4600000 - 0xffe00000 ( 184 MB)
vmalloc : 0x83800000 - 0xf2000000 (1768 MB)
lowmem : 0x80000000 - 0x83100000 ( 49 MB)
pkmap : 0x7fe00000 - 0x80000000 ( 2 MB)
modules : 0x7f000000 - 0x7fe00000 ( 14 MB)
.init : 0x80008000 - 0x80033000 ( 172 kB)
.text : 0x80033000 - 0x808f2c6c (8960 kB)
.data : 0x808f4000 - 0x80940640 ( 306 kB)
.bss : 0x80940664 - 0x809865a0 ( 280 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptible hierarchical RCU implementation.
NR_IRQS:624
MXC GPIO hardware
sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655ms
Set periph_clk's parent to pll2_pfd_400M!
arm_max_freq=1GHz
MXC_Early serial console at MMIO 0x21ec000 (options '115200')
bootconsole [ttymxc2] enabled
Calibrating delay loop... 1987.37 BogoMIPS (lpj=9936896)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
Brought up 1 CPUs
SMP: Total of 1 processors activated (1987.37 BogoMIPS).
print_constraints: dummy:
NET: Registered protocol family 16
print_constraints: vddpu: 725 <--> 1300 mV at 700 mV fast normal
print_constraints: vddcore: 725 <--> 1300 mV at 1475 mV fast normal
print_constraints: vddsoc: 725 <--> 1300 mV at 1475 mV fast normal
print_constraints: vdd2p5: 2000 <--> 2775 mV at 2400 mV fast normal
print_constraints: vdd1p1: 800 <--> 1400 mV at 1100 mV fast normal
print_constraints: vdd3p0: 2625 <--> 3400 mV at 3200 mV fast normal
Board info HW version: FS-IMX6-WCAM.REV.B-FS_OV10626_DVP_CB.REV.B
Vishwa: usb init
Vishwa: USB power enable
mx6_sabresd_board_init 2 clko2 set rate=24000000
mx6_sabresd_board_init 1 clko set rate=0
hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
hw-breakpoint: 1 breakpoint(s) reserved for watchpoint single-step.
hw-breakpoint: maximum watchpoint size is 4 bytes.
L310 cache controller enabled
l2x0: 16 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x02050000, Cache size: 524288 B
bio: create slab <bio-0> at 0
mxs-dma mxs-dma-apbh: initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Freescale USB OTG Driver loaded, $Revision: 1.55 $
i2c i2c-0: Invalid 7-bit I2C address 0x00
i2c i2c-0: Can't create device at 0x00
mc_pfuze 1-0008: ID: 0,Full lay: 2 ,Metal lay: 1
mc_pfuze 1-0008: FAB: 0 ,FIN: 0
print_constraints: PFUZE100_SW1A: 300 <--> 1875 mV at 1300 mV
print_constraints: PFUZE100_SW1B: 300 <--> 1875 mV at 300 mV
print_constraints: PFUZE100_SW1C: 300 <--> 1875 mV at 1300 mV
print_constraints: PFUZE100_SW2: 800 <--> 3950 mV at 3300 mV
print_constraints: PFUZE100_SW3A: 400 <--> 1975 mV at 1200 mV
print_constraints: PFUZE100_SW3B: 400 <--> 1975 mV at 1500 mV
print_constraints: PFUZE100_SW4: 800 <--> 3950 mV at 3300 mV
print_constraints: PFUZE100_SWBST: 5000 <--> 5150 mV at 5000 mV
print_constraints: PFUZE100_VSNVS: 1200 <--> 3000 mV at 1800 mV
print_constraints: PFUZE100_VREFDDR: at 750 mV
print_constraints: PFUZE100_VGEN1: 800 <--> 1550 mV at 800 mV
print_constraints: PFUZE100_VGEN2: 800 <--> 1550 mV at 1500 mV
print_constraints: PFUZE100_VGEN3: 1800 <--> 3300 mV at 1800 mV
print_constraints: PFUZE100_VGEN4: 1800 <--> 3300 mV at 1800 mV
print_constraints: PFUZE100_VGEN5: 1800 <--> 3300 mV at 2500 mV
print_constraints: PFUZE100_VGEN6: 1800 <--> 3300 mV at 3000 mV
imx-ipuv3 imx-ipuv3.0: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)
mxc_mipi_csi2 mxc_mipi_csi2: i.MX MIPI CSI2 driver probed
mxc_mipi_csi2 mxc_mipi_csi2: i.MX MIPI CSI2 dphy version is 0x3130302a
MIPI CSI2 driver module loaded
Advanced Linux Sound Architecture Driver Version 1.0.24.
Bluetooth: Core ver 2.16
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO socket layer initialized
i2c-core: driver [max17135] using legacy suspend method
i2c-core: driver [max17135] using legacy resume method
Switching to clocksource mxc_timer1
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 2, 24576 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
UDP hash table entries: 128 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 128 (order: 0, 4096 bytes)
NET: Registered protocol family 1
PMU: registered new PMU device of type 0
Static Power Management for Freescale i.MX6
wait mode is enabled for i.MX6
cpaddr = 83820000 suspend_iram_base=838a4000
PM driver module loaded
IMX usb wakeup probe
add wake up source irq 75
IMX usb wakeup probe
cpu regulator mode:ldo_bypass
_regulator_get: get() with no identifier
mx6_cpu_regulator_init: failed to get pu regulator
i.MXC CPU frequency driver
------------[ cut here ]------------
WARNING: at arch/arm/mm/ioremap.c:207 __arm_ioremap_pfn_caller+0xf0/0x104()
Modules linked in:
[<8003fb70>] (unwind_backtrace+0x0/0xf8) from [<8006b0e4>] (warn_slowpath_common+0x4c/0x64)
otg udc vbus falling wakeup
[<8006b0e4>] (warn_slowpath_common+0x4c/0x64) from [<8006b118>] (warn_slowpath_null+0x1c/0x24)
[<8006b118>] (warn_slowpath_null+0x1c/0x24) from [<80044368>] (__arm_ioremap_pfn_caller+0xf0/0x104)
[<80044368>] (__arm_ioremap_pfn_caller+0xf0/0x104) from [<800443e8>] (__arm_ioremap_caller+0x54/0x5c)
[<800443e8>] (__arm_ioremap_caller+0x54/0x5c) from [<8003fd9c>] (copy_oldmem_page+0x28/0xc0)
[<8003fd9c>] (copy_oldmem_page+0x28/0xc0) from [<80130c48>] (read_from_oldmem+0xb8/0xe4)
[<80130c48>] (read_from_oldmem+0xb8/0xe4) from [<8001b3b8>] (parse_crash_elf32_headers+0x198/0x4b0)
[<8001b3b8>] (parse_crash_elf32_headers+0x198/0x4b0) from [<8001b798>] (vmcore_init+0xc8/0x19c)
[<8001b798>] (vmcore_init+0xc8/0x19c) from [<800334e8>] (do_one_initcall+0x34/0x174)
[<800334e8>] (do_one_initcall+0x34/0x174) from [<80008940>] (kernel_init+0x98/0x13c)
[<80008940>] (kernel_init+0x98/0x13c) from [<80039aa4>] (kernel_thread_exit+0x0/0x8)
---[ end trace 65f8ea860415c04f ]---
Kdump: vmcore not initialized
msgmni has been set to 77
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
MIPI DSI driver module loaded
mxc_sdc_fb mxc_sdc_fb.0: register mxc display driver ldb
_regulator_get: get() with no identifier
imx-ipuv3 imx-ipuv3.0: IPU DMFC DP HIGH RESOLUTION: 1(0,1), 5B(2~5), 5F(6,7)
mxc_sdc_fb mxc_sdc_fb.1: register mxc display driver ldb
imx-sdma imx-sdma: loaded firmware 1.1
imx-sdma imx-sdma: initialized
Serial: IMX driver
imx-uart.2: ttymxc2 at MMIO 0x21ec000 (irq = 60) is a IMX
console [ttymxc2] enabled, bootconsole disabled
console [ttymxc2] enabled, bootconsole disabled
loop: module loaded
vcan: Virtual CAN interface driver
CAN device driver interface
flexcan netdevice driver
FEC Ethernet Driver
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller
fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1
fsl-ehci fsl-ehci.0: irq 75, io base 0x02184000
fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
add wake up source irq 72
irq 72: nobody cared (try booting with the "irqpoll" option)
[<8003fb70>] (unwind_backtrace+0x0/0xf8) from [<800a18c8>] (__report_bad_irq+0x28/0xc4)
[<800a18c8>] (__report_bad_irq+0x28/0xc4) from [<800a1c0c>] (note_interrupt+0x1e4/0x240)
[<800a1c0c>] (note_interrupt+0x1e4/0x240) from [<800a0158>] (handle_irq_event_percpu+0xa8/0x180)
[<800a0158>] (handle_irq_event_percpu+0xa8/0x180) from [<800a026c>] (handle_irq_event+0x3c/0x5c)
[<800a026c>] (handle_irq_event+0x3c/0x5c) from [<800a25f0>] (handle_fasteoi_irq+0xbc/0x154)
[<800a25f0>] (handle_fasteoi_irq+0xbc/0x154) from [<8009fa68>] (generic_handle_irq+0x28/0x3c)
[<8009fa68>] (generic_handle_irq+0x28/0x3c) from [<80039870>] (handle_IRQ+0x4c/0xac)
[<80039870>] (handle_IRQ+0x4c/0xac) from [<80038a0c>] (__irq_svc+0x4c/0xe8)
[<80038a0c>] (__irq_svc+0x4c/0xe8) from [<801d1930>] (__delay+0x0/0xc)
handlers:
[<8005af8c>] usb_wakeup_handler
Disabling IRQ #72
irq 72: nobody cared (try booting with the "irqpoll" option)
[<8003fb70>] (unwind_backtrace+0x0/0xf8) from [<800a18c8>] (__report_bad_irq+0x28/0xc4)
[<800a18c8>] (__report_bad_irq+0x28/0xc4) from [<800a1c0c>] (note_interrupt+0x1e4/0x240)
[<800a1c0c>] (note_interrupt+0x1e4/0x240) from [<800a0158>] (handle_irq_event_percpu+0xa8/0x180)
[<800a0158>] (handle_irq_event_percpu+0xa8/0x180) from [<800a026c>] (handle_irq_event+0x3c/0x5c)
[<800a026c>] (handle_irq_event+0x3c/0x5c) from [<800a25f0>] (handle_fasteoi_irq+0xbc/0x154)
[<800a25f0>] (handle_fasteoi_irq+0xbc/0x154) from [<8009fa68>] (generic_handle_irq+0x28/0x3c)
[<8009fa68>] (generic_handle_irq+0x28/0x3c) from [<80039870>] (handle_IRQ+0x4c/0xac)
[<80039870>] (handle_IRQ+0x4c/0xac) from [<80038a0c>] (__irq_svc+0x4c/0xe8)
[<80038a0c>] (__irq_svc+0x4c/0xe8) from [<803fb360>] (_raw_spin_unlock_irqrestore+0x18/0x40)
[<803fb360>] (_raw_spin_unlock_irqrestore+0x18/0x40) from [<800a1280>] (__setup_irq+0x1e0/0x384)
[<800a1280>] (__setup_irq+0x1e0/0x384) from [<800a14cc>] (request_threaded_irq+0xa8/0x120)
[<800a14cc>] (request_threaded_irq+0xa8/0x120) from [<80260758>] (usb_hcd_fsl_probe+0x244/0x478)
[<80260758>] (usb_hcd_fsl_probe+0x244/0x478) from [<80226c04>] (platform_drv_probe+0x18/0x1c)
[<80226c04>] (platform_drv_probe+0x18/0x1c) from [<80225c2c>] (driver_probe_device+0x90/0x19c)
[<80225c2c>] (driver_probe_device+0x90/0x19c) from [<80225dc4>] (__driver_attach+0x8c/0x90)
[<80225dc4>] (__driver_attach+0x8c/0x90) from [<80224e4c>] (bus_for_each_dev+0x5c/0x88)
[<80224e4c>] (bus_for_each_dev+0x5c/0x88) from [<80225600>] (bus_add_driver+0x17c/0x244)
[<80225600>] (bus_add_driver+0x17c/0x244) from [<8022604c>] (driver_register+0x78/0x13c)
[<8022604c>] (driver_register+0x78/0x13c) from [<80020370>] (ehci_hcd_init+0x58/0x88)
[<80020370>] (ehci_hcd_init+0x58/0x88) from [<800334e8>] (do_one_initcall+0x34/0x174)
[<800334e8>] (do_one_initcall+0x34/0x174) from [<80008940>] (kernel_init+0x98/0x13c)
[<80008940>] (kernel_init+0x98/0x13c) from [<80039aa4>] (kernel_thread_exit+0x0/0x8)
handlers:
[<8005af8c>] usb_wakeup_handler
[<802604a8>] ehci_fsl_pre_irq
Disabling IRQ #72
fsl-ehci fsl-ehci.1: Freescale On-Chip EHCI Host Controller
fsl-ehci fsl-ehci.1: new USB bus registered, assigned bus number 2
irq 72: nobody cared (try booting with the "irqpoll" option)
[<8003fb70>] (unwind_backtrace+0x0/0xf8) from [<800a18c8>] (__report_bad_irq+0x28/0xc4)
[<800a18c8>] (__report_bad_irq+0x28/0xc4) from [<800a1c0c>] (note_interrupt+0x1e4/0x240)
[<800a1c0c>] (note_interrupt+0x1e4/0x240) from [<800a0158>] (handle_irq_event_percpu+0xa8/0x180)
[<800a0158>] (handle_irq_event_percpu+0xa8/0x180) from [<800a026c>] (handle_irq_event+0x3c/0x5c)
[<800a026c>] (handle_irq_event+0x3c/0x5c) from [<800a25f0>] (handle_fasteoi_irq+0xbc/0x154)
[<800a25f0>] (handle_fasteoi_irq+0xbc/0x154) from [<8009fa68>] (generic_handle_irq+0x28/0x3c)
[<8009fa68>] (generic_handle_irq+0x28/0x3c) from [<80039870>] (handle_IRQ+0x4c/0xac)
[<80039870>] (handle_IRQ+0x4c/0xac) from [<80038a0c>] (__irq_svc+0x4c/0xe8)
[<80038a0c>] (__irq_svc+0x4c/0xe8) from [<803fb360>] (_raw_spin_unlock_irqrestore+0x18/0x40)
[<803fb360>] (_raw_spin_unlock_irqrestore+0x18/0x40) from [<800a1280>] (__setup_irq+0x1e0/0x384)
[<800a1280>] (__setup_irq+0x1e0/0x384) from [<800a14cc>] (request_threaded_irq+0xa8/0x120)
[<800a14cc>] (request_threaded_irq+0xa8/0x120) from [<8024c7c4>] (usb_add_hcd+0x364/0x5b8)
[<8024c7c4>] (usb_add_hcd+0x364/0x5b8) from [<80260770>] (usb_hcd_fsl_probe+0x25c/0x478)
[<80260770>] (usb_hcd_fsl_probe+0x25c/0x478) from [<80226c04>] (platform_drv_probe+0x18/0x1c)
[<80226c04>] (platform_drv_probe+0x18/0x1c) from [<80225c2c>] (driver_probe_device+0x90/0x19c)
[<80225c2c>] (driver_probe_device+0x90/0x19c) from [<80225dc4>] (__driver_attach+0x8c/0x90)
[<80225dc4>] (__driver_attach+0x8c/0x90) from [<80224e4c>] (bus_for_each_dev+0x5c/0x88)
[<80224e4c>] (bus_for_each_dev+0x5c/0x88) from [<80225600>] (bus_add_driver+0x17c/0x244)
[<80225600>] (bus_add_driver+0x17c/0x244) from [<8022604c>] (driver_register+0x78/0x13c)
[<8022604c>] (driver_register+0x78/0x13c) from [<80020370>] (ehci_hcd_init+0x58/0x88)
[<80020370>] (ehci_hcd_init+0x58/0x88) from [<800334e8>] (do_one_initcall+0x34/0x174)
[<800334e8>] (do_one_initcall+0x34/0x174) from [<80008940>] (kernel_init+0x98/0x13c)
[<80008940>] (kernel_init+0x98/0x13c) from [<80039aa4>] (kernel_thread_exit+0x0/0x8)
handlers:
[<8005af8c>] usb_wakeup_handler
[<802604a8>] ehci_fsl_pre_irq
[<8024ba1c>] usb_hcd_irq
Disabling IRQ #72
fsl-ehci fsl-ehci.1: irq 72, io base 0x02184200
fsl-ehci fsl-ehci.1: USB 2.0 started, EHCI 1.00
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
ARC USBOTG Device Controller driver (1 August 2005)
my_batt_ext_power_changed!
It is not usb supply!
input: gpio-keys as /devices/platform/gpio-keys/input/input0
snvs_rtc snvs_rtc.0: rtc core: registered snvs_rtc as rtc0
i2c /dev entries driver
Linux video capture interface: v2.00
OV1062x: ov1062x_init --------
OV1062x: ov1062x_probe --------
mx6q_csi0_io_init IPU IMXDL/Solo Selection
ov1062x_write_reg:write reg error:reg=303f,val=5
camera 303f write failed -1
camera ov1062x is found
^^^^^^^^^^OV1062x: ov1062x_probe Chip id high=0xa6**** Chip id low=0x26***
mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video16
mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video17
mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video18
imx2-wdt imx2-wdt.0: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=0)
Bluetooth: Virtual HCI driver ver 1.3
Bluetooth: HCI UART driver ver 2.2
Bluetooth: HCIATH3K protocol initialized
Bluetooth: Generic Bluetooth USB driver ver 0.6
usbcore: registered new interface driver btusb
cpuidle: using governor ladder
cpuidle: using governor menu
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mmc0: no vmmc regulator found
mmc0: SDHCI controller on platform [sdhci-esdhc-imx.2] using ADMA
mmc1: no vmmc regulator found
mmc1: SDHCI controller on platform [sdhci-esdhc-imx.0] using ADMA
mxc_vdoa mxc_vdoa: i.MX Video Data Order Adapter(VDOA) driver probed
VPU initialized
Warning: No contiguous memory is reserverd for gpu.!
Galcore version 4.6.9.6622
Thermal calibration data is 0x5cb54a5f
Thermal sensor with ratio = 194
Anatop Thermal registered as thermal_zone0
anatop_thermal_probe: default cooling device is cpufreq!
usbcore: registered new interface driver snd-usb-audio
ALSA device list:
No soundcards found.
NET: Registered protocol family 26
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)
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: BNEP filters: protocol multicast
lib80211: common routines for IEEE802.11 drivers
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
Bus freq driver module loaded
Bus freq driver Enabled
mxc_dvfs_core_probe
DVFS driver module loaded
mmc0: new high speed SDHC card at address 59b4
mmcblk0: mmc0:59b4 USD 7.47 GiB
regulator_init_complete: PFUZE100_VGEN6: incomplete constraints, leaving on
mmcblk0: p1 p2
Checking page ptr
regulator_init_complete: PFUZE100_VGEN2: incomplete constraints, leaving on
snvs_rtc snvs_rtc.0: setting system clock to 1970-01-01 00:02:05 UTC (125)
mmc1: card claims to support voltages below the defined range. These will be ignored.
mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
mmc1: new SDIO card at address 0001
EXT4-fs (mmcblk0p1): recovery complete
EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:1.
Freeing init memory: 172K
Failed to execute /init. Attempting defaults...
starting pid 1097, tty '': '/etc/rc.d/rcS'
Mounting /proc and /sys
mount: mounting pstore on /pstore failed: No such file or directory
Starting the hotplug events dispatcher udevd
Synthesizing initial hotplug evenudevd (1107): /proc/1107/oom_adj is deprecated, please use /proc/1107/oom_score_adj instead.
ts
After this it is Hanging....
how to solve this, and how can i get crash log backup.
If any one done this can you please help me...
Thanks & Regards,
Lavanya
Hello Lavanya.B,
Try the configuration: crashkernel=128M , please !
Regards,
Weidong
Hi Weidong Sun,
now i am giving like crashkernel=128M@304M
Starting kernel ...
[ 0.000000] Linux version 3.0.35-2666-gbdde708-svn200 (root@fossilshale-desktop) (gcc version 4.6.2 20110630 (prerelease) (Freescale MAD --6
[ 0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: Freescale i.MX 6Quad/DualLite/Solo Sabre-SD Board
[ 0.000000] Ignoring unrecognised tag 0x54410008
[ 0.000000] Memory policy: ECC disabled, Data cache writealloc
[ 0.000000] CPU identified as i.MX6DL/SOLO, silicon rev 1.2
[ 0.000000] Reserving 128MB of memory at 304MB for crashkernel (System RAM: 512MB)
[ 0.000000] PERCPU: Embedded 7 pages/cpu @8bc07000 s6176 r8192 d14304 u32768
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
[ 0.000000] Kernel command line: console=ttymxc2,115200 init=/sbin/init root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait crashkernel=128M@304M
After kernel has booted i am passing
root@(none) $ kexec -d -p vmlinux --command-line="console=ttymxc2,115200 init=/sbin/init root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait crashkernel=128M@304M" --atags
Log :
root@none /home$ kexec -d -p vmlinux --command-line="console=ttymxc2,115200>
kernel: 0x2acb1008 kernel_size: 0x4579c4a
phys_offset: 0x10000000
kernel symbol _stext vaddr = 80008000
page_offset is set to 80000000
get_crash_notes_per_cpu: crash_notes addr = 1bc0d34c, size = 1024
Elf header: p_type = 4, p_offset = 0x1bc0d34c p_paddr = 0x1bc0d34c p_vaddr = 0x0 p_filesz = 0x400 p_memsz = 0x400
vmcoreinfo header: p_type = 4, p_offset = 0x10a61f78 p_paddr = 0x10a61f78 p_vaddr = 0x0 p_filesz = 0x1000 p_memsz = 0x1000
Elf header: p_type = 1, p_offset = 0x10000000 p_paddr = 0x10000000 p_vaddr = 0x80000000 p_filesz = 0x3000000 p_memsz = 0x3000000
Elf header: p_type = 1, p_offset = 0x1b000000 p_paddr = 0x1b000000 p_vaddr = 0x8b000000 p_filesz = 0x15000000 p_memsz = 0x15000000
elfcorehdr: 0x1af00000
crashkernel: [0x13000000 - 0x1affffff] (128M)
memory range: [0x10000000 - 0x12ffffff] (48M)
memory range: [0x1b000000 - 0x2fffffff] (336M)
kernel command line: "console=ttymxc2,115200 init=/sbin/init root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait crashkernel=128M@0x13000000 elfco"
kexec_load: entry = 0x13008000 flags = 0x280001
nr_segments = 3
segment[0].buf = 0x349c0
segment[0].bufsz = 0x108
segment[0].mem = 0x13001000
segment[0].memsz = 0x1000
segment[1].buf = 0x2acb1008
segment[1].bufsz = 0x4579c4a
segment[1].mem = 0x13008000
segment[1].memsz = 0x457a000
segment[2].buf = 0x34580
segment[2].bufsz = 0x400
segment[2].mem = 0x1af00000
segment[2].memsz = 0x1000
i am creating panic using echo c > /proc/sysrq-trigger
[ 338.510892] SysRq : Trigger a crash
[ 338.514604] Function: IN __do_kernel_fault
[ 338.518286] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[ 338.526395] Function: IN show_pte
[ 338.529287] pgd = 9faa4000
[ 338.532006] [00000000] *pgd=2f90d831, *pte=00000000, *ppte=00000000
[ 338.538341] Function:In oops_enter
[ 338.541320] Function:In do_oops_enter_exit
[ 338.545000] Internal error: Oops: 817 [#1] SMP
[ 338.549458] Modules linked in:
[ 338.552539] Function:In print_tainted
[ 338.555784] CPU: 0 Not tainted (3.0.35-2666-gbdde708-svn200 #20)
[ 338.562177] PC is at sysrq_handle_crash+0x40/0x50
[ 338.566917] LR is at _raw_spin_unlock_irqrestore+0x1c/0x24
[ 338.572424] pc : [<802997a0>] lr : [<804a7548>] psr: 60000093
[ 338.572436] sp : 9fa91ec8 ip : 9fa91e98 fp : 9fa91ed4
[ 338.583941] r10: 00000000 r9 : 00000000 r8 : 00000007
[ 338.589184] r7 : 20000013 r6 : 80a3e5cc r5 : 00000063 r4 : 80a28998
[ 338.595729] r3 : 00000000 r2 : 00000001 r1 : a0000093 r0 : 80a1ad20
[ 338.602278] Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment user
[ 338.609520] Control: 10c53c7d Table: 2faa404a DAC: 00000015
[ 338.615285] Process sh (pid: 2055, stack limit = 0x9fa902f0)
[ 338.620962] Stack: (0x9fa91ec8 to 0x9fa92000)
[ 338.625343] 1ec0: 9fa91efc 9fa91ed8 8029a03c 8029976c 00000002 000a9408
[ 338.633549] 1ee0: 8029a0b8 00000002 000a9408 9fa91f70 9fa91f14 9fa91f00 8029a100 80299f04
[ 338.641755] 1f00: 9fdbd980 9f9816c0 9fa91f3c 9fa91f18 801843dc 8029a0c4 9f9816c0 00000002
[ 338.649960] 1f20: 000a9408 9fa91f70 00000000 00000000 9fa91f6c 9fa91f40 8013c0c8 80184368
[ 338.658166] 1f40: 9f874e00 00000000 9f9816c0 9f9816c0 000a9408 00000002 00000004 00000000
[ 338.666371] 1f60: 9fa91fa4 9fa91f70 8013c360 8013c01c 00000000 00000000 9fa91fa4 00000000
[ 338.674576] 1f80: 8013a14c 2ad155d0 00000002 000a9408 80050604 9fa90000 00000000 9fa91fa8
[ 338.682780] 1fa0: 800503c0 8013c320 2ad155d0 00000002 00000001 000a9408 00000002 00000000
[ 338.690984] 1fc0: 2ad155d0 00000002 000a9408 00000004 00000002 00000000 000a7818 00000000
[ 338.699188] 1fe0: 00000000 7e88bac8 2ac5720c 2aca7c0c 60000010 00000001 00000000 00000000
[ 338.707415] [<802997a0>] (sysrq_handle_crash+0x40/0x50) from [<8029a03c>] (__handle_sysrq+0x144/0x1c0)
[ 338.716760] [<8029a03c>] (__handle_sysrq+0x144/0x1c0) from [<8029a100>] (write_sysrq_trigger+0x48/0x60)
[ 338.726198] [<8029a100>] (write_sysrq_trigger+0x48/0x60) from [<801843dc>] (proc_reg_write+0x80/0xa4)
[ 338.735464] [<801843dc>] (proc_reg_write+0x80/0xa4) from [<8013c0c8>] (vfs_write+0xb8/0x148)
[ 338.743939] [<8013c0c8>] (vfs_write+0xb8/0x148) from [<8013c360>] (sys_write+0x4c/0x78)
[ 338.751988] [<8013c360>] (sys_write+0x4c/0x78) from [<800503c0>] (ret_fast_syscall+0x0/0x30)
[ 338.760458] Code: 0a000000 e12fff33 e3a03000 e3a02001 (e5c32000)
[ 338.766585] Loading crashdump kernel...
[ 338.770447] Bye!
[ 338.774275] Function:In oops_enter
[ 338.777270] Function:In do_oops_enter_exit
After 20sec kernel is rebooting because of watchdog timer, capture kernel only booting and i am not getting "/proc/vmcore " to get this what i need to do.
U-Boot 2009.08-svn220 (Feb 09 2016 - 18:59:50)
--------------------------------
--------------------------------
--------------------------------
mmc2 is current device
MMC read: dev # 2, block # 2048, count 8192 ... 8192 blocks read: OK
## Booting kernel from Legacy Image at 10800000 ...
Image Name: Linux-3.0.35-2666-gbdde708-svn20
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3462204 Bytes = 3.3 MB
Load Address: 10008000
Entry Point: 10008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
can anyone please help me i want to take crash log backup.
Thanks & Regards,
Lavanya