Firefly Open Source Community

Title: 3.14 Kernel [Print This Page]

Author: jas-rk    Time: 12/31/2014 23:33
Title: 3.14 Kernel
Having spent many days figuring out (or banging my head) how to get a working kernel built from sources (non Android). I finally managed to get a kernel to boot .  It's no way complete but hey it's a start, for those interested dmesg output is here.  You will see references to chromium OS because it based on that source tree but don't expect chromium OS to appear soon. My test rootfs was the tizen supplied image in post in another thread.
Author: zeno    Time: 1/1/2015 05:55
Hi,I am still waiting for the Firefly guys to finally arrange the shipment of my board but in the meantime i am reading a lot around, so your 3ad is really interesting for me But, maybe because I am on mobile, but I can't see your dmesg... can you please share eventually a pastebin link?Thanks! !
Author: jas-rk    Time: 1/1/2015 06:16
Updated original post with pastebin link and its?here.?
Author: jas-rk    Time: 1/11/2015 02:39
Some progress to report ...   screen output to hdmi via the drm driver. Screen shot here. It's still early days but this is progress in the right direction.
Author: busybee    Time: 1/12/2015 16:55
Congratulations for this geat work ~
Author: jas-rk    Time: 1/13/2015 03:16
Any chance the firefly team can request the MALI r5p0 userspace binaries from Rockchip (or whatever they can provide) ? I could then starting looking at GPU support.
Author: jas-rk    Time: 1/20/2015 03:49
A bit more progress .. ethernet working, cpu frequency scaling, serial console login and booting Ubuntu 14.04 (see output) . Next challenge is to see if we can get anywhere with gpu/vpu.  
Author: naobsd    Time: 1/20/2015 17:39

you're using kernel for chromium os, right? then I think you can try mali blobs for chromium os




https://chromium.googlesource.com/chrom ... rivers-bin




Author: jas-rk    Time: 1/24/2015 01:02
Title: Re: 3.14 Kernel
Some progress with GPU see here . However lots of things are broken which partly might explain why the performance is low.
Author: jas-rk    Time: 1/26/2015 02:48
Title: Re: 3.14 Kernel
Want to see some GPU acceleration? Look ... here
Author: dewet    Time: 1/30/2015 10:05
Title: Re: 3.14 Kernel

If I want to build my own 3.14 kernel for Firefly/RK3288 devices what do I have to change in the Chromium kernel source to make it bootable?

What is the correct kernel source to use.

Also for Mali GPU GLES acceleration, what files do I need to add/change in the Firefly Ubuntu RFS?

Anyone tried to compile ARM Linux Kodi with OpenGL GLES acceleration for improved video playback?

Are most things working, what isn't working?

Any help would be appreciated.


Author: jas-rk    Time: 1/30/2015 17:05
Title: Re: 3.14 Kernel

I would suggest you don't attempt unless your are experienced at kernel development because:


1. There are differences between the Firefly hardware and the Rockchip Chrome OS devices. Therefore you need to understand these differences and debug the kernel when there are problems.

2. The kernel is not complete there are a number of patches which are still in review.

3. The Mali drivers lacks performance because the binaries is old.

4. The state of the VPU support in kernel is unknown and isn't documented.

5. There's no/little documentation for the kernel drivers so you will have dig into the driver code to work out what is going on. You can spend days/weeks on this.

6. You also need to invest some (or considerable) time to understand the Chromium source tree to under what  patches are pulled in to build the Chromium rootfs for RK3288 which in it's itself can be time consuming.


Author: boredland    Time: 1/30/2015 18:24
Title: Hi there, is there a chance to get this working for the regular linaro branc...

Hi there,


is there a chance to get this working for the regular linaro branch (does sound complicated since i dont understand the chromium-sources..).


Yours,

Jonas


Author: jas-rk    Time: 1/31/2015 19:15
Title: Re: 3.14 Kernel

"is there a chance to get this working for the regular linaro branch (does sound complicated since i dont understand the chromium-sources..)."


Little chance of that of happening without porting all the patches across. 'linux-rockchip' mainline should hopefully be adding hdmi/vga support so this may help.


I think its going take 1-2 months before you see working Mali drivers for fb/X11 furthermore given these will be the first release of the binaries there may be issues. Its also important to point out that the X11 drivers only accelerate egl/gles content (bettered suited to a full screen application) therefore don't expect a fully accelerated X11 desktop in the near future. This can have a detrimental impact for example running HTML5 code in a browser may still be software rendered which can hinder your applications performance.


Author: naobsd    Time: 2/1/2015 18:05
Title: Re: 3.14 Kernel

jas-rk,


you may know, Rockchip and Chromium OS project does something for VPU too

https://chromium.googlesource.com/chrom ... 4lplugins/


Author: boredland    Time: 2/3/2015 06:56
Title: Re: 3.14 Kernel

Hi Jas,


Since I'm not that much interested in desktop applications this wouldn't be to hard for me. But since this claims to be a development-board, working drivers should at least be nothing one has to search for...


Yours

Jonas


Author: jas-rk    Time: 2/3/2015 16:42
Title: Re: 3.14 Kernel

Hi Jonas,

Unfortunately as of today in my opinion Firefly is a 'Android' development board. Like most of the ARM boards Linux software support intends to rely on a community effort which in turn relies on good co-operation from the SOC vendor (especially for CPU/VPU support). Historically the Chinese SOC vendors (AllWinner/Rockchip) haven't been willing to work closely with the community which has meant that most boards die a slow death.


We should see fb drivers released by ARM by the end of this week (fingers crossed) which should give us some GPU support unfortunately I had to raise the issue with ARM because Rockchip were unwilling to supply them (which isn't a good sign). From what I understand Rockchip should be releasing there own drivers in the forth coming months but will target the 'TopMetal' platform which must be a different h/w design from the current reference designs.


Again, in my opinion the challenges facing the Firefly are:


1. Application developers want an 'out of box' experience and not having to endure the arduous task of building kernels, working out how to get GPU/VPU support etc ...

2. The market is saturated with ARM boards and the lower end $35 boards have bigger community support plus closer co-operation with the SOC vendor.

3. The development community aren't willing to embrace the newer generation of boards because of the potential lack of co-operation from the SOC vendor based on historical experience.

4. The board is expensive (including taxes + shipping) and I would argue competes in the x86 space where Linux support is far superior.


Author: boredland    Time: 2/5/2015 17:29
Title: Re: 3.14 Kernel

Hi Jas,

I think you're right. Since other promising boards have gone the same way (f.e. the radxa rock). I think this is sad, since the arm-based platforms have, in my eyes, a big potential even for big power-sucking applications. In regard of their low tdp, seemingly good graphics-chips and solid processors. Even though the Firefly is quite expensive: if it works it has a gpu with opencl-support, a noticable amount of memory and four fast-ticking cores of processing power on one 5V2A-powered board. Specifically the last thing is hard to achieve on the available x86 dev. boards.

Yours

Jonas


Author: cappybob    Time: 2/7/2015 11:05
Title: Re: 3.14 Kernel

Author: dewet    Time: 2/7/2015 11:32
Title: Re: 3.14 Kernel

But the mali.so compiled userspace drivers, where to put them /system/lib?

Do they auto load or need to change something if a new kernel is used.


Do the framebuffer drivers provide any benefit or improvement since they have no X11 support yet.


Author: cappybob    Time: 2/7/2015 12:53
Title: Re: 3.14 Kernel
@dewet

You ask many questions my friend, which I have no knowledge.  NOT, because I do not understand you, but because your questions are above my knowledge level.  These files were released today as part of the RockChip statement of releases before  Chinese New Year (Year of the Sheep).  There will be patches and other releases again next week and soon the RockChip SDK for android 5.0.2-Lollipop, also before Chinese New Year.  I am surprised, Maybe there is a change of attitude now due to Microsoft and Intel starting to support ARM.

----cappybob
Author: jas-rk    Time: 2/7/2015 15:36
Title: Re: 3.14 Kernel

But the mali.so compiled userspace drivers, where to put them /system/lib?

Before that the kernel needs be patched with the r5p0-06rel0 kernel drivers.


Do they auto load or need to change something if a new kernel is used.

The kernel driver should be built into the kernel.


Do the framebuffer drivers provide any benefit or improvement since they have no X11 support yet.

No benefit for X11 support. Its useful for anyone that wants to be build/use an application with EGL/GLES or OpenCL again a framebuffer which is theory should be faster than X11 (although some of the previous mali drivers haven't always demonstrated that) .


Author: dewet    Time: 2/7/2015 16:12
Title: Re: 3.14 Kernel
Do the framebuffer drivers provide any benefit or improvement since they have no X11 support yet.

No benefit for X11 support. Its useful for anyone that wants to be build/use an application with EGL/GLES or OpenCL again a framebuffer which is theory should be faster than X11 (although some of the previous mali drivers haven't always demonstrated that) .


So if ARM Linux XBMC is build with EG/GLES support, it would be able to run and maybe play 720p videos?

What about video players like MPlayer, VCL that has settings for OpenGL/GLES, X11, will they run better if GLES is selected?

Also Chrome Browser, will anything render more smoothly, HTML 5 videos on Youtube any difference?

I know VPU drivers is needed for video playback but even RK3188 devices can play 480/720p videos in software on Picuntu, RK3288 is a lot more powerful so 720 and even 1080p might be possible? 4K won't play as that will definitely require VPU drivers.

Will just have to wait for X11 drivers to get released in the following weeks.


Author: jas-rk    Time: 2/8/2015 03:08
Title: Re: 3.14 Kernel
Just got those Mali fb drivers to work .. short video of GLES 3.0 demo.
Author: naobsd    Time: 2/8/2015 06:03
Title: Re: 3.14 Kernel

hi jas-rk,


mali libs for X11 in chromiumos repo is updated to r5.

(it seems chromiumos ver. doesn't support OpenCL. I hope OpenCL supported one is released by ARM in future...)


if you still have performance(FPS) issue you mentioned before, you should check configuration related to VSYNC.


Author: dewet    Time: 2/8/2015 11:45
Title: Re: 3.14 Kernel

Just got those Mali fb drivers to work .. short video of GLES 3.0 demo.


Hi


Can you please tell me how you integrated the Mali kernel drivers?

I get compile errors related to GPU when I compile firefly kernel.

If you can maybe upload your kernel/drivers/gpu folder and any other changes you made to compile successfully, I would appreciate it very much.


Author: jas-rk    Time: 2/8/2015 20:02
Title: Re: 3.14 Kernel

@naobsd thanks for the update, I'll given them a try. Not convinced about the VSYNC because the hdmi driver is similar to the i.mx6 driver and there's no VSYNC signal from hdmi. This is evident by some tearing when dragging windows.


@dewet your expectations are pretty high and mostly likely beyond what's possible for now (or in the next months ??) . I assume Firefly team will create a kernel/image with fbdev support based on 3.10 kernel. I have a patched up 3.14 kernel with limited features (mmc, ethernet, hdmi) that I'm experimenting with and I will try to post some instructions or images when I get some free time.


Author: cappybob    Time: 2/9/2015 03:07
Title: Re: 3.14 Kernel

jas-rk


While doing some research for the new Android Lollipop I read that after the initial release of the SDK for Lollipop from RockChip, that there will be a migration to the 3.14 Kernel as the next development in the scheme of things.  By the way, do you know anything about "TopMetal" there was a mention of them in my research, but I seem not to be able to find any development from them in the mini pc platform.


---cappybob



Author: tedd77    Time: 1/21/2016 02:18
jas-rk Posted at 1/26/2015 02:48
Want to see some GPU acceleration? Look ... here

Hello,

Could you please update is your new build (non android) with kernel 3.14 ready ?
I would appreciate if you can share the image




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1