Author Topic: Linux Kernel 4.9-rc3  (Read 10909 times)

greguu

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 433
    • View Profile
    • http://github.com/greguu
Linux Kernel 4.9-rc3
« on: October 30, 2016, 08:34:14 pm »
Linux Kernel 4.9-rc3

Download here : https://github.com/greguu/linux-4.9-rc3-c3x...leases/tag/v0.2

Code: [Select]
Experimental Kernel for Sharp Zaurus C3x00 series
-------------------------------------------------

-       boot.cfg is example only for use with kexecboot.
        You will need to adjust your root= accordingly

-       The is an experimental release. Please post issues or suggestions on OESF.org/forum


v0.2 Change Log

-       Set USB power level to 180mA (not sure this actually works)

-       Reverted PCMCIA regulator additions by moving soc_common.c/h to 4.6.7 version

v0.1 Change Log

-       SPI PXA2xx driver was reverted to 4.6.7 version

-       IPV6, ALSA and some filesystems are modules again instead of compiled into the kernel

-       F2FS was added

-       SECCOMP enabled as required by systemd

-       Online charging may work again. This needs some testing.
        Replug the power cord after a boot brings the charging LED on

Cheers!
« Last Edit: November 01, 2016, 02:12:33 am 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)

Varti

  • Administrator
  • Hero Member
  • *****
  • Posts: 1266
    • View Profile
Linux Kernel 4.9-rc3
« Reply #1 on: October 31, 2016, 04:33:18 am »
Well done! Glad that at the end you have managed to fix that FB problem.

Varti
Planet Gemini PDA WiFi/LTE with Mediatek x27
SL-C1000 running Arch Linux ARM May2017, K30225 Wi-Fi CF Card, 64GB SDXC card
and many other Zauruses!

p0c

  • Newbie
  • *
  • Posts: 3
    • View Profile
Linux Kernel 4.9-rc3
« Reply #2 on: October 31, 2016, 02:25:04 pm »
After having my Zaurus dust away for years I refound this forum again - totally stoked to see there's still ongoing community development! Thanks to all you guys, I hope to give something back myself these coming months. I was thinking of writing some blog posts or so

So far no issues running your updated kernel, apart from the following maybe not specific to your kernel:

- My CF port seems to work when I have a device in the port at boot, but otherwise it doesn't register anything (no kernel logging at least). Any clue as to why? Am I failing to load some kernel module?
Edit: For some reason nothing gets logged, but the device does register events. Compiled pcmciautils (seems not to be part of the standard kernel anymore) which allowed me to "insert" my wireless CF card.
- Kexecboot first searches all devices for kernels / boot.cfgs. This takes about 2 minutes, and slows down the booting significantly. Is there a way to just specify that it should boot from the first HD partitions rather than checking everything?
- Upon inserting my wireless USB dongle I get the following warning: usb 1-2: rejected 1 configuration due to insufficient available bus power. I overrode the safety mechanism: /sys/bus/usb/devices/usb1-2/bConfigurationValue which puts the interface up, but it seems to go down when trying to scan for networks. Any idea? Dongle is a Realtek RTL8192CU. Is the Zaurus just not powerful enough?
- Haven't looked into the keymap yet to see what's wrong, but I noticed that capital c "C" doesn't work.
Edit: Actually a lot of keys seems to be mapped wrong. I will try to fix this and provide an updated keymap.

Any Wifi dongle / CF card that you can recommend? I have an old Planex GW-CF11X which makes my zaurus kernel panic and requires loading firmware each time I want to use it.. I'm also considering doing the harddrive upgrade!

Warm greetings!
« Last Edit: October 31, 2016, 05:04:30 pm by p0c »

greguu

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 433
    • View Profile
    • http://github.com/greguu
Linux Kernel 4.9-rc3
« Reply #3 on: October 31, 2016, 05:18:31 pm »
Quote from: p0c
After having my Zaurus dust away for years I refound this forum again - totally stoked to see there's still ongoing community development! Thanks to all you guys, I hope to give something back myself these coming months. I was thinking of writing some blog posts or so

So far no issues running your updated kernel, apart from the following maybe not specific to your kernel:

- My CF port seems to work when I have a device in the port at boot, but otherwise it doesn't register anything (no kernel logging at least). Any clue as to why? Am I failing to load some kernel module?
Edit: For some reason nothing gets logged, but the device does register events. Compiled pcmciautils (seems not to be part of the standard kernel anymore) which allowed me to "insert" my wireless CF card.
- Kexecboot first searches all devices for kernels / boot.cfgs. This takes about 2 minutes, and slows down the booting significantly. Is there a way to just specify that it should boot from the first HD partitions rather than checking everything?
- Upon inserting my wireless USB dongle I get the following warning: usb 1-2: rejected 1 configuration due to insufficient available bus power. I overrode the safety mechanism: /sys/bus/usb/devices/usb1-2/bConfigurationValue which puts the interface up, but it seems to go down when trying to scan for networks. Any idea? Dongle is a Realtek RTL8192CU. Is the Zaurus just not powerful enough?
- Haven't looked into the keymap yet to see what's wrong, but I noticed that capital c "C" doesn't work.
Edit: Actually a lot of keys seems to be mapped wrong. I will try to fix this and provide an updated keymap.

Any Wifi dongle / CF card that you can recommend? I have an old Planex GW-CF11X which makes my zaurus kernel panic and requires loading firmware each time I want to use it.. I'm also considering doing the harddrive upgrade!

Warm greetings!

Hi p0c,

- In regards to the CF Card issue. I can confirm that the CF card does not get registered if not inserted at boot. Something to have a look at.

- The USB port does only supply 150mA, it can be tweaked to 180mA but may be unstable. The RTL8192CU works with powered HUB only I believe.

- Keymap should be loaded correctly at boot. Check vconsole.conf and make sure the keymap exists. There is a borzoi.gz that should fit all Cxx00 series ?

- Kexecboot delay. What Zaurus are you using and what version of Kexecboot ?

- CF WiFi some Ambicom and Dlink seem to be working fine.

Cheers!
« Last Edit: October 31, 2016, 05:18:55 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)

greguu

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 433
    • View Profile
    • http://github.com/greguu
Linux Kernel 4.9-rc3
« Reply #4 on: November 01, 2016, 02:16:55 am »
Please test the kernel 4.9-rc3-v0.2 release : https://github.com/greguu/linux-4.9-rc3-c3x...x00-v0.2.tar.xz

- USB power now 180mA (I do not know if that makes your RealTek USB WiFi work. My ASUS N10 Nano requires a powered USB hub.)

- Changed PCMCIA soc_common.c driver back to 4.6.7 version as newly added regulator support may be the cause. Tested fine. Please test, too.

NOTE : If you upgrade to the new kernel from 4.9-rc3-v0.1 you just need to replace the zImage as no modules were updated in this bugfix release.
« Last Edit: November 01, 2016, 02:18:32 am 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)

p0c

  • Newbie
  • *
  • Posts: 3
    • View Profile
Linux Kernel 4.9-rc3
« Reply #5 on: November 03, 2016, 01:34:03 pm »
Quote
Please test the kernel 4.9-rc3-v0.2 release : https://github.com/greguu/linux-4.9-rc3-c3x...x00-v0.2.tar.xz
Have been testing now for a few days and did some cross compilation. I'm thinking of setting up a repository with all the packages, but I'm not sure if anyone else has any interest in the software I've added. So far no issues detected!

Quote
- USB power now 180mA (I do not know if that makes your RealTek USB WiFi work. My ASUS N10 Nano requires a powered USB hub.)
Unfortunately it didn't. I bought a Edimax nano USB adapter which supposedly has a very low draw, but the same happened. lsusb -v shows me a max powerdraw of 500 mA, so that's probably overkill. The CF cards you mentioned are very expensive, guess I have to consider those. My Planex card is horrible since it needs FW loading each time upon inserting.

Quote
- Changed PCMCIA soc_common.c driver back to 4.6.7 version as newly added regulator support may be the cause. Tested fine. Please test, too.
Works now!

Varti

  • Administrator
  • Hero Member
  • *****
  • Posts: 1266
    • View Profile
Linux Kernel 4.9-rc3
« Reply #6 on: November 03, 2016, 01:45:06 pm »
Quote from: p0c
After having my Zaurus dust away for years I refound this forum again - totally stoked to see there's still ongoing community development! Thanks to all you guys, I hope to give something back myself these coming months. I was thinking of writing some blog posts or so
Looking forward for your blog posts. I have opened a thread to share all the recent Zaurus related blogs and webpages I find during my web searches, I can add your blog there: https://www.oesf.org/forum/index.php?showtopic=34461

Quote
Have been testing now for a few days and did some cross compilation. I'm thinking of setting up a repository with all the packages, but I'm not sure if anyone else has any interest in the software I've added. So far no issues detected!
Please do, there are a few Alarmz users here that might be interested in some of your ports!

Varti
Planet Gemini PDA WiFi/LTE with Mediatek x27
SL-C1000 running Arch Linux ARM May2017, K30225 Wi-Fi CF Card, 64GB SDXC card
and many other Zauruses!

NORI

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • http://
Linux Kernel 4.9-rc3
« Reply #7 on: November 03, 2016, 08:36:57 pm »


Dear Greguu,

Thank you.
I tried the new kernel on my C3100, and successfully have boot.
Also thank you for the new rootfs.
I installed and now 'pacman -Syu' works.
I also installed xfce4 and saw the same problem discussed here 1 year ago. The x server displays 480x640 rotated, and the keymap is not good. Though zaurus memory is limited, I think X is favored from user's point of view. I'lll check the X configuration.

I briefly checked the battery indicator LED(orange), and it seems to change according to charging status.


 
Quote from: greguu
Linux Kernel 4.9-rc3

Download here : https://github.com/greguu/linux-4.9-rc3-c3x...leases/tag/v0.2

Code: [Select]
Experimental Kernel for Sharp Zaurus C3x00 series
-------------------------------------------------

-       boot.cfg is example only for use with kexecboot.
        You will need to adjust your root= accordingly

-       The is an experimental release. Please post issues or suggestions on OESF.org/forum


v0.2 Change Log

-       Set USB power level to 180mA (not sure this actually works)

-       Reverted PCMCIA regulator additions by moving soc_common.c/h to 4.6.7 version

v0.1 Change Log

-       SPI PXA2xx driver was reverted to 4.6.7 version

-       IPV6, ALSA and some filesystems are modules again instead of compiled into the kernel

-       F2FS was added

-       SECCOMP enabled as required by systemd

-       Online charging may work again. This needs some testing.
        Replug the power cord after a boot brings the charging LED on

Cheers!
Zaurus SL-C3000@ALARM, Qtopia, Zaurus SL-C3100@Qtopia, Fujitsu FMV-LOOX U/G90@Win7, iMac 2010@macOS, Thinkpad T400@Win10

greguu

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 433
    • View Profile
    • http://github.com/greguu
Linux Kernel 4.9-rc3
« Reply #8 on: November 04, 2016, 12:33:42 am »
Quote from: NORI

Dear Greguu,

Thank you.
I tried the new kernel on my C3100, and successfully have boot.
Also thank you for the new rootfs.
I installed and now 'pacman -Syu' works.
I also installed xfce4 and saw the same problem discussed here 1 year ago. The x server displays 480x640 rotated, and the keymap is not good. Though zaurus memory is limited, I think X is favored from user's point of view. I'lll check the X configuration.

I briefly checked the battery indicator LED(orange), and it seems to change according to charging status.

Hi NORI,

thanks for the feedback. Happy to have more users.

Xorg and keymap : https://www.oesf.org/forum/index.php?showto...st&p=282236
Xorg rotation : https://www.oesf.org/forum/index.php?showto...st&p=282112
Xorg and touchscreen  : https://www.oesf.org/forum/index.php?showto...st&p=282202

Try flubox or similiar. They are faster than XFCE.

Cheers!
« Last Edit: November 04, 2016, 12:34:46 am 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)

greguu

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 433
    • View Profile
    • http://github.com/greguu
Linux Kernel 4.9-rc3
« Reply #9 on: November 04, 2016, 12:40:03 am »
Quote from: p0c
Quote
Please test the kernel 4.9-rc3-v0.2 release : https://github.com/greguu/linux-4.9-rc3-c3x...x00-v0.2.tar.xz
Have been testing now for a few days and did some cross compilation. I'm thinking of setting up a repository with all the packages, but I'm not sure if anyone else has any interest in the software I've added. So far no issues detected!

Quote
- USB power now 180mA (I do not know if that makes your RealTek USB WiFi work. My ASUS N10 Nano requires a powered USB hub.)
Unfortunately it didn't. I bought a Edimax nano USB adapter which supposedly has a very low draw, but the same happened. lsusb -v shows me a max powerdraw of 500 mA, so that's probably overkill. The CF cards you mentioned are very expensive, guess I have to consider those. My Planex card is horrible since it needs FW loading each time upon inserting.

Quote
- Changed PCMCIA soc_common.c driver back to 4.6.7 version as newly added regulator support may be the cause. Tested fine. Please test, too.
Works now!

Hi p0c,

sure, share your packages. What did you compile ? Just start a new thread about custom packages and tell us all about it.

I was thinking about creating a github wiki page and users can contribute to that. How-To's etc.

You can also share your packages via github and your PKGBUILD files. You got a github account ?

Yes, USB power is a limitation. There was a hack for the C1000 I think that tapped the power from the unused CF slot. I can not find the link.

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)

NORI

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • http://
Linux Kernel 4.9-rc3
« Reply #10 on: November 04, 2016, 06:19:23 pm »
Hi Greguu,

Thank you for replying me.

I used the Xmodmap you indicated, and noticed that Fn+'-'->'@', Fn+'/'->'<', Fn+'.'->'>' key combination does not work.
I added Fn+'c'-> @, Fn+'n'-> '<', Fn+'m' -> '>' lines to the Xmodmap, attached.
Hoping this helps somebody.

NORI,

Quote from: greguu
Hi NORI,

thanks for the feedback. Happy to have more users.

Xorg and keymap : https://www.oesf.org/forum/index.php?showto...st&p=282236
Xorg rotation : https://www.oesf.org/forum/index.php?showto...st&p=282112
Xorg and touchscreen  : https://www.oesf.org/forum/index.php?showto...st&p=282202

Try flubox or similiar. They are faster than XFCE.

Cheers!
Zaurus SL-C3000@ALARM, Qtopia, Zaurus SL-C3100@Qtopia, Fujitsu FMV-LOOX U/G90@Win7, iMac 2010@macOS, Thinkpad T400@Win10

greguu

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 433
    • View Profile
    • http://github.com/greguu
Linux Kernel 4.9-rc3
« Reply #11 on: November 05, 2016, 11:38:18 pm »
Quote from: NORI
Hi Greguu,

Thank you for replying me.

I used the Xmodmap you indicated, and noticed that Fn+'-'->'@', Fn+'/'->'<', Fn+'.'->'>' key combination does not work.
I added Fn+'c'-> @, Fn+'n'-> '<', Fn+'m' -> '>' lines to the Xmodmap, attached.
Hoping this helps somebody.

NORI,

Quote from: greguu
Hi NORI,

thanks for the feedback. Happy to have more users.

Xorg and keymap : https://www.oesf.org/forum/index.php?showto...st&p=282236
Xorg rotation : https://www.oesf.org/forum/index.php?showto...st&p=282112
Xorg and touchscreen  : https://www.oesf.org/forum/index.php?showto...st&p=282202

Try flubox or similiar. They are faster than XFCE.

Cheers!

Great! Thanks.
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)

NORI

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • http://
Linux Kernel 4.9-rc3
« Reply #12 on: November 11, 2016, 05:56:13 am »
My status I'd like to report.

I'm running the new kernel and rootfs on C3000, thanks to Greguu.

I hustled X for some time, and found current X is too demanding to Zaurus.

I'm now comfortable with Emacs in fbcon. I used fbterm and uim-fep to enable Japanese input and output. W3m is used for web-browsing. Networking I'm using is Planex USB ethernet dongle.

Next, I wanted to self-compile various packages including kernel, but again it is demanding too.

Woom, it was casual to develop software on Zaurus on Qtopia. (I heard so. I am new to Zaurus since this April.) There still remains many old software on the Internet around. Almost all of them stops update since around 2009... Linux system have grown up to huge from those days. I once hastled with linux on PowerPC Macintoshes.

My aim is to study the (self-) software builds on the fly, and finally to write a new program myself everywhere. Before all, I must catch up the Arch system. I installed Arch into my laptop and am looking around how Arch world be.

Regards,
NORI,
Zaurus SL-C3000@ALARM, Qtopia, Zaurus SL-C3100@Qtopia, Fujitsu FMV-LOOX U/G90@Win7, iMac 2010@macOS, Thinkpad T400@Win10

greguu

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 433
    • View Profile
    • http://github.com/greguu
Linux Kernel 4.9-rc3
« Reply #13 on: November 11, 2016, 11:41:54 pm »
Quote from: greguu
Quote from: NORI
My status I'd like to report.

I'm running the new kernel and rootfs on C3000, thanks to Greguu.

I hustled X for some time, and found current X is too demanding to Zaurus.

I'm now comfortable with Emacs in fbcon. I used fbterm and uim-fep to enable Japanese input and output. W3m is used for web-browsing. Networking I'm using is Planex USB ethernet dongle.

Next, I wanted to self-compile various packages including kernel, but again it is demanding too.

Woom, it was casual to develop software on Zaurus on Qtopia. (I heard so. I am new to Zaurus since this April.) There still remains many old software on the Internet around. Almost all of them stops update since around 2009... Linux system have grown up to huge from those days. I once hastled with linux on PowerPC Macintoshes.

My aim is to study the (self-) software builds on the fly, and finally to write a new program myself everywhere. Before all, I must catch up the Arch system. I installed Arch into my laptop and am looking around how Arch world be.

Regards,
NORI,

Hi NORI,

thanks for your feedback. Arch gives you a lot of flexibility and has most packages compiled already.

You can use the AUR  https://aur.archlinux.org/ on your Zaurus to compile missing packages, also look at ABS (Arch Build System) https://wiki.archlinux.org/index.php/Arch_Build_System

Yes, Xorg is not really usable on the Zaurus anymore. You can make it work using dwm, awesome or other lightweight minimal window managers, but running firefox or chrome is out of the question. Netsurf browser may be ok on Xorg?

If you want to compile a kernel, use the ArchLinuxARM toolchain from their website and install it on a ArchLinux x86 computer. You can then compile your kernel without using the Zaurus. Get the source from my github.

You can compile native on the Zaurus using ArchLinux ARM but you will need a 128-256M swap partition and make sure you compile with "make -j1" only. Depending on the source, it will take some time, hours or days.

Also look a the cross compile guide on ArchLinuxARM, you can set it up so that the zaurus does only post processing and the x86 the actual compilation. This helps a lot !
https://archlinuxarm.org/wiki/Distcc_Cross-Compiling


If you like to save some memory and work in console only, check my recent post about using minirc and busybox for init instead of systemd. https://www.oesf.org/forum/index.php?showtopic=34484


mata ne!
« Last Edit: November 12, 2016, 01:38:15 am 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)

HRH_H_Crab

  • Newbie
  • *
  • Posts: 38
    • View Profile
Linux Kernel 4.9-rc3
« Reply #14 on: April 16, 2017, 05:14:45 pm »
I got a forum account that still works, and a couple of Zaurus' with kexecboot and fairly recent (4.0+) Kernels. I'll try and get one of them running with this if I can and will report back...