Author Topic: Archlinuxarm On C3x00  (Read 92579 times)

danboid

  • Hero Member
  • *****
  • Posts: 881
    • View Profile
    • http://
Archlinuxarm On C3x00
« Reply #60 on: October 09, 2015, 12:54:32 pm »
I've now replaced my Microdrive and my Zaurus is still alive! I was helped by this guide:

http://www.ayati.com/kobako/c3bara.htm ( https://translate.google.com/translate?hl=e...ko%2Fc3bara.htm )

The only thing I didn't do that the guide did was disconnect the two ribbon cables as I didn't fancy trying to reconnect them.

Although the hdparm results below seem to indicate liitle gain in R/W performance, I am happy to report my Z boots up a full 10s faster now! Not a bad upgrade for £15! £10 if you exclude the postage. I should imagine I should get slightly better battery life now too and the extra space always helps!

Seeing as my new wifi card is getting delivered to work I won't get that until at least Monday now so I think I will try to get my current wifi card working as I'm keen to actually use my Z after spending most of this week setting it up.  

Next time you update the kernel tarball I think it'd be a good idea to include the keymap and a short README on how to configure the keymap, where to place the kernel modules etc- basically extract the key bits of info from this thread in case OESF disappears. I don't think github is going away any time soon.

Kingston 32GB Ultimate 266X ext4

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
« Last Edit: October 09, 2015, 03:44:55 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 #61 on: October 09, 2015, 03:38:28 pm »
It'd be nice if I could get kexec to default to loading Arch instead of System Tools and being able to set a timeout would be handy too.

Would you know if it can do either?

Note that I've updated my sig now with storage device info and some double ALARM action!
« Last Edit: October 09, 2015, 05:05: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

danboid

  • Hero Member
  • *****
  • Posts: 881
    • View Profile
    • http://
Archlinuxarm On C3x00
« Reply #62 on: October 09, 2015, 06:34:40 pm »
Networking update

I have now tried USB tethering connecting via a powered USB hub. I tried the hub with a memory stick first to check it was OK. It mounted fine but when I tried connecting my phone I got the same connect-debounce errors I get when I connect my phone via the OTG cable alone. Searching for this error returns reports of people seeing ths error since at least as far back as Fedora 5 and normally in relation to a USB wifi or BT device. They found that disabling the wifi/BT device stops the error but obviously I'm trying to use that very same USB device so thats not a fix. Turns out enabling debug mode stops the connect-debounce error but USB tethering remains greyed out on my phone.

I could try finding the right combo of primary and secondary firmware to get my current wifi card to work but even if I succeed its 802.11b only and I don't think my router has that enabled of if it even supports b. I think I'd have a better chance of getting a connection via BT tethering instead. My phone supports BT tethering and I've dug out a USB BT adapter and plugged it direct into the OTG cable -I've not installed bluez etc yet nor have I tried pairing with my phone but lsusb can see the BT adapter so I think it should work, after all the required config.

I've never tried BT tethering before because it sounds like a total ballache to do from the teriminal, unlike USB tethering which normally just involves running one simple command to connect if your network manager doesn't auto-connect you. Here's one guide to Linux BT tethering ('dial-up') I've found:

https://www.howtoforge.com/linux_internet_a...tooth_gsm_phone

I could do to check alll those modules are available in your current kernel before I start on the BT tether quest.

It'd definitely be easier just to wait until Monday when my wifi card will hopefully have arrived!
« Last Edit: October 09, 2015, 07:23:49 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

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Archlinuxarm On C3x00
« Reply #63 on: October 10, 2015, 10:16:17 pm »
Quote from: danboid
daalnroti:

I want to give Arch a go on my C3000.

I presume a rough outline of the install goes something like:

* Install kexecboot
* Create partitions
* Extract Arch tarball to root fs
* Extract boot.cfg, config-3.11.3-borzoi and zImage-3.11.3-borzoi.bin to /boot on the Arch rootfs

What about the 3.11.3-borzoi folder within your kernel tar file? I think that belongs under /usr/lib/modules , right?

Did you say you've got a keymap file I could borrow and tweak for my imperialist, UK loving ways?

Anything else that might trip me up, apart from me not running on Borzoi?

Thanks!

Quote
kexecboot was simple to install but I had a bit of trouble installing the Arch tarball. I was trying to untar it from the D+B console and I also tried doing it from the pdaXii13 installer console. Both of these use busybox so there's little difference but I think the pdaXii13 busybox is a bit newer than the D+B one. It turns out you can't use busybox tar or even GNU tar to uncompress ArchARM (or ALARM as they prefer to call it), you have to use bsd tar. If you already have a Linux or BSD installed then you should be able to install and use BSD tar but I didn't so instead I uncompressed the Arch latest tar.gz on my laptop then re-tarr'ed it with GNU tar. I still had problems when I gzipped my new tarball for some reason so I had to leave it uncompressed for busybox tar to be happy.

Think I would like to try Arch on my 3200.....    

However, before I mess up my Z that is currently got Cacko as bootloader and BSD on it, would like a bit more install info if that's possible....might help others that come along too....

I downloaded the files, but what should I do to install them, untar them to a SD or CF card?

And sounds like it would be good for me to uncompress the ALARM tarball to a card while I still have OBSD on my Z.

Would greatly appreciate some guidance as to how to proceed, in what order, etc...

Thanks.
« Last Edit: October 11, 2015, 12:17:52 am by ArchiMark »
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 #64 on: October 11, 2015, 07:07:28 am »
I have no idea if it will be possible to multiboot OBSD alongside Arch but it'd be good to have another Zaurus ALARMer! I'm not sure you'll be able to install kexecboot without losing your ability to boot OBSD. I tried writing to the guy who ported OBSD to the Z (Uwe) to ask about how to boot OBSD without Cacko but I have yet to receive a response, weeks later.

You're lucky ArchiMark as I've documented everything I've gone through so far in this thread. The outline for the install is something like this but not neccessarily in this order:

* Install kexecboot
* Create partitions
* Extract Arch tarball to root fs using bsdtar
* Edit/Extract boot.cfg (its in the old kernel tarball - edit it to point to the new kernel image) and the kernel image into /boot on the Arch rootfs, copy the kernel modules dir into /usr/lib/modules
* See daalnroti's notes on setting up the keymap and create an fstab file as I detailed so you can read and write to your Arch drive.

I realise that's lacking all the real details but I presume you already know how to do all of that and I don't think there is anything else you need to do to get a base install running. When I was upgrading my MD I was able to do all the partitioning, extracting of files and config with the speed and comfort of my x64 Arch box. You could do the same if you end up running Arch off a removable CF or SD card too of course.
« Last Edit: October 11, 2015, 07:43:10 am 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 #65 on: October 11, 2015, 10:30:02 am »
I have not yet been able to get ALARM to activate swap on boot. If I specify swap in fstab by dev or by UUID I get an error during boot like:
Code: [Select]
A start job is running for dev-sda2.device (1min 30s / 1min 39s)
Then I have to wait 90s before booting resumes. After logging in, swap isn't active (according to `swapon -s`) but I  can manually activate it with swapon.

It's not a showstopper but its not ideal either. I'm hoping a pacman sync/upgrade will sort it out with a systemd upgrade maybe?

Have you got swap activating on boot OK daalnroti?
« Last Edit: October 11, 2015, 10:32:18 am 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

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Archlinuxarm On C3x00
« Reply #66 on: October 11, 2015, 12:52:17 pm »
Quote from: danboid
I have no idea if it will be possible to multiboot OBSD alongside Arch but it'd be good to have another Zaurus ALARMer! I'm not sure you'll be able to install kexecboot without losing your ability to boot OBSD. I tried writing to the guy who ported OBSD to the Z (Uwe) to ask about how to boot OBSD without Cacko but I have yet to receive a response, weeks later.

You're lucky ArchiMark as I've documented everything I've gone through so far in this thread. The outline for the install is something like this but not neccessarily in this order:

* Install kexecboot
* Create partitions
* Extract Arch tarball to root fs using bsdtar
* Edit/Extract boot.cfg (its in the old kernel tarball - edit it to point to the new kernel image) and the kernel image into /boot on the Arch rootfs, copy the kernel modules dir into /usr/lib/modules
* See daalnroti's notes on setting up the keymap and create an fstab file as I detailed so you can read and write to your Arch drive.

I realise that's lacking all the real details but I presume you already know how to do all of that and I don't think there is anything else you need to do to get a base install running. When I was upgrading my MD I was able to do all the partitioning, extracting of files and config with the speed and comfort of my x64 Arch box. You could do the same if you end up running Arch off a removable CF or SD card too of course.


Thanks....

Did not mean to imply that I need/want to multi-boot with OBSD...not sure it's possible and given issues with OBSD, don't think it's needed now....

Feeling a bit confused about install order....as I assume I need to redo partitions from my OBSD install at least I think I do given way OBSD formats them....yet, need to extract tarball using BSD, which will be wiped out if I reformat partitions now and if I install kexecboot now that will prevent me from booting with OBSD to do the extraction, correct?......
see why I'm feeling a bit confused as to best way to go about this?......
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 #67 on: October 11, 2015, 01:04:39 pm »
Some of your install options are:

* Install on a removable CF/SD, that  way you can use bsdtar on your desktop/laptop to uncompress
* Install another OS alongside Arch, maybe just a temp one running off a card just and uncompress from there. Debian etc all have bsdtar in their repos.
* Decompress the Arch tarball on your Linux/UNIX PC (to preserve the file permissions etc)  and then recompress it using gnutar so you can uncompress it using the busybox tar. Don't gzip the gnu tarball as I had probs uncompressing it when I did that

I expect it would also be possible to find or build a version of bsdtar that you could run off the same card as the arch install tarball so you can decompress it under busybox/D+B.
« Last Edit: October 11, 2015, 01:09:52 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 #68 on: October 11, 2015, 01:10:37 pm »
What probs did you run into with OBSD?
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 #69 on: October 11, 2015, 01:39:14 pm »
Quote from: danboid
Some of your install options are:

* Install on a removable CF/SD, that  way you can use bsdtar on your desktop/laptop to uncompress
* Install another OS alongside Arch, maybe just a temp one running off a card just and uncompress from there. Debian etc all have bsdtar in their repos.
* Decompress the Arch tarball on your Linux/UNIX PC (to preserve the file permissions etc)  and then recompress it using gnutar so you can uncompress it using the busybox tar. Don't gzip the gnu tarball as I had probs uncompressing it when I did that

I expect it would also be possible to find or build a version of bsdtar that you could run off the same card as the arch install tarball so you can decompress it under busybox/D+B.

Thanks for the suggestions....

So, maybe the order is something like this:

A. While I have OBSD installed on Zaurus:

* Extract Arch tarball to root fs using bsdtar onto SD card

* Edit/Extract boot.cfg onto SD Card

B. Install kexecboot

C. Create New Partitions

D. Copy Arch and boot.cfg over to microdrive

Does this make sense if I want to do install on Zaurus itself?

Or is it just better to do this on my laptop with LinuxMint 17 ?


Thanks.

Quote from: danboid
What probs did you run into with OBSD?

After trying several times to make cmake and it failing with same errors, I think I'm done with OBSD...too much time to try and build packages and then have process fail....
« Last Edit: October 11, 2015, 01:46:09 pm by ArchiMark »
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 #70 on: October 11, 2015, 02:15:06 pm »
I said my rough outline of the install procedure could be done in almost any order but two parts that have to be done in a certain order are partition creation first, then extracting the Arch tarball later because of course you can't extract the tarball unless you have a sufficiently large ext3/4 partition to mount and extract it to. You're going to have a pretty small Arch root partition if you are wanting to keep OBSD installed, which requires Cacko be installed too.... on a 4GB MD!
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 #71 on: October 11, 2015, 02:32:04 pm »
daalnroti:

I was hoping I might be able to get a BT tether internet connection running today. I got bluez and bluez-utils installed but I was foiled by the current kernel's lack of a btusb module. I'd like to see that included in your next kernel update to give us the maximum amount of options in getting a connection up. BT adapters are available for £1 so BT tethering should be the cheapest and likely most easily available if not the fastest or easiest solution.

I think that previous guide I posted to Linux BT tethering was quite old. I found a more modern solution to BT tethering on the Arch wiki and it apparently only requires one or two commands be run, after you've paired the devices:

https://wiki.archlinux.org/index.php/Androi...g_via_Bluetooth
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 #72 on: October 11, 2015, 03:15:59 pm »
Quote from: danboid
I said my rough outline of the install procedure could be done in almost any order but two parts that have to be done in a certain order are partition creation first, then extracting the Arch tarball later because of course you can't extract the tarball unless you have a sufficiently large ext3/4 partition to mount and extract it to. You're going to have a pretty small Arch root partition if you are wanting to keep OBSD installed, which requires Cacko be installed too.... on a 4GB MD!


Per my post above #67....I do not need or want OBSD/Cacko on my Z anymore...given the problems with it....

Understand you have to create the partitions first and then extract tarball to one.....

btw, the 3200 has a 6GB MD.....

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/

greguu

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 432
    • View Profile
    • http://github.com/greguu
Archlinuxarm On C3x00
« Reply #73 on: October 11, 2015, 03:18:16 pm »
Quote from: danboid
daalnroti:

I was hoping I might be able to get a BT tether internet connection running today. I got bluez and bluez-utils installed but I was foiled by the current kernel's lack of a btusb module. I'd like to see that included in your next kernel update to give us the maximum amount of options in getting a connection up. BT adapters are available for £1 so BT tethering should be the cheapest and likely most easily available if not the fastest or easiest solution.

I think that previous guide I posted to Linux BT tethering was quite old. I found a more modern solution to BT tethering on the Arch wiki and it apparently only requires one or two commands be run, after you've paired the devices:

https://wiki.archlinux.org/index.php/Androi...g_via_Bluetooth

Hi,

sorry I was away over the weekend.

KEXECBOOT : timeout and default boot. Example boot.cfg https://github.com/andrea-adami/kexecboot/b...master/boot.cfg does not document it but I will lookinto the kexec cfg parser...

SWAP : I have the same issue on my Z after recently upgrading my systemd. It is possibly a trivial fix, to prevent systemd from doing this to sda2. I will look into it. I removed swap from fstab already but it still does it. This issue is documented in Arch forums somewhere and not just a ALARM issue.

BT : I can add the modules, no problem. As mentioned I was away and will add the modules when back home today.

INSTALL GUIDE : It would be a good Idea to get all the steps together and add them to a README file on github once we got it booting clean with all modules needed and cfg files.

BSD DualBoot : Some time ago I looked into this, as I wanted to try out oBSD alongside Arch. I did not find anything and stopped looking. If you can kexec a BSD kernel, it should be doable.

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)

greguu

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 432
    • View Profile
    • http://github.com/greguu
Archlinuxarm On C3x00
« Reply #74 on: October 11, 2015, 04:16:32 pm »
Quote from: danboid
It'd be nice if I could get kexec to default to loading Arch instead of System Tools and being able to set a timeout would be handy too.

Would you know if it can do either?

Note that I've updated my sig now with storage device info and some double ALARM action!

The kexecboot parser source file revealed these additional settings:

Code: [Select]
/* Global bootmenu settings */
{ CFG_FILE, 1, "TIMEOUT", set_timeout },
{ CFG_FILE, 1, "UI", set_ui },
{ CFG_FILE,-1, "DEBUG", set_debug },
/* Individual item settings */
{ CFG_FILE, 0, "DEFAULT", set_default },
{ CFG_FILE, 1, "LABEL", set_label },
{ CFG_FILE, 1, "KERNEL", set_kernel },
{ CFG_FILE, 1, "ICON", set_icon },
{ CFG_FILE, 1, "APPEND", set_cmdline },
{ CFG_FILE, 1, "INITRD", set_initrd },
{ CFG_FILE, 1, "PRIORITY", set_priority },
{ CFG_CMDLINE, 1, "FBCON", set_fbcon },
{ CFG_CMDLINE, 1, "MTDPARTS", set_mtdparts },
{ CFG_CMDLINE, 1, "CONSOLE", set_ttydev },

This _might_ work. I can test later today. Example:
Code: [Select]
TIMEOUT=10

LABEL=ArchLinux
KERNEL=/boot/zImage-3.11.3-c3x00
APPEND=root=/dev/sda3 rootfstype=ext3 fbcon=rotate:1 noinitrd loglevel=3 pxa27x_maxfreq=624
DEFAULT

LABEL=Debian
KERNEL=/boot/zImage-2.6.36-rc3
APPEND=console=ttyS0,115200n8 root=/dev/hda1 rootfstype=ext3 console=tty1 noinitrd  fbcon=rotate:1  debug dyntick=enable
« Last Edit: October 11, 2015, 08:39:14 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)