Author Topic: Archlinuxarm On C3x00  (Read 148644 times)

danboid

  • Hero Member
  • *****
  • Posts: 881
    • View Profile
    • http://
Archlinuxarm On C3x00
« Reply #150 on: October 16, 2015, 12:02:51 pm »
I've not installed the new kernel yet but I hope to do that shortly.

Instead, I've spent all day trying to get distcc to work - mainly to try building advancemame. AM configures fine but doesn't get very far into building on my unassisted C3K so it pushed me into giving distcc a go.

I followed the guides on the ALARM site for setting up the building of Arch PKGBUILDs using distcc:

http://archlinuxarm.org/developers/distributed-compiling

http://archlinuxarm.org/developers/distcc-cross-compiling

I've got it configured as that guide describes using the ARM5 x-tools tarball (instead of building the x-tools myself) but I when I try building AM with makepkg/distcc I end up  with errors like:

Code: [Select]
distcc ERROR: compile foo.c on xxx.xxx.xxx.xxx failed with exit code 110
Exit code 110 apparently means distcc isn't finding the x compiler but I've triple checked the PATH in /etc/conf.d/distccd and I've tried exporting it with both PATH= and DISTCCD_PATH= but I still get exit code 110.

I think you said you've got distcc working didn't you daalnroti? Have you got any tips for getting it to work? Have you tried building advancemame using distcc already?
« Last Edit: October 16, 2015, 12:24:32 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

danboid

  • Hero Member
  • *****
  • Posts: 881
    • View Profile
    • http://
Archlinuxarm On C3x00
« Reply #151 on: October 16, 2015, 03:41:58 pm »
I've installed 4.2.3 now. I've connected to wifi with both netctl and NetworkManager but both give me the same TX errors as before when I try using pacman. I can ping the Google DNS servers fine, for all thats worth.

Also like 3.11.3 I am unable to use iw or iwconfig to adjust the rate, I'm just told doing so is unsupported.
« Last Edit: October 16, 2015, 03:43:23 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

danboid

  • Hero Member
  • *****
  • Posts: 881
    • View Profile
    • http://
Archlinuxarm On C3x00
« Reply #152 on: October 16, 2015, 04:26:49 pm »
I have tried connecting to an unprotected/uncrypted wifi connection now. The TX lockups don't happen as quickly without it but they still show up before I get to finish doing a pacman -Syu so its not wpa_supplicant that's at fault.
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

danboid

  • Hero Member
  • *****
  • Posts: 881
    • View Profile
    • http://
Archlinuxarm On C3x00
« Reply #153 on: October 16, 2015, 05:30:32 pm »
Although the new kernel doesn't seem to have helped my wifi prob much, I was pleasantly surprised by how much faster Arch boots now. 3.11.3 takes about 39s to boot compared to 27s for 4.2!!

Such a great speedup was a totally unexpected surprise.
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

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Archlinuxarm On C3x00
« Reply #154 on: October 16, 2015, 05:32:44 pm »
Quote from: danboid
Although the new kernel doesn't seem to have helped my wifi prob much, I was pleasantly surprised by how much faster Arch boots now. 3.11.3 takes about 39s to boot compared to 27s for 4.2!!

Such a great speedup was a totally unexpected surprise.

Sounds good.....

As I wasn't able to do the install yet, but hope to do so this evening, I will try the new kernel too....

 
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/

danboid

  • Hero Member
  • *****
  • Posts: 881
    • View Profile
    • http://
Archlinuxarm On C3x00
« Reply #155 on: October 16, 2015, 05:45:18 pm »
For reference, here are my previous benchmarks:

Kingston 32GB Ultimate 266X ext4 on 3.11.3:

kexec menu to login prompt boot time: 39s

hdparm -Tt /dev/sda

cached reads: 51.78 MB/s
buffered disk reads: 2.56 MB/s

hdparm -Tt --direct /dev/sda

cached reads: 2.06 MB/s
disk reads: 2.07 MB/s

sync;time bash -c "(dd if=/dev/zero of=bf bs=8k count=25000; sync)"

2.4MB/s (write speed)
1m 29s real

...and the new

Kingston 32GB Ultimate 266X ext4 on 4.2.3:

kexec menu to login prompt boot time: 27s

hdparm -Tt /dev/sda

cached reads: 65.57 MB/s
buffered disk reads: 3.63 MB/s

hdparm -Tt --direct /dev/sda

cached reads: 2.62 MB/s
disk reads: 2.62 MB/s

sync;time bash -c "(dd if=/dev/zero of=bf bs=8k count=25000; sync)"

3.0MB/s (write speed)
1m 11s real

Significant gains I'd say! The HDD LED doesn't work for me though, as daal said it might not.
« Last Edit: October 16, 2015, 05:46:03 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
Archlinuxarm On C3x00
« Reply #156 on: October 16, 2015, 10:25:10 pm »
Hi danboid,

DISTCC:

example /etc/conf.d/distccd

Code: [Select]
PATH=/usr/local/x-tools/arm-unknown-linux-gnueabi/bin:$PATH
DISTCC_ARGS="--user nobody --allow 10.10.10.0/24 --port 3632"
DISTCCD_OPTS=" -j4"

also make sure you got the correct symlinks in arm-unknown-linux-gnueabi/bin and right permissions for the user running distccd.

WIFI:

this is odd and could be related to the firmware. I read somewhere there are tools for libertas to extract the firmware somehow.
I think I had debug enabled for the libertas driver in 4.2.3. Did you get more specific output / error messages ?

KERNEL :

good to hear it is working I had no time testing it yet.  I will add the hdd led and some other patches and make a new release.

Cheers
« Last Edit: October 16, 2015, 10:25:33 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)

danboid

  • Hero Member
  • *****
  • Posts: 881
    • View Profile
    • http://
Archlinuxarm On C3x00
« Reply #157 on: October 17, 2015, 02:41:25 pm »
I'll give distcc another go tomorrow probably. As for its -j switch, how does that work with cores/threads? For example, if I'm just using disctcc with just the master (the Z) and 1 client that is a quad core (or octacore w/ HT) CPU then what do I set -j to? 3, 6 or 10?

The Linux wireless docs mention extracting the libertas firmware but I've not been able to find a working link to the  source required to do this.

How do I enable VT switching? I could do with setting up  a keybinding to page up/down through the console output too. I prefer that to using less or more.

I've tried a few (SDL) emus but none have worked outside of X yet and seeing as I've not put any effort into configuring X yet I can't use them anyway. I don't think we're going to get passable framerates at VGA res or under X anyway so I'm hoping to get advancemame, VBA etc running under QVGA (320x240) SDL using the framebuffer. Would you know if this is possible with the SDL from the Arch repos of if'll we'll need to build a custom SDL to get QVGA working? What would you use to test SDL QVGA FB output?

I know pdaXii13's SDL could manage QVGA under the console but I've not been able to find the source and the zgrom author hasn't responded to my enquiry about his distros SDL.

Thanks
« Last Edit: October 17, 2015, 04:17:31 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
Archlinuxarm On C3x00
« Reply #158 on: October 17, 2015, 08:27:17 pm »
Quote from: danboid
I'll give distcc another go tomorrow probably. As for its -j switch, how does that work with cores/threads? For example, if I'm just using disctcc with just the master (the Z) and 1 client that is a quad core (or octacore w/ HT) CPU then what do I set -j to? 3, 6 or 10?

The Linux wireless docs mention extracting the libertas firmware but I've not been able to find a working link to the  source required to do this.

How do I enable VT switching? I could do with setting up  a keybinding to page up/down through the console output too. I prefer that to using less or more.

I've tried a few (SDL) emus but none have worked outside of X yet and seeing as I've not put any effort into configuring X yet I can't use them anyway. I don't think we're going to get passable framerates at VGA res or under X anyway so I'm hoping to get advancemame, VBA etc running under QVGA (320x240) SDL using the framebuffer. Would you know if this is possible with the SDL from the Arch repos of if'll we'll need to build a custom SDL to get QVGA working? What would you use to test SDL QVGA FB output?

I know pdaXii13's SDL could manage QVGA under the console but I've not been able to find the source and the zgrom author hasn't responded to my enquiry about his distros SDL.

Thanks

Hi danboid.

QVGA in console : first install fbset : "pacman -S fbset" and create a new file fb.modes with contents shown below :

/etc/fb.modes

Code: [Select]
mode "qvga"
    # D: 7.428 MHz, H: 22.787 kHz, V: 70,547 Hz
    geometry 240 320 240 320 16
    timings 134617 20 46 1 0 20 2
    accel true
endmode

mode "vga"
    # D: 51.991 MHz, H: 75,252 kHz, V: 116,851 Hz
    geometry 480 640 480 640 16
    timings 19231 46 125 1 0 40 3
    accel true
endmode

after this you should be able to switch to QVGA in the console by using "fbset qvga" and back with "fbset vga"

SDL : to get QVGA in SDL you need SDL with a fbcon or/and directfb backend compiled in. I used to compile my SDL from source under debian to get that functionality. Arch may have directfb and fbcon support already enabled. You will need to set SDL_VIDEODRIVER=fbcon and SDL_VIDEO_FBCON_ROTATION=CW before starting the SDL application in the console.  Advancedmame may have inbuilt rotation that is faster than the software SDL/FBCON rotation. Some  emulators use rotated "blitting" that is much faster. I have no experience with AdvancedMame but I compiled the game "Flashback" for the Z to run in pure console with SDL fine. I also got "Decent" working but had issues with mouse support under console.

DISTCC :  You need to set DISTCC_HOSTS="yourfastcomputer/4" then it will accept 4 threads at the same time. Keep in mind the Z will do all the preprocessing and I had issues with more than 2 preprocessors running on the Z and big compiles. The Z would run out of memory. I suggest to do -j2 to be safe, but you can try higher. You will notice the fast computer will wait a lot for the Z to preprocess and then compile the file. That waiting makes it slow, but still faster than on the Z alone. There exists now a "pump mode" for distcc, so all compilation is done on the hosts. However I have not used this as this mode can cause issues.


VT Switching :
under my console keymap it is "Fn" + Left / Right to change a VT. I use "screen" alot when working in the console and all F keys work by using Fn+Number. Also scrolling in console content within  "screen" works. To enter screen copy mode press CTRL-a and then ESC (Cancel).

Firmware : You may have luck posting on the libertas mailing list or find a freenode channel and ask the developers about your issue. Extracting the firmware might be something worth trying.

Xorg Keymap : I have not found my keymaps for Xorg, but must have some from Debian somewhere. pdaxrom and debian used Xfbdev a simple minimal X server and not full Xorg. I am sure you find some keymap files in a pdaxrom image ?
« Last Edit: October 17, 2015, 10:08:09 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
Archlinuxarm On C3x00
« Reply #159 on: October 18, 2015, 04:19:16 am »
Linux 4.2.3 Kernel update : Linux 4.2.3-c3x00 v0.2

ArchLinuxARM minimal rootfs tar ball for SD/CF cards. : Minimal rootfs October 2015
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://
Archlinuxarm On C3x00
« Reply #160 on: October 18, 2015, 04:50:15 am »
Excellent!

Thanks for your many tips! I'll get the updated kernel and kexec installed today and try to make some progress with my other issues and let you know how far I get.

I used to have Flashback on the Amiga and it'd be great to have Descent running on the Z so I may give that a shot too.

I bet you're thinking yourself lucky you only have one user to support so far!

Mark:

Have you still not got it to boot?
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

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Archlinuxarm On C3x00
« Reply #161 on: October 18, 2015, 01:25:59 pm »
Quote from: daalnroti
Linux 4.2.3 Kernel update : Linux 4.2.3-c3x00 v0.2

ArchLinuxARM minimal rootfs tar ball for SD/CF cards. : Minimal rootfs October 2015


Sounds great.....

Is the tarball in a format that can be uncompressed on the Z or still need another computer?

Quote from: danboid
Excellent!

Thanks for your many tips! I'll get the updated kernel and kexec installed today and try to make some progress with my other issues and let you know how far I get.

I used to have Flashback on the Amiga and it'd be great to have Descent running on the Z so I may give that a shot too.

I bet you're thinking yourself lucky you only have one user to support so far!

Mark:

Have you still not got it to boot?

Unfortunately, I was super busy with work the past week.....got as far as reflashing Z with the Arch-kexecboot.....

And it might be a few more days before I get time for this as I'm going away for a few days probably starting later today......

But will give it a try when I have the time to focus on it for a few hours....
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
Archlinuxarm On C3x00
« Reply #162 on: October 18, 2015, 03:02:29 pm »
Quote
Is the tarball in a format that can be uncompressed on the Z or still need another computer?

The tar ball is mainly for getting uncompressed on a x86 Linux machine to a ext 4 SD card to get you started and not for uncompressing from emergency console on the Z itself.

You can uncompress the tar ball again from a running alarm session of the SD card but the xz compression will take a long time to decompress on the Z.

For this I recommend to unxz the tar ball first on a x86 machine.
« Last Edit: October 18, 2015, 03:37:41 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
Archlinuxarm On C3x00
« Reply #163 on: October 18, 2015, 03:58:58 pm »
Quote from: danboid
Excellent!

Thanks for your many tips! I'll get the updated kernel and kexec installed today and try to make some progress with my other issues and let you know how far I get.

I used to have Flashback on the Amiga and it'd be great to have Descent running on the Z so I may give that a shot too.

I bet you're thinking yourself lucky you only have one user to support so far!

Well, I don't think there will be much more than 3 users in total,  once Mark gets his alarm installed. No sign of any more users so far....
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
Archlinuxarm On C3x00
« Reply #164 on: October 18, 2015, 04:23:27 pm »
Quote from: daalnroti
Quote
Is the tarball in a format that can be uncompressed on the Z or still need another computer?

The tar ball is mainly for getting uncompressed on a x86 Linux machine to a ext 4 SD card to get you started and not for uncompressing from emergency console on the Z itself.

You can uncompress the tar ball again from a running alarm session of the SD card but the xz compression will take a long time to decompress on the Z.

For this I recommend to unxz the tar ball first on a x86 machine.

Thanks...


Quote from: daalnroti
Quote from: danboid
Excellent!

Thanks for your many tips! I'll get the updated kernel and kexec installed today and try to make some progress with my other issues and let you know how far I get.

I used to have Flashback on the Amiga and it'd be great to have Descent running on the Z so I may give that a shot too.

I bet you're thinking yourself lucky you only have one user to support so far!

Well, I don't think there will be much more than 3 users in total,  once Mark gets his alarm installed. No sign of any more users so far....

I know of one more possible user.....
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/