kernel panic when booting

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

kernel panic when booting

4,900 Views
asmaa
Contributor V

Hi all,

I am getting this error when booting from my custom board based on imx6q. I have ported android image on my board. what could possibly be wrong. can someone please point me?

U-Boot 2017.03-imx_v2017.03_4.9.11_1.0.0_ga+ga2fea67 (Sep 17 2017 - 14:42:44 -0500)

CPU: Freescale i.MX6Q rev1.2 996 MHz (running at 792 MHz)
CPU: Automotive temperature grade (-40C to 125C) at 31C
Reset cause: POR
Model: Freescale i.MX6 Solo
Board: MX6-SabreSD
DRAM: 1 GiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
*** Warning - bad CRC, using default environment

Display: TFT43AB (480x272)
Video: 480x272x24
In: serial
Out: serial
Err: serial
switch to partitions #0, OK
mmc1 is current device
Net:
Warning: ethernet@020b4000 using MAC address from ROM
eth1: ethernet@020b4000 [PRIME]
Warning: ethernet@02188000 using MAC address from ROM
, eth0: ethernet@02188000
Boot from USB for mfgtools
Use default environment for mfgtools
Run bootcmd_mfg: run mfgtool_args;bootz ${loadaddr} ${initrd_addr} ${fdt_addr};
Hit any key to stop autoboot: 0
Kernel image @ 0x80800000 [ 0x000000 - 0x5bd9c8 ]
## Loading init Ramdisk from Legacy Image at 83800000 ...
Image Name: fsl-image-mfgtool-initramfs-imx6
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 8594034 Bytes = 8.2 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 83000000
Booting using the fdt blob at 0x83000000
Using Device Tree in place at 83000000, end 8300c0ef
Modify /soc/aips-bus@02000000/bee@02044000:status disabled
ft_system_setup for mx6

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 4.9.11+ (bamboo@yb4) (gcc version 6.2.0 (GCC) ) #1 SMP PREEMPT Sun Sep 17 14:25:24 CDT 2017
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
CPU: div instructions available: patching division code
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt:Machine model: Freescale i.MX6 UltraLite 14x14 EVK Board
Reserved memory: created CMA memory pool at 0x8c000000, size 320 MiB
OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
Memory policy: Data cache writealloc
percpu: Embedded 14 pages/cpu @8bb31000 s25740 r8192 d23412 u57344
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
Kernel command line: console=ttymxc0,115200 rdinit=/linuxrc g_mass_storage.stall=0 g_mass_storage.removable=1 g_mass_storage.file=/fat g_mass_storage.ro=1 g_mass_storage.idVendor=0x066F g_mass_storage.idProduct=0x37FF g_mass_storage.iSerialNumber= clk_ignore_unused
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: 170800K/524288K available (7168K kernel code, 330K rwdata, 2624K rodata, 1024K init, 441K bss, 25808K reserved, 327680K cma-reserved, 0K highmem)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xa0800000 - 0xff800000 (1520 MB)
lowmem : 0x80000000 - 0xa0000000 ( 512 MB)
pkmap : 0x7fe00000 - 0x80000000 ( 2 MB)
modules : 0x7f000000 - 0x7fe00000 ( 14 MB)
.text : 0x80008000 - 0x80800000 (8160 kB)
.init : 0x80b00000 - 0x80c00000 (1024 kB)
.data : 0x80c00000 - 0x80c52820 ( 331 kB)
.bss : 0x80c54000 - 0x80cc26dc ( 442 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptible hierarchical RCU implementation.
Build-time adjustment of leaf fanout to 32.
RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1
NR_IRQS:16 nr_irqs:16 16
Switching to timer-based delay loop, resolution 333ns
sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 715827882841ns
clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
/cpus/cpu@0 missing clock-frequency property
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x80100000 - 0x80100070
Brought up 1 CPUs
SMP: Total of 1 processors activated (6.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor menu
hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 8 bytes.
mxs-dma 1804000.dma-apbh: initialized
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c i2c-0: IMX I2C adapter registered
i2c i2c-0: can't use DMA, using PIO instead.
i2c i2c-1: IMX I2C adapter registered
i2c i2c-1: can't use DMA, using PIO instead.
Linux video capture interface: v2.00
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
imx rpmsg driver is registered.
Advanced Linux Sound Architecture Driver Initialized.
clocksource: Switched to clocksource mxc_timer1
VFS: Disk quotas dquot_6.6.0
VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
NET: Registered protocol family 2
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 8396K (83800000 - 84033000)
Bus freq driver module loaded
futex hash table entries: 256 (order: 2, 16384 bytes)
workingset: timestamp_bits=30 max_order=17 bucket_order=0
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
fuse init (API version 7.26)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
imx-weim 21b8000.weim: Driver registered.
backlight supply power not found, using dummy regulator
21c8000.lcdif supply lcd not found, using dummy regulator
mxsfb 21c8000.lcdif: failed to find mxc display driver
Console: switching to colour frame buffer device 60x34
mxsfb 21c8000.lcdif: initialized
imx-sdma 20ec000.sdma: loaded firmware 3.3
2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 19, base_baud = 5000000) is a IMX
random: fast init done
console [ttymxc0] enabled
21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 66, base_baud = 5000000) is a IMX
imx sema4 driver is registered.
[drm] Initialized
[drm] Initialized vivante 1.0.0 20120216 on minor 0
brd: module loaded
loop: module loaded
fsl-quadspi 21e0000.qspi: n25q256a (32768 Kbytes)
libphy: Fixed MDIO Bus: probed
20b4000.ethernet supply phy not found, using dummy regulator
pps pps0: new PPS source ptp0
libphy: fec_enet_mii_bus: probed
fec 20b4000.ethernet eth0: registered PHC device 0
2188000.ethernet supply phy not found, using dummy regulator
pps pps1: new PPS source ptp1
fec 2188000.ethernet eth1: registered PHC device 1
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-mxc: Freescale On-Chip EHCI Host driver
usbcore: registered new interface driver usb-storage
2184800.usbmisc supply vbus-wakeup not found, using dummy regulator
2184000.usb supply vbus not found, using dummy regulator
2184200.usb supply vbus not found, using dummy regulator
ci_hdrc ci_hdrc.1: EHCI Host Controller
ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1
ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Mass Storage Function, version: 2009/09/11
LUN: removable file: (no medium)
LUN: removable read only file: /fat
Number of LUNs=1
g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
g_mass_storage gadget: g_mass_storage ready
mousedev: PS/2 mouse device common for all mice
input: 20cc000.snvs:snvs-powerkey as /devices/soc0/soc/2000000.aips-bus/20cc000.snvs/20cc000.snvs:snvs-powerkey/input/input0
snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-r as rtc0
i2c /dev entries driver
IR NEC protocol handler initialized
IR RC5(x/sz) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR SANYO protocol handler initialized
IR Sharp protocol handler initialized
IR MCE Keyboard/mouse protocol handler initialized
IR XMP protocol handler initialized
pxp-v4l2 pxp_v4l2: initialized
imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
sdhci-esdhc-imx 2190000.usdhc: Got CD GPIO
mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
sdhci-esdhc-imx 2194000.usdhc: could not get ultra high speed state, work on normal mode
mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
NET: Registered protocol family 10
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
NET: Registered protocol family 17
Key type dns_resolver registered
cpu cpu0: Registered imx6q-cpufreq
mmc1: host does not support reading read-only switch, assuming write-enable
mmc1: new high speed SDHC card at address 0001
g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage
mmcblk1: mmc1:0001 SD8GB 7.24 GiB
Registering SWP/SWPB emulation handler
mmcblk1: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11
imx_thermal 2000000.aips-bus:tempmon: Industrial CPU temperature grade - max:105C critical:100C passive:95C
snvs_rtc 20cc000.snvs:snvs-rtc-lp: setting system clock to 1970-01-01 00:00:00 UTC (0)
clk: Not disabling unused clocks
VSD_3V3: disabling
can-3v3: disabling
gpio_dvfs: disabling
ALSA device list:
No soundcards found.
Freeing unused kernel memory: 1024K (80b00000 - 80c00000)
Mass Storage Function, version: 2009/09/11
LUN: removable file: (no medium)
MFG tool will use 1st udc:ci_hdrc.0
/linuxrc: line 37: echo: write error: Device or resource busy
Starting UTP
uuc 0.5 [built Sep 15 2017 15:12:19]
UTP: Waiting for device to appear
UTP: file/device node /dev/utp already exists
cpu_id is 0
UTP: received command '$ while [ ! -e /dev/mmcblk1 ]; do sleep 1; echo waiting...; done '
UTP: executing "while [ ! -e /dev/mmcblk1 ]; do sleep 1; echo waiting...; done "
UTP: sending Success to kernel for command $ while [ ! -e /dev/mmcblk1 ]; do sleep 1; echo waiting...; done .
utp_poll: pass returned.
UTP: received command 'send'
UTP: sending Success to kernel for command send.
UTP: received command '$ dd if=$FILE of=/dev/mmcblk1'
UTP: executing "dd if=$FILE of=/dev/mmcblk1"
67+0 records in
67+0 records out
34304 bytes (34 kB, 34 KiB) copied, 0.0424957 s, 807 kB/s
UTP: sending Success to kernel for command $ dd if=$FILE of=/dev/mmcblk1.
utp_poll: pass returned.
UTP: received command 'send'
UTP: sending Success to kernel for command send.
UTP: received command '$ cp $FILE /usr/sbin/gdisk'
UTP: executing "cp $FILE /usr/sbin/gdisk"
UTP: sending Success to kernel for command $ cp $FILE /usr/sbin/gdisk.
utp_poll: pass returned.
UTP: received command '$ hdparm -z /dev/mmcblk1'
UTP: executing "hdparm -z /dev/mmcblk1"

/dev/mmcblk1:
re-reading partition table
Alternate GPT is invalid, using primary GPT.
mmcblk1: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11
UTP: sending Success to kernel for command $ hdparm -z /dev/mmcblk1.
utp_poll: pass returned.
UTP: received command '$ gdisk -l /dev/mmcblk1 '
UTP: executing "gdisk -l /dev/mmcblk1 "
GPT fdisk (gdisk) version 1.0.1

Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.

Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
on the recovery & transformation menu to examine the two tables.

Warning! One or more CRCs don't match. You should repair the disk!

Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: damaged

****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************
Disk /dev/mmcblk1: 15187968 sectors, 7.2 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 041CEE67-6CD8-4F90-9058-69EF9090C921
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 14680030
Partitions will be aligned on 2048-sector boundaries
Total free space is 24509 sectors (12.0 MiB)

Number Start (sector) End (sector) Size Code Name
1 16384 81919 32.0 MiB FFFF boot
2 81920 147455 32.0 MiB 8300 recovery
3 147456 3293183 1.5 GiB FFFF system
4 3293184 4341759 512.0 MiB FFFF cache
5 4341760 4349951 4.0 MiB FFFF misc
6 4349952 4354047 2.0 MiB FFFF datafooter
7 4354048 4358143 2.0 MiB FFFF metadata
8 4358144 4360191 1024.0 KiB FFFF presistdata
9 4362240 4591615 112.0 MiB FFFF vendor
10 4591616 14671871 4.8 GiB FFFF userdata
11 14671872 14673919 1024.0 KiB 0700 fbmisc
UTP: sending Success to kernel for command $ gdisk -l /dev/mmcblk1 .
utp_poll: pass returned.
UTP: received command '$ echo -e 'r\ne\nY\nw\nY\nY' | gdisk /dev/mmcblk1'
UTP: executing "echo -e 'r\ne\nY\nw\nY\nY' | gdisk /dev/mmcblk1"
GPT fdisk (gdisk) version 1.0.1

Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.

Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
on the recovery & transformation menu to examine the two tables.

Warning! One or more CRCs don't match. You should repair the disk!

Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: damaged

****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************

Command (? for help):
Recovery/transformation command (? for help): Warning! This will probably do weird things if you've converted an MBR to
GPT form and haven't yet saved the GPT! Proceed? (Y/N):
Recovery/transformation command (? for help): Warning! Secondary header is placed too early on the disk! Do you want to
correct this problem? (Y/N): Have moved second header and partition table to correct location.

Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): OK; writing new GUID partition table (GPT) to /dev/mmcblk1.
mmcblk1: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11
The operation has completed successfully.
UTP: sending Success to kernel for command $ echo -e 'r\ne\nY\nw\nY\nY' | gdisk /dev/mmcblk1.
utp_poll: pass returned.
UTP: received command 'send'
UTP: sending Success to kernel for command send.
UTP: received command '$ echo `gdisk -l /dev/mmcblk1 | grep -w boot | awk '{print $1}'` > /tmp/partIdx'
UTP: executing "echo `gdisk -l /dev/mmcblk1 | grep -w boot | awk '{print $1}'` > /tmp/partIdx"
UTP: sending Success to kernel for command $ echo `gdisk -l /dev/mmcblk1 | grep -w boot | awk '{print $1}'` > /tmp/partIdx.
utp_poll: pass returned.
UTP: received command '$ dd if=$FILE of=/dev/mmcblk1p`cat /tmp/partIdx`'
UTP: executing "dd if=$FILE of=/dev/mmcblk1p`cat /tmp/partIdx`"
23524+0 records in
23524+0 records out
12044288 bytes (12 MB, 11 MiB) copied, 5.2667 s, 2.3 MB/s
UTP: sending Success to kernel for command $ dd if=$FILE of=/dev/mmcblk1p`cat /tmp/partIdx`.
utp_poll: pass returned.
UTP: received command '$ ls -l /dev/mmc* '
UTP: executing "ls -l /dev/mmc* "
brw------- 1 root root 179, 32 Jan 1 00:00 /dev/mmcblk1
brw------- 1 root root 179, 33 Jan 1 00:00 /dev/mmcblk1p1
brw------- 1 root root 179, 42 Jan 1 00:00 /dev/mmcblk1p10
brw------- 1 root root 179, 43 Jan 1 00:00 /dev/mmcblk1p11
brw------- 1 root root 179, 34 Jan 1 00:00 /dev/mmcblk1p2
brw------- 1 root root 179, 35 Jan 1 00:00 /dev/mmcblk1p3
brw------- 1 root root 179, 36 Jan 1 00:00 /dev/mmcblk1p4
brw------- 1 root root 179, 37 Jan 1 00:00 /dev/mmcblk1p5
brw------- 1 root root 179, 38 Jan 1 00:00 /dev/mmcblk1p6
brw------- 1 root root 179, 39 Jan 1 00:00 /dev/mmcblk1p7
brw------- 1 root root 179, 40 Jan 1 00:00 /dev/mmcblk1p8
brw------- 1 root root 179, 41 Jan 1 00:00 /dev/mmcblk1p9
UTP: sending Success to kernel for command $ ls -l /dev/mmc* .
utp_poll: pass returned.
UTP: received command '$ echo `gdisk -l /dev/mmcblk1 | grep -w cache | awk '{print $1}'` > /tmp/partIdx'
UTP: executing "echo `gdisk -l /dev/mmcblk1 | grep -w cache | awk '{print $1}'` > /tmp/partIdx"
UTP: sending Success to kernel for command $ echo `gdisk -l /dev/mmcblk1 | grep -w cache | awk '{print $1}'` > /tmp/partIdx.
utp_poll: pass returned.
UTP: received command '$ mkfs.ext4 -F -E nodiscard /dev/mmcblk1p`cat /tmp/partIdx`'
UTP: executing "mkfs.ext4 -F -E nodiscard /dev/mmcblk1p`cat /tmp/partIdx`"
mke2fs 1.43 (17-May-2016)
/dev/mmcblk1p4 contains a ext4 file system
created on Thu Jan 1 00:00:13 1970
Creating filesystem with 131072 4k blocks and 32768 inodes
Filesystem UUID: c1437c19-3b99-429e-85d6-66fcf788d3be
Superblock backups stored on blocks:
32768, 98304

Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

UTP: sending Success to kernel for command $ mkfs.ext4 -F -E nodiscard /dev/mmcblk1p`cat /tmp/partIdx`.
utp_poll: pass returned.
UTP: received command '$ echo `gdisk -l /dev/mmcblk1 | grep -w userdata | awk '{print $1}'` > /tmp/partIdx'
UTP: executing "echo `gdisk -l /dev/mmcblk1 | grep -w userdata | awk '{print $1}'` > /tmp/partIdx"
UTP: sending Success to kernel for command $ echo `gdisk -l /dev/mmcblk1 | grep -w userdata | awk '{print $1}'` > /tmp/partIdx.
utp_poll: pass returned.
UTP: received command '$ mkfs.ext4 -F -E nodiscard -b 4096 -m 0 -O ^flex_bg,^uninit_bg /dev/mmcblk1p`cat /tmp/partIdx`'
UTP: executing "mkfs.ext4 -F -E nodiscard -b 4096 -m 0 -O ^flex_bg,^uninit_bg /dev/mmcblk1p`cat /tmp/partIdx`"
mke2fs 1.43 (17-May-2016)
/dev/mmcblk1p10 contains a ext4 file system
created on Thu Jan 1 00:00:15 1970
Creating filesystem with 1260032 4k blocks and 315120 inodes
Filesystem UUID: 75f8ce24-f6e9-4b53-aed8-b3e8a125e2ab
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736

Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

UTP: sending Success to kernel for command $ mkfs.ext4 -F -E nodiscard -b 4096 -m 0 -O ^flex_bg,^uninit_bg /dev/mmcblk1p`cat /tmp/partIdx`.
utp_poll: pass returned.
UTP: received command '$ mount -o remount,size=1024M rootfs /'
UTP: executing "mount -o remount,size=1024M rootfs /"
UTP: sending Success to kernel for command $ mount -o remount,size=1024M rootfs /.
utp_poll: pass returned.
UTP: received command 'send'
UTP: sending Success to kernel for command send.
random: crng init done
uuc invoked oom-killer: gfp_mask=0x24200ca(GFP_HIGHUSER_MOVABLE), nodemask=0, order=0, oom_score_adj=0
CPU: 0 PID: 102 Comm: uuc Not tainted 4.9.11+ #1
Hardware name: Freescale i.MX6Q(Device Tree)
[<8010ed50>] (unwind_backtrace) from [<8010b274>] (show_stack+0x10/0x14)
[<8010b274>] (show_stack) from [<803aea6c>] (dump_stack+0x80/0x9c)
[<803aea6c>] (dump_stack) from [<801feb98>] (dump_header.constprop.4+0x64/0x1a0)
[<801feb98>] (dump_header.constprop.4) from [<801bf2cc>] (oom_kill_process+0x2d0/0x4b4)
[<801bf2cc>] (oom_kill_process) from [<801bf784>] (out_of_memory+0xd8/0x41c)
[<801bf784>] (out_of_memory) from [<801c3d4c>] (__alloc_pages_nodemask+0xb5c/0xbb8)
[<801c3d4c>] (__alloc_pages_nodemask) from [<801d251c>] (shmem_getpage_gfp.constprop.7+0x504/0xa00)
[<801d251c>] (shmem_getpage_gfp.constprop.7) from [<801bb354>] (generic_perform_write+0xb8/0x1a0)
[<801bb354>] (generic_perform_write) from [<801bcb18>] (__generic_file_write_iter+0x100/0x1f0)
[<801bcb18>] (__generic_file_write_iter) from [<801bccfc>] (generic_file_write_iter+0xf4/0x208)
[<801bccfc>] (generic_file_write_iter) from [<80201140>] (__vfs_write+0xbc/0x114)
[<80201140>] (__vfs_write) from [<80201e98>] (vfs_write+0xa0/0x168)
[<80201e98>] (vfs_write) from [<80202bec>] (SyS_write+0x3c/0x90)
[<80202bec>] (SyS_write) from [<801076c0>] (ret_fast_syscall+0x0/0x3c)
Mem-Info:
active_anon:2018 inactive_anon:114206 isolated_anon:0
active_file:0 inactive_file:0 isolated_file:0
unevictable:0 dirty:0 writeback:0 unstable:0
slab_reclaimable:471 slab_unreclaimable:987
mapped:559 shmem:116160 pagetables:12 bounce:0
free:408 free_pcp:40 free_cma:0
Node 0 active_anon:8072kB inactive_anon:456824kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:2236kB dirty:0kB writeback:0kB shmem:464640kB writeback_tmp:0kB unstable:0kB pages_scanned:0 all_unreclaimable? yes
Normal free:1632kB min:1652kB low:2064kB high:2476kB active_anon:8072kB inactive_anon:456824kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:524288kB managed:507900kB mlocked:0kB slab_reclaimable:1884kB slab_unreclaimable:3948kB kernel_stack:544kB pagetables:48kB bounce:0kB free_pcp:160kB local_pcp:160kB free_cma:0kB
lowmem_reserve[]: 0 0 0
Normal: 4*4kB (UE) 4*8kB (UM) 5*16kB (UM) 29*32kB (UM) 9*64kB (U) 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB 0*8192kB 0*16384kB 0*32768kB = 1632kB
116160 total pagecache pages
0 pages in swap cache
Swap cache stats: add 0, delete 0, find 0/0
Free swap = 0kB
Total swap = 0kB
131072 pages RAM
0 pages HighMem/MovableOnly
4097 pages reserved
81920 pages cma reserved
[ pid ] uid tgid total_vm rss nr_ptes nr_pmds swapents oom_score_adj name
[ 102] 0 102 467 316 6 0 0 0 uuc
Out of memory: Kill process 102 (uuc) score 2 or sacrifice child
Killed process 102 (uuc) total-vm:1868kB, anon-rss:132kB, file-rss:4kB, shmem-rss:1128kB
oom_reaper: reaped process 102 (uuc), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB
/linuxrc: line 44: 102 Killed uuc
file-storage invoked oom-killer: gfp_mask=0x24002c2(GFP_KERNEL|__GFP_HIGHMEM|__GFP_NOWARN), nodemask=0, order=0, oom_score_adj=0
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00008900

---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00008900

CPU: 0 PID: 82 Comm: file-storage Not tainted 4.9.11+ #1
Hardware name: Freescalei.MX6Q (Device Tree)
[<8010ed50>] (unwind_backtrace) from [<8010b274>] (show_stack+0x10/0x14)
[<8010b274>] (show_stack) from [<803aea6c>] (dump_stack+0x80/0x9c)
[<803aea6c>] (dump_stack) from [<801feb98>] (dump_header.constprop.4+0x64/0x1a0)
[<801feb98>] (dump_header.constprop.4) from [<801bfa3c>] (out_of_memory+0x390/0x41c)
[<801bfa3c>] (out_of_memory) from [<801c3d4c>] (__alloc_pages_nodemask+0xb5c/0xbb8)
[<801c3d4c>] (__alloc_pages_nodemask) from [<801ef38c>] (__vmalloc_node_range+0xec/0x20c)
[<801ef38c>] (__vmalloc_node_range) from [<801ef73c>] (__vmalloc_node.constprop.13+0x40/0x50)
[<801ef73c>] (__vmalloc_node.constprop.13) from [<801ef7d8>] (vmalloc+0x24/0x34)
[<801ef7d8>] (vmalloc) from [<8058eda4>] (utp_user_data_alloc+0x14/0x60)
[<8058eda4>] (utp_user_data_alloc) from [<80591410>] (fsg_main_thread+0x608/0x22f8)
[<80591410>] (fsg_main_thread) from [<8014a9b4>] (kthread+0xd0/0xf0)
[<8014a9b4>] (kthread) from [<80107778>] (ret_from_fork+0x14/0x3c)
Mem-Info:
active_anon:1948 inactive_anon:114211 isolated_anon:0
active_file:0 inactive_file:0 isolated_file:0
unevictable:0 dirty:0 writeback:0 unstable:0
slab_reclaimable:471 slab_unreclaimable:987
mapped:4 shmem:116160 pagetables:5 bounce:0
free:412 free_pcp:37 free_cma:0
Node 0 active_anon:7792kB inactive_anon:456844kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:16kB dirty:0kB writeback:0kB shmem:464640kB writeback_tmp:0kB unstable:0kB pages_scanned:0 all_unreclaimable? yes
Normal free:1648kB min:1652kB low:2064kB high:2476kB active_anon:7792kB inactive_anon:456844kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:524288kB managed:507900kB mlocked:0kB slab_reclaimable:1884kB slab_unreclaimable:3948kB kernel_stack:536kB pagetables:20kB bounce:0kB free_pcp:148kB local_pcp:148kB free_cma:0kB
lowmem_reserve[]: 0 0 0
Normal: 24*4kB (ME) 9*8kB (M) 3*16kB (M) 23*32kB (UM) 11*64kB (UM) 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB 0*8192kB 0*16384kB 0*32768kB = 1656kB
116160 total pagecache pages
0 pages in swap cache
Swap cache stats: add 0, delete 0, find 0/0
Free swap = 0kB
Total swap = 0kB
131072 pages RAM
0 pages HighMem/MovableOnly
4097 pages reserved
81920 pages cma reserved
[ pid ] uid tgid total_vm rss nr_ptes nr_pmds swapents oom_score_adj name
Kernel panic - not syncing: Out of memory and no killable processes...

---[ end Kernel panic - not syncing: Out of memory and no killable processes...

g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage
g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage
g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage

Thanks & regards,

Asma

Tags (1)
9 Replies

3,868 Views
igorpadykov
NXP Employee
NXP Employee

Hi Asma

usually kernel panic happens due to memory errors so one can run

ddr test https://community.nxp.com/docs/DOC-105652 

and update uboot with new ddr calibration seetings found from ddr test in

mx6q_4x_mt41j128.cfg\mx6sabresd\freescale\board - uboot-imx - i.MX U-Boot 


Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

3,868 Views
asmaa
Contributor V

Hi igorpadykov‌,

it is not the memory because I have ran non android kernel on it. After digging  a bit more, I got to know memory is getting exhausted/overcommitting the memory and it is giving uuc is invoking killer.

uuc invoked oom-killer: gfp_mask=0x24200ca(GFP_HIGHUSER_MOVABLE), nodemask=0, order=0, oom_score_adj=0
CPU: 0 PID: 102 Comm: uuc Not tainted 4.9.11+ #1
Hardware name: Freescale i.MX6Q(Device Tree) 

 what is uuc?

How can I allocate RAM memory to be optimzed, where do I can change this in source code?

0 Kudos

3,868 Views
igorpadykov
NXP Employee
NXP Employee

for uuc one can look on

GitHub - NXPmicro/imx-uuc: A Daemon wait for Freescale/NXP mfgtools host's command 

UUC source code and initramfs 

For allocation RAM memory recommended to look in software documentation which

is used for that case.

Best regards
igor

0 Kudos

3,868 Views
asmaa
Contributor V

Sorry I didnt get you. Which software documentation for iMX6Q (please specify name) and where can we change this in kernel source code?

0 Kudos

3,868 Views
igorpadykov
NXP Employee
NXP Employee

one can try to debug it using mfg tool sources, one can look on

GitHub - NXPmicro/mfgtools: Freescale/NXP I.MX Chip image deploy tools. 

0 Kudos

3,868 Views
asmaa
Contributor V

igorpadykov‌ I am asking about the document which tells about memory allocation for iMX6Q.

0 Kudos

3,868 Views
igorpadykov
NXP Employee
NXP Employee
0 Kudos

3,868 Views
asmaa
Contributor V

I am not asking anything about mfgtool. I am asking about memory allocation of RAM and different memories like L1/L2 instruction and data cache. where are they set in source code. Either uboot or kernel source code?

If you dont know, its ok. I will create another thread someone else might be able to help me.

3,427 Views
vinays
Contributor II

Hi asmaa,

I think so you have solved the issue , now myself met with the same issue can you please let me know why it is giving kernel panic and where to do changes.

Regards.

0 Kudos