Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Illegal Instruction on Raspberry Pi Zero W Rev 1.1 #841

Open
aforsythe opened this issue May 20, 2021 · 4 comments
Open

Illegal Instruction on Raspberry Pi Zero W Rev 1.1 #841

aforsythe opened this issue May 20, 2021 · 4 comments
Labels
help wanted os-raspberry Raspberry Pi related issue

Comments

@aforsythe
Copy link

aforsythe commented May 20, 2021

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

@mmatyas
Copy link
Owner

mmatyas commented May 21, 2021

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

@mmatyas
Copy link
Owner

mmatyas commented May 25, 2021

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.

@PixelGirl
Copy link

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

@mmatyas
Copy link
Owner

mmatyas commented Sep 22, 2021

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 mmatyas pinned this issue Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted os-raspberry Raspberry Pi related issue
Projects
None yet
Development

No branches or pull requests

3 participants