pegasus-frontend icon indicating copy to clipboard operation
pegasus-frontend copied to clipboard

Illegal Instruction on Raspberry Pi Zero W Rev 1.1

Open aforsythe opened this issue 4 years ago • 4 comments

Hi, and thanks for reporting errors! You can help us locating the bug even more by providing detailed information in the sections below:

The issue

Running pegasus-fe alpha15 yields Illegal Instruction

System info

PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
processor	: 0
model name	: ARMv6-compatible processor rev 7 (v6l)
BogoMIPS	: 697.95
Features	: half thumb fastmult vfp edsp java tls 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xb76
CPU revision	: 7

Hardware	: BCM2835
Revision	: 9000c1
Serial		: 000000007839d372
Model		: Raspberry Pi Zero W Rev 1.1

Pegasus version

Tried alpha 15 stable and latest g4be7c848_rpi1, both result in Illegal Instruction Tried loading via retropie package manager ... Illegal Instruction Tried alternate hardware versions ... Illegal Instruction or Segmentation Fault

Pegasus log

No log files available

aforsythe avatar May 20 '21 17:05 aforsythe

Thanks for the report! I'll see if I can fix this next week.

mmatyas avatar May 21 '21 20:05 mmatyas

Tried it on my Pi Zero and can confirm the issue. This sounds like a compilation issue, so I've tried to cross-compile a simple Hello World C program, but to my surprise, neither the GCC provided by the distro (tested with 9.3), nor ARM's own toolchains (tested with 8.3-2019.03 and 10.2-2020.11) could compile a working binary: every time the program crashed with illegal instruction or segmentation fault too.

Without a working compiler I can't build a working Pegasus either. I'll see if I can make a custom GCC.

mmatyas avatar May 25 '21 14:05 mmatyas

I ran into this exact same issue trying to run Pegasus on the Pi Zero. Hope it gets fixed soon.

PixelGirl avatar Sep 22 '21 12:09 PixelGirl

Just for future reference, here are the methods I've tried so far:

  • Tested the cross compilers available from Ubuntu 20.04 repos (GCC 8, 9, 10)
  • Tested the official ARM compilers (GCC 10.2-2020.11)
  • Compiled GCC from source

Unfortunately, while all of them could compile a basic "Hello World" program, none of the created executables work on the actual Pi Zero hardware.

mmatyas avatar Sep 22 '21 16:09 mmatyas