RpiBoot + Navio2

Not easy…

I will do it on my Navio2.

pi@navio:~ $ wget http://firmware.eu.ardupilot.org/Plane/stable/navio2/arduplane
–2018-01-25 19:39:34-- http://firmware.eu.ardupilot.org/Plane/stable/navio2/arduplane
Resolving firmware.eu.ardupilot.org (firmware.eu.ardupilot.org)… 208.68.38.241
Connecting to firmware.eu.ardupilot.org (firmware.eu.ardupilot.org)|208.68.38.241|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 1262084 (1.2M)
Saving to: ‘arduplane’

arduplane 100%[=========================================================================================>] 1.20M 680KB/s in 1.8s

2018-01-25 19:39:36 (680 KB/s) - ‘arduplane’ saved [1262084/1262084]

File arduplane is saved

pi@navio:~ $ ls -l
total 1240
-rw-r–r-- 1 pi pi 1262084 Jan 8 23:48 arduplane
drwxr-xr-x 6 pi pi 4096 Oct 1 05:21 Navio2

ls -l list files, arduplane is there with the wrong attributes

pi@navio:~ $ chmod +x arduplane
pi@navio:~ $ ls -l
total 1240
-rwxr-xr-x 1 pi pi 1262084 Jan 8 23:48 arduplane
drwxr-xr-x 6 pi pi 4096 Oct 1 05:21 Navio2
pi@navio:~ $

After chmod, attributes are changed.

Marc

1 Like

pi@navio:~ $ ls -l
total 3316
-rw-r–r-- 1 pi pi 1058124 Mar 16 2017 arducopter-quad
-rw-r–r-- 1 pi pi 1058124 Mar 16 2017 arducopter-quad.1
-rwxr-xr-x 1 pi pi 1262084 Jan 9 01:48 arduplane
-rw-r–r-- 1 pi pi 1779 Jan 25 13:56 index.html
-rw-r–r-- 1 pi pi 1779 Jan 25 20:56 index.html.1
pi@navio:~ $ emlidtool rcio check
current: 0x793d141e
local: 0xcaec2284

You need to update. Please run:
emlidtool rcio update

pi@navio:~ $ sudo emlidtool rcio update
updating firmware using /lib/firmware/rcio.fw
Traceback (most recent call last): | 0.0% Complete
File “/usr/local/bin/emlidtool”, line 11, in
sys.exit(main())
File “/usr/local/lib/python3.5/dist-packages/emlid/emlidtool.py”, line 243, in main
emlidtool.parse_args()
File “/usr/local/lib/python3.5/dist-packages/emlid/emlidtool.py”, line 170, in parse_args
getattr(self, args.command)()
File “/usr/local/lib/python3.5/dist-packages/emlid/emlidtool.py”, line 219, in rcio
self.func(rcio, args)
File “/usr/local/lib/python3.5/dist-packages/emlid/emlidtool.py”, line 224, in func
args.func(args)
File “/usr/local/lib/python3.5/dist-packages/emlid/util/util.py”, line 25, in wrapped
return fn(*args, **kwargs)
File “/usr/local/lib/python3.5/dist-packages/emlid/emlidtool.py”, line 88, in update_rcio
updater.update(quiet_update=False)
File “/usr/local/lib/python3.5/dist-packages/emlid/util/util.py”, line 25, in wrapped
return fn(*args, **kwargs)
File “/usr/local/lib/python3.5/dist-packages/emlid/rcio/updater.py”, line 29, in update
self.connect()
File “/usr/local/lib/python3.5/dist-packages/emlid/rcio/updater.py”, line 49, in connect
print_progress_bar(10, 100, prefix=‘Getting connection’)
File “/usr/local/lib/python3.5/dist-packages/emlid/util/util.py”, line 67, in print_progress_bar
print(’\r%s |%s| %s%% Complete’ % (prefix, bar, percent), end=’\r’)
UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 21-25: ordinal not in range(128)

Should not be this difficult just to update to new plane version 3.8.4

I cannot help with this problem…

But I use an easy process to update my arducopter version without changes in the configuration files.

It can work with arduplane (if you are already using a 3.8 version).

pi@navio:cd /opt/ardupilot/navio2/arduplane-3.8/bin

It is the directory where arduplane is

pi@navio:/opt/ardupilot/navio2/arduplane-3.8/bin $ ls -l
total 1224
-rwxrwxr-x 1 root root 1252364 Sep 14 12:31 arduplane

Ls -l show arduplane, Now I rename it arduplane.old

pi@navio:/opt/ardupilot/navio2/arduplane-3.8/bin $ sudo mv arduplane arduplane.old
pi@navio:/opt/ardupilot/navio2/arduplane-3.8/bin $ ls -l
total 1224
-rwxrwxr-x 1 root root 1252364 Sep 14 12:31 arduplane.old

I download the latest arduplane directly in the directory: do not forget sudo

pi@navio:/opt/ardupilot/navio2/arduplane-3.8/bin $ sudo wget http://firmware.eu.ardupilot.org/Plane/stable/navio2/arduplane
–2018-01-25 19:55:12-- http://firmware.eu.ardupilot.org/Plane/stable/navio2/arduplane
Resolving firmware.eu.ardupilot.org (firmware.eu.ardupilot.org)… 208.68.38.241
Connecting to firmware.eu.ardupilot.org (firmware.eu.ardupilot.org)|208.68.38.241|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 1262084 (1.2M)
Saving to: ‘arduplane’

arduplane 100%[=========================================================================================>] 1.20M 655KB/s in 1.9s

2018-01-25 19:55:14 (655 KB/s) - ‘arduplane’ saved [1262084/1262084]

then change attributes (sudo is mandatory)

pi@navio:/opt/ardupilot/navio2/arduplane-3.8/bin $ sudo chmod +x arduplane
pi@navio:/opt/ardupilot/navio2/arduplane-3.8/bin $ ls -l
total 2460
-rwxr-xr-x 1 root root 1262084 Jan 8 23:48 arduplane
-rwxrwxr-x 1 root root 1252364 Sep 14 12:31 arduplane.old
pi@navio

I prefer to do that, but it is not the way documented by Emlid. Doing my way, after next reboot, latest arduplane is running.

Marc

Thanks going to try that tomorrow.

I wonder if there is a way that all this can be via emlidtool.

There is a new release that fixes an error on the speed sensor and we can not have that due to this complicated process

No yet…

Marc

Hello,

There is a fix for this problem: you have to edit /etc/locale.gen

pi@navio:~ $ sudo nano /etc/locale.gen

When there you go to line “# en_US.UTF-8” and remove the #
(uncomment), write back the file, and exit nano.

then generate locale

pi@navio:~ $ sudo locale-gen
Generating locales (this might take a while)…
aa_DJ.ISO-8859-1… done
en_GB.UTF-8… done
en_US.UTF-8… done
Generation complete.

then reboot

pi@navio:~ $ sudo reboot

You can also update upgrade your stretch distribution then try again rcio update.

pi@navio:~ $ sudo apt-get update && sudo apt-get dist-upgrade

Marc

1 Like

Hi Mark. This is what i have

aa_DJ ISO-8859-1

aa_DJ.UTF-8 UTF-8

aa_ER UTF-8

aa_ER@saaho UTF-8

aa_ET UTF-8

af_ZA ISO-8859-1

af_ZA.UTF-8 UTF-8

ak_GH UTF-8

am_ET UTF-8

an_ES ISO-8859-15

an_ES.UTF-8 UTF-8

anp_IN UTF-8

ar_AE ISO-8859-6

Scroll down two or three pages…

Marc

FINALLY,

Ok got it to update like that thank you Derrek

MM I see that after updating and having rcio check telling me there is nothing more to update i am still on 3.8.1

OK…

Please can you run these two commands and post result:

cd /opt/ardupilot/navio2/arduplane-3.8/bin

ls-l

You should have this result if you followed my How To (2nd version):

total 2460
-rwxr-xr-x 1 root root 1262084 Jan 8 23:48 arduplane
-rwxrwxr-x 1 root root 1252364 Sep 14 12:31 arduplane.old

Marc

ok hang on

Last login: Fri Jan 26 18:31:33 2018 from 192.168.11.117
pi@navio:~ $ cd /opt/ardupilot/navio2/arduplane-3.8/bin
pi@navio:/opt/ardupilot/navio2/arduplane-3.8/bin $ ls -l
total 1224
-rwxrwxr-x 1 root root 1252364 Sep 14 14:31 arduplane
pi@navio:/opt/ardupilot/navio2/arduplane-3.8/bin $

So you still have the 3.8.1 arduplane version.

Run the following commands

pi@navio:~ $ cd /opt/ardupilot/navio2/arduplane-3.8/bin
pi@navio:/opt/ardupilot/navio2/arduplane-3.8/bin $ ls -l
total 1224
-rwxrwxr-x 1 root root 1252364 Sep 14 12:31 arduplane
pi@navio:/opt/ardupilot/navio2/arduplane-3.8/bin $ sudo mv arduplane arduplane.old
pi@navio:/opt/ardupilot/navio2/arduplane-3.8/bin $ ls -l
total 1224
-rwxrwxr-x 1 root root 1252364 Sep 14 12:31 arduplane.old
pi@navio:/opt/ardupilot/navio2/arduplane-3.8/bin $ sudo wget http://firmware.eu.ardupilot.org/Plane/stable/navio2/arduplane

–2018-01-26 17:11:56-- http://firmware.eu.ardupilot.org/Plane/stable/navio2/arduplane
Resolving firmware.eu.ardupilot.org (firmware.eu.ardupilot.org)… 208.68.38.241
Connecting to firmware.eu.ardupilot.org (firmware.eu.ardupilot.org)|208.68.38.241|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 1262084 (1.2M)
Saving to: ‘arduplane’

arduplane 100%[================================================================>] 1.20M 422KB/s in 2.9s

2018-01-26 17:12:00 (422 KB/s) - ‘arduplane’ saved [1262084/1262084]

pi@navio:/opt/ardupilot/navio2/arduplane-3.8/bin $ ls -l
total 2460
-rw-r–r-- 1 root root 1262084 Jan 8 23:48 arduplane
-rwxrwxr-x 1 root root 1252364 Sep 14 12:31 arduplane.old
pi@navio:/opt/ardupilot/navio2/arduplane-3.8/bin $ sudo chmod +x arduplane
pi@navio:/opt/ardupilot/navio2/arduplane-3.8/bin $ ls -l
total 2460
-rwxr-xr-x 1 root root 1262084 Jan 8 23:48 arduplane
-rwxrwxr-x 1 root root 1252364 Sep 14 12:31 arduplane.old
pi@navio:/opt/ardupilot/navio2/arduplane-3.8/bin $ sudo reboot

Commands are in Bold

After each command, you can compare your result with mine (I just did it).

Some like ls -l are just to check the result…

Marc

Mark if you were a woman i would told you i love you. Updated to 3.8.4 thank you so much.

Happy for you,

Now, we have to wait nice weather to fly…

Marc

3 Likes

Yes at least it is summer here so we have good weather when we do not have thunderstorms :-).