ARM development: next steps

Will do so …
Upfront: has PERL some (environment) variables which could be use full ?.. (like pseudo-code $ARCH)

Oke, at least I tried :grin:

1 Like

I’ve found this: https://metacpan.org/pod/Config
But I don’t know if it is really good, I’d go with a simple file check

1 Like

the WARING part is alarming.

Small code-style question, do you want me to comment “arm specific code” or not ?

I’d say only if the code is not self-explanatory. Probably in this case it could be useful to have it.

1 Like

Modifications for Squid and OpenVPN are ready to be tested.
I also know that @Amygos did some good analysis on the Raspberry image and he found that Dedalo (Hotspot) works well!
He also pointed out another library path problem: https://github.com/NethServer/nethserver-firewall-base/blob/master/root/etc/e-smith/events/actions/interface-config-write-pppoe#L59

I think the fix can be the same of other cases.

Really thank you for the excellent work!

It’s holiday time here in Italy, I will be back on work January 7, but I will try to respond to any question during these couple of weeks!

2 Likes

hi all

I need some help


I do not have (yet) the hardware to test this on aarch64, please can you help here to verify the issues

others architectures are verified

1 Like

You can use a KVM machine for that: yum install qemu-system-aarch64
Download the aarch iso from CentOS mirror: http://isoredirect.centos.org/altarch/7.6.1810/isos/aarch64/

Make sure to select aarch64 when creating the VM.
During install you will have time for a trip abroad: it’s very slow!

3 Likes

Thanx, will test it on aarch64 this affternoon

1 Like

I would like to test a couple of issues inside an aarch64 machine, so I’ve created a new scaleway account.

But when creating a new machine, there is no CentOS image available for ARM.
What are the steps to have a running CentOS/NethServer aarch64 machine on Scaleway? Do I need to create my image?

Tested on virtual machine using qemu. Everything good.
Thank you @mark_nl!

1 Like

i’m just playing a little with some ns76 altarch to see where we are, because i was a litle absent during last two months… anyway, i think that Ultimate ns7 software updates origin policy break yum on altarch
error on software center:
failure: repodata/repomd.xml from ce-base: [Errno 256] No more mirrors to try. http://mirror.centos.org/centos/7.6.1810/os/aarch64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

it seems that mirrorlist.nethserver.org did not handle correctly with altarch, ie if the ce-base seems to redirect to
http://mirror.centos.org/centos/7.6.1810/os/aarch64/repodata/repomd.xml
but there is no such url

to make it work i have disabled from ce-* mirrorlist and changed baseurl, ie:
#baseurl=http://mirror.centos.org/centos/$nsrelease/extras/$basearch/
baseurl=http://mirror.centos.org/altarch/$nsrelease/extras/$basearch/

and i think we should also disable some repo for altarch:
ce-sclo* for armhfp
ce-sclo-sclo for aarch64

someone else had the same problem?

2 Likes

Thanks for reporting, we will look into it!

1 Like

Seems like @Mr.Olie had the same problem:

2 Likes

Just pushed a fix to mirrorlist.nethserver.org, would you mind checking it out?

https://github.com/NethServer/mirrorlist/pull/22

2 Likes

Just did a quick test using curl, seems good:

curl 'http://mirrorlist.nethserver.org/?release=7&repo=ce-updates&arch=aarch64&nsrelease=7.6.1810'
curl 'http://mirrorlist.nethserver.org/?release=7&repo=ce-updates&arch=armhfp&nsrelease=7.6.1810'

it seems ok to me, for aarch64 and armhfp. tnx!

ops… i talked too early… i’ve done a full update, but now i got error on sclo which didn’t exist for aarch64

more tests, later…

1 Like

Please give me the official URLs [or open a PR for them]!

This is from nethserver repo file:

```
[ce-sclo-sclo]
name=CE-SCLo-sclo-$nsrelease
mirrorlist=http://mirrorlist.nethserver.org/?release=$releasever&repo=ce-sclo-s$
#baseurl=http://mirror.centos.org/centos/$nsrelease/sclo/$basearch/sclo/
gpgcheck=1
repo_gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
enabled=0

[ce-sclo-rh]
name=CE-SCLo-rh-$nsrelease
mirrorlist=http://mirrorlist.nethserver.org/?release=$releasever&repo=ce-sclo-r$
#baseurl=http://mirror.centos.org/centos/$nsrelease/sclo/$basearch/rh/
gpgcheck=1
repo_gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
enabled=0

Disabled it manually, like @dz00te said.

sorry I do not think I understood :thinking:
the problem is that ther is no official url… i mean if you check a mirrror:
http://dallas.tx.mirror.xygenhosting.com/centos-altarch/7.6.1810/sclo/aarch64/
only sclo-rh exixst for aarch64, while for armhfp there is no sclo* at all

i don’t know if it’s possible to manage this from mirrorlist (that will be probably the best solution), otherwise the only solution i see is to change
“/etc/e-smith/templates/etc/yum.repos.d/NethServer.repo/10base”
check the arch and and enable/disable [ce-sclo-sclo]
and [ce-sclo-rh] depending on the arch… but probably i miss something… :sweat_smile:

1 Like

Yes, I forgot that …it’s the kind of input I need :smile:

IIRC packages that we recompile from EPEL and SCLo as dependencies for our modules will go to nethserver-updates/armhfp. Wherever an upstream mirror exists, mirrorlist will point to it.

Otherwise it could point to an empty/dummy repo and its packages are expected to be in nethserver-updates (or nethserver-base).

3 Likes