Tool/software: Linux
Hi ,
We are using custum board based on AM335x. Sometime kernel booting from nand shows some kernel crash at start of the linux boot. But the device is able to boot completely. Can anyone help me to find out the issue. I'm using processor-sdk-04.01.00.06 version.
Booting from nand ...
NAND read: device 0 offset 0x1300000, size 0x80000
524288 bytes read: OK
NAND read: device 0 offset 0x300000, size 0x400000
4194304 bytes read: OK
## Flattened Device Tree blob at 85000000
Booting using the fdt blob at 0x85000000
Loading Device Tree to 9df1e000, end 9df2af19 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.28-geed43d1050 (embadmin@emb-ban-333) (gcc version 6.2.1 20161016 (Linaro GCC 6.2-2016.11) ) #47 PREEMPT Wed 7
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt:Machine model: SMFS TRANSICS
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 48 MiB at 0x9a800000
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES2.1 (sgx neon)
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 129920
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=12,2048 rootfstype=ubifs rootwait=1 earlyprintk=serial 1
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] BUG: Bad page state in process swapper pfn:946ac
[ 0.000000] page:dfe40030 count:0 mapcount:1 mapping:dfe40020 index:0x0
[ 0.000000] flags: 0xdfe40020(lru|swapbacked)
[ 0.000000] page dumped because: PAGE_FLAGS_CHECK_AT_FREE flag(s) set
[ 0.000000] bad because of flags: 0x20(lru)
[ 0.000000] Modules linked in:
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.9.28-geed43d1050 #47
[ 0.000000] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 0.000000] Backtrace:
[ 0.000000] [<c010b6c0>] (dump_backtrace) from [<c010b97c>] (show_stack+0x18/0x1c)
[ 0.000000] r7:c083ed88 r6:dfe40030 r5:c0a13bc0 r4:c0a6158c
[ 0.000000] [<c010b964>] (show_stack) from [<c03bd8f0>] (dump_stack+0x24/0x28)
[ 0.000000] [<c03bd8cc>] (dump_stack) from [<c01bb220>] (bad_page+0xfc/0x160)
[ 0.000000] [<c01bb124>] (bad_page) from [<c01bb300>] (free_pages_check_bad+0x7c/0x80)
[ 0.000000] r7:000006ac r6:00000800 r5:dfe40020 r4:00000000
[ 0.000000] [<c01bb284>] (free_pages_check_bad) from [<c01bc520>] (__free_pages_ok+0x25c/0x278)
[ 0.000000] r5:dfe40030 r4:00000001
[ 0.000000] [<c01bc2c4>] (__free_pages_ok) from [<c01bd328>] (__free_pages+0x40/0x4c)
[ 0.000000] r10:c0a6445c r9:c0a054c0 r8:c0a01ec4 r7:c0a01ec0 r6:00000000 r5:00000310
[ 0.000000] r4:00000000
[ 0.000000] [<c01bd2e8>] (__free_pages) from [<c09126d8>] (__free_pages_bootmem+0xb4/0xb8)
[ 0.000000] r5:00000310 r4:00000001
[ 0.000000] [<c0912624>] (__free_pages_bootmem) from [<c09147a0>] (free_all_bootmem+0x178/0x1ec)
[ 0.000000] r7:c0a01ec0 r6:00080a7a r5:0009a800 r4:00094800
[ 0.000000] [<c0914628>] (free_all_bootmem) from [<c0904688>] (mem_init+0x120/0x46c)
[ 0.000000] r10:00000fff r9:c0a054c0 r8:fffff800 r7:c0a6445c r6:c0a16338 r5:fffff000
[ 0.000000] r4:c0a64ae4
[ 0.000000] [<c0904568>] (mem_init) from [<c0900b80>] (start_kernel+0x1e4/0x33c)
[ 0.000000] r10:dffff540 r9:c09328c4 r8:c0a38340 r7:c0a02840 r6:ffffffff r5:c0a38340
[ 0.000000] r4:00000000
[ 0.000000] [<c090099c>] (start_kernel) from [<80008078>] (0x80008078)
[ 0.000000] r10:00000000 r9:413fc082 r8:80004059 r7:c0a06abc r6:c09328c0 r5:c0a0285c
[ 0.000000] r4:c0a38514
[ 0.000000] Disabling lock debugging due to kernel taint
[ 0.000000] Memory: 451892K/524288K available (6144K kernel code, 224K rwdata, 1844K rodata, 1024K init, 260K bss, 15052K reserved, 49152K )
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xff800000 ( 496 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0700000 (7136 kB)
[ 0.000000] .init : 0xc0900000 - 0xc0a00000 (1024 kB)
[ 0.000000] .data : 0xc0a00000 - 0xc0a38310 ( 225 kB)
[ 0.000000] .bss : 0xc0a38310 - 0xc0a795b4 ( 261 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] OMAP clockevent source: timer2 at 26000000 Hz
[ 0.000018] sched_clock: 32 bits at 26MHz, resolution 38ns, wraps every 82595524588ns
[ 0.000041] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 73510017198 ns
[ 0.000051] OMAP clocksource: timer1 at 26000000 Hz
[ 0.000253] clocksource_probe: no matching clocksources found
[ 0.000456] Console: colour dummy device 80x30
[ 0.000487] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[ 0.000494] This ensures that you still see kernel messages. Please
[ 0.000500] update your kernel commandline.
[ 0.000528] Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216)
[ 0.089045] pid_max: default: 32768 minimum: 301
[ 0.089194] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.089208] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.090125] CPU: Testing write buffer coherency: ok
[ 0.090572] Setting up static identity map for 0x80100000 - 0x80100060
[ 0.091522] EFI services will not be available.
[ 0.092982] devtmpfs: initialized
[ 0.106571] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.106948] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.106980] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.111498] pinctrl core: initialized pinctrl subsystem
[ 0.112954] NET: Registered protocol family 16
[ 0.115117] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.130906] omap_hwmod: debugss: _wait_target_disable failed
[ 0.209043] cpuidle: using governor ladder
[ 0.239027] cpuidle: using governor menu
[ 0.245662] OMAP GPIO hardware version 0.1