Odroid C2 mainline kernel support

Moderators: mdrjr, odroid

Re: Odroid C2 mainline kernel support

Unread postby daggs » Sun Aug 13, 2017 4:14 am

daggs wrote:
daggs wrote:
brad wrote:
daggs wrote:any ideas?


The hk uboot wont load mainline kernel via an Image format you need to use a uImage format so it can load from the correct entry point by using the mkimage command.
Code: Select all
mkimage -A arm64 -O linux -T kernel -C none -a 0x1080000 -e 0x1080000 -n linux -d arch/arm64/boot/Image uImage

ok, one question, whats the diff between uImage and Image?

found the diff, ignore.
will try your suggestion, thanks.

kudos! it works :) thanks.
daggs
 
Posts: 189
Joined: Tue Mar 22, 2016 6:34 pm
languages_spoken: english, spanish
ODROIDs: odroid c2

Re: Odroid C2 mainline kernel support

Unread postby daggs » Sun Aug 13, 2017 4:43 am

a question, any idea why fdt addr ${dtb_loadaddr} doesn't work in kernel 4.12.5 based kernel?
also has anyone been able to boot latest kernel with hdmi output?
daggs
 
Posts: 189
Joined: Tue Mar 22, 2016 6:34 pm
languages_spoken: english, spanish
ODROIDs: odroid c2

Re: Odroid C2 mainline kernel support

Unread postby brad » Sun Aug 13, 2017 7:08 am

daggs wrote:a question, any idea why fdt addr ${dtb_loadaddr} doesn't work in kernel 4.12.5 based kernel?
also has anyone been able to boot latest kernel with hdmi output?


It should work fine, that command sets the location of the fdt that is already loaded into memory (You must load it first)

For example consider the following boot.ini section...
Code: Select all
# Command to load the uImage into memory
setenv kernel  "fatload mmc 0:1 0x1080000 uImage"
# Command to load the devicetree into memory
setenv dtb     "fatload mmc 0:1 0x1000000 meson-gxbb-odroidc2.dtb"
# Command to boot into the new kernel once everything is loaded
setenv bootseq "bootm 0x1080000 - 0x1000000"
# Command to modify a devicetree loaded into ram (Firstly sets the location in ram where we have loaded the devicetree and then modifies the device tree to enable cpufreq)
setenv dtbmods "fdt addr 0x1000000; fdt set /scpi/clocks status okay;"
# This is the action command where everything actually happens and we actually run the commands defined above.
# ${kernel} - This runs the command to load the kernel image into ram
# ${dtb} - This runs the command to load the devicetree into ram
# ${dtbmods} - This command modifies the devicetree we just loaded into ram
# ${bootseq} - This command boots the kernel using the kernel and devicetree which are currently in ram
setenv bootcmd "${kernel}; ${dtb}; ${dtbmods}; ${bootseq}"
brad
 
Posts: 552
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby daggs » Sun Aug 13, 2017 5:16 pm

ok so something I'm doing wrong:
Code: Select all
cfgload: setenv dtb_loadaddr "0x1000000"
cfgload: setenv kernel  "fatload mmc 0:1 ${loadaddr} uImage"
cfgload: setenv dtb     "fatload mmc 0:1 ${dtb_loadaddr} meson-gxbb-odroidc2.dtb"
cfgload: setenv bootseq "bootm 0x1080000 - 0x1000000"
cfgload: setenv bootcmd "${kernel}; ${dtb}; ${bootseq}"
cfgload: fdt addr ${dtb_loadaddr}
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
daggs
 
Posts: 189
Joined: Tue Mar 22, 2016 6:34 pm
languages_spoken: english, spanish
ODROIDs: odroid c2

Re: Odroid C2 mainline kernel support

Unread postby daggs » Sun Aug 13, 2017 5:29 pm

daggs wrote:ok so something I'm doing wrong:
Code: Select all
cfgload: setenv dtb_loadaddr "0x1000000"
cfgload: setenv kernel  "fatload mmc 0:1 ${loadaddr} uImage"
cfgload: setenv dtb     "fatload mmc 0:1 ${dtb_loadaddr} meson-gxbb-odroidc2.dtb"
cfgload: setenv bootseq "bootm 0x1080000 - 0x1000000"
cfgload: setenv bootcmd "${kernel}; ${dtb}; ${bootseq}"
cfgload: fdt addr ${dtb_loadaddr}
libfdt fdt_check_header(): FDT_ERR_BADMAGIC

ignore yet again, found the issue.
daggs
 
Posts: 189
Joined: Tue Mar 22, 2016 6:34 pm
languages_spoken: english, spanish
ODROIDs: odroid c2

Re: Odroid C2 mainline kernel support

Unread postby daggs » Sun Aug 13, 2017 10:14 pm

I wonder, what is the level of hdmi support in 4.12.x following the kernel patches?
I do see both
Code: Select all
CONFIG_DRM_MESON=y
CONFIG_DRM_MESON_DW_HDMI=y

in the provided config but somehow I think the support is minimal at best.
also, there is no mali reference, it needs mali out of tree support, am I correct?
daggs
 
Posts: 189
Joined: Tue Mar 22, 2016 6:34 pm
languages_spoken: english, spanish
ODROIDs: odroid c2

Re: Odroid C2 mainline kernel support

Unread postby best_odroidfreak » Sun Aug 13, 2017 10:31 pm

What is needed for Odroid C2 audio is a general purpose I2S driver which can have its parameters set by editing a text file. We would need to be able to choose master/slave and I2S, left-justified or right-justified output format. Can any body modify this driver?
best_odroidfreak
 
Posts: 349
Joined: Wed May 04, 2016 1:07 am
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby mad_ady » Sun Aug 13, 2017 11:14 pm

@best_odroidfreak: I've seen you ask this question again and again. I'm guessing the answer is no - unless you plan on writing it yourself... Just asking it on the forum won't make it magically appear
User avatar
mad_ady
 
Posts: 2194
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2

Re: Odroid C2 mainline kernel support

Unread postby brad » Mon Aug 14, 2017 11:10 pm

A number of new I/O schedulers options have been introduced into 4.12 kernel including Budget Fair Queuing (BFQ) which is of particular interest (for me) for a Desktop based machine accessing disk over emmc or sd. I haven't been successful in using this IO scheduler on the c2 as yet due to to some crashes and core dumps when emmc initialises but this is testing with an early version of 4.12. I feel it wont be too far away.

I have also been attempting to test the I2S sound but my setup is too complex for the moment (I can communicate via i2c to control a uda1380 but I need to work out an ALSA machine driver for the board to link the i2S).

I don't have HDMI working on any standard release and haven't played with mali any more but I do have HDMI working with Neil Armstrong's patches on a 4.12.3 stable (https://github.com/superna9999/meta-mes ... son64-4.12). Audio via HDMI I could not make work via Ubuntu but I had no problems at all adding usb sound support in kernel config and using the hardkernel usb sound card with no pops or crackles. I was watching random youtube music video's for approx 2 hours and never came across a pop or click in audio (using alsa only no pulseaudio) and only the occasional really noticeable tear in video in Chromium. (and that was while compiling a kernel with 2 threads (ie make -j2)). IO performance (using standard CFQ scheduler) using Neil's patches and 4.12 was also quiet reasonable and consistent. I haven't done any NFS testing or stressing the network but it streamed YouTube video OK Ive done no IO throughput testing with disk; as yet.

Ive found it to be the most responsive kernel ever to date for web browsing using hardkernel Ubuntu, X11 and multi-tabbed Chromium (or Fiirefox) . The downfalls are I dont have HDMI audio and I have a very thin purple line down the very left side of my screen.
brad
 
Posts: 552
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby Flole » Mon Aug 14, 2017 11:27 pm

Hi brad,

does the kernel you're talking about has NFS Root FS Support and DHCP Support compiled in and does USB work? If yes could you share that one with me? I am using the c2 as a server so HDMI and Audio stuff doesn't bother me, just the not working USB is causing problems as I need to connect a USB RS485 Interface now.

Greets

Flole
Flole
 
Posts: 11
Joined: Thu Apr 13, 2017 10:14 pm
languages_spoken: english, german
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby campbell » Tue Aug 15, 2017 4:34 am

In general it would be informative to know who in this thread is contributing to what upstream efforts, i.e. when Brad says he has something working, what repos does that effect, does linux-meson.org reflect it, is it in the upstream linux-next &c.
campbell
 
Posts: 165
Joined: Thu Sep 03, 2015 1:13 pm
languages_spoken: english
ODROIDs: XU3, XU4, C2, C1+, Cloudshell, Smart Power

Re: Odroid C2 mainline kernel support

Unread postby brad » Tue Aug 15, 2017 5:02 pm

Flole wrote:Hi brad,

does the kernel you're talking about has NFS Root FS Support and DHCP Support compiled in and does USB work? If yes could you share that one with me? I am using the c2 as a server so HDMI and Audio stuff doesn't bother me, just the not working USB is causing problems as I need to connect a USB RS485 Interface now.

Greets

Flole


This is the standard 4.13.0-rc4 prebuilt with some additional drivers enabled including NFS, dhcp, GPIO sysfs export, usb audio & usb serial. hdmi is not working in this version for me.
http://repo.builtonline.net/testing/custom/4.13.0-rc4/

The instructions here should work viewtopic.php?f=135&t=22717&start=250#p188335

Replace the file names with these for 4.12.0-rc4

Modules - http://repo.builtonline.net/testing/cus ... les.tar.gz
uImage - http://repo.builtonline.net/testing/cus ... rc4/uImage
devicetree - http://repo.builtonline.net/testing/cus ... roidc2.dtb

You can use the same boot.ini as previous http://repo.builtonline.net/testing/cus ... g/boot.ini


I will upload a version of 4.12 stable with Neil's in development patches for HDMI as soon as I can on my slow net connection.
brad
 
Posts: 552
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby brad » Tue Aug 15, 2017 6:24 pm

campbell wrote:In general it would be informative to know who in this thread is contributing to what upstream efforts, i.e. when Brad says he has something working, what repos does that effect, does linux-meson.org reflect it, is it in the upstream linux-next &c.


The only contribution I have really been making is testing and attempting to provide information in these threads of my experiences. When I look back the first standard kernel I got to boot was 4.6 with NFS boot and very minimal support which was over 12 months ago now. Since that time many developers (much work done and maintained by Baylibre) contributed to many aspects of where it is now with the work done across various repositories. I normally try to explain which repo's I am using and what patches are applied. I tend not to use next versions too much at the moment I have been testing with stable 4.12.3 patched for what I need.

I have been mostly testing and playing with audio (usb and attempting I2S) when I have the time, using alsa and the jack sound server. The part I dont have working the way I want is an ALSA platform driver for the I2S interface connected to a uda1380 board via i2c control. Its consumed quiet a bit of my time lately.

best_odroidfreak wrote:What is needed for Odroid C2 audio is a general purpose I2S driver which can have its parameters set by editing a text file. We would need to be able to choose master/slave and I2S, left-justified or right-justified output format. Can any body modify this driver?


I would love to have a driver like this also (especially for testing) but I think any config will have to go into the device tree rather than a plain text file although you could probably add it easily to the dtb in uboot via boot.ini commands. I dont have an oscilloscope to check any pins at the moment (and my hdmi audio is not working for whatever reason) but hdmi audio generates i2s output at the same time so once hdmi is implemented into the kernel fully we should have I2S on the pins also. When this happens it should give a basis for a driver to achieve what you are looking for easily.
brad
 
Posts: 552
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby best_odroidfreak » Wed Aug 16, 2017 5:33 am

brad wrote:
campbell wrote:In general it would be informative to know who in this thread is contributing to what upstream efforts, i.e. when Brad says he has something working, what repos does that effect, does linux-meson.org reflect it, is it in the upstream linux-next &c.


best_odroidfreak wrote:What is needed for Odroid C2 audio is a general purpose I2S driver which can have its parameters set by editing a text file. We would need to be able to choose master/slave and I2S, left-justified or right-justified output format. Can any body modify this driver?


I would love to have a driver like this also (especially for testing) but I think any config will have to go into the device tree rather than a plain text file although you could probably add it easily to the dtb in uboot via boot.ini commands. I dont have an oscilloscope to check any pins at the moment (and my hdmi audio is not working for whatever reason) but hdmi audio generates i2s output at the same time so once hdmi is implemented into the kernel fully we should have I2S on the pins also. When this happens it should give a basis for a driver to achieve what you are looking for easily.

Maybe Botic Linux driver for BeagleBone Black (32-bit Micro Computer) can be modified for Odroid C2 needs? See that links:
http://www.diyaudio.com/forums/twisted- ... river.html
http://bbb.ieero.com/
http://www.diyaudio.com/forums/twisted- ... black.html
Botic repository http://repo.ieero.com/botic/pool/main/l/linux-upstream/
Latest Botic driver sources https://github.com/miero/linux-dev
Latest Botic driver sources https://github.com/miero/botic-dev
best_odroidfreak
 
Posts: 349
Joined: Wed May 04, 2016 1:07 am
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby daggs » Thu Aug 17, 2017 12:14 am

brad wrote:I don't have HDMI working on any standard release and haven't played with mali any more but I do have HDMI working with Neil Armstrong's patches on a 4.12.3 stable (https://github.com/superna9999/meta-mes ... son64-4.12).

tried it, the image doesn't boot even.
serial reports this:
Code: Select all
GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:800;NAND:81;SD:0;READ:0;CHK:F3;USB:8;LOOP:1;EMMC:800;NAND:81;SD:0;READ:0;CHK:F3;USB:;

my version works but for some reason, I think the probe part doesn't works, for example the mali module is loaded but I don't see any detection result.
another example is a usb dongle that gets detected if it is plugged at boot but it doesn't gets detected if I plug it while the system is running.
even if I load all the required modules, it still stays undetected.
the system is sysvinit + eudev based.
daggs
 
Posts: 189
Joined: Tue Mar 22, 2016 6:34 pm
languages_spoken: english, spanish
ODROIDs: odroid c2

Re: Odroid C2 mainline kernel support

Unread postby Flole » Thu Aug 17, 2017 6:55 am

For me the image works perfectly, everything I need is working without any issues. My USB Serial converter gets recognized and I can boot from NFS with DHCP. Thanks brad for the awesome work!
Flole
 
Posts: 11
Joined: Thu Apr 13, 2017 10:14 pm
languages_spoken: english, german
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby brad » Thu Aug 17, 2017 4:27 pm

daggs wrote:serial reports this:
Code: Select all
GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:800;NAND:81;SD:0;READ:0;CHK:F3;USB:8;LOOP:1;EMMC:800;NAND:81;SD:0;READ:0;CHK:F3;USB:;



This appears to be a problem with your uboot / bootloader rather than the kernel, Its not loading into uboot.
daggs wrote:my version works but for some reason, I think the probe part doesn't works, for example the mali module is loaded but I don't see any detection result.
another example is a usb dongle that gets detected if it is plugged at boot but it doesn't gets detected if I plug it while the system is running.
even if I load all the required modules, it still stays undetected.
the system is sysvinit + eudev based.


There was a bug in some versions where if only 1 usb device is plugged in then it does not get detected. Would be interested to know if plugging in another device (anything just so 2 devices are connected) makes your dongle work?
brad
 
Posts: 552
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby Flole » Thu Aug 17, 2017 8:59 pm

I think I had that USB Device Issue aswell. My USB RS485 Converter does not have any LEDs on it, so when it didn't work I used a different Device that has LEDs on another port to see if the device was getting power. The device did not light up but when I switched ports they both started magicallly working.
Flole
 
Posts: 11
Joined: Thu Apr 13, 2017 10:14 pm
languages_spoken: english, german
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby daggs » Fri Aug 18, 2017 2:11 am

Flole wrote:For me the image works perfectly, everything I need is working without any issues. My USB Serial converter gets recognized and I can boot from NFS with DHCP. Thanks brad for the awesome work!

I did what the how to said.
used debian 8.9, the only issue I had is sanity check on the kernel failed so I had to match the version of kernel to the one on the scripts
daggs
 
Posts: 189
Joined: Tue Mar 22, 2016 6:34 pm
languages_spoken: english, spanish
ODROIDs: odroid c2

Re: Odroid C2 mainline kernel support

Unread postby daggs » Fri Aug 18, 2017 2:13 am

brad wrote:
daggs wrote:serial reports this:
Code: Select all
GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:800;NAND:81;SD:0;READ:0;CHK:F3;USB:8;LOOP:1;EMMC:800;NAND:81;SD:0;READ:0;CHK:F3;USB:;


I know, that is what I find weird.

brad wrote:This appears to be a problem with your uboot / bootloader rather than the kernel, Its not loading into uboot.
daggs wrote:my version works but for some reason, I think the probe part doesn't works, for example the mali module is loaded but I don't see any detection result.
another example is a usb dongle that gets detected if it is plugged at boot but it doesn't gets detected if I plug it while the system is running.
even if I load all the required modules, it still stays undetected.
the system is sysvinit + eudev based.


There was a bug in some versions where if only 1 usb device is plugged in then it does not get detected. Would be interested to know if plugging in another device (anything just so 2 devices are connected) makes your dongle work?

but the device does work when I make sure it is connected before boot.
also, as said, there is no mali specific print about the gpu version, only that the module is loaded.
daggs
 
Posts: 189
Joined: Tue Mar 22, 2016 6:34 pm
languages_spoken: english, spanish
ODROIDs: odroid c2

Re: Odroid C2 mainline kernel support

Unread postby brad » Fri Aug 18, 2017 4:49 pm

daggs wrote:but the device does work when I make sure it is connected before boot.
also, as said, there is no mali specific print about the gpu version, only that the module is loaded.


For the USB I think yes you a right there is a bug.

In regards to Mali I dont think their are any drivers which will work (user-space is missing), I only had HDMI working with DRM, no mali
brad
 
Posts: 552
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby daggs » Fri Aug 18, 2017 10:28 pm

brad wrote:
daggs wrote:but the device does work when I make sure it is connected before boot.
also, as said, there is no mali specific print about the gpu version, only that the module is loaded.


For the USB I think yes you a right there is a bug.

:-/ hope it will be fixed soon

brad wrote:In regards to Mali I dont think their are any drivers which will work (user-space is missing), I only had HDMI working with DRM, no mali

I don't need more, I just need the ability to run kodi with hw decoding support.
daggs
 
Posts: 189
Joined: Tue Mar 22, 2016 6:34 pm
languages_spoken: english, spanish
ODROIDs: odroid c2

Re: Odroid C2 mainline kernel support

Unread postby Holzhaus » Sat Aug 19, 2017 4:48 am

Mali is the GPU driver and handles 3D acceleration, video decoding is handled by the VPU.
Holzhaus
 
Posts: 157
Joined: Sat Jan 31, 2015 3:12 am
languages_spoken: english, german
ODROIDs: C1 (running ArchLinux ARM)

Re: Odroid C2 mainline kernel support

Unread postby daggs » Sat Aug 19, 2017 6:01 am

Holzhaus wrote:Mali is the GPU driver and handles 3D acceleration, video decoding is handled by the VPU.

ok, so how do I know the vpu is working? I see no hint that is working,
daggs
 
Posts: 189
Joined: Tue Mar 22, 2016 6:34 pm
languages_spoken: english, spanish
ODROIDs: odroid c2

Re: Odroid C2 mainline kernel support

Unread postby rpcameron » Sat Aug 19, 2017 7:08 am

daggs wrote:
Holzhaus wrote:Mali is the GPU driver and handles 3D acceleration, video decoding is handled by the VPU.

ok, so how do I know the vpu is working? I see no hint that is working,

Kodi must be built with amcodec support. To check if it is working while playing a video, bring up the codec screen ('o' on the keyboard by default). It will show you the details of the stream it is playing, including the decoder. Look for something similar to 'hw amcodec' or similar. You'll usually also be able to tell because of the screen going black and taking a bit to return to the Kodi UI as it resets the hardware framebuffer. Remember though, the Linux support for amcodec isn't quite on par with omx, vaapi or other hw accelerated methods, at least in my experience.
rpcameron
 
Posts: 234
Joined: Sat Apr 30, 2016 7:24 am
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby daggs » Sat Aug 19, 2017 2:48 pm

imho the issue is as follows.
every kernel driver provides a probe func which is called to detect the device.
the prints I've seen above come from the init of the module, digging into the code shows that there are unconditional prints in the probe function.
they as MIA in dmesg => probe isn't called.
there won't be any support until there will be prints from the probe func.
daggs
 
Posts: 189
Joined: Tue Mar 22, 2016 6:34 pm
languages_spoken: english, spanish
ODROIDs: odroid c2

Re: Odroid C2 mainline kernel support

Unread postby daggs » Sat Aug 19, 2017 10:08 pm

I've decided to look into the yocto generated images (even if they don't boot), there is no such file in there.
so this yocto image generator doesn't include mali.
daggs
 
Posts: 189
Joined: Tue Mar 22, 2016 6:34 pm
languages_spoken: english, spanish
ODROIDs: odroid c2

Re: Odroid C2 mainline kernel support

Unread postby brad » Sun Aug 20, 2017 7:57 am

daggs wrote:I've decided to look into the yocto generated images (even if they don't boot), there is no such file in there.
so this yocto image generator doesn't include mali.


For the yocto full image (kernel, uboot and Openembeded rootfs) to work I had to assemble the bootloader together manually for the odroid c2. This was with the Korgoth version of yocto image and it worked fine with HDMI output.

The yocto builf also includes a recipe to download build and install the mali driver for kernel side - https://github.com/superna9999/meta-mes ... el-modules

Mali must also have userspace libraries compatible with the kernel side driver above, these effectively do not exist for the odroid C2 so Mali is incomplete and will not work. (see this thread viewtopic.php?f=135&t=26969)

Neil has a experimental version of Mali userspace drivers but I could not get them working effectively. https://github.com/superna9999/meson_gx_mali_450

These produce userpace libraries (nothing to do with the kernel) and must be incorporated into the libraries on your root filesystem. This is the libMali.so shared library.

I was hoping hardkernel would assist to produce some userspace drivers for testing at least for Mali but there is no new news as far as im aware from hardkernel on this front.
brad
 
Posts: 552
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby crashoverride » Sun Aug 20, 2017 8:18 am

brad wrote:I was hoping hardkernel would assist to produce some userspace drivers for testing at least for Mali but there is no new news as far as im aware from hardkernel on this front.

It may be worthwhile to test this:
https://github.com/rockchip-linux/libmali/tree/rockchip/lib/aarch64-linux-gnu

The "libmali-utgard-2th-r7p0-gbm.so" should be for Mali-450 with DRM/GBM platform integration. The device tree should hopefully abstract the important differences (MP2 vs MP3, etc). Despite the long file name, it is "libmali.so" and should be symlinked as such (libEGL.so, libGLES*, etc).

[edit]
For Mali-450, I think the kernel driver needs to match the user space driver. The kernel driver can be found here:
https://github.com/rockchip-linux/kernel/tree/release-4.4/drivers/gpu/arm
crashoverride
 
Posts: 3034
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: Odroid C2 mainline kernel support

Unread postby daggs » Mon Aug 21, 2017 2:55 am

what I need is the ability to run kodi + hw decoding. I don't need nothing else.
I want to do it on latest kernel so I can benefit my dtb-t dongle and the better nfsv4 support.
for that I need the kernel driver and the egl libs which already exists.
daggs
 
Posts: 189
Joined: Tue Mar 22, 2016 6:34 pm
languages_spoken: english, spanish
ODROIDs: odroid c2

Re: Odroid C2 mainline kernel support

Unread postby crashoverride » Mon Aug 21, 2017 3:17 am

daggs wrote:what I need is the ability to run kodi + hw decoding. I don't need nothing else.

to run kodi+hw decoding, you need everything! Kodi has many dependencies: GPU and VPU among them.
crashoverride
 
Posts: 3034
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: Odroid C2 mainline kernel support

Unread postby daggs » Mon Aug 21, 2017 4:08 am

well, I'm using buildroot, kodi is there, the egl libs are too, kernel 4.12.x boots, whats missing is the gpu driver.
from what I understood from Neil, the driver in his yocto branch should provide that.
daggs
 
Posts: 189
Joined: Tue Mar 22, 2016 6:34 pm
languages_spoken: english, spanish
ODROIDs: odroid c2

Re: Odroid C2 mainline kernel support

Unread postby asavah » Wed Aug 23, 2017 8:17 am

daggs wrote:well, I'm using buildroot, kodi is there, the egl libs are too, kernel 4.12.x boots, whats missing is the gpu driver.
from what I understood from Neil, the driver in his yocto branch should provide that.


It's not a single driver you need, in arm world you need to a whole bunch of them, for full support it would be drm (kernel) + mali (kernel) + mali (userspace)
It's very well explained here http://forum.khadas.com/t/state-of-linu ... -s905x/497 (see posts by narmstrong)

Currently we do not have working mali for odroid-c2 on 4.12+

Because viewtopic.php?p=192622#p192622
odroid wrote:We've looked into the meson-DRM driver in C2 Kernel 4.12 to activate the Mali GPU on X11/Linux.
But the DRM driver has many missing functions and we can't port our Mali driver.
We can try the FBDEV version only at this moment. But it was already available in BayLibre's Quake 3 Arena demo.
Unfortunately, we have no skill to implement the DRM driver. So we have to wait until someone implements the fully working DRM driver.


For Kodi hw video decoding we would also need the kernel part of vpu driver, which is absolutely missing.

Currently 4.12 and higher kernel's with needed patches make it good for headless use, but in it's current state forget about desktop or Kodi.

[rant]
I don't get why hardkernel even are selling odroid-c2 board if they "have no skill" to support it.
Current hardkernel's 3.14 kernel is an outdated, buggy, vulnerable (unpatched CVEs) piece of something.
While the board is actually very nice poor software support and absolute lack of skill of harkernel's staff is killing it.
[/rant]
asavah
 
Posts: 7
Joined: Sat Jul 16, 2016 7:00 am
languages_spoken: english
ODROIDs: c2

Re: Odroid C2 mainline kernel support

Unread postby crashoverride » Wed Aug 23, 2017 2:44 pm

asavah wrote:I don't get why hardkernel even are selling odroid-c2 board if they "have no skill" to support it.

The statement was "to implement the DRM driver". I don't know of any SBC vendor that has implemented a DRM driver. That is a job done by the SoC vendor (Amlogic in this case).

asavah wrote:Current hardkernel's 3.14 kernel is an outdated, buggy, vulnerable (unpatched CVEs) piece of something.

Red Hat Linux seems to manage a multi-million dollar industry based on an even older 3.10 kernel that they will continue to use for several more years. If running 4.x is of vital importance, the C2 offers that capability today in a VM just like massive datacenters running RH Enterprise Linux do.

asavah wrote:While the board is actually very nice poor software support and absolute lack of skill of harkernel's staff is killing it.

I have yet to see a vendor offering an open hardware board that provides anywhere close to the level of support that HardKernel does. There are a ton of Android S9xx boxes and even other S905 board vendors. What level of support for 4.x are they providing?

TL;DR = There is no 4.x kernel released yet. Its premature to complain about "lack of support" for something that does not exist.

The opinions expressed are my own. I do not work for or have any relation to HardKernel, Amlogic or any other S9xx vendor.
crashoverride
 
Posts: 3034
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Previous

Return to General Chat

Who is online

Users browsing this forum: No registered users and 6 guests