2004 to 2020 Mazda 3 Forum and Mazdaspeed 3 Forums banner
161 - 180 of 427 Posts
Anyway, it didn't work, I already installed the needed files on my car and the apps list was not updated, maybe is not reading the contents of my SD Card for some reason, is there any way I can debug what can be the error?
Contents of /deploy/install/ go onto a USB to run the install script, and after that is installed, /system/ and /apps/ folders go onto the root of your SD. Be sure to copy over those folders and not the entire /sdcard/ folder. Do you have it set up that way?
 
Discussion starter · #163 ·
So I figured out why node is crashing.. although I installed the shared libraries, it seems that the CMU doesn't like certain shared libraries and it fails.. gotta compile it fully statically - it just will be big :\ .. that's ok I guess since I can bundle it with the runtime and execute it from the USB stick. Don't know what the memory footprint will be but running it right now, it's not terrible bad:

Code:
             total         used         free       shared      buffers
Mem:           754          373          380            0            0
-/+ buffers:                373          380
Swap:            0            0            0
and that's before freeing any cache as well.
 
So I figured out why node is crashing.. although I installed the shared libraries, it seems that the CMU doesn't like certain shared libraries and it fails.. gotta compile it fully statically - it just will be big :\ .. that's ok I guess since I can bundle it with the runtime and execute it from the USB stick. Don't know what the memory footprint will be but running it right now, it's not terrible bad:

Code:
             total         used         free       shared      buffers
Mem:           754          373          380            0            0
-/+ buffers:                373          380
Swap:            0            0            0
and that's before freeing any cache as well.
Can you shed some light on how you managed to add nodeJS? Are you adding it permanently to the CMU or via sd-card or some sort?
 
So I figured out why node is crashing.. although I installed the shared libraries, it seems that the CMU doesn't like certain shared libraries and it fails.. gotta compile it fully statically - it just will be big :\
Use LD_LIBRARY_PATH environment variable in the same shell where nodejs is started. Since the environment variable will be local to that shell, the CMU native apps will continue to use the original shared libraries whereas nodejs will use your custom shared library.

This is what I did for AA. I have managed to upgrade openssl to V2 without affecting the CMU :)
Code:
export LD_LIBRARY_PATH=[B]/data_persist/dev/androidauto/custlib[/B]:/jci/lib:/jci/opera/3rdpartylibs/freetype:/usr/lib/imx-mm/audio-codec:/usr/lib/imx-mm/parser:/data_persist/dev/lib:
 
Contents of /deploy/install/ go onto a USB to run the install script, and after that is installed, /system/ and /apps/ folders go onto the root of your SD. Be sure to copy over those folders and not the entire /sdcard/ folder. Do you have it set up that way?
Yes I did that, the installation on usb was successful and the sdcard has the only 2 folders system and apps, I will try an experiment using my navigation sdcard
 
Discussion starter · #168 ·
Use LD_LIBRARY_PATH environment variable in the same shell where nodejs is started. Since the environment variable will be local to that shell, the CMU native apps will continue to use the original shared libraries whereas nodejs will use your custom shared library.

This is what I did for AA. I have managed to upgrade openssl to V2 without affecting the CMU :)
Code:
export LD_LIBRARY_PATH=[B]/data_persist/dev/androidauto/custlib[/B]:/jci/lib:/jci/opera/3rdpartylibs/freetype:/usr/lib/imx-mm/audio-codec:/usr/lib/imx-mm/parser:/data_persist/dev/lib:
Yeah that how I run it right now however that is good enough for running node itself but once you start shipping it with modules, it will cause issues - down to fatal halt errors in the CMU ;-)

That's not going to work :-D

Anyway, I am building node as fully static right now .. that should work :)
 
Bundling it with the runtime. I don't like to do too much modification to the CMU.
It cool to make nodejs working on cmu and I'm 100% with you.

But maybe it more simple to write what we want in c++ and cross compile that than fighting with nodejs installation.

If you need help to make code that call some process, get result and broadcast it using websocket Im here. It what I do every day to win my salary :) (low level framework to connect to cloud system)

But if node js work, it will be super cool. I don't want to stop you in this direction... Just indicate plan B

Sent from my Nexus 6P using Tapatalk
 
Awesome work! Using your sdk, i was able to load google map javascript APIV3 in my car with traffic ... Cmu is slow tbh and touch interactions are super slow too with the map. Map.setCenter() or zoom kill the cmu gui and needs reboot. Still can ssh into the car but i have no gui until reboot. Checking Logs now ... But that's impressing work. Better than the way i did before. So memory? Cpu hog? Other factors? I'm searching
 
Thanks for your update. And flyandi has just created common Data list (https://docs.google.com/spreadsheet...adsheets/d/1lkVUzhLEMglb7eFglne1iDiJ5vKMpaoxXKW-7bSZ6Ws/edit?pref=2&pli=1#gid=0)

Personally I am interested in any fuel related data, acceleration, etc.

ex: would be nice to have small app to show fuel consumption per A, B trips, real data on fuel in the tank, etc

other app some sport car like info (a planned see attachment from flyandi 's https://trello.com/b/rBEWRDdg/alpha-sprint)
That is cool.

Downloading to play around with now.
 
161 - 180 of 427 Posts