Linux kernel 4.9 debugging party for ODROID-N2

Post Reply
User avatar
tobetter
Posts: 3277
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 17 times
Been thanked: 69 times
Contact:

Linux kernel 4.9 debugging party for ODROID-N2

Unread post by tobetter » Wed May 15, 2019 5:15 pm

I've worked to pull the recent kernel update from Amlogic's kernel branch and managed them to merge to the ODROID-N2 branch, they are uploaded to the new branch odroidn2-4.9-upstream. The branch has 450+ new commits on top of the branch odroidn2-4.9, it would be appreciated if you try it out to run and let us know if you found defected features. There are more commits which were not able to be merged because of code conflict, we are internally trying to resolve them and would be updated the progress later.
[1] https://github.com/hardkernel/linux/com ... y-upstream

The way of downloading and building the kernel is same, only the branch name is different.
Screenshot from 2019-05-15 17-14-50.png
Screenshot from 2019-05-15 17-14-50.png (282.14 KiB) Viewed 701 times

Raybuntu
Posts: 1363
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2
Has thanked: 3 times
Been thanked: 12 times
Contact:

Re: Linux kernel 4.9 debugging party for ODROID-N2

Unread post by Raybuntu » Wed May 15, 2019 5:21 pm

Thanks!

Raybuntu
Posts: 1363
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2
Has thanked: 3 times
Been thanked: 12 times
Contact:

Re: Linux kernel 4.9 debugging party for ODROID-N2

Unread post by Raybuntu » Wed May 15, 2019 5:37 pm

@tobetter can you please post the commits that didn't apply either as patches of as a bare Amlogic git branch. We will try to apply them.

User avatar
tobetter
Posts: 3277
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 17 times
Been thanked: 69 times
Contact:

Re: Linux kernel 4.9 debugging party for ODROID-N2

Unread post by tobetter » Wed May 15, 2019 6:15 pm

Raybuntu wrote:
Wed May 15, 2019 5:37 pm
@tobetter can you please post the commits that didn't apply either as patches of as a bare Amlogic git branch. We will try to apply them.
Hello Raybuntu,

Thank you for your suggestion.
Would you be able to wait for a couple of days, by end of this week? Since we are doing some integrations, some of them are able to be merged or will be ignored. After having some work more, I am thinking of sharing the bare branch from Amlogic with a list and share them...such that...you can create a patch. :mrgreen:

User avatar
rooted
Posts: 6469
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 21 times
Been thanked: 11 times
Contact:

Re: Linux kernel 4.9 debugging party for ODROID-N2

Unread post by rooted » Thu May 16, 2019 1:42 am

Subscribing

User avatar
OverSun
Posts: 1459
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english
Has thanked: 0
Been thanked: 2 times
Contact:

Re: Linux kernel 4.9 debugging party for ODROID-N2

Unread post by OverSun » Thu May 16, 2019 3:21 am

doesn't compile without
CONFIG_AMLOGIC_VIDEOSYNC=y
and this small patch with default values that debugfs expect for a node to be created

Code: Select all

diff --git a/drivers/amlogic/atv_demod/atvdemod_func.c b/drivers/amlogic/atv_demod/atvdemod_func.c
index 90c953673c89..d31c9f416355 100644
--- a/drivers/amlogic/atv_demod/atvdemod_func.c
+++ b/drivers/amlogic/atv_demod/atvdemod_func.c
@@ -39,6 +39,8 @@
 unsigned int broad_std = AML_ATV_DEMOD_VIDEO_MODE_PROP_NTSC;
 unsigned int aud_std = AUDIO_STANDARD_NICAM_DK;
 unsigned int aud_mode = AUDIO_OUTMODE_STEREO;
+bool aud_reinit = 0;
+bool aud_mono_only = 0;
 bool aud_auto = true;
 unsigned long over_threshold = 0xffff;
 unsigned long input_amplitude = 0xffff;
I don't see any changes to the hardkernel version. same jitter during playback is there, all that worked for me still works...

User avatar
tobetter
Posts: 3277
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 17 times
Been thanked: 69 times
Contact:

Re: Linux kernel 4.9 debugging party for ODROID-N2

Unread post by tobetter » Thu May 16, 2019 3:30 pm

OverSun wrote:
Thu May 16, 2019 3:21 am
doesn't compile without
CONFIG_AMLOGIC_VIDEOSYNC=y
and this small patch with default values that debugfs expect for a node to be created

Code: Select all

diff --git a/drivers/amlogic/atv_demod/atvdemod_func.c b/drivers/amlogic/atv_demod/atvdemod_func.c
index 90c953673c89..d31c9f416355 100644
--- a/drivers/amlogic/atv_demod/atvdemod_func.c
+++ b/drivers/amlogic/atv_demod/atvdemod_func.c
@@ -39,6 +39,8 @@
 unsigned int broad_std = AML_ATV_DEMOD_VIDEO_MODE_PROP_NTSC;
 unsigned int aud_std = AUDIO_STANDARD_NICAM_DK;
 unsigned int aud_mode = AUDIO_OUTMODE_STEREO;
+bool aud_reinit = 0;
+bool aud_mono_only = 0;
 bool aud_auto = true;
 unsigned long over_threshold = 0xffff;
 unsigned long input_amplitude = 0xffff;
I don't see any changes to the hardkernel version. same jitter during playback is there, all that worked for me still works...
Thanks, Oversun.
I've updated the branch with CONFIG_AMLOGIC_VIDEOSYNC.
https://github.com/hardkernel/linux/com ... 577eb9d53b

elatllat
Posts: 1267
Joined: Tue Sep 01, 2015 8:54 am
languages_spoken: english
ODROIDs: XU4, N1
Has thanked: 1 time
Been thanked: 6 times
Contact:

Re: Linux kernel 4.9 debugging party for ODROID-N2

Unread post by elatllat » Fri May 17, 2019 10:49 pm


User avatar
tobetter
Posts: 3277
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 17 times
Been thanked: 69 times
Contact:

Re: Linux kernel 4.9 debugging party for ODROID-N2

Unread post by tobetter » Fri May 17, 2019 10:53 pm

elatllat wrote:
Fri May 17, 2019 10:49 pm
Is the upstream
https://git.kernel.org/pub/scm/linux/ke ... logic.git/
or something else?
Sorry if it made a confusion due to -upstream. This thread is to debug 4.9 kernel with new BSP update from Amlogic, not the mainline kernel.

elatllat
Posts: 1267
Joined: Tue Sep 01, 2015 8:54 am
languages_spoken: english
ODROIDs: XU4, N1
Has thanked: 1 time
Been thanked: 6 times
Contact:

Re: Linux kernel 4.9 debugging party for ODROID-N2

Unread post by elatllat » Fri May 17, 2019 10:59 pm

So upstream is still Linaro, with some cherry picking off Amlogic. Would be nice to have links to all the upstreams.
(Though really a minimal/server 5.2 once the RC is out is my interest)

User avatar
tobetter
Posts: 3277
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 17 times
Been thanked: 69 times
Contact:

Re: Linux kernel 4.9 debugging party for ODROID-N2

Unread post by tobetter » Fri May 17, 2019 11:06 pm

elatllat wrote:
Fri May 17, 2019 10:59 pm
So upstream is still Linaro, with some cherry picking off Amlogic. Would be nice to have links to all the upstreams.
(Though really a minimal/server 5.2 once the RC is out is my interest)
Why Linaro?

elatllat
Posts: 1267
Joined: Tue Sep 01, 2015 8:54 am
languages_spoken: english
ODROIDs: XU4, N1
Has thanked: 1 time
Been thanked: 6 times
Contact:

Re: Linux kernel 4.9 debugging party for ODROID-N2

Unread post by elatllat » Fri May 17, 2019 11:21 pm

Without links one can only guess based on the many commits that are not from kernel.org

User avatar
OverSun
Posts: 1459
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english
Has thanked: 0
Been thanked: 2 times
Contact:

Re: Linux kernel 4.9 debugging party for ODROID-N2

Unread post by OverSun » Sat May 18, 2019 1:48 am

amlogic has it’s own git with kernel, available when you have login and access. this is what they release in their BSP once in few months.
has nothing to do with linaro, it’s amlogic kernel of latest their git.

User avatar
tobetter
Posts: 3277
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 17 times
Been thanked: 69 times
Contact:

Re: Linux kernel 4.9 debugging party for ODROID-N2

Unread post by tobetter » Mon May 20, 2019 11:00 am

More patches are updated and uploaded to the branch odroidn2-4.9-upstream
https://github.com/hardkernel/linux/com ... y-upstream

crashoverride
Posts: 4401
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 35 times
Contact:

Re: Linux kernel 4.9 debugging party for ODROID-N2

Unread post by crashoverride » Tue May 21, 2019 9:49 pm

I compiled this kernel branch today. However, it will not boot. I get "Starting kernel ..." and then the device reboots. I used 'make odroidn2_defconfig'. Is anyone else having this problem, or is it just me?

[edit]
I solved the issue. The device tree must also be updated on the boot media. The old one is apparently no longer compatible.

User avatar
OverSun
Posts: 1459
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english
Has thanked: 0
Been thanked: 2 times
Contact:

Re: Linux kernel 4.9 debugging party for ODROID-N2

Unread post by OverSun » Wed May 22, 2019 12:36 am

You get this problem if you checkout the branch in the directory where you already compiled "odroidn2-4.9.y" (without upstream) branch before. For some reason gcc cannot figure out some part it needs to recompile and it links bad frankenstein kernel with stuff from this and that branch. It doesn't boot exactly as you say - with "Starting kernel ..." and then reboots after few seconds.
"make mrproper" needs to be done when switching branches

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: Paul69 and 0 guests