opencardev / crankshaft

Crankshaft: A turnkey GNU/Linux solution that transforms a Raspberry Pi to an Android Auto head unit.
http://getcrankshaft.com
GNU General Public License v3.0
2.1k stars 249 forks source link

OpenAuto crashed with RPi 3A+ #447

Closed Compizfox closed 3 years ago

Compizfox commented 3 years ago

After boot, I get the following error:

Unfortunately, OpenAuto crashed.
Please report this indicident to Crankshaft
Restart in 5 seconds...

I'm using a HDMI screen.

I tried both EGL and X11. I have the same issue with the alpha7 2020-10-26 build.

I'm not quite sure how to create a debug log, since I don't get far enough to "push the gray button on bottom of main screen". I tried by just booting in debug mode anyway but I don't get any log.

matt2005 commented 3 years ago

I've not tried a RPi 3A+, but it should work but it will need debugging as it's not a hardware config i've tested.

Enable Dev_Mode login to ssh

To create debug file from ssh run

crankshaft debuglog
matt2005 commented 3 years ago

@Compizfox Can you try the instructions above?

Compizfox commented 3 years ago

debug.zip

Here you go.

scott9000 commented 3 years ago

I am also trying to run crankshaft on rpi 3a+ and getting the same issue. Would love to find out if this gets resolved 🙂

matt2005 commented 3 years ago

@scott9000 Can you create a debug file? please ensure that you are not in x11 mode.

scott9000 commented 3 years ago

Yeah will do. Will send it to you when I'm finished work. Thank you!

On Tue, 2 Mar 2021, 7:59 am Matthew Hilton, notifications@github.com wrote:

@scott9000 https://github.com/scott9000 Can you create a debug file? please ensure that you are not in x11 mode.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/opencardev/crankshaft/issues/447#issuecomment-788276057, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATBEXVNF3RXLZKU6QWC7H23TBP52RANCNFSM4XSFMFBA .

scott9000 commented 3 years ago

debug.zip let me know if this is what you need. I'm a bit of a noob but can follow instrucions

matt2005 commented 3 years ago

@scott9000 what is your setup? What attached devices? Screen? Etc

scott9000 commented 3 years ago

I have a 5" elecrow LCD touch screen and pixel 4, the screen is working fine but no GUI

On Wed, 3 Mar 2021, 4:45 am Matthew Hilton, notifications@github.com wrote:

@scott9000 https://github.com/scott9000 what is your setup? What attached devices? Screen? Etc

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/opencardev/crankshaft/issues/447#issuecomment-789088643, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATBEXVK35ZZK6OKO54P5PBTTBUP4DANCNFSM4XSFMFBA .

Compizfox commented 3 years ago

@scott9000 Can you create a debug file? please ensure that you are not in x11 mode.

The debug log I submitted was while running in X11 mode. Do you need one in EGL mode from me as well?

matt2005 commented 3 years ago

@Compizfox The logs appear to show crashing. Can you try editing the gpu_mem in /boot/config.txt. Try editing the gpu_mem from 256 to 128.

# GPU Mem
gpu_mem=128
Compizfox commented 3 years ago

Thanks, that did the trick! OpenAuto is now starting correctly.

However, when connecting my phone (over USB) nothing happens. Am I missing something or should I create a new issue?

matt2005 commented 3 years ago

do you have Androidauto installed on Phone? You might need to connect via a powered usb hub, as the pi 3a might not have enough power over usb. Alternatively try wireless mode see wiki for details

Compizfox commented 3 years ago

do you have Androidauto installed on Phone?

Yes, I have Android Auto installed and when I connect it over USB, it says "connected to car" on the phone. However, nothing happens on the OpenAuto head unit.

You might need to connect via a powered usb hub, as the pi 3a might not have enough power over usb.

Hmm, I'm afraid I don't have one on hand. Why does it need to power the phone anyway? I'm not expecting it to charge it or anything, lol

Alternatively try wireless mode see wiki for details

Which wiki page exactly? My first idea was to try Bluetooth, but I couldn't find out how to pair it. The Bluetooth wiki page says to "tap the BT-Pairing button" but I don't see that...

matt2005 commented 3 years ago

AA wireless You will need to enable the onboard BT, I've updated the wiki page for BT.

Enable onboard BT. You must reboot after this.

crankshaft bluetooth builtin
sudo reboot
matt2005 commented 3 years ago

Did the above work for you? @Compizfox

Compizfox commented 3 years ago

@matt2005 No, unfortunately not.

I was able to enable Bluetooth and pair my phone, but that appears to be for audio only?

I tried wireless Android Auto mode over WiFi, but that doesn't work either. When I connect my phone to Crankshaft device over WiFi it seems to detect it (the top-left button gains a Android Auto icon, but when I press on it nothing happens.

EDIT: Sorry, I was too quick. I managed to get it working (over USB) with a different power supply. So it appears to be a power issue after all, weird...

Compizfox commented 3 years ago

I think this issue can be closed.

Thanks again for the help!