Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

kernel v4.2 for firefly-rk3288

175

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
175

kernel v4.2 for firefly-rk3288

Posted at 11/5/2015 13:14:55      View:7769 | Replies:6        Print      Only Author   [Copy Link] 1#
Hi,guys.Here is the kernel v4.2 source for firefly-rk3288
https://github.com/pangqingyuan1991/linux-rockchip.git
Download the code: git clone https://github.com/pangqingyuan1991/linux-rockchip.git -b pqy-mali

Compile:
export ARCH=arm
export CROSS_COMPILE=[Your compile prefix]
make rk3288_veyron_defconfig
make -j8 zImage rk3288-firefly.dtb
cat arch/arm/boot/zImage arch/arm/boot/dts/rk3288-firefly.dtb > zImage-dtb
mkkrnlimg zImage-dtb kernel.img

You must flash Firefly-RK3288_MainlineKernel-Ubuntu14.04_201503191033.img (or use my custom one which is only 20M http://pan.baidu.com/s/16xr9G )first.
then use RkFlashKit to flash kernel.img




I have tried to add the ap6335 driver to work,but failed.
Reply

Use props Report

175

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
175
Posted at 11/5/2015 13:58:40        Only Author  2#
username:root
password: (none)
Reply

Use props Report

844

Credits

42

Prestige

48

Contribution

advanced

Rank: 4

Credits
844
Posted at 11/7/2015 16:33:08        Only Author  3#
great work, pqy! will check later.

can you confirm that xf86-video-armsoc works:
https://github.com/mmind/xf86-video-armsoc
giving us decent EGL/GLES support for X11?

would be great, and then next step could be to get decent native VPU support (using v4l2 for instance).
Reply

Use props Report

175

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
175
Posted at 11/18/2015 19:18:48        Only Author  4#
Reply

Use props Report

175

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
175
Posted at 11/18/2015 19:21:06        Only Author  5#
mac_l1 Posted at 11/7/2015 16:33
great work, pqy! will check later.

can you confirm that xf86-video-armsoc works:

Is it possible without mali driver?
Reply

Use props Report

844

Credits

42

Prestige

48

Contribution

advanced

Rank: 4

Credits
844
Posted at 11/19/2015 03:56:50        Only Author  6#
Mali driver is needed for sure. Some more stuff too.
To give you a complete picture to get hardware accelerated X11 running for RK3288 devices like firefly, following is needed:

MALI DRIVERS (based on reusing a chromeos/rk3288 mali driver)
Kernel should be compiled with rockchip mali driver. This kernel mali driver is included in mmind github kernel for rockchip. This should give some mali.so file.
Besides that you need a matching user space mali driver that supports X11 and that is not (yet) provided by ARM for firefly - and it will probably never come. However mmind states that for debian/ubuntu you can use one from ChromeOS that is used in another ChromeOS/RK3288 device - veyron. See https://community.arm.com/message/26755#26755 He has provided code at github to get this veyron mali driver that should work in newer linux kernels like 4.2 (firefly's 3.10 is too old). See https://github.com/mmind/mali-driver. This will give a libmali.so file with egl/glesv2 ABI.
Note that kernel and user-space mali drivers must have matching versions (seems r5p0 in latest veyron's user space driver).

X11 DRIVERS
For X11 support you also need to build rockchip drm kernel driver that is provided in mminds github: https://github.com/mmind/linux-r ... vel/somewhat-stable. This gives some drm.ko file that offers a generic GPU rendering interface needed by X.
You also need a X11 user-space display driver specific for that GPU, and this is provided in mminds github: https://github.com/mmind/xf86-vi ... ts/packaging/debian. X11 server will load this driver to do the accelerated display stuff.

Besides these 4 drivers, maybe some generic X11 components need to be rebuild.
Basically, that's all ;-)

Actually I was hoping this was already included in your release...  Now hope that someone has a bit of skills and spare time to get this working... He or she would be a hero!

Next step would be to get decent VPU support using v4l2, also doable with similar steps.
Reply

Use props Report

175

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
175
Posted at 11/20/2015 09:39:04        Only Author  7#
mac_l1 Posted at 11/19/2015 03:56
Mali driver is needed for sure. Some more stuff too.
To give you a complete picture to get hardware ...

I just want the wireless card to work now,and the gpu is not yet been payed attention.
Branch rk3288-ap6335 is for this,but still have some problems.  
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list