MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM Awesome Alexa installing snowboy.

    Scheduled Pinned Locked Moved Troubleshooting
    44 Posts 4 Posters 15.6k Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      sdetweil @Guest
      last edited by sdetweil

      @Bugsounet he is doing on pi, System Linux 5.4.51-v7l+ < — v7l

      i am going to test ubuntu pi 64 bit tomorrow.

      couldn’t wait…

      fix

      need to install libcblas

      sudo apt-get install libatlas-base-dev
      

      then both my installations using snowboy correctly rebuilt… on ubuntu 64 on pi4.

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • ? Offline
        A Former User
        last edited by A Former User

        ah… that’s why my library have no problem for installing :)
        I force it to install with installer lol :)

        nedeed dependencies

        1 Reply Last reply Reply Quote 0
        • A Offline
          Ameyalgudkar @Guest
          last edited by

          @Bugsounet said in MMM Awesome Alexa installing snowboy.:

          @Ameyalgudkar:
          I see in the error log it’s an x64 build…
          so best way is reinstall OS with 32bits version

          I am indeed running the 32bit Raspberry Pi OS latest from the official downloads, and not any beta versions.
          I don’t know why the installer is running it in x64.

          1 Reply Last reply Reply Quote 0
          • A Offline
            Ameyalgudkar
            last edited by

            Also now I am facing this problem where, no matter what I do, RPI4 does not take any other sd card boot image and boot that particular system.
            For instance, My 32gb with working MM and RPI OS 32bit, boot up without any problem.
            But then, I tried booting with a older build of RPI OS, Ubuntu(https://ubuntu.com/download/raspberry-pi) 32bit for Pi4.

            Both tried on different sd cards with 8gb/32gb and also reformatting it several times and everything.

            I feel just so exhausted doing all this and thinking of returning my RPI4 if it has so may issues.

            1 Reply Last reply Reply Quote 0
            • ? Offline
              A Former User
              last edited by

              internal firmware :) (eeprom)

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @Guest
                last edited by sdetweil

                @Bugsounet doesn’t the newer system apply the firmware update automatically?

                see here for the firmware test and update procedure
                https://www.raspberrypi.org/documentation/hardware/raspberrypi/booteeprom.md

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                A 1 Reply Last reply Reply Quote 0
                • A Offline
                  Ameyalgudkar @sdetweil
                  last edited by

                  @sdetweil I tried the boot recovery mentioned in the link, but no luck with that. Still gets stuck in boot and with a red light. no green light. should I try to get a replacement for my device?

                  S 2 Replies Last reply Reply Quote 0
                  • S Offline
                    sdetweil @Ameyalgudkar
                    last edited by

                    @Ameyalgudkar I would guess yes

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • ? Offline
                      A Former User
                      last edited by

                      and Recovery ?

                      A 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @Ameyalgudkar
                        last edited by

                        @Ameyalgudkar this procedure to verify and then fix

                        Is the bootloader working correctly?
                        To check that the bootloader is working correctly, turn off the power, unplug everything from the Raspberry Pi 4, including the SD card, and then turn the power back on. If the green LED blinks with a repeating pattern then the bootloader is running correctly, and indicating that start*.elf has not been found. Any other actions imply that the bootloader is not working correctly and should be reinstalled using recovery.bin.
                        
                        Recovery image
                        If the Raspberry Pi is not booting it's possible that the bootloader EEPROM is corrupted. This can easily be reprogrammed using the Raspberry Pi Imager tool which is available via the raspberrypi.org downloads page.
                        
                        Using the recovery image will erase any custom configuration options, resetting the bootloader back to factory defaults.
                        
                        Updating the bootloader
                        Bootloader updates are instigated during a normal apt update, apt full-upgrade cycle, this means you will get new features and bug fixes during your normal updates.
                        
                        Bootloader updates are performed by the rpi-eeprom package, which installs a service that runs at boot-time to check for critical updates.
                        
                        To update your system, including the bootloader:
                        
                        sudo apt update
                        sudo apt full-upgrade
                        sudo reboot
                        

                        and the bootloader recovery process is documented on the imager page, right?
                        https://www.raspberrypi.org/downloads/

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        S A 2 Replies Last reply Reply Quote 0
                        • S Offline
                          sdetweil @sdetweil
                          last edited by

                          @Ameyalgudkar I also uploaded a fixed do-install.sh which loads the dependency listed before as part of the install

                          I have run it on three different machines and it works correctly

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          A 1 Reply Last reply Reply Quote 0
                          • A Offline
                            Ameyalgudkar @sdetweil
                            last edited by

                            @sdetweil yes thats the one.
                            Also I just checked there are few parameters in that config that I have slightly different than default. Even after flashing the default recovery.img it did not get changed. So I will do it manually and check if it works.

                            S 1 Reply Last reply Reply Quote 0
                            • A Offline
                              Ameyalgudkar @sdetweil
                              last edited by

                              @sdetweil sorry to say, but nope it does not work on mine. the same snowboy installation error.

                              1 Reply Last reply Reply Quote 0
                              • S Offline
                                sdetweil @Ameyalgudkar
                                last edited by

                                @Ameyalgudkar u have to boot the sd card you imaged from the recovery file, right?

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                A 1 Reply Last reply Reply Quote 0
                                • A Offline
                                  Ameyalgudkar @sdetweil
                                  last edited by Ameyalgudkar

                                  @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.

                                  1 Reply Last reply Reply Quote 0
                                  • A Offline
                                    Ameyalgudkar @Guest
                                    last edited by

                                    @Bugsounet with your automated process it got installed within modules of magic mirror.

                                    ? 1 Reply Last reply Reply Quote 0
                                    • G Offline
                                      gelaw
                                      last edited by gelaw

                                      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# 
                                      
                                      
                                      A 1 Reply Last reply Reply Quote 0
                                      • ? Offline
                                        A Former User @Ameyalgudkar
                                        last edited by

                                        @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 ':(

                                        1 Reply Last reply Reply Quote 0
                                        • A Offline
                                          Ameyalgudkar @gelaw
                                          last edited by

                                          @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.

                                          S 1 Reply Last reply Reply Quote 0
                                          • S Offline
                                            sdetweil @Ameyalgudkar
                                            last edited by

                                            @Ameyalgudkar did u run my script? you keep going thru the steps even if there are errors…

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            A 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • First post
                                              Last post
                                            Enjoying MagicMirror? Please consider a donation!
                                            MagicMirror created by Michael Teeuw.
                                            Forum managed by Sam, technical setup by Karsten.
                                            This forum is using NodeBB as its core | Contributors
                                            Contact | Privacy Policy