New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 866176 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Last visit > 30 days ago
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

clang: Upstream kernel for kevin doesn't boot

Project Member Reported by mka@chromium.org, Jul 20

Issue description

To test the fix for 824548 I tried to run an upstream kernel for kevin. I could build the kernel after disabling CONFIG_ARM64_LSE_ATOMICS, however the kernel does not boot. There are no messages on the console and console-ramoops only has messages from a v4.4 kernel.

A 4.18-rc2 kernel built with gcc boots on kevin, but not when built with clang, so I tried to go back to a known baseline. I almost certainly tested v4.14 on kevin before posting https://lkml.org/lkml/2017/11/22/943 . The corresponding tree can be checked out with: git fetch cros refs/sandbox/mka/llvm/20171129/v4.14 && git checkout FETCH_HEAD. As v4.18-rc2  it works with gcc, but not with clang.

In case a change in kernel config triggered a problem with clang I rolled back the kernel config options in third_party/chromiumos-overlay/eclass/cros-kernel to commit b019d971e33a (roughly the time of the above post to LKML), it didn't help though.

I experimented with older clang versions, but that didn't yield positive results eithers (SDK versions I tried 2018.02.19.155117, 2017.11.30.224315, 2017.11.11.111647. Can be found at gs://chromiumos-sdk/${YYYY}/${MM}/aarch64-cros-linux-gnu-${VERSION}.tar.xz)

On the positive side it's not a general problem with arm64 and newer upstream kernels, I recently booted a v4.14 kernel built with clang on cheza.

For now I'm running out of ideas on what else to try short of using JTAG or similar, so it seems reasonable to at least document the findings so far.

For Chrome OS itself it's not a super-high priority to run clang built kernels on kevin, however for working on clang support in the upstream kernel a working arm64 platform is needed.
 
Description: Show this description
Description: Show this description

Sign in to add a comment