<div dir="ltr">
<pre style="white-space:pre-wrap;color:rgb(0,0,0);text-decoration-style:initial;text-decoration-color:initial"><div>Hi,</div><div><br></div><div>We too are experiencing this crash when attempting to upgrade from Pyro to Rocko.</div><div><br></div><div>Has anyone been able to work out the cause, or can someone look into it? I can supply any debug information needed (just let me know).</div><div><br></div><div>Regards,</div><div>Mathew</div><div>Â </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>I am experiencing a Kernel crash when moving my system from Yocto 2.3 (Pyro) to Rocko or Master.<br>Target system is an ARMv7 (NXP Layerscape LS1021a, built on Cortex-A7).<br>This is what I did:<br>1) switched poky version<br>2) re-built same image in a new, blank directory
Results:<br>Root-FS works fine, the kernel crashes with an undefined instruction oops.<br>Just exchanging the kernel zImage with the one compiled with Pyro (same recipe), my system works fine again.
What I tried so far:<br>1) checked and compared the kernel configs generated: 100% identical<br>2) switched gcc back to the version used in Pyro (6.3) instead of 7.2: kernel still crashes, same oops, no changes. So it's not related to GCC 7.2<br>3) checked on different boards: same issue for the same board type, but the switch to rocko worked fine for a system based on Cortex-A9.
I am using separate tmp directories and am not sharing sstate. I always started builds in blank build directories.<br>The error is reproducible (100%)<br>It was also present with all of the various snapshots of the master branch I tried
What I suspect: there are some changes in the ways that gcc is called from pyro to rocko. Maybe one of the switches, or features, etc<br>Before deep-diving into the trial and error phase of reproducing the CFLAGS, etc:<br>Is anyone experiencing the same issues?<br>* What exactly has changed in the way the kernel build is called (methods, compile/link flags, etc) between pyro and rocko? *<br>* Is there a way to (easily) disable some of the features to test which one causes the issue? *<br>* Any suspicions about what could cause this? *
Pls. find a log of the crash below, and an excerpt of my kernel recipe and machine configuration.
Thanks in advance for your help,<br>Best regards,<br>Michael
-------------<br>VFS: Mounted root (ext4 filesystem) on device 179:1.<br>devtmpfs: mounted<br>Freeing unused kernel memory: 2048K<br>Internal error: Oops - undefined instruction: 0 [#1] SMP THUMB2<br>Modules linked in:<br>CPU: 1 PID: 1 Comm: init Not tainted 4.14.2-avnet-nxp #2<br>Hardware name: Freescale LS1021A<br>task: bf0a0000 task.stack: bf09a000<br>PC is at ret_fast_syscall+0x2/0x52<br>LR is at SyS_brk+0x109/0x128<br>pc : [<80205fc2>] lr : [<802c513d>] psr: 60000013<br>sp : bf09bfa8 ip : 70c5387d fp : 00001000<br>r10: 00000000 r9 : bf09a000 r8 : 802061a4<br>r7 : 0000002d r6 : 76f71bac r5 : 00010034 r4 : 00000009<br>r3 : 000273c8 r2 : ffff0001 r1 : 00000000 r0 : 00028000<br>Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none<br>Control: 70c5387d Table: be7d1000 DAC: fffbfff3<br>Process init (pid: 1, stack limit = 0xbf09a210)<br>Stack: (0xbf09bfa8 to 0xbf09c000)<br>bfa0: 00000009 00010034 00000000 7ee86fea 00000000 00000001<br>bfc0: 00000009 00010034 76f71bac 0000002d 00000000 00000001 00000001 00001000<br>bfe0: 7ee86f14 7ee86e4c 76f87a58 76f88e88 60000010 00000000 00000000 00000000<br>Code: 20012000 0000bd08 00000000 b6720000 (2008f8d9)<br>---[ end trace 7bab6dceda641aab ]---<br>Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
CPU0: stopping<br>CPU: 0 PID: 0 Comm: swapper/0 Tainted: G D 4.14.2-avnet-nxp #2<br>Hardware name: Freescale LS1021A<br>[<8020bbe9>] (unwind_backtrace) from [<80208e77>] (show_stack+0xb/0xc)<br>[<80208e77>] (show_stack) from [<8066af19>] (dump_stack+0x69/0x78)<br>[<8066af19>] (dump_stack) from [<8020b1d5>] (handle_IPI+0x261/0x274)<br>[<8020b1d5>] (handle_IPI) from [<802012b1>] (gic_handle_irq+0x61/0x64)<br>[<802012b1>] (gic_handle_irq) from [<8067d953>] (__irq_svc+0x53/0x7c)<br>Exception stack(0x80e01f38 to 0x80e01f80)<br>1f20: 00000000 000027d0<br>1f40: 3eb79000 80212641 ffffe000 80e03cd0 80e03c74 80e7f3ab 8096e480 80e03c40<br>1f60: 80e8ce00 80c42a30 01400000 80e01f88 80206a3d 80206a3e 40000033 ffffffff<br>[<8067d953>] (__irq_svc) from [<80206a3e>] (arch_cpu_idle+0x22/0x24)<br>[<80206a3e>] (arch_cpu_idle) from [<802405bf>] (do_idle+0x9f/0xe4)<br>[<802405bf>] (do_idle) from [<802407bb>] (cpu_startup_entry+0x13/0x14)<br>[<802407bb>] (cpu_startup_entry) from [<80c00a05>] (start_kernel+0x305/0x310)<br>---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b<br>-----------------------
Excerpt from <a href="http://linux_xxx.bb">linux_xxx.bb</a>:<br>----<br>DEPENDS_kernel-base += "kernel-devicetree"
LINUX_VERSION = "4.14-stable"<br>S = "${WORKDIR}/git"<br>PR = "r1"<br>SRCREV = "8292fd8d726105abc01dae26d0a2cddcf53d4e0f"<br>PV = "4.14.2"<br>SRC_URI = " \<br> <a>git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git;branch=master;protocol=git;nobranch=1</a> \<br>"<br>SRC_URI_append_ls1021a = " <a>file://defconfig</a> "<br>SRC_URI_append_ls1021a = " <a>file://pcie.cfg</a> <a>file://caam.cfg</a> <a>file://usb.cfg</a> <a>file://bt.cfg</a> "<br>----
Excerpt from machine.conf<br>---<br>SOC_FAMILY = "ls1021a"<br>TARGET_ARCH = "arm"<br>DEFAULTTUNE = "cortexa7hf-neon-vfpv4"<br>IMAGE_INSTALL_append = " kernel-modules kernel-devicetree kernel-image"<br>KERNEL_IMAGETYPE = "zImage"
KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"<br>EXTRA_IMAGEDEPENDS += "virtual/bootloader"<br>----<br class="gmail-Apple-interchange-newline"></blockquote></pre>
<br></div>