Using Arch Linux

9 years 2 months ago - 9 years 2 months ago #29528952 by RobMeades
Using Arch Linux was created by RobMeades
For anyone who chooses to use Arch Linux (a sensible choice in my view if you have no need of a GUI), I thought you might like to know what has to be changed to get the RIO board to install and work. As it stands, if you run the RIO install script on Arch Linux it will trash your system at boot as it points root at a non-existent (on Arch Linux) partition of the SD card. Also, Arch Linux runs systemd for service control so many of the files that the install script points to no longer exist.

Find attached two modified files:
  • rio_board_install_systemd.sh: this is a revised installation script that worked for me,
  • rioboard_d.service: this is the service description file that you need under systemd.

Place these two files in the same directory on your Arch Linux Pi and execute rio_board_install_systemd.sh with root privileges from there.

With the usual caveats that I take no responsibility, no liability, make no guarantee, it worked for me, always make a backup of your SD card before doing anything and YOU NEED TO KNOW WHAT YOU'RE DOING, DON'T BLAME ME... enjoy.

Rob

Please Log in or Create an account to join the conversation.

9 years 2 months ago #29528953 by Griffin Baker
Replied by Griffin Baker on topic Using Arch Linux
You'll want to upload a compressed folder containing these files.

Please Log in or Create an account to join the conversation.

9 years 2 months ago #29528954 by RobMeades
Replied by RobMeades on topic Using Arch Linux
I was sure I added the two files. Where'd they go? ZIP file attached in case that's better.
Attachments:

Please Log in or Create an account to join the conversation.

9 years 2 months ago #29529053 by opal
Replied by opal on topic Using Arch Linux
Hello RobMeades,
Thanks a lot for the script. I confirm it to be working on Arch Linux (tested on: Linux alarmpi 3.10.34-1-ARCH #1 PREEMPT Tue Mar 25 23:35:51 MDT 2014 armv6l GNU/Linux). We will consider using the script (partially or completely) for the next version of install scripts for RioBoard software.

One insignificant remark would be to add check if "unzip" is installed, like:
# Check if unzip is installed (install if it is not)
which unzip
if [ $? -eq 1 ]; then
    pacman -S unzip
fi
I tested with Arch Linux from NOOB bundle and unzip was not there after installation.

Thanks once again for your help. Hope to see you often back here on forum.

Please Log in or Create an account to join the conversation.

9 years 1 month ago - 9 years 1 month ago #29529169 by opal
Replied by opal on topic Using Arch Linux
Dear Rio Board users, I am happy to announce that we have released Rio Board update script for Arch Linux.

To install Rio Board software on Arch Linux please use: dev.roboteq.com/dev1/riofiles/rio_board_install_Arch_Linux.sh instead of the link in our current version of the documentation.

In order to fetch the script directly to your RaspberryPi connected to internet, issue the following commands:
cd ~
wget http://dev.roboteq.com/dev1/riofiles/rio_board_install_Arch_Linux.sh

This install script is also available zipped from download section of our site: RIO Install Script for Arch Linux

Any kind of feed back is highly appreciated.

Please Log in or Create an account to join the conversation.

8 years 8 months ago #29529747 by QuiXXotic
Replied by QuiXXotic on topic Using Arch Linux
Daemon wont start due to some missing libfile.
[root@alarmpi ~]# systemctl status rioboard_d.service
* rioboard_d.service - RioBoard daemon
   Loaded: loaded (/etc/systemd/system/rioboard_d.service; enabled)
   Active: failed (Result: exit-code) since Mon 2014-10-06 06:17:35 MDT; 14s ago
  Process: 359 ExecStart=/usr/sbin/rioboard_d (code=exited, status=127)

Oct 06 06:17:35 alarmpi rioboard_d[359]: /usr/sbin/rioboard_d: error while loading shared libraries: libwiringPi.so.1: cannot open shared object file: No such file or directory
Oct 06 06:17:35 alarmpi systemd[1]: rioboard_d.service: control process exited, code=exited status=127
Oct 06 06:17:35 alarmpi systemd[1]: Failed to start RioBoard daemon.
Oct 06 06:17:35 alarmpi systemd[1]: Unit rioboard_d.service entered failed state.

Please Log in or Create an account to join the conversation.

8 years 8 months ago - 8 years 8 months ago #29529748 by opal
Replied by opal on topic Using Arch Linux
Hello QuiXXotic,

Please confirm that you are following the installation instructions given earlier in this thread (post #29529169). If so - it would be helpful if you could provide the log installation script produced.

Also please confirm that you are getting the same error/log messages after reboot (service is supposed to start automatically).

Be sure to start service with root privileges.

Let us also know where (if any) libwiringPi.so.1 is located on your file system.

Regards

Please Log in or Create an account to join the conversation.

8 years 7 months ago #29529761 by QuiXXotic
Replied by QuiXXotic on topic Using Arch Linux
It did'nt work after several reboots and the libwiring were where it was supposed to be, but after executing the installscript again and reboot it worked.

Now i've gotten a new issue.
[root@alarmpi ~]# python2
Python 2.7.8 (default, Sep 24 2014, 05:50:30)
[GCC 4.8.2 20131219 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import rioboard
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named rioboard
>>>

Please Log in or Create an account to join the conversation.

8 years 7 months ago #29529762 by opal
Replied by opal on topic Using Arch Linux
Hello QuiXXotic,

We are glad to know that the problem is gone (although would be nice to figure out an exact reason, to avoid this in future).

As for your new issue - please start a new topic. We suggest to keep this topic for Arch Linux-related issues.

Regards

Please Log in or Create an account to join the conversation.

Moderators: opal
Time to create page: 0.078 seconds