Possible to run ArmV7 Apps on Manjaro?
#1
Hope everyone has had a good Christmas.

Is it possible to Run 32bit (armv7) software on a 64bit Linux OS (Manjaro in this case). Goggling suggests that it is possible by enabling some sort of compatibility mode

Im trying to get betaflight-configurator runing on my PineBook Pro.

There isnt a release built for Linux on arm, but there are instructions for building for armv7 although this isnt officially supported.

I have managed to blindly follow the instructions and built for armv7 but it doesnt run on Manjaro.

I don t know if it is feasible to modify the the "gulpfile" to add an armv8 option or whether there is some wat to run the armv7 build on Manjaro by enabling the compatibility mode.

Any advice or pointers from bigger brains than mine would be greatly appreciated.

Cheers

G
Linux n00b trying to learn.
Brute force and ignorance sometimes works!
| Pinebook Pro + Toshiba OCZ RC100 240GB |
  Reply
#2
if you were able to get the package to build, you might try using the pamac GUI to install/open it and then edit the PKGBUILD to include 'aarch64' before proceeding with the install.
  Reply
#3
Hi Tophneal,

thanks for your suggestion but "building" doesn't create a package which can be loaded through the Package manager.

"building" probably isn't the correct terminology, betaflight-configurator "built" using NW.js.

The instructions are to:
install node.js
install yarn using npm: 'npm install yarn -g'
inside the project folder run: 'yarn install'
then run 'yarn start' and 'yarn test'

At this point you can "build" the app using the supplied gulpfile.js:
'yarn gulp <taskname> [platform]'

task can be, dist, apps, debug or release
platform can be --osx64, --linux64, --win64 or --android, there are also --win32, --linux32 and --armv7 options for the platform in the gulpfile but they arent officially supported.

I have built using 'yarn gulp release --armv7' which initally failed as node.js wasnt the correct version identified in the .nvmrc file, so had to downgrade to node v14.x. Eventually produced the armv7 release archive but cant work out how to run it on the 64bit manjaro OS.

Not having any idea on how node (or NW.js as it seems to be called now) works certainly doesnt help this amateur.
 
I've been trying to read the gulpfile to work out if I can create a new platform for armv8 but its all beyond my capability unfortunately.
Huh
Linux n00b trying to learn.
Brute force and ignorance sometimes works!
| Pinebook Pro + Toshiba OCZ RC100 240GB |
  Reply
#4
This package exists in the AUR, so you can enable the AUR in pamac GTK, search for and mark the package for install, then when it asks you if you want to Edit Build File(s) do so. Change arch=('x86_64') to arch=('x86_64', 'aarch64') or arch=('any') then save and build/install. If it fails, check the errors to see if any dependencies need the arch line altered too.

if you prefer the cli, use yay. it will notice the package is for another arch and ask if you'd like to try building it for aarch64 anyway.
  Reply
#5
Thanks for you further suggestions, I tried The PacMan GUI after enabling AUR. (then tried YAY)
There were 2 betaflight-configurators in there. one fails before i get the option to modify the buildfile and the output of the other is the exectutable is an amd64 elf file regardless of any modification to the buildfiles to tell it to make aarch64.
Im not really sure of the point of the packages in the user repository as they would only apperar to work for 32/64 bit "desktop" CPUs which are downloadable anyway from the betaflight website or built directly from the source on the website.

I think my best bet is to concentrate on trying to build from source as I have at least been able to "build" a version for armv7 so it should in theory be possible to build for armv8.

Thanks for your pointers, I'll hopefully be able to get my head around the gulpfile process that the original project uses.

So cheers and happy new year
Linux n00b trying to learn.
Brute force and ignorance sometimes works!
| Pinebook Pro + Toshiba OCZ RC100 240GB |
  Reply
#6
Maybe you don't know ??
mrfixit's distro has a v8 kernel and v7 userland,
it is based on debian stable, so a bit dated
  Reply
#7
alternatively box86 may be an option to run this software too: https://forum.manjaro.org/t/how-to-insta...rm64/43473
  Reply
#8
Thanks for the suggestions guys. it gives me a couple more avenues to investigate.

I think i'll start with box86 as dual-booting isnt yet idiot proof on the PBP and I'd prefer to stick with manjaro as its the official OS.

Cheers
Linux n00b trying to learn.
Brute force and ignorance sometimes works!
| Pinebook Pro + Toshiba OCZ RC100 240GB |
  Reply
#9
concerning dual booting, if you have manjaro on your emmc, if your sd reader still works you can just burn the mrfixit img to an sd, and pop it in/reboot whenever you want to boot it. no changes to the main drive necessary
  Reply
#10
Ahah, good point I didnt think of that, forgot that the SD card is the default boot device.

with regards to box86; I had a look at the guide to install.
It seems that there is no 32bit support for manjaro (or is that arch linux? so filters down to manjaro)
So in the guide (https://forum.armbian.com/topic/16584-in...-on-arm64/) he uses schroot and debootstrap to run/boot debian buster armhf.
Not that i know what schroot and debootstrap are but I do know that Debian Buster armhf is the 32bit OS that raspberypi os is built on (as i have a few pi's and am (a tiny bit) more familiar with using the Pi).
As I can "build" betaflight-configurator for armv7 (so this would be armhf?) would that be enough to run the app rather than trying to then use box86 to run i386 code?
Linux n00b trying to learn.
Brute force and ignorance sometimes works!
| Pinebook Pro + Toshiba OCZ RC100 240GB |
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Manjaro Sway Theme Broken Eighty8 1 864 03-08-2024, 08:41 AM
Last Post: tophneal
Question Manjaro with Full Disk Encryption and GRUB dumetrulo 1 2,412 02-02-2024, 02:45 AM
Last Post: frankkinney
  Manjaro network problem late 2023 acruhl 1 891 01-19-2024, 11:32 PM
Last Post: Kevin Kofler
  Help installing Manjaro on eMMC of Pinebook Pro pine4546464 4 3,382 12-13-2023, 07:22 PM
Last Post: trillobite
  Need Help Recovering Manjaro /boot Contents on Pinebook Pro calinb 6 3,678 12-11-2023, 03:47 AM
Last Post: calinb
  Manjaro 20.04 not loading from SD (with Manjaro on eMMC) zaius 1 929 12-07-2023, 03:11 PM
Last Post: wdt
  Manjaro ARM: enabling external monitors & fixing Broadcom WiFi after updating trifleneurotic 2 1,739 11-14-2023, 10:57 AM
Last Post: trifleneurotic
  Manjaro [ARM Stable Update] 2021-07-23 issues Bocanila 1 2,459 08-21-2023, 09:10 PM
Last Post: vanessadonald
  [Manjaro] u-boot won't boot from eMMC with (unbootable) SD card present zackw 1 2,542 08-21-2023, 09:08 PM
Last Post: vanessadonald
  Manjaro - HIbernate - brcmfmac clk issue pompeyPinePro 1 1,274 08-18-2023, 02:06 AM
Last Post: juliamenendez

Forum Jump:


Users browsing this thread: 1 Guest(s)