On 06/18/2016 02:05 PM, Arturo Borrero Gonzalez wrote:
> Source: suricata
> Version: 3.0.1-2~bpo8+1
> Severity: important
> 
> A suricata user using Raspeberry Pi B with Raspbian Jessie Lite reports
> problems when using the package from jessie-backports:
> 
>  pi@raspberrypi:~ $ suricata --build-info
>  Illegal instruction
> 
> Original upstream bug report:
>  https://redmine.openinfosecfoundation.org/issues/1774

Well, that's the problem. The original Raspberry Pi A & B have
an ARMv6 processor, whereas Debian's armhf port only supports
ARMv7 and higher (e.g. the second and third editions of the
Raspberry Pi). For this reason, Raspbian is a Debian derivative
that recompiles all the armhf binaries for ARMv6+. But if one
adds an official Debian repository (such as backports), then
the code that is compiled will not work on ARMv6 processors.

As far as I know, Raspbian doesn't provide a repository for
backports, so one has three options, the way I see it:

 - don't use stuff from backports
 - compile the packages from jessie-backports for oneself on
   one's system, so they are compiled with the right build
   flags for one's machine
 - use the official Debian armel port instead of Raspbian
   The armel port is the port of Debian for ARM CPUs without
   hardware floating point support, and that has lower CPU
   requirements, so it will work on the RPi - but probably
   really, really slowly

Anyway, this is not related to Debian or backports, because
Debian does not support ARMv6 CPUs in the armhf port (it's
mentioned in the release notes that armhf is for ARMv7 [1]),
so binaries are not expected to work on ARMv6 CPUs.

You could maybe also take it up with the Raspbian people to
also add a backports repository to their derivative - but I
wouldn't hold my breath there, because the newer models of
the device are ARMv7 or even ARMv8, where even the official
jessie-backports will work (at least when it comes to the
supported instruction set, I have no idea if they will
actually work or not).

Regards,
Christian

[1] 
https://www.debian.org/releases/stable/armhf/release-notes/ch-whats-new.en.html

Reply via email to