Author Topic: Using mainline Linux source  (Read 3984 times)

Offline Bluey The Dog

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Using mainline Linux source
« on: June 07, 2015, 09:56:00 am »
Hi all,
    I've got a Cubie 1 running as a downloader. Initially I set it up to run Gentoo and did the Gentoo thing of using source to build "this & that", including the kernel. This was in 2013 so you can imagine how that went. Thanks to Patwood and this forum, I downloaded an image, installed it and then used "the Gentoo way" to do the rest.

    I've just decided to update the little beast and been doing a bit of reading. I still can't work out if enough stuff has been pushed into mainline Linux that I can build from source, ie just maintain the machine as I do the several other machines kicking around the house fully using Gentoo, or should I still be just grabbing images. The machine is headless and runs a minimal of stuff, although I want it running nfs, which the kernel needs to support. The time taken to compile also isn't a concern.

    Any thoughts are greatly appreciated,
                    Andrew

Offline auxr00t

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Using mainline Linux source
« Reply #1 on: June 14, 2015, 08:21:46 am »
Hey,

I'm not an expert but I refer to these 2 pages of the sunxi wiki to get an idea of kernel support:

http://linux-sunxi.org/Mainline_Kernel_Howto
http://linux-sunxi.org/Linux_mainlining_effort

Offline Sergey Kostyuk

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Using mainline Linux source
« Reply #2 on: June 22, 2015, 11:17:48 am »
I have some experience about the mainline kernel (4.0.5) on ArchLinux, Cubieboard A10. This information is quite similar to information from the links above, but still can be helpful.

So, here it is:
  • there is a new mainline U-Boot needed for the new kernels (2015.01+)
  • updated pathes of leds (I mean "files" in /sys/class/leds/ folder)
  • sunxi_ir kernel module changed it's name to sunxi_cir
  • audio isn't working (lacks of kernel module)
  • lacks of the NAND support in both U-Boot and new kernel
  • video is untested
  • everything else in unchanged (comparing to sunxi 3.4.104 kernel)

As a conclusion, cubie can work good in headless mode but doesn't fits as media (or at least audio) player with the mainline 4.0.5 kernel
« Last Edit: June 22, 2015, 11:21:09 am by Sergey Kostyuk »

Offline vinifr

  • Newbie
  • *
  • Posts: 32
  • Karma: +2/-0
    • View Profile
Re: Using mainline Linux source
« Reply #3 on: January 09, 2016, 08:05:26 am »
Hi guys,

i'm trying to boot mainline sunxi-next taken from https://github.com/linux-sunxi/linux-sunxi/tree/sunxi-next, but hangs here:
Starting kernel ...

Offline Sergey Kostyuk

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Using mainline Linux source
« Reply #4 on: July 10, 2016, 07:23:13 am »
Updated: sound is working now with mainline kernel:
- Cubieboard A10
- Linux alarm 4.6.3-1-ARCH #1 SMP Sat Jul 2 21:22:12 MDT 2016 armv7l GNU/Linux
- Alsamixer settings: http://i.imgur.com/uvCCNkB.png
- active modules: http://pastebin.com/wwwTsSjp