site  contact  subhomenews

Qsync fixed on the Pi4 and FF compiled

January 25, 2021 — BarryK

The Raspberry Pi4 does not have a hardware battery-backed clock, so relies on getting the date and time from an Internet time server. In EasyOS, Qsync is the utility that does that.

At first bootup, QuickSetup has a checkbox to enable getting time from the Internet, which will launch Qsync. At first bootup on the Pi4, if you are going to connect to Internet via wifi, not ethernet, then there won't be an immediate Internet access. No problem, Qsync will run once the Internet connection is established.

Qsync will run just once at bootup and after Internet connection. That's fine, but I couldn't understand why it would suddenly stop working. Then discovered that /etc/init.d/qsync was getting its executable-flag cleared.

Ah ha, then I knew where things were going wrong. I was adding the 'devx' SFS layer, and /sbin/fixlayers in the initrd does a lot of sanity checking whenever layers change. What it does, amongst other things, is check that the scripts in /etc/init.d are the same as those in easy.sfs (the bottom layer).

Anyway, to cut the story short, /etc/init.d/qsync in the top read-write layer was getting deleted, allowing the one in easy.sfs to appear on top, and that one does not have the executable-flag set.

Fixed it. Won't try to explain the logic, an interested developer can open up the initrd and examine the code in /sbin/fixlayers. That will be the next release of Easy of course, expected to be version 2.6.1. Not just for the Pi4, have to bring out a Dunfell-series 2.6.x for the x86_64 PC also.

Very pleased how Easy is performing on the Pi4, now a very snappy performer. Still can only play 1080p videos, but that is OK for now.

Today had a go at compiling SeaMonkey 2.53.6 on the Pi4. It objected to these lines in file 'mozconfig':

mk_add_options MOZ_CO_PROJECT=suite
ac_add_options --enable-application=suite

So took them out. And hey, guess what, it created Firefox. Yep, real Firefox. Well it is the same Mozilla code-base. Firefox latest version is, I think, 86. However, Wikipedia explains that SM is currently built from the Firefox version 60 ESR (Extended Support Release):

https://en.wikipedia.org/wiki/SeaMonkey

That's good, I will convert Firefox into an SFS and make it available for the next release of the Pi4.  But the question now, is how to get the source to compile as SeaMonkey?  

Tags: easy