Author Topic: Linux Kernel 4.4.0  (Read 22684 times)

greguu

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 455
    • View Profile
    • http://github.com/greguu
Linux Kernel 4.4.0
« on: January 12, 2016, 04:12:03 am »
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: [Select]
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!
« Last Edit: October 30, 2016, 08:33:45 pm by greguu »
Gemini-PDA (Sailfish X and Android) / LG Nexus 5 (Android 11) / Nokia N9 (MeeGo/Harmattan)
Sharp Zaurus C3100 (Borzoi) - Void Linux (voidz) Kernel 5.0.0 - Hardware (Buffalo CF LAN, DLink 660 CF WiFi, ASIX AX88772 USB Ethernet)

dmarschal

  • Newbie
  • *
  • Posts: 18
    • View Profile
Linux Kernel 4.4.0
« Reply #1 on: January 14, 2016, 01:43:05 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: [Select]
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,

greguu

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 455
    • View Profile
    • http://github.com/greguu
Linux Kernel 4.4.0
« Reply #2 on: January 14, 2016, 06:26:48 pm »
Quote from: dmarschal
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: [Select]
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!
Gemini-PDA (Sailfish X and Android) / LG Nexus 5 (Android 11) / Nokia N9 (MeeGo/Harmattan)
Sharp Zaurus C3100 (Borzoi) - Void Linux (voidz) Kernel 5.0.0 - Hardware (Buffalo CF LAN, DLink 660 CF WiFi, ASIX AX88772 USB Ethernet)

dmarschal

  • Newbie
  • *
  • Posts: 18
    • View Profile
Linux Kernel 4.4.0
« Reply #3 on: January 15, 2016, 01:43:07 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.

greguu

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 455
    • View Profile
    • http://github.com/greguu
Linux Kernel 4.4.0
« Reply #4 on: January 15, 2016, 06:02:38 pm »
Quote from: dmarschal
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!
Gemini-PDA (Sailfish X and Android) / LG Nexus 5 (Android 11) / Nokia N9 (MeeGo/Harmattan)
Sharp Zaurus C3100 (Borzoi) - Void Linux (voidz) Kernel 5.0.0 - Hardware (Buffalo CF LAN, DLink 660 CF WiFi, ASIX AX88772 USB Ethernet)

dmarschal

  • Newbie
  • *
  • Posts: 18
    • View Profile
Linux Kernel 4.4.0
« Reply #5 on: January 16, 2016, 04:48:01 am »
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!

danboid

  • Hero Member
  • *****
  • Posts: 881
    • View Profile
    • http://
Linux Kernel 4.4.0
« Reply #6 on: January 17, 2016, 02:18:23 pm »
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?
« Last Edit: January 17, 2016, 02:21:09 pm by danboid »
Zaurus SL-C3000 w/ MD swapped for a Kingston 32GB Ultimate 266X CF running ALARM
Banana Pi running ALARM on a WD Scorpio SATA II HD
System76 Gazelle Pro i7 laptop w/ SAMSUNG 840 EVO SSD running Arch x64

How to install Arch on your C3x00 Zaurus https://github.com/danboid/ZALARM-install

greguu

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 455
    • View Profile
    • http://github.com/greguu
Linux Kernel 4.4.0
« Reply #7 on: January 17, 2016, 05:33:26 pm »
Quote from: danboid
[....] 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.
« Last Edit: January 17, 2016, 05:39:03 pm by daalnroti »
Gemini-PDA (Sailfish X and Android) / LG Nexus 5 (Android 11) / Nokia N9 (MeeGo/Harmattan)
Sharp Zaurus C3100 (Borzoi) - Void Linux (voidz) Kernel 5.0.0 - Hardware (Buffalo CF LAN, DLink 660 CF WiFi, ASIX AX88772 USB Ethernet)

greguu

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 455
    • View Profile
    • http://github.com/greguu
Linux Kernel 4.4.0
« Reply #8 on: January 20, 2016, 01:41:26 am »
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

- 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!
« Last Edit: January 20, 2016, 01:42:05 am by daalnroti »
Gemini-PDA (Sailfish X and Android) / LG Nexus 5 (Android 11) / Nokia N9 (MeeGo/Harmattan)
Sharp Zaurus C3100 (Borzoi) - Void Linux (voidz) Kernel 5.0.0 - Hardware (Buffalo CF LAN, DLink 660 CF WiFi, ASIX AX88772 USB Ethernet)

danboid

  • Hero Member
  • *****
  • Posts: 881
    • View Profile
    • http://
Linux Kernel 4.4.0
« Reply #9 on: January 24, 2016, 04:12:52 pm »
Quote from: daalnroti
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?
« Last Edit: January 24, 2016, 04:13:22 pm by danboid »
Zaurus SL-C3000 w/ MD swapped for a Kingston 32GB Ultimate 266X CF running ALARM
Banana Pi running ALARM on a WD Scorpio SATA II HD
System76 Gazelle Pro i7 laptop w/ SAMSUNG 840 EVO SSD running Arch x64

How to install Arch on your C3x00 Zaurus https://github.com/danboid/ZALARM-install

greguu

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 455
    • View Profile
    • http://github.com/greguu
Linux Kernel 4.4.0
« Reply #10 on: January 24, 2016, 05:48:42 pm »
Quote from: danboid
Quote from: daalnroti
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
Gemini-PDA (Sailfish X and Android) / LG Nexus 5 (Android 11) / Nokia N9 (MeeGo/Harmattan)
Sharp Zaurus C3100 (Borzoi) - Void Linux (voidz) Kernel 5.0.0 - Hardware (Buffalo CF LAN, DLink 660 CF WiFi, ASIX AX88772 USB Ethernet)

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Linux Kernel 4.4.0
« Reply #11 on: September 29, 2016, 02:08:50 am »
Hi daalnroti,

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

Thanks,

Mark
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

greguu

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 455
    • View Profile
    • http://github.com/greguu
Linux Kernel 4.4.0
« Reply #12 on: October 03, 2016, 01:37:39 am »
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 from: ArchiMark
Hi daalnroti,

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

Thanks,

Mark
Gemini-PDA (Sailfish X and Android) / LG Nexus 5 (Android 11) / Nokia N9 (MeeGo/Harmattan)
Sharp Zaurus C3100 (Borzoi) - Void Linux (voidz) Kernel 5.0.0 - Hardware (Buffalo CF LAN, DLink 660 CF WiFi, ASIX AX88772 USB Ethernet)

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Linux Kernel 4.4.0
« Reply #13 on: October 03, 2016, 10:38:04 am »
Sounds good, daalnroti....

Glad you are still around!

Mark
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Linux Kernel 4.4.0
« Reply #14 on: October 09, 2016, 02:33:57 pm »
Hi again,

Where is your new Kernel 4.8 located?

Thanks.
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/