Page 1 of 3

[KERNEL] This is the official update thread for XU3/XU4

Posted: Tue Aug 05, 2014 10:34 pm
by mdrjr
Please post here requests for features / modules on XU3/XU4 kernel.

Track changes here -> https://github.com/hardkernel/linux/tre ... xu3-3.10.y

Re: [KERNEL] This is the official update thread for XU3

Posted: Wed Aug 06, 2014 6:34 pm
by meveric
any particular reason, why joydev is deactivated again?

Re: [KERNEL] This is the official update thread for XU3

Posted: Wed Aug 06, 2014 9:04 pm
by memeka
or HID_APPLE? :))
I had to hack my keyboard and mouse in again :P

Re: [KERNEL] This is the official update thread for XU3

Posted: Wed Aug 06, 2014 11:24 pm
by mdrjr

Re: [KERNEL] This is the official update thread for XU3

Posted: Sat Aug 30, 2014 12:43 am
by roosemberth
can you enable CONFIG_TASKSTATS, CONFIG_TASK_DELAY_ACCT, CONFIG_TASK_IO_ACCOUNTING for iotop?

Re: [KERNEL] This is the official update thread for XU3

Posted: Sat Aug 30, 2014 3:20 am
by mdrjr
Done :) Building it.

Re: [KERNEL] This is the official update thread for XU3

Posted: Tue Sep 16, 2014 7:31 am
by Hominidae
Hi,

I am trying to get lxc-docker up&running on my XU3.
It appears there are some kernel configs not set, that are needed. (installed docker.io, but running a container failed).

Note:
I tried to create a new config based on the odroidxu3_defconfig supplied with the git trunk, but it also appears that in this config
the entry for User-Namespace "CONFIG_USER_NS" is completely missing (not part of the odroidxu3_defconfig at all, so using menuconfig to enable it will fail.).


This is what is needed, based on lxc-checkconfig (install lxc userland tools):

Code: Select all

root@odroid:~/odroidxu3-3.10.y# lxc-checkconfig 
--- Namespaces ---
Namespaces: enabled
Utsname namespace: enabled
Ipc namespace: enabled
Pid namespace: enabled
User namespace: missing
Network namespace: enabled
Multiple /dev/pts instances: missing

--- Control groups ---
Cgroup: enabled
Cgroup clone_children flag: enabled
Cgroup device: missing
Cgroup sched: enabled
Cgroup cpu account: enabled
Cgroup memory controller: missing
Cgroup cpuset: missing

--- Misc ---
Veth pair device: enabled
Macvlan: enabled
Vlan: enabled
File capabilities: enabled

Note : Before booting a new kernel, you can check its configuration
usage : CONFIG=/path/to/config /usr/bin/lxc-checkconfig

root@odroid:~/odroidxu3-3.10.y#
...and here's the config diff

Code: Select all

root@odroid:~/odroidxu3-3.10.y# diff ./arch/arm/configs/odroidxu3_defconfig ./arch/arm/configs/odroidxu3_defconfig.old 
112,114c112,113
< CONFIG_CGROUP_DEVICE=y
< CONFIG_CPUSETS=y
< CONFIG_PROC_PID_CPUSET=y
---
> # CONFIG_CGROUP_DEVICE is not set
> # CONFIG_CPUSETS is not set
117,118c116
< CONFIG_MEMCG=y
< # CONFIG_MEMCG_KMEM is not set
---
> # CONFIG_MEMCG is not set
124,125c122
< CONFIG_BLK_CGROUP=y
< # CONFIG_DEBUG_BLK_CGROUP is not set
---
> # CONFIG_BLK_CGROUP is not set
129d125
< CONFIG_USER_NS=y
134d129
< CONFIG_MM_OWNER=y
229d223
< # CONFIG_BLK_DEV_THROTTLING is not set
259d252
< # CONFIG_CFQ_GROUP_IOSCHED is not set 
1744c1737
< CONFIG_DEVPTS_MULTIPLE_INSTANCES=y
---
> # CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set
root@odroid:~/odroidxu3-3.10.y# 
...the little box is now compiling the kernel...will see what comes out of that when I get up.

Edit:
nope, I can't get the CONFIG_USER_NS=y entry to stick with the config. Some dependencies are beyond my skills (last time I worked with linux kernels was in v0.9 and I am balding fast :D )
I really could use some help with this ...AFAIU something in the odroidxu3_defconfig is wrong, so menuconfig will not set this element at all.

Edit-2: OK, found a hint somewhere in a Slack forum..somethings wrong with config dependencies in kernel 3.10.y ....aparently, when you de-select the XFS filesystem, the User-Namespace element re-appears :o ....got a .config now...re-compiling

Re: [KERNEL] This is the official update thread for XU3

Posted: Tue Sep 16, 2014 6:16 pm
by Hominidae
OK, when setting LXC required configs, the CONFIG_USER_NS=y breaks the kernel.
It won't compile:

Code: Select all

kernel/sched/core.c: In function ‘cpu_cgroup_allow_attach’:
kernel/sched/core.c:7771:18: error: invalid operands to binary != (have ‘kuid_t’ and ‘kuid_t’)
       cred->euid != tcred->uid && cred->euid != tcred->suid)
                  ^
kernel/sched/core.c:7771:46: error: invalid operands to binary != (have ‘kuid_t’ and ‘kuid_t’)
       cred->euid != tcred->uid && cred->euid != tcred->suid)
                                              ^
..any chance to go to more upstream kernel, like the "true/actual" one from trusty (LXC is working in there, at least for amd64) ?

Re: [KERNEL] This is the official update thread for XU3

Posted: Tue Sep 16, 2014 7:25 pm
by mdrjr
No. Upstream kernel doesn't boot a few of the 8-cores, doesn't have HMP scheduler.

I'll see what's wrong..

Re: [KERNEL] This is the official update thread for XU3

Posted: Tue Sep 16, 2014 7:53 pm
by Hominidae
...your help is very much appreciated, thanks!

Here's a close hint that it indeed should work: http://blog.tutum.co/2013/12/14/enablin ... -10-saucy/

Re: [KERNEL] This is the official update thread for XU3

Posted: Tue Sep 16, 2014 8:00 pm
by mdrjr
I already found the issues :(
Just checking if I won't break anything with it.

Re: [KERNEL] This is the official update thread for XU3

Posted: Tue Sep 16, 2014 8:13 pm
by mdrjr
Its fixed. Download the sources again.

Re: [KERNEL] This is the official update thread for XU3

Posted: Tue Sep 16, 2014 8:57 pm
by Hominidae
.....wow...that was blazing fast!

I configured the kernel for lxc-docker and it did indeed build :D

...need to run some tests and report back

Thanks again for your excellent support!

Re: [KERNEL] This is the official update thread for XU3

Posted: Tue Sep 23, 2014 4:45 pm
by Hominidae
Hi mdrjr,

I have successfully installed/used docker.
Can you permanently enable the configs explained here http://forum.odroid.com/viewtopic.php?f ... 638#p52786
in order to support the use of docker for ubuntu hosts, based on your kernel and without having the users to build their own?

TIA,
hominidae

Re: [KERNEL] This is the official update thread for XU3

Posted: Wed Sep 24, 2014 2:32 am
by mdrjr
Can you send me a PR or the list of the CONFIG_ symbols ?

Re: [KERNEL] This is the official update thread for XU3

Posted: Wed Sep 24, 2014 8:25 pm
by Hominidae
...yes, will do....asap, as I am currently traveling with no access to my systems.

Re: [KERNEL] This is the official update thread for XU3

Posted: Mon Oct 06, 2014 6:30 am
by MastaG
Would CONFIG_SWAP=y be possible?

Re: [KERNEL] This is the official update thread for XU3

Posted: Mon Oct 06, 2014 6:44 pm
by mdrjr
MastaG wrote:Would CONFIG_SWAP=y be possible?
Yes.. I'll add that tomorrow ;)

Re: [KERNEL] This is the official update thread for XU3

Posted: Tue Oct 07, 2014 5:08 am
by cnaumer
Is there a reason that the ondemand governor is not in the kernel? I have a xu3 and would like to use it for a low power application. Or would there be a problem with the HMP scheduler?

Regards

Re: [KERNEL] This is the official update thread for XU3

Posted: Tue Oct 07, 2014 10:48 am
by mdrjr
cnaumer wrote:Is there a reason that the ondemand governor is not in the kernel? I have a xu3 and would like to use it for a low power application. Or would there be a problem with the HMP scheduler?

Regards
There's a problem right now with ondemand and hmp/cpu qos.. So its impossible right now..
But even with ondemand the power comsumption won't be much lower.

Re: [KERNEL] This is the official update thread for XU3

Posted: Mon Oct 13, 2014 11:03 pm
by recliq
Please enable uinput in kernel.
I tried to get sixad working on XU3 (for Sony DS3 Pad) and it requires uinput module, after compiling it myself everything now works.

Re: [KERNEL] This is the official update thread for XU3

Posted: Mon Oct 13, 2014 11:06 pm
by mdrjr
Android or Ubuntu ?

Re: [KERNEL] This is the official update thread for XU3

Posted: Tue Oct 14, 2014 12:29 am
by recliq
oh, sorry forgot to mention that, ubuntu please

Re: [KERNEL] This is the official update thread for XU3

Posted: Thu Oct 23, 2014 8:47 pm
by recliq
I see there's a new kernel for XU3, still no uinput module though... :/

Re: [KERNEL] This is the official update thread for XU3

Posted: Thu Oct 23, 2014 11:50 pm
by mdrjr
Oh kill me :( I'm really sorry.. I've forgot that :( :( :(
Can you ping me in 3 days? I'll add for you :(

Right now I'm waiting to board for my flight back to Brazil :(

Re: [KERNEL] This is the official update thread for XU3

Posted: Fri Oct 24, 2014 12:23 am
by recliq
No need to hurry, not that important, don't worry. I can just compile it myself for now.. ;)
Just would be nice to have it in future kernel versions.

Re: [KERNEL] This is the official update thread for XU3

Posted: Fri Oct 24, 2014 4:17 am
by Hominidae
Hominidae wrote:Hi mdrjr,

I have successfully installed/used docker.
Can you permanently enable the configs explained here http://forum.odroid.com/viewtopic.php?f ... 638#p52786
in order to support the use of docker for ubuntu hosts, based on your kernel and without having the users to build their own?

TIA,
hominidae
mdrjr wrote:Can you send me a PR or the list of the CONFIG_ symbols ?

...bump!
I did send you a PM with the symbols some weeks ago...don't know if you have found the time but if I interpret the commits on git correctly, you did not.

...about to try the updated Ubuntu with XBMC soon :D
it would simply be great to have Docker on this too....

Re: [KERNEL] This is the official update thread for XU3

Posted: Sat Oct 25, 2014 10:30 pm
by mdrjr
My fear here is to disable XFS and someone is using it :(
I'll break this person boot :(

I need more time to check if there's any patch that enables both to be built together :)

Re: [KERNEL] This is the official update thread for XU3

Posted: Sun Oct 26, 2014 2:25 am
by Hominidae
Ah, right!

...in fact the ARCH image comes without xfs module indeed.

Re: [KERNEL] This is the official update thread for XU3

Posted: Mon Nov 03, 2014 6:19 am
by thepotter
mdrjr wrote:
cnaumer wrote:Is there a reason that the ondemand governor is not in the kernel? I have a xu3 and would like to use it for a low power application. Or would there be a problem with the HMP scheduler?

Regards
There's a problem right now with ondemand and hmp/cpu qos.. So its impossible right now..
But even with ondemand the power comsumption won't be much lower.

So, is there no way to change a frequency?

Re: [KERNEL] This is the official update thread for XU3

Posted: Mon Nov 03, 2014 6:28 am
by mdrjr
Sigh.....

(for A7)
echo frequency_in_kHz > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

(for A15)
echo frequency_in_kHz > /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq

Re: [KERNEL] This is the official update thread for XU3

Posted: Mon Nov 03, 2014 7:20 am
by thepotter
Thanks, mdrjr.

One more question is that [scaling_available_governors] returns only "performance". In my Ubuntu machine, it returns "ondemand conservative powersave userspace performance". Do you know how to change governor? Do we need to install another OS? Sorry that I have lack of background of governor.

Re: [KERNEL] This is the official update thread for XU3

Posted: Mon Nov 03, 2014 9:40 am
by mdrjr
Only performance is working....

Re: [KERNEL] This is the official update thread for XU3

Posted: Fri Nov 07, 2014 11:12 am
by dony
So do I have to use only performance?
I need make a experiment with using ondemand, powersave, governer.....
How can I do it?

Re: [KERNEL] This is the official update thread for XU3

Posted: Fri Nov 07, 2014 11:36 am
by mdrjr
You go ahead and fix the devfreq so it works. :)

Re: [KERNEL] This is the official update thread for XU3

Posted: Fri Nov 07, 2014 11:46 am
by dony
um.... I tried and I checked the available_freq_governor.... that was only performance...

How can I change the governor to powersave or interactive???

Re: [KERNEL] This is the official update thread for XU3

Posted: Fri Nov 07, 2014 11:50 am
by mdrjr
Rebuild the kernel with supports for it.
Btw, this is not the thread for this discussion.

Re: [KERNEL] This is the official update thread for XU3

Posted: Fri Nov 07, 2014 12:01 pm
by dony
As I know, the kernel which hardkernel provided doesnt include another governor code....
and that is only the kernel to support HMP scheduling on XU3...isnt it?

Do you mean I am supposed to rebuild the kernel code with modifying configuration to use another governor ?
thats all?

Re: [KERNEL] This is the official update thread for XU3

Posted: Fri Nov 07, 2014 12:06 pm
by memeka
yes you can select additional governors in the kernel configuration.
the problem is currently on the xu3 only performance works well - that's why the others aren't enabled in the default config.

Re: [KERNEL] This is the official update thread for XU3

Posted: Fri Nov 07, 2014 3:01 pm
by dony
One more thing..
could you let me know why the other governor has problem to work on JUST Xu3 even though many os is using interactive or ondemand typically?
what is the main problem???? cuz of XU3's hardware characteristics?

Re: [KERNEL] This is the official update thread for XU3

Posted: Fri Nov 07, 2014 3:04 pm
by mdrjr
HMP Scheduler.

Re: [KERNEL] This is the official update thread for XU3

Posted: Thu Nov 20, 2014 10:24 pm
by hamish
hi

can the SCSI driver be activated, e.g. to enable connecting a USB CDROM?

currently (in 14.04 as supplied with an XU3) the config file has:

# CONFIG_BLK_DEV_SR is not set

https://raw.githubusercontent.com/hardk ... _defconfig

so I'm not getting /dev/sr0 for example...

thanks!

h

Re: [KERNEL] This is the official update thread for XU3

Posted: Fri Nov 21, 2014 4:04 am
by meveric
i've just build a kernel with CDROM support and tested it with XBMC works perfectly fine. You can download it from my repository if you don't want to wait.

Re: [KERNEL] This is the official update thread for XU3

Posted: Fri Nov 21, 2014 10:54 am
by mdrjr
Done, should be live in 30minutes.

Re: [KERNEL] This is the official update thread for XU3

Posted: Fri Nov 21, 2014 6:46 pm
by hamish
SCSI USB CDROM working now, thanks for the quick fix!
h

Re: [KERNEL] This is the official update thread for XU3

Posted: Wed Dec 03, 2014 8:21 am
by wombat
Please enable POSIX_MQUEUE in the default configs, as without it, NILFS2 cleaner daemon won't start.

Re: [KERNEL] This is the official update thread for XU3

Posted: Thu Dec 04, 2014 5:03 am
by mdrjr
wombat wrote:Please enable POSIX_MQUEUE in the default configs, as without it, NILFS2 cleaner daemon won't start.
Added :)

Re: [KERNEL] This is the official update thread for XU3

Posted: Thu Dec 18, 2014 5:31 am
by otherush
I saw earlier in the thread you added uinput support for ubuntu. Can you also add this for android? DroidMote depends on this

Re: [KERNEL] This is the official update thread for XU3

Posted: Thu Dec 18, 2014 10:57 am
by odroid
otherush wrote:I saw earlier in the thread you added uinput support for ubuntu. Can you also add this for android? DroidMote depends on this
"uinput" included Android image will be released soon.

Re: [KERNEL] This is the official update thread for XU3

Posted: Thu Dec 18, 2014 11:27 am
by otherush
Fantastic! Thank you so much