¿ªÔÆÌåÓý

Re: "Illegal instruction" when trying to run Direwolf 1.6 on Raspberry Pi 1


 

¿ªÔÆÌåÓý

Problem is, when compiling on a Pi3, that gcc thinks you're always going to have the full instruction set of that Pi3 CPU available. You need to do the compilation (painful as that may be) on the exact processor you plan on running it, i.e., the Pi 1 or Pi Zero, so the compiler knows how limited your instruction set is.

Either that, or figure out which ARM compiler options are being applied on the Pi 3 and not on the Pi 1/Zero by default, and then deliberately disable those extra options.

Andrew, KA2DDO


From: [email protected] <[email protected]> on behalf of Craig, KM6LYW <craig@...>
Sent: Tuesday, November 30, 2021 6:41 PM
To: [email protected] <[email protected]>
Subject: Re: [direwolf] "Illegal instruction" when trying to run Direwolf 1.6 on Raspberry Pi 1
?
I don't know if it helps in your situation, but after trying to compile on a pi3, then inserting
the sdcard into an older Pi Zero, the compile didn't work.? Still had an illegal instruction.
I had to checkout a clean copy of the source.?? cmake cached something somewhere
I suspect.

best,
-craig


On 11/30/21 3:16 PM, KP3FT via groups.io wrote:
Hi David,

Yep, I tried compiling from source, but I still got the same error.? If I can find a Buster image, I'll use that instead and compile Direwolf on it.

Join [email protected] to automatically receive all group messages.