OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio

IPB

Welcome Guest ( Log In | Register )

3 Pages V   1 2 3 >  
Reply to this topicStart new topic
> Linux Kernel 4.4.0, Experimental Kernel Build for Sharp Zaurus C3x00
greguu
post Jan 12 2016, 01:12 AM
Post #1





Group: Moderators
Posts: 374
Joined: 14-November 05
From: New Zealand
Member No.: 8,535



Hi all,

(Updated 27/10/2016) : For those that are interested, there is a new kernel release.

https://github.com/greguu/linux-4.4-cxx00/releases/tag/v0.7

CODE
Kernel 4.4.0 for Sharp Zaurus Cxx00 Series

- enabled seccomp (short for secure computing mode) as required by latest systemd;)

- added Atheros 9k USB drivers on request

- added added CVE-2016-0728 patch

- includes staging drivers for :

    RealTek RTL8712U (RTL8192SU) Wireless LAN NIC
    Realtek RTL8188EU Wireless LAN NIC driver
    Realtek RTL8188EU AP mode
    Realtek RTL8723AU Wireless LAN NIC driver
    Realtek RTL8723AU AP mode
    Realtek RTL8723AU BlueTooth C


-  includes cpufreq governors

-  includes dirty port of 4.2.3 pxamci.c to fix read only SD card issue with 4.4.0

-  includes CF disk LED trigger

-  includes CPU heartbeat trigger instead of Battery Charge trigger (broken)

-  includes USB 180mA patch

-  includes ALARM logo

-  known issue : Screen blanks white while in console for first time

-  known issue : online charging and battery LED trigger broken, offline charging works

-  .config file included in tar.xz

-  example boot.cfg file included in tar.xz

-  arch-kexecboot based on linux 3.5 included in seperate tar.xz, including instructions

-  borzoi console keymap file included

-  if you need more firmware install via "pacman -S linux-firmware"



Please post any questions or suggestions within this thread, thanks!

All feedback welcome to improve this kernel.

Cheers!
Go to the top of the page
 
+Quote Post
dmarschal
post Jan 13 2016, 10:43 PM
Post #2





Group: Members
Posts: 18
Joined: 22-November 09
Member No.: 54,656



Hello daalnroti,
Thank you for the new kernel.

How to underclock the CPU under this kernel?

I use the following lines to set the cpu to a lower freq.
CODE
echo ""userspace" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 312000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed


I got an 'write error: invalid argument' error code. What do you suggest?

Thank you,
Go to the top of the page
 
+Quote Post
greguu
post Jan 14 2016, 03:26 PM
Post #3





Group: Moderators
Posts: 374
Joined: 14-November 05
From: New Zealand
Member No.: 8,535



QUOTE(dmarschal @ Jan 14 2016, 07:43 AM) *
Hello daalnroti,
Thank you for the new kernel.

How to underclock the CPU under this kernel?

I use the following lines to set the cpu to a lower freq.
CODE
echo ""userspace" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 312000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed


I got an 'write error: invalid argument' error code. What do you suggest?

Thank you,


Hi dmarschal,

as far as I know this was not working with the previous kernels, too.

There are no cpufreq scaling governors included in the kernel, just performance mode.

I have added all scaling governors and tested but got the same error.

Need to investigate the issue further, but I was able to overcock to 624Mhz by hardcoding the value in the kernel.

This could be done for underclocking too I suppose.

Cheers!
Go to the top of the page
 
+Quote Post
dmarschal
post Jan 14 2016, 10:43 PM
Post #4





Group: Members
Posts: 18
Joined: 22-November 09
Member No.: 54,656



Thank you!

It did work with the 4.2.3-c3x00 0.4 kernel. I was able to underclock to 104mhz, the lowest possible. The problem was that the screen flickers when the internal CF is accessed. The problem gone when the clock speed was set 312mhz or higher.
Go to the top of the page
 
+Quote Post
greguu
post Jan 15 2016, 03:02 PM
Post #5





Group: Moderators
Posts: 374
Joined: 14-November 05
From: New Zealand
Member No.: 8,535



QUOTE(dmarschal @ Jan 15 2016, 07:43 AM) *
Thank you!

It did work with the 4.2.3-c3x00 0.4 kernel. I was able to underclock to 104mhz, the lowest possible. The problem was that the screen flickers when the internal CF is accessed. The problem gone when the clock speed was set 312mhz or higher.


Hi dmarschal,

thanks for letting me know. I have changed the 4.4.0 kernel accordingly and released v0.3 including cpufreq governors.
Let me know if that works for you.

https://github.com/greguu/linux-4.4-cxx00/releases/tag/v0.3

Cheers!
Go to the top of the page
 
+Quote Post
dmarschal
post Jan 16 2016, 01:48 AM
Post #6





Group: Members
Posts: 18
Joined: 22-November 09
Member No.: 54,656



Thank you, daalnroti!
'userspace' with 312 mhz cpu clock works great!
(ondemand is unstable > can't wake up from sleep)

Screen and touch screen works fine as well. The touch screen has troubles on lower frequencies.

Again, thank you!
Go to the top of the page
 
+Quote Post
danboid
post Jan 17 2016, 11:18 AM
Post #7





Group: Members
Posts: 881
Joined: 26-December 05
From: England
Member No.: 8,789



I've still not got round to trying the 4.4.0 kernel yet but I'm happy to hear its working for others.

I did dust off my Z a few days ago to try the USB wifi adapter I bought over xmas for £4. Its marked as a 'BeeWi' but Linux identifies it as a RTL8188SU although it appears the kernel either doesn't have support for this chipset or doesn't autoload the correct module properly as I failed to bring it up although I haven't put much effort in. I do know it is supposed to work with Linux but I think I'm required to build the driver myself as an external module. I'm still running the 4.3 kernel on my Z of course but I expect I'll have similar issues with this device under 4.4. I was also not surprised that it requires being plugged into a powered hub so I'm more interested in seeing the updated libertas code make its way into a usable kernel.

Anyway, I've spent all weekend trying to build a new ALARM armv7 kernel for my BPi to get the onboard audio working so it made me wonder how long it takes daal to build these kernels for the Z? I presume you must use distcc daal but have you ever tried without?
Go to the top of the page
 
+Quote Post
greguu
post Jan 17 2016, 02:33 PM
Post #8





Group: Moderators
Posts: 374
Joined: 14-November 05
From: New Zealand
Member No.: 8,535



QUOTE(danboid @ Jan 17 2016, 08:18 PM) *
[....] it made me wonder how long it takes daal to build these kernels for the Z? I presume you must use distcc daal but have you ever tried without?


Hi danboid, I use the Pre-built crosstool-ng toolchains (x-tools) from the ArchLinux ARM website and compile Z kernels on an X86_64 ArchLinux. It takes about 30 seconds or so.
I have compiled kernels on the Z natively and with distcc, you are looking at several hours for the kernel , and a day or so for building modules, too.
Keep in mind that I am using older x-tools (gcc 4.9) as with newer gcc versions (5+) there are bugs in the Z kernel.
Cheers.
Go to the top of the page
 
+Quote Post
greguu
post Jan 19 2016, 10:41 PM
Post #9





Group: Moderators
Posts: 374
Joined: 14-November 05
From: New Zealand
Member No.: 8,535



Hi all,

bumped kernel to v0.5 https://www.oesf.org/forum/index.php?showto...st&p=282273

- added added CVE-2016-0728 patch

This patch is fixes the recent exploit found in the Linux kernel. LTS for the Z smile.gif

- added linux-fusion module (DirectFB multi application support, linux-one not included)

Linux-Fusion :
This module was added because I hope to find some time to get into compiling a DirectFB/SDL environment to run SDL apps without X in a rotated framebuffer.
I will open a new topic for this once I got the first stage done and released.

Cheers!
Go to the top of the page
 
+Quote Post
danboid
post Jan 24 2016, 01:12 PM
Post #10





Group: Members
Posts: 881
Joined: 26-December 05
From: England
Member No.: 8,789



QUOTE(daalnroti @ Jan 20 2016, 06:41 AM) *
Linux-Fusion :
This module was added because I hope to find some time to get into compiling a DirectFB/SDL environment to run SDL apps without X in a rotated framebuffer.
I will open a new topic for this once I got the first stage done and released.


Seems you've partly answered a question I just asked in another thread but I don't understand why Fusion would be needed " to run SDL apps without X in a rotated framebuffer". I thought we already had that working for SDL1/DFB apps? Maybe its a requirement to get it working for SDL2?
Go to the top of the page
 
+Quote Post
greguu
post Jan 24 2016, 02:48 PM
Post #11





Group: Moderators
Posts: 374
Joined: 14-November 05
From: New Zealand
Member No.: 8,535



QUOTE(danboid @ Jan 24 2016, 10:12 PM) *
QUOTE(daalnroti @ Jan 20 2016, 06:41 AM) *
Linux-Fusion :
This module was added because I hope to find some time to get into compiling a DirectFB/SDL environment to run SDL apps without X in a rotated framebuffer.
I will open a new topic for this once I got the first stage done and released.


Seems you've partly answered a question I just asked in another thread but I don't understand why Fusion would be needed " to run SDL apps without X in a rotated framebuffer". I thought we already had that working for SDL1/DFB apps? Maybe its a requirement to get it working for SDL2?


Post : https://www.oesf.org/forum/index.php?showto...st&p=282300
Go to the top of the page
 
+Quote Post
ArchiMark
post Sep 28 2016, 10:08 PM
Post #12





Group: Admin
Posts: 1,660
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



Hi daalnroti,

Now that OESF is back up, any news or updates to share?

Thanks,

Mark
Go to the top of the page
 
+Quote Post
greguu
post Oct 2 2016, 09:37 PM
Post #13





Group: Moderators
Posts: 374
Joined: 14-November 05
From: New Zealand
Member No.: 8,535



Hi Mark,

currently I have no plans on releasing a new 4.4 series kernel unless there is a need.

..but Kernel 4.8 was released today!

Hopefully I find some spare time and I will work on a possible new release for C3x00 series based on 4.8 and a new rootfs tarball this year.

Cheers!


QUOTE(ArchiMark @ Sep 29 2016, 07:08 AM) *
Hi daalnroti,

Now that OESF is back up, any news or updates to share?

Thanks,

Mark
Go to the top of the page
 
+Quote Post
ArchiMark
post Oct 3 2016, 06:38 AM
Post #14





Group: Admin
Posts: 1,660
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



Sounds good, daalnroti....

Glad you are still around!

Mark
Go to the top of the page
 
+Quote Post
ArchiMark
post Oct 9 2016, 10:33 AM
Post #15





Group: Admin
Posts: 1,660
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



Hi again,

Where is your new Kernel 4.8 located?

Thanks.
Go to the top of the page
 
+Quote Post

3 Pages V   1 2 3 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 13th December 2019 - 09:32 PM