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

segmentation fault #3

Open
Ioniq3 opened this issue Dec 6, 2024 · 9 comments
Open

segmentation fault #3

Ioniq3 opened this issue Dec 6, 2024 · 9 comments

Comments

@Ioniq3
Copy link

Ioniq3 commented Dec 6, 2024

HI manio,

Great work, it works really good at rpi3a.

But in rpi0w aa-proxy-rs says "segmentation fault" and it doesn't work

@manio
Copy link
Owner

manio commented Dec 6, 2024

Thanks for the feedback!
So you just used the ready image for rpi0w?
Does it throw the segfault right on the start (no single line of log)?

I am using it with Pi Zero 2 W and unfortunately don't have a 0w.
But I'll try to figure the problem out if I could...

@Ioniq3
Copy link
Author

Ioniq3 commented Dec 7, 2024

The cpu of the rpi0w only support 32bit instruction set, no A53 arquitecture, so maybe it must be the problem.
How can I build for arm1176jzf, as I see this is the main differente betwenn raspberrypi0w_defconfig and aspberrypizero2w_defconfig

Thanks

@manio
Copy link
Owner

manio commented Dec 7, 2024

The build is 32-bit:
ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV)
built on arm-unknown-linux-gnueabihf target,
so this must be some other problem I think...

@manio
Copy link
Owner

manio commented Dec 7, 2024

I found this: mdaffin/rpizw-rover#2:

Using those instructions, even hello world segfaults for me when compiled from Ubuntu for Pi Zero (though the same binary runs fine on armv7 like RPi3).

Sound familiar? ;)
It might be about some ubuntu problem compiling... I'm still investigating.
Are you able to place ELF only on your target Pi to see if it works if I have something for test?

@manio
Copy link
Owner

manio commented Dec 7, 2024

@Ioniq3 Please try this: https://skyboo.net/temp/aa/aa-proxy-rs

@Ioniq3
Copy link
Author

Ioniq3 commented Dec 7, 2024

Hi manio,

I followed the following https://github.com/locnnil/rust_cross_compilation

and now works, I can build for rpi0w, rpi-tools are necessary instead of arm-linux-gnueabi-gcc

@manio
Copy link
Owner

manio commented Dec 7, 2024

This is what I did to create the mentioned binary. I'd be grateful if you confirm that it is also working :)

@Ioniq3
Copy link
Author

Ioniq3 commented Jan 10, 2025

Excuse me, I was sick some time. Yes, it works perfectly

@manio
Copy link
Owner

manio commented Jan 10, 2025

No problem, thanks for the feedback. I'll leave this open as I have to fix the build for this platform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants