Read the statement by Michael Teeuw here.
MMM Awesome Alexa installing snowboy.
-
@Ameyalgudkar u have to boot the sd card you imaged from the recovery file, right?
-
@sdetweil So, what I was trying to do is update my eeprom as I was getting the error at boot. and so I did the bootloader factory reset as the steps mentioned
If your Raspberry Pi 4 will not boot, it is possible that the SPI EEPROM has become corrupted. To check, remove the SD card, disconnect the device from power, then reconnect it. If the green LED does not flash, this indicates that the EEPROM has become corrupted. Raspberry Pi Imager provides an easy way to fix this problem, by automatically preparing an SD card that will reprogram your Raspberry Pi 4’s EEPROM: Find an SD card that is empty, or does not contain any data you want to keep; it will be completely erased of all data during this process. Download Raspberry Pi Imager for your operating system from the list near the top of this page. Click “CHOOSE OS” and select “Misc utility images” then “Pi 4 EEPROM boot recovery”. Insert an SD card, click “CHOOSE SD CARD”, select the card you have inserted, then click “WRITE”. Once the SD card is ready, insert it into your Raspberry Pi 4 then connect the Raspberry Pi to power. Once complete, the green LED will blink rapidly in a steady pattern. Disconnect the device from power. Now you can remove the recovery SD card, insert your usual SD card, and resume using your Raspberry Pi.
that fixed the issue with eeprom not being corrupted.
But later checking the current eeprom I noticed, for some reason the default bootloader I have in Raspberry Pi’s eeprom has been set as such for every new boot I had to short the Global_EN with ground to boot the Pi.
Even that being done it did not boot the new sd card’s no matter what. (So my guess right here is its cause of the makeshift power adaptor I am using which is converting 12v dc to 5v dc)
At this point I’m starting to hate these newer RPI4’s already.Edit- so there was actually some issue with my SD cards not being flashed properly, now I have enabled the USB boot with the latest eeprom, and the PI boots normally. will get a good sd card reader.
-
@Bugsounet with your automated process it got installed within modules of magic mirror.
-
Was the error installing MMM-AwesomeAlexa solved? I am also stuck at the step “npm run prepublish”. (see below).
I tried the fix to install libcblas, but my system shows that it is already installed.
I am running a clean install of the latest Buster full release with a basic install of MagicMirror - no other add-on modules.root@raspberrypi:/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy# npm run prepublish > snowboy@1.3.1 prepublish /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy > tsc --listFiles node_modules/@types/node/index.d.ts:20:1 - error TS1084: Invalid 'reference' directive syntax. 20 /// <reference lib="es2015" /> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/node_modules/typescript/lib/lib.es6.d.ts /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/lib/node/index.ts /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/lib/node/node-pre-gyp.d.ts /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/lib/node/SnowboyDetectNative.d.ts /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/node_modules/@types/node/base.d.ts /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/node_modules/@types/node/index.d.ts /home/pi/MagicMirror/node_modules/@types/color-name/index.d.ts npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! snowboy@1.3.1 prepublish: `tsc --listFiles` npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the snowboy@1.3.1 prepublish script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-09-13T14_34_37_010Z-debug.log root@raspberrypi:/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy#
-
@Ameyalgudkar sure that’s why I do my own … because to complex to build with original repo
I fork it and correct source file, upgraded some library.
Add some personal change for simply configuration…But i never tested it in this module … maybe there is a few change to do … i don’t know really
I don’t use Alexa ':( -
@gelaw no it didn’t. still trying to figure somehow to install Snowboy. just the npm install method is not executing properly. I need the help of dev if I could. but looks like he hasn’t touched his post for a while.
-
@Ameyalgudkar did u run my script? you keep going thru the steps even if there are errors…
-
@sdetweil yes I tried, but snowboy not getting installed. here is the errors
if that would be helpful for you to understand what is actually happening. sorry for the file being very long and tiring.
-
install nan wih npm
-
@Ameyalgudkar no you did NOT use my script, OR follow the instructions… the instructions explicitly tell you to install nan
https://awesome-alexa.js.org/#/installation
my script, which is same as the instructions for this module, plus the step to add the one dependency
over and over we asked if u followed the instructions… but u have not…#!/bin/bash cd ~/MagicMirror/modules # Navigate to module folder if [ ! -e ~/MagicMirror/modules/MMM-awesome-alexa ]; then git clone https://github.com/dolanmiu/MMM-awesome-alexa.git # Clone this repository fi cd MMM-awesome-alexa # go into the module directory v=$(apt -qq list libatlas-base-dev 2>/dev/null) if [ "$v". == "." ]; then sudo apt-get install libatlas-base-dev fi npm install --only=prod # Install depdendencies cd node_modules rm -rf snowboy # Remove the installed snowboy git clone https://github.com/Kitt-AI/snowboy.git # Manually get snowboy from git cd snowboy # Go into the /snowboy directory rm -rf node_modules npm install nan --save # Make sure you install this in the /snowboy directory /< -------------------------------------------- npm install node-pre-gyp@0.12.0 --save # Make sure you install this in the /snowboy directory npm install # Make sure you install in the /snowboy directory npm run prepublish # Make sure you run this in the /snowboy directory npm install --save-dev electron-rebuild # Make sure you install this in the /snowboy directory npm install nan # Make sure you install this in the /snowboy directory ./node_modules/.bin/electron-rebuild # Build snowboy to your device specifications, in the /snowboy directory