code_exec
Posts: 271
Joined: Sun Sep 30, 2018 12:25 pm

Porting Debian ARM to the Raspberry Pi

Sun Feb 10, 2019 9:46 pm

This thread is about porting vanilla Debian (not Raspbian) to the Raspberry Pi. My goal is to provide an armel image that boots on all Pi models, an armhf image that boots on the Pi 2 and 3, and an arm64 image that boots on the Pi 3.

Debian has always been able to run on the Pi. Before Raspbian was released, the recommended OS image for the Pi was an Debian Squeeze armel image. This came with the disadvantages of software emulation for floating point tasks which was slower than using hardware for these tasks. When Debian Wheezy was released and had an armhf port (which requires an ARMv7 processor or newer), the RPF started compiling packages for the ARMv6 architecture of the original Pi.

With the release of the Pi 2 which had a quad-core ARM Cortex-A7, it was now possible to run vanilla Debian armhf on the Pi. There are a few blog posts around the internet about getting Debian armhf running on the Pi 2.

With the release of the Pi 3, which had a quad-core ARM Cortex-A53, Debian arm64 can also run on the Pi. A script is available for use with the generic arm64 kernel called raspi3-firmware which copies the kernel and initrd to the boot partition and configures the config.txt to boot from them, but the generic kernel is not yet ready for daily use on the Pi 3.

You can also compile the RPF kernel for ARM64 for use with Debian arm64. For Debian armhf, you can install Raspbian's kernel. For Debian armel, you have to compile the RPF kernel with support for running old ARM EABI binaries.

I provide images on GitHub based on Debian Stretch using the MATE and XFCE desktop and a 64-bit version of the RPF kernel. I haven't updated these images for a while, but I do plan on refreshing them at some point. For those interested, the GitHub page for these images is found here.

I plan on creating Debian armhf and armel images at some point, but don't expect images for each desktop environment for these architectures. I'll probably just create minimal images for Debian armhf and armel and update them every few point releases and every major release.

I'm excited to start creating Debian images for the Pi. Debian tends to have better software support than Raspbian. In Raspbian, Chromium is stuck at v65, whereas in Debian it's at v71.
Ubuntu 18.04 LTS desktop images for the Raspberry Pi 3.

https://github.com/CodeExecution/Ubuntu-ARM64-RPi

User avatar
DougieLawson
Posts: 35814
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Porting Debian ARM to the Raspberry Pi

Sun Feb 10, 2019 11:49 pm

What's the point? It seems like a complete waste of time, when Raspbian has already done that DebIan to Raspberry stuff for you. Pick any other distro (that isn't on a Raspberry) and port that, if you have to. Don't bother with DebIan.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

cjan
Posts: 720
Joined: Sun May 06, 2012 12:00 am

Re: Porting Debian ARM to the Raspberry Pi

Mon Feb 11, 2019 2:53 am

move to Buster, want LXQT-armhf-rpi2.

User avatar
Gavinmc42
Posts: 3633
Joined: Wed Aug 28, 2013 3:31 am

Re: Porting Debian ARM to the Raspberry Pi

Mon Feb 11, 2019 4:20 am

Sounds a bit like reinventing the wheel and not just once, but three times.

Sakaki is looking for someone to maintain this version.
https://www.raspberrypi.org/forums/view ... 7&start=25
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
jojopi
Posts: 3079
Joined: Tue Oct 11, 2011 8:38 pm

Re: Porting Debian ARM to the Raspberry Pi

Mon Feb 11, 2019 5:32 am

code_exec wrote:
Sun Feb 10, 2019 9:46 pm
This thread is about porting vanilla Debian (not Raspbian) to the Raspberry Pi. My goal is to provide an armel image that boots on all Pi models, an armhf image that boots on the Pi 2 and 3, and an arm64 image that boots on the Pi 3.
I would not call that porting Debian to the Raspberry Pi. I would call it installing Debian and then distributing the images.
Debian tends to have better software support than Raspbian. In Raspbian, Chromium is stuck at v65, whereas in Debian it's at v71.
The vast majority of packages in Raspbian track the Debian versions automatically. (Sometimes the RPF repos provide newer versions, backported as part of their desktop mods.) You have picked one problem package that is notoriously difficult to build.

In Debian stretch, chromium v71 is currently available only in the i386 and amd64 ports. armhf and arm64 have v70. armel and every other port has no working package at all.

code_exec
Posts: 271
Joined: Sun Sep 30, 2018 12:25 pm

Re: Porting Debian ARM to the Raspberry Pi

Mon Feb 11, 2019 6:30 am

Future Debian64Pi releases will be based on Debian Buster and will have graphics acceleration available. The following desktop environments will be used in images:

*LXDE
*LXQT
*XFCE
*MATE
*KDE Plasma
Ubuntu 18.04 LTS desktop images for the Raspberry Pi 3.

https://github.com/CodeExecution/Ubuntu-ARM64-RPi

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5880
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Porting Debian ARM to the Raspberry Pi

Mon Feb 11, 2019 7:07 am

Although there are plenty of other distros, some people just want plain ol' Debian, but with support for the hardware features of the pi. It should also provide a good apples to apples performance comparison. Currently, if I want to check whether a bug exists in Debian or compare behaviour of packages, it's a bit of a hassle. Being able to flash an image and run a quick test would be a time saver.

If we ever want to branch out and offer more images (no plans for that, just speaking hypothetically), it would mean some of the heavy lifting would already be done or at least highlight the work remaining to do. We find a lot of the patches we apply on top of Raspbian end up in Debian, and I think it's likely that the work done on these images will end up improving Debian as well.

I think it's a good idea, keep up the great work.

gilius
Posts: 96
Joined: Sun Apr 08, 2018 1:12 pm

Re: Porting Debian ARM to the Raspberry Pi

Mon Mar 04, 2019 10:54 pm

The XFCE has KVM enabled, but not MATE. However, when I installed libvirt-daemon-system on XFCE it crashed the system and wouldn't start up again.

k-pi
Posts: 922
Joined: Sun Feb 12, 2017 1:46 pm
Location: Upper Hale, Surrey, UK.

Re: Porting Debian ARM to the Raspberry Pi

Tue Mar 05, 2019 3:42 pm

I'd like to see a non systemd Debian version as an alternative download - just a basic GUI system running Fluxbox, a terminal, & web browser. 8-)

Return to “Debian”