Author Topic: Archlinuxarm On C3x00  (Read 148635 times)

danboid

  • Hero Member
  • *****
  • Posts: 881
    • View Profile
    • http://
Archlinuxarm On C3x00
« Reply #120 on: October 14, 2015, 06:19:25 am »
I'll be installing the new kexecboot later too as I want the timeout auto-boot feature.

Thanks daalnroti!
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 #121 on: October 14, 2015, 06:40:35 am »
Quote
Yes, the libertas card is new. I've only tried it with the one AP in work so far but I'll get to try it at home tonight,

I'm pretty much out of ideas for getting my old wifi card to work under ALARM - it just won't find any primary firmware and I've tried every one I could find.

I don't think I've got access to any other devices with a CF slot so I may end up having to reinstall OBSD or pdaX to see if it works with those unless you have some kernel options I can try that might help?

I've not finished my experiments with BT tethering. There is a script called 'test-network' included with bluez that can supposedly configure BT tethering although I'll only get ~2Mb/s tops over my BT2 adapter.

I'd like to get a CF ethernet adapter but I was struggling to find a new one. I used to have a USB ethernet adapter that worked well with Linux but I lent it to a friend and I think he's lost it so I'll prob buy another one of those as they're cheap and more likely to work than USB wifi adapters.

Hi danboid,

I understand your frustration with the CF WiFi card you bought and it is not working. As mentioned, give me some time and I will get a newer kernel going, it _might_ work with a new kernel.

Kernel options : I will have a look into the matter, but since I do not have that card, it will be hard to test.

USB Ethernet : I use a ASIX AX772 USB 10/100 that works without additional powered USB hub

CF WiFi : my DLINK works fine, just not as fast.

CF Ethernet : the BUFFALO 10mbit card also is supported and works.

No need to give up, but if you want to test with obsd or pdax rom, fine. It will help to rule out any kernel issues or alarm package or firmware problems.

Thanks for trying. We will get there.

I wonder what ArchiMark is using :?

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: 455
    • View Profile
    • http://github.com/greguu
Archlinuxarm On C3x00
« Reply #122 on: October 14, 2015, 06:58:32 am »
Quote
I've not finished my experiments with BT tethering. There is a script called 'test-network' included with bluez that can supposedly configure BT tethering although I'll only get ~2Mb/s tops over my BT2 adapter.

does this mean you can tether ? and get a connection ?

if so , are you able to do a pacman -Syu successfully ?
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 #123 on: October 14, 2015, 08:01:33 am »
Quote from: danboid
I'll be installing the new kexecboot later too as I want the timeout auto-boot feature.

Thanks daalnroti!

great, did you get it going and did it auto boot ?

I tested on my Z, but would be good to know if it works for someone else, too.
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 #124 on: October 14, 2015, 08:21:59 am »
Well, I made some effort , posting on #kexecboot at freenode, to the last know Z users to lurk around... lets hope some join.
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 #125 on: October 14, 2015, 09:43:47 am »
Quote from: daalnroti
aw, my fault. Of course I meant gnu-tar.

Ok,

do a reboot, go into D+B emergency console.
there do :

Code: [Select]
fdisk /dev/hda
the press "p" then "enter" and post us the output. use "q" then "enter" to quit fdisk.

Code: [Select]
Number of cylinders for this disk is set to 11905.
Nothing wrong with that, but it's larger than 1024,
and could in certain setups.....
1)...
2)....

Disk /dev/hda: 6144MB, 6144284672 bytes
16 heads, 63 sectors/track, 11905 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device       Boot   Start        End          Blocks       ID      System
/dev/hda1                 1      3876       1953472+    83      Linux
/dev/hda2           3877       4846        488880      82      Linux Swap
/dev/hda3           4847     11905      3557736      83      Linux

Quote
after do:

Code: [Select]
mkdir /mnt/arch
mount /dev/hda1 /mnt/arch

and then:

Code: [Select]
mount

df -h

ls -la /mnt/arch

and post the output.

Code: [Select]
# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext2 (rw)
/proc on /proc type proc (rw)
/dev/shm on /tmp type tmpfs (rw)
none on /dev/pts type devpts (rw)
/dev/hda1 on /mnt/arch type ext2 (rw)

# df -h
Filesystem     Size     Used   Available    Use%    Mounted on
rootfs            7.7M      7.7M       0         100%    /
/dev/root       7.7M      7.7M       0         100%    /
/dev/shm     16.0M         0     16.0M         0%     /tmp
/dev/hda1     1.8G      20.0K    1.7G         0%    /mnt/arch

#ls -la  /mnt/arch
drwxrwxr-x     2    root    root     1024    Feb 21    2006 .
drwxr-xr-x     18   root    root     1024    Feb 21    2006 ..
-rw-rw-r--       1   root    root       272    Jan 14     2006 .profile


Quote
also please :

Code: [Select]
mkdir /mnt/sdcard
mount /dev/mmcblk0p1 /mnt/sdcard
mount
df -h
ls -la /mnt/sdcard

you can take photos and post them if you can not ssh / telnet to the device yet.

It could be your /dev/hda is not partitioned, formated properly (/dev/hda1 /dev/hda2 etc)

Cheers.

*** Please note that my SD is automatically recognized as /dev/mmcda1

So, when I tried to do what your request, it returns error message:

Code: [Select]
mount: Mounting /dev/mmcblk0p1 on /mnt/sdcard failed:  No such file or directory

Here's what I see for /dev/mmcda1 which is mounted on /mnt/card automatically:

Code: [Select]
#df -h
/dev/mmcda1     1.8G             639.1M       1.2G       34%   /mnt/card

# ls -la
**** SEE Attached Photo Below   ****

[img]http://i473.photobucket.com/albums/rr100/ArchiMark/P1070863_zps4eededjm.jpg\" border=\"0\" class=\"linked-image\" /]


THANKS for all your help with this!
« Last Edit: October 14, 2015, 10:41:43 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/

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Archlinuxarm On C3x00
« Reply #126 on: October 14, 2015, 10:48:03 am »
Quote from: daalnroti
Hi danboid,

I understand your frustration with the CF WiFi card you bought and it is not working. As mentioned, give me some time and I will get a newer kernel going, it _might_ work with a new kernel.

Kernel options : I will have a look into the matter, but since I do not have that card, it will be hard to test.

USB Ethernet : I use a ASIX AX772 USB 10/100 that works without additional powered USB hub

CF WiFi : my DLINK works fine, just not as fast.

CF Ethernet : the BUFFALO 10mbit card also is supported and works.

No need to give up, but if you want to test with obsd or pdax rom, fine. It will help to rule out any kernel issues or alarm package or firmware problems.

Thanks for trying. We will get there.

I wonder what ArchiMark is using :?

Cheers

I use the following cards. They have always worked well with all the various OS's I've used in the past:

CF Ethernet: Socket 10/100

CF WiFi:  AmbiCom WL1100-CF
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 #127 on: October 14, 2015, 03:11:36 pm »
Quote
THANKS for all your help with this!

No worries, happy to help.

Well this looks all ok to me.

There might be issues with the D+B emergency mode not being able to untar or something else.

Danboid had issues but somehow managed to get it working.

If it is not too much to ask, I would recommend to use the SD card guide I posted earlier.

This will give you a backup system and a good start to install arch on the microdrive while running from SD card.

This way you can use the full 6GB (and swap) because your backup system sits on an SD card. (5.8 GB + 0.2 GB swap)

Let me know if you have issues with the how to.

Your cards are very likely supported, would be good to test once you got Arch going.

You can test your cards once you got Arch on a SD card, to make sure, before proceeding.


Cheers and thanks for trying
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 #128 on: October 14, 2015, 03:34:04 pm »
Quote from: daalnroti
Quote
THANKS for all your help with this!

No worries, happy to help.

Well this looks all ok to me.

There might be issues with the D+B emergency mode not being able to untar or something else.

Danboid had issues but somehow managed to get it working.

If it is not too much to ask, I would recommend to use the SD card guide I posted earlier.

This will give you a backup system and a good start to install arch on the microdrive while running from SD card.

This way you can use the full 6GB (and swap) because your backup system sits on an SD card. (5.8 GB + 0.2 GB swap)

Let me know if you have issues with the how to.

Your cards are very likely supported, would be good to test once you got Arch going.

You can test your cards once you got Arch on a SD card, to make sure, before proceeding.


Cheers and thanks for trying

I will be glad to try again by using your SD card guide.....

All sounds good....I've been mostly using my 2GB Sandisk card....I have other larger (16GB...) newer SD cards, but wasn't sure if Zaurus would recognize them or if such large cards were even needed...

And THANKS again for all your help....

Will report back after I've tried this out....
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 #129 on: October 14, 2015, 03:50:30 pm »
Quote
I will be glad to try again by using your SD card guide.....

All sounds good....I've been mostly using my 2GB Sandisk card....I have other larger (16GB...) newer SD cards, but wasn't sure if Zaurus would recognize them or if such large cards were even needed...

And THANKS again for all your help....

Will report back after I've tried this out....

Hi ArchiMark,

1GB would be enough for a backup / testing Arch SD card.

Make sure to use a "really working" card. SD cards can cause all sorts of issues when being faulty.

I got a 16GB SD that works fine under Arch, for testing I would recommend max 4GB to rule out any issues.
« Last Edit: October 14, 2015, 03:50:57 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 #130 on: October 14, 2015, 04:56:22 pm »
Progress on the networking front n' stuf!

As you can imagine I got a bit tired of fighting CF wifi issues and decided to buy a USB to ethernet adapter. I've not given up on the wifi. I still really need to get CF wifi working to use the Z for what I mainly want it for which is a wireless pocket SSH client.

I bought the Maplin £15 USB 2.0 to Ethernet adapter which according to lsusb is:

0b95:7720 ASIX Electronics Corp. AX88772

It works fine with Linux but on the Zaurus I need to plug it into a powered USB hub to use it so its not ideal. This has enabled me to finally run the holy `pacman -Syu` successfully at last! Doing so updated systemd and some other stuff but it hasn't done anything to fix my wifi issue or the swap problem.

Hopefully the newer kernel will fix my wifi prob but I think we'll be lucky. I suspect no-one has noticed my problem because no-one is using CF wifi cards anymore apart from me!

I didn't give you all the details with my wifi card, mainly that it prints the following whenever I insert it and I don't think its so good:

Code: [Select]
Oct 14 20:22:06 alarm kernel: pcmcia_socket pcmcia_socket0: pccard: PCMCIA card inserted into slot 0
Oct 14 20:22:06 alarm kernel: pcmcia 0.0: pcmcia: registering new device pcmcia0.0 (IRQ: 201)
Oct 14 20:22:06 alarm kernel: cfg80211: Calling CRDA to update world regulatory domain
Oct 14 20:22:06 alarm kernel: lib80211: common routines for IEEE802.11 drivers
Oct 14 20:22:06 alarm kernel: lib80211_crypt: registered algorithm 'NULL'
Oct 14 20:22:06 alarm kernel: libertas_cs 0.0 (unregistered net_device): 00:0e:8e:11:68:50, fw 5.0.20p2, cap 0x00000303
Oct 14 20:22:06 alarm kernel: libertas_cs 0.0 (unregistered net_device): PREP_CMD: command 0x00a3 failed: 2
Oct 14 20:22:06 alarm kernel: libertas_cs 0.0 (unregistered net_device): PREP_CMD: command 0x10ac failed: 2
Oct 14 20:22:07 alarm kernel: libertas_cs 0.0 (unregistered net_device): PREP_CMD: command 0x00a3 failed: 2
Oct 14 20:22:07 alarm kernel: libertas_cs 0.0 wlan0: Marvell WLAN 802.11 adapter

I've not updated kexec yet but I'll let you know when I do. Right now I have the unstoppable urge to finally get some apps installed and compiled!
« Last Edit: October 14, 2015, 04:58:10 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 #131 on: October 14, 2015, 05:15:00 pm »
Quote from: danboid
Progress on the networking front n' stuf!

As you can imagine I got a bit tired of fighting CF wifi issues and decided to buy a USB to ethernet adapter. I've not given up on the wifi. I still really need to get CF wifi working to use the Z for what I mainly want it for which is a wireless pocket SSH client.

I bought the Maplin £15 USB 2.0 to Ethernet adapter which according to lsusb is:

0b95:7720 ASIX Electronics Corp. AX88772

It works fine with Linux but on the Zaurus I need to plug it into a powered USB hub to use it so its not ideal. This has enabled me to finally run the holy `pacman -Syu` successfully at last! Doing so updated systemd and some other stuff but it hasn't done anything to fix my wifi issue or the swap problem.

Hopefully the newer kernel will fix my wifi prob but I think we'll be lucky. I suspect no-one has noticed my problem because no-one is using CF wifi cards anymore apart from me!

I didn't give you all the details with my wifi card, mainly that it prints the following whenever I insert it and I don't think its so good:

Code: [Select]
Oct 14 20:22:06 alarm kernel: pcmcia_socket pcmcia_socket0: pccard: PCMCIA card inserted into slot 0
Oct 14 20:22:06 alarm kernel: pcmcia 0.0: pcmcia: registering new device pcmcia0.0 (IRQ: 201)
Oct 14 20:22:06 alarm kernel: cfg80211: Calling CRDA to update world regulatory domain
Oct 14 20:22:06 alarm kernel: lib80211: common routines for IEEE802.11 drivers
Oct 14 20:22:06 alarm kernel: lib80211_crypt: registered algorithm 'NULL'
Oct 14 20:22:06 alarm kernel: libertas_cs 0.0 (unregistered net_device): 00:0e:8e:11:68:50, fw 5.0.20p2, cap 0x00000303
Oct 14 20:22:06 alarm kernel: libertas_cs 0.0 (unregistered net_device): PREP_CMD: command 0x00a3 failed: 2
Oct 14 20:22:06 alarm kernel: libertas_cs 0.0 (unregistered net_device): PREP_CMD: command 0x10ac failed: 2
Oct 14 20:22:07 alarm kernel: libertas_cs 0.0 (unregistered net_device): PREP_CMD: command 0x00a3 failed: 2
Oct 14 20:22:07 alarm kernel: libertas_cs 0.0 wlan0: Marvell WLAN 802.11 adapter

I've not updated kexec yet but I'll let you know when I do. Right now I have the unstoppable urge to finally get some apps installed and compiled!


To bad with the ASIX USB to ethernet. Guess you got a model that chews more than 180mA

The libertas_cs dmesg output looks ok, "the “command 0×00a3 failed” messages are harmless, and have to do with features that are not supported."

I would try to connect to an AP without encryption to test if that issue is WPA related.

Also it may pay to play around with iwconfig to set the rate etc.

example:

iwconfig wlan0 rate 3

and see if that gives a stable connection .

rates supported:

Code: [Select]
        12    54 Mbps
        11    48 Mbps
        10    36 Mbps
        9     24 Mbps
        8     18 Mbps
        7     12 Mbps
        6     9 Mbps
        5     6 Mbps
        4     Reserved
        3     11 Mbps
        2     5.5 Mbps
        1     2 Mbps
        0     1 Mbps
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 #132 on: October 14, 2015, 05:19:42 pm »
good summary of USB ethernet adapters and if they need powered usb hub.

http://elinux.org/RPi_USB_Ethernet_adapters
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 #133 on: October 14, 2015, 05:45:58 pm »
Thanks daalnroti!

I'll experiment with the speed settings tomorrow and report back.

xf86-video-fbdev works under Arch but the screen is in the wrong orientation (which I'm sure can be fixed with a xrandr command and/or an xorg.conf file) and I have no idea how to configure the touchscreen with is not calibrated currently. The good news is suspend seems to work fine under both X and the console by default.

As I've already said, I don't think I'll really be using X much but I'm still interested to see if we can get it working properly.
« Last Edit: October 14, 2015, 05:46: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 #134 on: October 14, 2015, 06:00:21 pm »
Quote from: daalnroti
Quote
I will be glad to try again by using your SD card guide.....

All sounds good....I've been mostly using my 2GB Sandisk card....I have other larger (16GB...) newer SD cards, but wasn't sure if Zaurus would recognize them or if such large cards were even needed...

And THANKS again for all your help....

Will report back after I've tried this out....

Hi ArchiMark,

1GB would be enough for a backup / testing Arch SD card.

Make sure to use a "really working" card. SD cards can cause all sorts of issues when being faulty.

I got a 16GB SD that works fine under Arch, for testing I would recommend max 4GB to rule out any issues.

Thanks for the added input, daalnroti...

Pretty sure my 2GB Sandisk card is working fine as I've put it in my laptops as well as Zaurus recently....

Good to know that a larger card should work OK with Arch later on....
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/