Manjaro multilib or 32 bit ARM binaries?
#1
Is there a way to get multilib working on Manjaro?
I tried the mrfixit Debian build on an SD card and that runs 32 bit ARM binary compiled for Raspbian straight out of the box.
Would it possible to do the same wit Manjaro?

I would like to be able to compile and run Raspbian binaries on my Pinebook Pro using Manjaro.
#2
It's possible to install 32-bit Debian with debootstrap into a directory and then log into it with chroot. Also possible with systemd-nspawn. Also, with Docker.

Chroot is probably the easiest to understand, and is useful to learn when you need to recover an unbootable system.

Code:
sudo mkdir /debian-armhf
sudo debootstrap --arch armhf testing /debian-armhf

This will download Debian/testing into a directory, I don't know which Debian version Raspbian is based on, so you can change that, probably to better match the library versions.

Then you need to mount some directories, you only need to do this every time you reboot:

Code:
for f in {proc,sys,dev}; do sudo mount --bind /${f} /debian-armhf/${f}; done

This will mount some needed directories into the chroot, I've written it in a single line so it's easier to find in history with CTRL-R.

By this point you are ready to log into your Debian:

Code:
sudo chroot /debian-armhf su -

You can add your own user, too, with adduser username. Then the login would be with su - username.
#3
thank you, your instructions work very well
I install fpc into debian chroot and I can compile and run a helloworld.pas 32 bit program.

The only missing thing was (if you are as stupid as me) was how to install debootstrap in the first place. It's in the manjaro software installer just like any other manjaro program.

The last thing that I haven't solved, how do I get a 32 bit program in the debian chroot to talk to the X11 server running in the main manjaro OS ?

thanks again, DNJ
#4
answer to X11 here
https://forum.manjaro.org/t/get-x11-to-l...ort/155460

now I'm struggling a bit with group permissions
I have a USB serial adapter in usb socket which appears as /dev/ttyUSB0
My understanding is that in Manjaro I have to add myself to the uucp group to use it, whilst in Debian it has to be the dialout group
So I did both.
From inside the Debian chroot I am still getting a permissions error on accessing /dev/ttyUSB0 though.

From the Manjaro terminal
[philip@pinebookpro debian-armhf]$ ls -al /dev/ttyUSB0
crw-rw---- 1 root uucp 188, 0 Jul 27 20:57 /dev/ttyUSB0

From the Debian chroot terminal
philip@pinebookpro:~$ ls -al /dev/ttyUSB0
crw-rw---- 1 root 987 188, 0 Jul 27 19:57 /dev/ttyUSB0
#5
I got it working
I set the GID of the uucp group in the Debian chroot to the same number as the uucp group GID in Manjaro and then programs that want to access /dev/ttyUSB0 start working

[Image: Screenshot_20200727_221145.png]


Possibly Related Threads…
Thread Author Replies Views Last Post
  Manjaro Sway Theme Broken Eighty8 1 863 03-08-2024, 08:41 AM
Last Post: tophneal
Question Manjaro with Full Disk Encryption and GRUB dumetrulo 1 2,410 02-02-2024, 02:45 AM
Last Post: frankkinney
  Manjaro network problem late 2023 acruhl 1 887 01-19-2024, 11:32 PM
Last Post: Kevin Kofler
  Help installing Manjaro on eMMC of Pinebook Pro pine4546464 4 3,369 12-13-2023, 07:22 PM
Last Post: trillobite
  Need Help Recovering Manjaro /boot Contents on Pinebook Pro calinb 6 3,654 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,458 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,272 08-18-2023, 02:06 AM
Last Post: juliamenendez

Forum Jump:


Users browsing this thread: 1 Guest(s)