Author Topic: Cubietruck Plus: Compile mainline kernel  (Read 1327 times)

Offline DocBoolean

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Cubietruck Plus: Compile mainline kernel
« on: June 30, 2018, 10:46:03 am »
Hi,

I'm running the linaro server image on Cubietruck Plus, but I can't get docker running, because the kernel (3.4) is too old.
Has anybody managed to (cross)compile the mainline kernel for this device ?
(see http://linux-sunxi.org/Cubietech_Cubietruck_Plus)

When I try to run dockerd, I get

Code: [Select]
FATAL[2018-06-30T16:38:18.973277773+02:00] Your Linux kernel version 3.4.39 is not supported for running docker. Please upgrade your kernel to 3.10.0 or newer.
I'd LOVE to get a current kernel running on this device! :)

Maybe we can figure something out together.

I tried to compile kernel 4.17.2 according to the original Cubietruck Plus config file, but the gcc version is too old and I can't get a more recent one:
Code: [Select]
make -j 4 uImage
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     scripts/mod/devicetable-offsets.h
  CHK     include/generated/bounds.h
  CHK     include/generated/timeconst.h
  CC      arch/arm/kernel/asm-offsets.s
arch/arm/kernel/asm-offsets.c:56:2: error: #error Your compiler is too buggy; it is known to miscompile kernels
 #error Your compiler is too buggy; it is known to miscompile kernels

Any help is highly appreciated :)

P.S.:
Code: [Select]
gcc --version
gcc (Ubuntu/Linaro 4.8.2-19ubuntu1) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
« Last Edit: June 30, 2018, 10:48:14 am by DocBoolean »

Offline rgmhtt

  • Full Member
  • ***
  • Posts: 194
  • Karma: +4/-1
    • View Profile
Re: Cubietruck Plus: Compile mainline kernel
« Reply #1 on: August 23, 2018, 11:10:08 pm »
There has been a thread on this over at the Centos7-arm SIG.

Go to: https://lists.centos.org/pipermail/arm-dev/2018-August/thread.html

And look at the "Cubieboard5 performance" thread I started.

I don't own a Cb5, but was looking into one.  Decided no due to that sata is via internal usb, but it started an effort to finally get the right uboot and kernel in place.

You may be able to use this kernel work for linaro.  Or switch to Centos7...

Offline rgmhtt

  • Full Member
  • ***
  • Posts: 194
  • Karma: +4/-1
    • View Profile
Re: Cubietruck Plus: Compile mainline kernel
« Reply #2 on: August 23, 2018, 11:16:09 pm »
I suspect Fedora works well with the latest kernel.

Fedora 28 (probably still 4.17.n) can be gotten from the production page:

https://arm.fedoraproject.org/

You can get Fedora 29 or Fedora Rawhide (30) which already has 4.18 from:

https://koji.fedoraproject.org/koji/tasks?state=all&view=tree&method=appliance&order=-id

I am currently testing F29-Xfce and minimal on Cubie2 as it has openSSL 1.1.1 beta.


Offline slovenia

  • Hero Member
  • *****
  • Posts: 509
  • Karma: +47/-0
    • View Profile
Re: Cubietruck Plus: Compile mainline kernel
« Reply #3 on: September 19, 2018, 02:37:34 pm »
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com