Author Topic: Cubietruck Plus: Compile mainline kernel  (Read 1689 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: 195
  • 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: 195
  • 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: 510
  • 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

Offline sarmuveera

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Cubietruck Plus: Compile mainline kernel
« Reply #4 on: December 14, 2018, 02:34:34 am »
I have noticed that the board does not boot if I put an empty micro SD in. It also does not boot when I connect the SATA hard drive. I would have been happy if it booted just fine with an empty drive plugged in. I could mount it and store all my data or move my home directory there. But it is just not booting.
brochure maker

Offline rgmhtt

  • Full Member
  • ***
  • Posts: 195
  • Karma: +4/-1
    • View Profile
Re: Cubietruck Plus: Compile mainline kernel
« Reply #5 on: December 14, 2018, 08:19:16 am »
Does it boot with NO drives attached?

Not that this is a good thing, but I can see it with the uSD.  I would think it would boot with no uSD, but with sata.

It all depends on the bootloader and uboot on the NAND.

Again, I don't own one of these, so only talking based on my Cubietruck experience.

In fact, I have begun experimenting with the Odroid HC1.  Now if Cubietech had come out with something so well designed for a server platform...