Armel cross-compilation on Debian (toolchain repository)

Help with issues regarding installation of Debian

Armel cross-compilation on Debian (toolchain repository)

Postby roman_r » 2019-11-05 07:51

I am compiling some code from armel architecture using Debian toolchain (my server is Debian GNU/Linux 8.11 (jessie) and I am not allowed to update it). I have found this page https://wiki.debian.org/CrossToolchains however, when I am failing to get an archive toolchain key using command from the instructions: curl http://emdebian.org/tools/debian/emdebi ... rchive.key | sudo apt-key add -

Seems that repository http://emdebian.org/tools/debian is not available anymore. Does anybody knows is there any issues with it now?

Thanks in advance.
roman_r
 
Posts: 2
Joined: 2019-11-04 21:10

Re: Armel cross-compilation on Debian (toolchain repository)

Postby reinob » 2019-11-05 09:47

I think the best is if you scroll down the Wiki a bit until you reach "Using a chroot of unstable".
You can install a chroot with buster (which has the cross compiler and is arguably easier to work with than unstable), where all you'd need is "apt install crossbuild-essential-armel"

If you can run qemu on your server (and I can't see why not as no KVM is needed), then have a look here: https://people.debian.org/~aurel32/qemu/armel/
reinob
 
Posts: 742
Joined: 2014-06-30 11:42

Re: Armel cross-compilation on Debian (toolchain repository)

Postby roman_r » 2019-11-05 12:02

Thanks for your reply.

I found out that all this instructions been done on server couple of years ago, but now it seems stop working (do not know why, maybe someone remove compiler). That is why I am trying to follow the page. I have found out that only compiler is missing: arm-linux-gnueabi-g++, it there any place where I can download it easily? I guess rest is already installed. I am sorry for my dumb questions, just new in cross-compiling and debian usage.
roman_r
 
Posts: 2
Joined: 2019-11-04 21:10

Re: Armel cross-compilation on Debian (toolchain repository)

Postby stevepusser » 2019-11-06 19:07

Are you manually compiling code, or building deb packages? I have armhf and arm64 pbuilders working to build debs on my MX 19 Buster based distro for both Buster and Stretch, and I just added a Jessie armel pbuilder to see if I could. According to the pbuilder docs, it's also possible to log into the pbuilder chroot and manually compile code there, but I've never tried that.

I also have amd64 and i386 sbuild schroots for the small percentage of packages that won't build with pbuilder, but I haven't tried adding any ARM architectures to those. Let me see what happens with that.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Clipgrab 3.8.6, Hedgewars 1.0.0, PulseEffects 4.6.8, Telegram-desktop 1.8.15, Pale Moon 28.7.2, KeepassXC 2.5.1
User avatar
stevepusser
 
Posts: 11258
Joined: 2009-10-06 05:53

Re: Armel cross-compilation on Debian (toolchain repository)

Postby stevepusser » 2019-11-06 19:28

Huh--no real issues setting up a jessie armel schroot with sbuild, using mk-sbuild from ubuntu-dev-tools:

Code: Select all
mk-sbuild jessie --arch=armel

(lots of packages downloaded and installed)
(some errors concerning the jessie proposed-updates repo, which no longer exists. Sbuild works fine anyway, but you can manually edit /var/lib/schroot/chroots/jessie-armel/etc/apt/sources.list as sysadmin to comment out that and the deb-src lines--I do that for all my sbuild schroots anyway)

Done building jessie-armel.

 To CHANGE the golden image: sudo schroot -c source:jessie-armel -u root
 To ENTER an image snapshot: schroot -c jessie-armel
 To BUILD within a snapshot: sbuild -A -d jessie-armel PACKAGE*.dsc
 To BUILD for : sbuild -A -d jessie-armel --host  PACKAGE*.dsc
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Clipgrab 3.8.6, Hedgewars 1.0.0, PulseEffects 4.6.8, Telegram-desktop 1.8.15, Pale Moon 28.7.2, KeepassXC 2.5.1
User avatar
stevepusser
 
Posts: 11258
Joined: 2009-10-06 05:53


Return to Installation

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable