Starting point is release "NG Alpha-5 2019-06-08" of Crankshaft (https://github.com/opencardev/crankshaft/releases/tag/csng-alpha5). Tested on Raspberry Pi3 Model B and Model B+. | |
1. Activate DEV mode in Crankshaft. See this guide: https://github.com/opencardev/crankshaft/wiki/Dev-Mode-and-Debug-Mode | |
I used first method changing DEV_MODE=1 in /boot/crankshaft/crankshaft_env.sh mounting the microSD in my computer. | |
2. Attach Ethernet cable to Raspberry/Crankshaft, boot, find out IP and login through SSH (user: pi; pwd: raspberry). | |
3. Update distribution and install some packages: | |
$ sudo apt-get update | |
$ sudo apt-get upgrade | |
$ sudo apt-get install -y libboost-all-dev libusb-1.0.0-dev cmake libprotobuf-dev protobuf-c-compiler protobuf-compiler librtaudio-dev | |
4. Download 'development' branch of abraha2d's aasdk fork: | |
$ cd ~ | |
$ git clone -b development https://github.com/abraha2d/aasdk.git | |
5. (OPTIONAL) I compiled commit 361380e7d74ddeaf17afd8cd89882001bb62c77e. If there are problems with new commits, do the following checkout: | |
$ cd aasdk | |
$ git checkout 361380e7d74ddeaf17afd8cd89882001bb62c77e | |
6. Compile aasdk: | |
$ cd ~ | |
$ mkdir aasdk_build | |
$ cd aasdk_build | |
$ cmake -DCMAKE_BUILD_TYPE=Release ../aasdk | |
$ make | |
7. Install some packages to compile ilclient: | |
$ sudo apt-get install -y libraspberrypi-doc libraspberrypi-dev | |
$ cd /opt/vc/src/hello_pi/libs/ilclient | |
$ make | |
8. Download 'crankshaft-ng' branch of abraha2d's openauto fork: | |
$ cd ~ | |
$ git clone -b crankshaft-ng https://github.com/abraha2d/openauto.git | |
9. (OPTIONAL) I compiled commit d56417bfd6b2af9beacb104f8659aea8bff94a72. If there are problems with new commits, do the following checkout: | |
$ cd openauto | |
$ git checkout d56417bfd6b2af9beacb104f8659aea8bff94a72 | |
10. Compile openauto: | |
$ cd ~ | |
$ mkdir openauto_build | |
$ cd openauto_build | |
$ sudo apt-get install -y libtag1-dev libblkid-dev | |
$ cmake -DCMAKE_BUILD_TYPE=Release -DRPI3_BUILD=TRUE -DAASDK_INCLUDE_DIRS="/home/pi/aasdk/include" -DAASDK_LIBRARIES="/home/pi/aasdk/lib/libaasdk.so" -DAASDK_PROTO_INCLUDE_DIRS="/home/pi/aasdk_build" -DAASDK_PROTO_LIBRARIES="/home/pi/aasdk/lib/libaasdk_proto.so" ../openauto | |
$ make | |
11. Replace binary in Crankshaft: | |
$ sudo cp /home/pi/openauto/bin/autoapp /usr/local/bin/autoapp | |
12. Revert DEV mode change from step 1 and boot normally. |
This comment has been minimized.
This comment has been minimized.
Cool stuff but something creates errors and when i plug in my android device the system crashes and creates a boot loop so i have to reinstall everything again. |
This comment has been minimized.
This comment has been minimized.
There are people here reporting similar issues. I don't know the cause, but it seems the problem is related to certain incompatibility in specific phones of the fixes made to openauto's source code to overcome issue 352. I mean that many people are not suffering that problem, and many others are. I'm sorry I can not help you, but the problem only can be analyzed by someone focused in openauto project. Or by someone skillful. |
This comment has been minimized.
This comment has been minimized.
Thanks @eduardofilo, worked perfectly. The only problem I had was at step 7, when I went to copy autoapp, the destionation file was busy. I therefore had to do the following:
|
This comment has been minimized.
This comment has been minimized.
Did you activate dev mode? In theory in dev mode, autoapp doesn't start. |
This comment has been minimized.
This comment has been minimized.
Thanks for this! Note that if you follow the instructions to compile aasdk and autoapp on an RPi 3 A+ you'll need to have some swap space enabled otherwise the compiler stalls forever. A sacrificial USB stick works fine (mkswap + swapon). |
This comment has been minimized.
This comment has been minimized.
Worked great as is on my RPi 3 B. Thanks! |
This comment has been minimized.
This comment has been minimized.
Updated my RPi 3b+ with this foolproof step by step tutorial. Now the touchscreen works using Android Auto and my OnePlus 3T (Lineage 16.1). |
This comment has been minimized.
This comment has been minimized.
hm trying this right now - but the compilation of abraha2d's openauto fork fails for me:
|
This comment has been minimized.
This comment has been minimized.
@AwsmOli , I got similar issue. I tested on Raspbian Buster. Still don't know how to fix. |
This comment has been minimized.
This comment has been minimized.
Hello All, Thanks for any help provided. |
This comment has been minimized.
This comment has been minimized.
@Stargazzer The steps are actually just headlines and the commands below are how to do them |
This comment has been minimized.
This comment has been minimized.
I have triple checked the procedure and I don't get that errors. I can only assure that it works in the following conditions:
Is it possible that you are using another distribution? |
This comment has been minimized.
This comment has been minimized.
If you have reached step 4, you have overcome the most difficult steps for a noob in Linux :-) Cheer up, and good luck. |
This comment has been minimized.
This comment has been minimized.
eduardofilo thanks for the reply. I am getting a File is read only error. pi@CRANKSHAFT-NG:~ $ sudo apt-get upgrade I am using Putty to ssh into the pi. I am starting off with the NG Alpha-5 2019-06-08 version. Am I missing something? Thanks for any help. |
This comment has been minimized.
This comment has been minimized.
I got similar error with @AwsmOli. but I don't try on crankshaft. I test and compile directly openauto under raspbian stretch. the path seem similar also with mine, /home/pi/autoapp |
This comment has been minimized.
This comment has been minimized.
I'm also getting this error on the latest Raspian. aasdk builds fine, but the build of openauto fails with the same error. |
This comment has been minimized.
This comment has been minimized.
What method did you use to activate DEV mode? |
This comment has been minimized.
This comment has been minimized.
@mikemorain, @AwsmOli and @ugifractal, I have been researching and the problem seem related with QT5 libraries version. My procedure include commands for installing several QT5 packages. In Raspbian Stretch the version of QT5 included is 5.7.1. For example the classes that fail (QListWidget and QListView) are inside this library:
But I have seen that the Crankshaft distribution include QT5 even before of installing those packages. This installation is in directory
This version include the
So the solution seems to be downloading and compiling manually version 5.12.3 of QT5 in your system. |
This comment has been minimized.
This comment has been minimized.
I used both steps 1 and 3.
|
This comment has been minimized.
This comment has been minimized.
First method should work, but that file must be edited mounting the microSD in another computer, not directly over Crankshaft running, since |
This comment has been minimized.
This comment has been minimized.
Yes, I put the sdcard in a USB adapter and then open it in my Windows pc and use Notepad++ to edit the file. |
This comment has been minimized.
This comment has been minimized.
Hmm no luck same read only error. Crankshaft Management Tool v2.4.0 is executing command... Reqeust: unlock boot Done. |
This comment has been minimized.
This comment has been minimized.
Very strange. Try using the same Also, maybe you could try with another card. |
This comment has been minimized.
This comment has been minimized.
Nice find! I'm building the QT5 build as we speak; will let you know how it goes. |
This comment has been minimized.
This comment has been minimized.
eduardofilo Finally got it to work. I didn't have another sdcard so I formatted it and reflashed it. Then followed your version of the instructions skipping 5 and 9. I didn't need to use csmt or unlock anything, it just worked in dev mode. Thanks again for all your help. |
This comment has been minimized.
This comment has been minimized.
Can somebody help yet another noob out? I got to step three. Really long line to type, but that worked. Then step 4
$ cd ~ When I type this en press enter I get a message git command not found. Am I doing something wrong? |
This comment has been minimized.
This comment has been minimized.
Hello LaabNavNoyd, I was getting a Read Only error even after following the directions. For me I reformatted my SD card, re-flashed the latest image and then followed these instructions which Eduardofilo created. The following instructions are just the edited short version with no optional steps like in the original. This is what worked for me: Trimed down, showing only the corrections, skipping 5 and 9. Starting point is release "NG Alpha-5 2019-06-08" of Crankshaft (https://github.com/opencardev/crankshaft/releases/tag/csng-alpha5). Tested on Raspberry Pi3 Model B and Model B+. I used first method changing DEV_MODE=1 in /boot/crankshaft/crankshaft_env.sh mounting the microSD in my computer. Update distribution and install some packages: sudo apt-get upgrade
cd ~
cd ~
sudo apt-get install -y libraspberrypi-doc libraspberrypi-dev
cd ~
cd ~
sudo cp /home/pi/openauto/bin/autoapp /usr/local/bin/autoapp
|
This comment has been minimized.
This comment has been minimized.
Hi @LaabNavNoyd The problem is that your system doesn't have installed the $ sudo apt-get install git But the git package is installed by default in "NG Alpha-5 2019-06-08" of Crankshaft, that it is the first requirement for this guide to work. So I fear that you are using another distribution and will have other problems once git is installed (like compiling openauto in former comments). Regards... |
This comment has been minimized.
This comment has been minimized.
Thank you! Stargazzer you as well. But after reading I had a older version I restarted and now it works. Thank you |
This comment has been minimized.
Thanks for this information!