Odroid C2 mainline kernel support

Moderators: odroid, mdrjr

Re: Odroid C2 mainline kernel support

Unread postby moon.linux » Fri Feb 03, 2017 11:36 pm

patches have already being submitted and accepted into 4.10.x kernel.
moon.linux
 
Posts: 710
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby rooted » Sat Feb 04, 2017 4:40 am

umiddelb wrote:@KARL32,

honestly I have no idea. I would buy an eMMC module. It is supposed to be more reliable than a µSD card.

I don't know of anyone who has had an eMMC fail, I have abused one of my 32 GB for a couple of years doing a ton of compilation and such and it still works great.
User avatar
rooted
 
Posts: 3292
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1
C1+
C2
XU3 Lite
XU4
VU7+
HiFi Shield 2
Smart Power (original)

Re: Odroid C2 mainline kernel support

Unread postby crashoverride » Sat Feb 04, 2017 6:30 pm

FYI
http://www.cnx-software.com/2017/02/04/embedded-linux-conference-openiot-summit-2017-schedule/
Thursday, February 23

12:10 – 13:00 – Mainline Linux on AmLogic SoCs, by Neil Armstrong, BayLibre

Inexpensive set-top boxes are everywhere and many of them are powered by AmLogic SoCs. These chips provide 4K H.265/VP9 video decoding and have fully open source Linux kernel and U-boot releases. Unfortunately most of the products based on these devices are running an ancient 3.10 Android kernel. Thankfully AmLogic has put a priority on supporting their chips in the mainline Linux kernel.

Neil will present the challenges and benefits to pushing support for these SoCs upstream, as well as the overall hardware architecture in order to understand the Linux upstreaming decisions and constraints. He will also detail the future development plans aiming to offer a complete experience running an Upstream Linux kernel.
crashoverride
 
Posts: 2462
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: Odroid C2 mainline kernel support

Unread postby mscdex » Sat Feb 04, 2017 7:03 pm

crashoverride wrote:FYI
http://www.cnx-software.com/2017/02/04/embedded-linux-conference-openiot-summit-2017-schedule/
Thursday, February 23

12:10 – 13:00 – Mainline Linux on AmLogic SoCs, by Neil Armstrong, BayLibre

Inexpensive set-top boxes are everywhere and many of them are powered by AmLogic SoCs. These chips provide 4K H.265/VP9 video decoding and have fully open source Linux kernel and U-boot releases. Unfortunately most of the products based on these devices are running an ancient 3.10 Android kernel. Thankfully AmLogic has put a priority on supporting their chips in the mainline Linux kernel.

Neil will present the challenges and benefits to pushing support for these SoCs upstream, as well as the overall hardware architecture in order to understand the Linux upstreaming decisions and constraints. He will also detail the future development plans aiming to offer a complete experience running an Upstream Linux kernel.


Linkified: http://www.cnx-software.com/2017/02/04/embedded-linux-conference-openiot-summit-2017-schedule/

Here's to hoping the Linux Foundation posts a video of at least this talk somewhere...
mscdex
 
Posts: 58
Joined: Sun Jan 04, 2015 11:09 am
languages_spoken: english
ODROIDs: ODROID C1

Re: Odroid C2 mainline kernel support

Unread postby brad » Sat Feb 04, 2017 7:11 pm

mscdex wrote:Here's to hoping the Linux Foundation posts a video of at least this talk somewhere...


Keep an eye on their youtube channel following the event...

https://www.youtube.com/channel/UCthvmT ... 93LIJNe-2w
brad
 
Posts: 371
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 Feb 10, 2017 11:54 pm

moon.linux wrote:patches have already being submitted and accepted into 4.10.x kernel.

I read the patch abit, did I understood right that it is a drm module which offers the same as the fb driver including 4k hw decryption?
e.g. as in the official hk buildroot on needs the kernel module and the external amlogic module while in 4.10.x all it needs is the drm module?
also, maybe I've missed it but does it support hdmi sound?
daggs
 
Posts: 147
Joined: Tue Mar 22, 2016 6:34 pm
languages_spoken: english, spanish
ODROIDs: odroid c2

Re: Odroid C2 mainline kernel support

Unread postby LiquidAcid » Sat Feb 11, 2017 5:26 am

The code that went into 4.10.y supports neither HDMI nor does it provide any sort of HW acceleration for video playback. It's just a driver for the display engine, and currently limited to CVBS support.
LiquidAcid
 
Posts: 1053
Joined: Fri Oct 11, 2013 11:07 pm
languages_spoken: english
ODROIDs: X2

Re: Odroid C2 mainline kernel support

Unread postby daggs » Sat Feb 11, 2017 4:58 pm

LiquidAcid wrote:The code that went into 4.10.y supports neither HDMI nor does it provide any sort of HW acceleration for video playback. It's just a driver for the display engine, and currently limited to CVBS support.

I understood wrong, so in an essence it is either that drm driver or the fb driver that exists in the c2 kernel repo.
thanks for the explanation.
daggs
 
Posts: 147
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 » Sat Feb 11, 2017 10:21 pm

moon.linux wrote:patches have already being submitted and accepted into 4.10.x kernel.


Please explain which from new RT kernels https://www.kernel.org/pub/linux/kernel/projects/rt/ is stable for Debian Jessie arm64?
best_odroidfreak
 
Posts: 208
Joined: Wed May 04, 2016 1:07 am
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby meveric » Sat Feb 11, 2017 11:19 pm

Kernel is independent from the OS, main line kernel has nothing to do with RT project, main line kernel has nothing to do with Debian as a OS. Please don't ask random question in unrelated forums!
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 6608
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: ODROID-X2,ODROID-U2,ODROID-U3,ODROID-XU-Lite, ODROID-XU3, ODROID-XU3-Lite, ODROID-C1, ODROID-XU4, ODROID-C2

Re: Odroid C2 mainline kernel support

Unread postby brad » Sun Feb 12, 2017 7:57 am

best_odroidfreak wrote:Please explain which from new RT kernels https://www.kernel.org/pub/linux/kernel/projects/rt/ is stable for Debian Jessie arm64?


As per maveric RT patches are applied against kernel rather than a linux distribution.

- Hardkernel kernel 3.14.x supports a modified version of RT patches (search the forums there are some threads for a working version where moon.linux has produced a git with the patches applied). Reatime support is limited in the 3.14.x kernel and features have been extended in later releases.

- The upstream kernel (4.x) supports the RT patches but they are still in much development particularly for aarch64. The latest released RT patches are for kernel version 4.9 but many odroidc2 features added to the kernel in 4.10 or 4.11. Development versions of the RT patches are starting to be produced but I found they had issues supporting aarch64 at the moment. Versions of RT patches should be available within months to support 4.10 or 4.11 kernels.

If you were keen you could try applying 4.9 patches to a 4.10 or 4.11 kernel but I would not expect them to apply cleanly at all due to some massive changes (improvements/ features) in the aarch64 being applied to the kernel at the moment
brad
 
Posts: 371
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby brad » Fri Feb 24, 2017 3:14 pm

Here are the sides from Neil Armstrong's presentation at the Embedded Linux Conference...

http://events.linuxfoundation.org/sites ... mlogic.pdf

Its a very interesting read and a git provided for mainline kernel side mali 450 drivers :) Cant wait for a video to see his presentation and demo's.

Really looks like upstream is much closer to being fully supported than I suspected.
Last edited by brad on Fri Feb 24, 2017 4:51 pm, edited 2 times in total.
brad
 
Posts: 371
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby odroid » Fri Feb 24, 2017 3:30 pm

Yes.. very interesting presentation indeed.
I hope we can run the hardware accelerated GPU/VPU on Kernel 4.12 or 4.13 in several months.
User avatar
odroid
Site Admin
 
Posts: 21862
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Odroid C2 mainline kernel support

Unread postby alpha_one_x86 » Fri Feb 24, 2017 9:21 pm

Hello,

4.11 for uSD, ethernet at 1000Mbps is ready to do odroid c2 server?

Cheers,
Developer of ImageUltracopier/ImageSupercopier and of the game ImageCatchChallenger
User avatar
alpha_one_x86
 
Posts: 76
Joined: Wed Aug 27, 2014 6:47 am
languages_spoken: french, english, spanish
ODROIDs: 15 odroid u3, 10 odroid c1, 50 odroid c2

Re: Odroid C2 mainline kernel support

Unread postby brad » Sat Feb 25, 2017 8:12 am

alpha_one_x86 wrote:4.11 for uSD, ethernet at 1000Mbps is ready to do odroid c2 server?


I think we are still waiting to see for the 4.11, Ethernet at 1Gbit should be ok and sdcard, but not all high speed modes.

The target release is 4.12 by the looks.
brad
 
Posts: 371
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby crashoverride » Sat Feb 25, 2017 12:15 pm

brad wrote:Here are the sides from Neil Armstrong's presentation at the Embedded Linux Conference...

Thanks for posting that link.
crashoverride
 
Posts: 2462
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: Odroid C2 mainline kernel support

Unread postby moon.linux » Sun Feb 26, 2017 8:21 pm

http://events.linuxfoundation.org/sites ... mlogic.pdf

Very useful information on this link. Thanks you very much.
moon.linux
 
Posts: 710
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby umiddelb » Mon Feb 27, 2017 2:16 am

Hi,

although the USB related patches have been merged into 4.10, I'm still unable to make use of the USB ports.
The internal 4-port Genesys Logic USB hub isn't found during boot. What can I do to enable it? I'm using this defconfig.

Cheers
Uli
umiddelb
 
Posts: 388
Joined: Thu Jan 29, 2015 6:42 am
languages_spoken: English, German
ODROIDs: ODROID-C1, ODROID-XU4, ODROID-C2

Re: Odroid C2 mainline kernel support

Unread postby moon.linux » Tue Feb 28, 2017 12:48 am

I think following patches related to usb phy did not made it to mainline.

http://lists.infradead.org/pipermail/li ... 01721.html
moon.linux
 
Posts: 710
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby umiddelb » Tue Feb 28, 2017 6:09 am

moon.linux wrote:I think following patches related to usb phy did not made it to mainline.

http://lists.infradead.org/pipermail/li ... 01721.html


Thanks. I've applied the patches but the USB hub is not to be found.
umiddelb
 
Posts: 388
Joined: Thu Jan 29, 2015 6:42 am
languages_spoken: English, German
ODROIDs: ODROID-C1, ODROID-XU4, ODROID-C2

Re: Odroid C2 mainline kernel support

Unread postby rooted » Tue Feb 28, 2017 6:09 am

umiddelb wrote:
moon.linux wrote:I think following patches related to usb phy did not made it to mainline.

http://lists.infradead.org/pipermail/li ... 01721.html


Thanks. I've applied the patches but the USB hub is not to be found.

Have you tried cold booting?
User avatar
rooted
 
Posts: 3292
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1
C1+
C2
XU3 Lite
XU4
VU7+
HiFi Shield 2
Smart Power (original)

Re: Odroid C2 mainline kernel support

Unread postby umiddelb » Tue Feb 28, 2017 10:09 pm

rooted wrote:Have you tried cold booting?

Still the same.
umiddelb
 
Posts: 388
Joined: Thu Jan 29, 2015 6:42 am
languages_spoken: English, German
ODROIDs: ODROID-C1, ODROID-XU4, ODROID-C2

Re: Odroid C2 mainline kernel support

Unread postby listenmitglied » Tue Feb 28, 2017 10:36 pm

The patches above are for GXL, that's not the C2.
I'd like to test mainline 4.10 too, but the instructions on page 1 do not work. I've 15 years of x86-linux experience, but am too dumb to get the image working.
Could someone please update the compiling+install instructions for 4.10 vanilla?
listenmitglied
 
Posts: 1
Joined: Tue Feb 28, 2017 10:26 pm
languages_spoken: german
ODROIDs: 4 x C2

Re: Odroid C2 mainline kernel support

Unread postby umiddelb » Wed Mar 01, 2017 1:43 am

listenmitglied wrote:The patches above are for GXL, that's not the C2.
I'd like to test mainline 4.10 too, but the instructions on page 1 do not work. I've 15 years of x86-linux experience, but am too dumb to get the image working.
Could someone please update the compiling+install instructions for 4.10 vanilla?


You may take a look here.

Cheers
Uli
umiddelb
 
Posts: 388
Joined: Thu Jan 29, 2015 6:42 am
languages_spoken: English, German
ODROIDs: ODROID-C1, ODROID-XU4, ODROID-C2

Re: Odroid C2 mainline kernel support

Unread postby moon.linux » Wed Mar 01, 2017 3:45 am

The patches above are for GXL, that's not the C2.

opps: put the blame on me, apologized for my mistake.
moon.linux
 
Posts: 710
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby brad » Thu Mar 02, 2017 4:53 pm

brad wrote:Here are the sides from Neil Armstrong's presentation at the Embedded Linux Conference


And here is the presentation on youtube...

https://www.youtube.com/watch?v=FYvTatdgS_0
brad
 
Posts: 371
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby moon.linux » Wed Mar 08, 2017 5:40 am

@bard Nice video.... :D
moon.linux
 
Posts: 710
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby moon.linux » Wed Mar 08, 2017 5:42 am

Please find this patch to enable usb host on Odroid C2

https://patchwork.kernel.org/patch/9609763/
moon.linux
 
Posts: 710
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby umiddelb » Wed Mar 08, 2017 7:20 am

moon.linux wrote:Please find this patch to enable usb host on Odroid C2

https://patchwork.kernel.org/patch/9609763/


Which kernel sources (and additional patches) have you taken to build your kernel?

I was able to apply your patch against https://git.kernel.org/cgit/linux/kernel/git/khilman/linux-amlogic.git/log/?h=v4.12/integ but the 4 port hub (Port 1: Dev 2, If 0) still doesn't show up ...
umiddelb
 
Posts: 388
Joined: Thu Jan 29, 2015 6:42 am
languages_spoken: English, German
ODROIDs: ODROID-C1, ODROID-XU4, ODROID-C2

Re: Odroid C2 mainline kernel support

Unread postby moon.linux » Wed Mar 08, 2017 11:22 am

You probably need to enable CONFIG_PHY_MESON8B_USB2=y in you config option.
moon.linux
 
Posts: 710
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby umiddelb » Wed Mar 08, 2017 2:45 pm

CONFIG_PHY_MESON8B_USB2=y has already been enabled.
umiddelb
 
Posts: 388
Joined: Thu Jan 29, 2015 6:42 am
languages_spoken: English, German
ODROIDs: ODROID-C1, ODROID-XU4, ODROID-C2

Re: Odroid C2 mainline kernel support

Unread postby moon.linux » Wed Mar 08, 2017 3:54 pm

As of now I am using this custom config. I have not tested with defconfig.
Attachments
meson_defconfig.txt
meson defconfig
(94.34 KiB) Downloaded 36 times
moon.linux
 
Posts: 710
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby umiddelb » Wed Mar 08, 2017 8:15 pm

moon.linux wrote:As of now I am using this custom config. I have not tested with defconfig.

Thank you. I've tried your config, but still the same (no 4-port hub found). Which source tree are you using and which u-boot version?
umiddelb
 
Posts: 388
Joined: Thu Jan 29, 2015 6:42 am
languages_spoken: English, German
ODROIDs: ODROID-C1, ODROID-XU4, ODROID-C2

Re: Odroid C2 mainline kernel support

Unread postby moon.linux » Thu Mar 09, 2017 2:44 am

Yep that patch did not work. Thanks for your testing and report.
I am using HK u-boot
Could you give this diff change a try. I will try to enable both OTG and HOST port.

Code: Select all
root@odroid64:/usr/src/odroidxu3-4.y-final# git diff
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts
index c59403a..f3e2fd0 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts
@@ -64,7 +64,19 @@
                reg = <0x0 0x0 0x0 0x80000000>;
        };

-       usb_otg_pwr: regulator-usb-pwrs {
+       usb_host_pwr: regulator-usb-host-pwrs {
+               compatible = "regulator-fixed";
+
+               regulator-name = "USB_HOST_PWR";
+
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+
+               gpio = <&gpio_ao GPIOAO_4 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
+
+       usb_otg_pwr: regulator-usb-otg-pwrs {
                compatible = "regulator-fixed";

                regulator-name = "USB_OTG_PWR";
@@ -184,6 +196,7 @@

 &usb1_phy {
        status = "okay";
+       phy-supply = <&usb_host_pwr>;
 };


Code: Select all
root@odroid64:/usr/src/odroidxu3-4.y-final# uname -a
Linux odroid64 4.11.0-rc1-xc2ml #1 SMP PREEMPT Wed Mar 8 22:13:40 IST 2017 aarch64 aarch64 aarch64 GNU/Linux
root@odroid64:/usr/src/odroidxu3-4.y-final# lsusb -t
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc2/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 1: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 1: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 2: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 480M
        |__ Port 4: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 480M
root@odroid64:/usr/src/odroidxu3-4.y-final#
moon.linux
 
Posts: 710
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby umiddelb » Thu Mar 09, 2017 5:12 am

This one is working for USB HOST (haven't tried OTG so far)! Thank you for your patience.

At the very beginning of this thread @KARL32 had a different suggestion for powering the OTG port.

Kernel sources to be found here, the patchset agains mainline here and the defconfig here.
umiddelb
 
Posts: 388
Joined: Thu Jan 29, 2015 6:42 am
languages_spoken: English, German
ODROIDs: ODROID-C1, ODROID-XU4, ODROID-C2

Re: Odroid C2 mainline kernel support

Unread postby moon.linux » Thu Mar 09, 2017 10:46 am

This change breaks the OTG port as phy poweron is failing. That's the reason I have not resend this patch.
moon.linux
 
Posts: 710
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby umiddelb » Thu Mar 09, 2017 3:03 pm

umiddelb wrote:This one is working for USB HOST (haven't tried OTG so far)!


The OTG port is working as well.

At this time it seems that USB3 devices aren't recognized and USB devices have to be connect at boot time (no hot-plugging).
umiddelb
 
Posts: 388
Joined: Thu Jan 29, 2015 6:42 am
languages_spoken: English, German
ODROIDs: ODROID-C1, ODROID-XU4, ODROID-C2

Re: Odroid C2 mainline kernel support

Unread postby moon.linux » Fri Mar 10, 2017 3:05 am

@neil told me that some new approach on future coming series.

Code: Select all
For this specific use case, the only way to manage this is to use the Work-In-Progress
Power Sequence Library proposer by Peter Chen at :
https://lkml.org/lkml/2016/11/13/315

Since this is the USB Hub reset link and has no direct link with either the USB controller
or the USB PHY, and the USB Hus cannot be modeled (yet ?) in the DT.

One intermediate, but crappy, solution would be to add a GPIO hog until the power
sequence code has been merged, with a proper big fat warning in the dts file.

You can find doc about the gpio-hog in :
Documentation/devicetree/bindings/gpio/gpio.txt

It should look like :

usb-hub {
   gpio-hog;
   gpios = <GPIOAO_4 GPIO_ACTIVE_HIGH>;
   output-high;
   line-name = "usb-hub-reset";
};
moon.linux
 
Posts: 710
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby rooted » Fri Mar 10, 2017 8:42 am

What makes the GPIO hog so bad?
User avatar
rooted
 
Posts: 3292
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1
C1+
C2
XU3 Lite
XU4
VU7+
HiFi Shield 2
Smart Power (original)

Re: Odroid C2 mainline kernel support

Unread postby moon.linux » Sat Mar 11, 2017 3:41 pm

For this specific use case, the only way to manage this is to use the Work-In-Progress
Power Sequence Library proposer by Peter Chen at : updated v11
https://lkml.org/lkml/2017/1/5/33

Using above series I was able to get the usb nodes to work correctly on Odroid C2.
Although the series of patches did not clean apply completely. I manage to get this working.

You need to enable following config option.

CONFIG_POWER_SEQUENCE=y
CONFIG_PWRSEQ_GENERIC=y


Code: Select all
Linux odroid64 4.11.0-rc1-xc2mlur #1 SMP PREEMPT Sat Mar 11 00:37:41 IST 2017 aarch64 aarch64 aarch64 GNU/Linux
root@odroid64:~# lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=dwc2/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 1: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 1: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 2: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 480M
        |__ Port 4: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc2/1p, 480M


Attach are the patches.
Attachments
usbc2.tar.gz
usbc2
(9.07 KiB) Downloaded 19 times
moon.linux
 
Posts: 710
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby hephooey » Tue Mar 21, 2017 3:49 am

Kind of offtopic, but I guess it is interesting that appearently amlogic announced a 4.9 kernel early this month:
http://openlinux.amlogic.com/wiki/index.php/Arm/Buildroot/buildroot-2017-03-10
It is not publicly available (ironic it is hosted on openlinux.amlogic.com). I wonder if hardkernel already has access to it.
hephooey
 
Posts: 52
Joined: Tue Mar 22, 2016 4:19 am
languages_spoken: english
ODROIDs: C1+, C2

Re: Odroid C2 mainline kernel support

Unread postby narmstrong » Tue Mar 21, 2017 7:13 pm

Hi All,

Indeed, Amlogic is rebasing on 4.9, but we have zero details and not access to the git tree.

For the USB on Odroid-C2, I managed to get the gpio-hog (it means a gpio config is set up a boot time and stays in this configuration) and the USB working, and I found a bug in the pinctrl driver by the way...

The patches to apply are :
https://github.com/superna9999/linux/co ... 0b048ab3d0
https://github.com/superna9999/linux/co ... baef795956
https://github.com/superna9999/linux/co ... 7a93cb03ef
https://github.com/superna9999/linux/co ... fe9af7455b

If you want to try the Quake 3 Demo on your C2, I provided some pre-built tarballs to drop on a SDCard here :
https://github.com/superna9999/meson_gx_mali_q3_demo
tarballs :
https://github.com/superna9999/meson_gx ... o/releases

And you want to give a try to LibreELEC runing Kodi on 4.10 with HDMI, Sound and Mali :
https://github.com/superna9999/LibreELE ... logic-4.10
I can give you more instructions if desired and even a SDCard image.

Neil
narmstrong
 
Posts: 3
Joined: Tue Mar 21, 2017 7:06 pm
Location: Villeneuve-Loubet, France
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby narmstrong » Tue Mar 21, 2017 7:26 pm

In fact you can use this image to test LibreELEC :
https://github.com/superna9999/LibreELE ... 10-demo-v0
narmstrong
 
Posts: 3
Joined: Tue Mar 21, 2017 7:06 pm
Location: Villeneuve-Loubet, France
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby rooted » Wed Mar 22, 2017 2:37 am

I don't have time to look at your stuff currently (I will) but great work.
User avatar
rooted
 
Posts: 3292
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1
C1+
C2
XU3 Lite
XU4
VU7+
HiFi Shield 2
Smart Power (original)

Re: Odroid C2 mainline kernel support

Unread postby crashoverride » Wed Mar 22, 2017 4:47 am

narmstrong wrote:Amlogic is rebasing on 4.9

narmstrong wrote:In fact you can use this image to test LibreELEC :

This prompts the questions about hardware acceleration for video encode/decode. Is hardware acceleration enabled in the 4.9 kernel? If so, what API is being used (aml, v4l-m2m)?

What is the direction going forward with regard to video APIs? Does anyone know if Amlogic has signaled their API of choice? Is it in agreement with mainline?
crashoverride
 
Posts: 2462
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: Odroid C2 mainline kernel support

Unread postby moon.linux » Thu Mar 23, 2017 2:29 am

@Neil Thanks for your image.
moon.linux
 
Posts: 710
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby rooted » Thu Mar 23, 2017 5:20 am

moon.linux wrote:@Neil Thanks for your image.

Indeed, I can't wait to give it a try
User avatar
rooted
 
Posts: 3292
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1
C1+
C2
XU3 Lite
XU4
VU7+
HiFi Shield 2
Smart Power (original)

Re: Odroid C2 mainline kernel support

Unread postby crashoverride » Thu Mar 23, 2017 5:28 am

rooted wrote:Indeed, I can't wait to give it a try

I looked through the source code, but I can not find any hardware video codec drivers[1]. If you try it (LibreElec), please report if its using hardware codecs.

[edit]
[1] The "amlogic" folder in the kernel where the drivers used to be is not present. I also looked in "driver/media/platform" for V4L drivers, but did not find any for meson.
crashoverride
 
Posts: 2462
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: Odroid C2 mainline kernel support

Unread postby arny91 » Sat Mar 25, 2017 12:18 am

Any quick way to use the kernel from https://github.com/superna9999/LibreELEC.tv/releases/tag/amlogic-4.10-demo-v0
in Arch Linux ARM?

I would like to see it soon here:
https://archlinuxarm.org/packages

meanwhile, any tips to compile the latest mainline kernel?
arny91
 
Posts: 6
Joined: Sat Aug 13, 2016 9:12 pm
languages_spoken: english
ODROIDs: Odroid C2

Re: Odroid C2 mainline kernel support

Unread postby umiddelb » Sat Mar 25, 2017 4:19 am

arny91 wrote: [...]
meanwhile, any tips to compile the latest mainline kernel?


You may take a look here.
umiddelb
 
Posts: 388
Joined: Thu Jan 29, 2015 6:42 am
languages_spoken: English, German
ODROIDs: ODROID-C1, ODROID-XU4, ODROID-C2

PreviousNext

Return to General Chat

Who is online

Users browsing this forum: No registered users and 2 guests