• Tags
  • Documentation
  • Order
  • Register
  • Login
Duet3D Logo Duet3D
  • Tags
  • Documentation
  • Order
  • Register
  • Login

UNSOLVED Installing DSF on a Banana-Pi-M3 with Raspbian OS

Scheduled Pinned Locked Moved
DSF Development
8
38
2.0k
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.
  • undefined
    JayJay
    last edited by JayJay 19 Dec 2020, 21:17

    Hello All

    I have a Banana-Pi -M3 that I have running a version of Raspbian.

    Im trying to install the DSF package following the guidelines here

    I have the file "duet.3d.list" in the following location "/etc/apt/sources.list.d/duet3d.list"

    im not 100% sure if i have the contents on the file correct as the guide is not so clear.

    I put two lines in that file:

    deb https://pkg.duet3d.com/ stable armv7
    http://pkg.duet3d.com/dists/stable/armv7/binary-armhf/

    then when i run the commands

    wget -q https://pkg.duet3d.com/duet3d.gpg
    sudo mv duet3d.gpg /etc/apt/trusted.gpg.d/
    sudo chown root:root /etc/apt/trusted.gpg.d/duet3d.gpg
    https://pkg.duet3d.com/duet3d.gpg

    I get an error message :

    bash: https://pkg.duet3d.com/duet3d.gpg: No such file or directory
    

    Does anyone have any ideas where im going wrong ?

    undefined 1 Reply Last reply 19 Dec 2020, 22:04 Reply Quote 0
    • ?
      A Former User
      last edited by 19 Dec 2020, 21:48

      I do wget -qO - "https://pkg.duet3d.com/duet3d.gpg" | sudo apt-key add - which essentially does the same thing, but it seems unadvisable to add they key like that ref:
      https://unix.stackexchange.com/questions/332672/how-to-add-a-third-party-repo-and-key-in-debian/582853#582853

      but i'd guess you have some sort of formatting error that causes bash to look for the url instead of passing it as a paramter to wget, how are you running the commands, copy paste, script, both?

      undefined 1 Reply Last reply 20 Dec 2020, 08:59 Reply Quote 0
      • undefined
        Stephen6309 @JayJay
        last edited by 19 Dec 2020, 22:04

        @JayJay pkg.duet3d.com/duet3d.gpg is not a web page.

        https://duet3d.dozuki.com/Wiki/Getting_Started_With_Duet_3#Section_Software_Installation

        1 Reply Last reply Reply Quote 0
        • ?
          A Former User
          last edited by A Former User 19 Dec 2020, 22:17

          weather or not its a web page is kinda irelevant as its served by a web browser server and downloaded by a web client according to the instruction he listed and you linked to - but somehow OP is passing the url to bash instead of wget.

          1 Reply Last reply Reply Quote 1
          • undefined
            JayJay @A Former User
            last edited by 20 Dec 2020, 08:59

            @bearer

            Thank you very much for taking the time to reply.

            I have tried inputing each command by manually typing each line in the terminal and I also tried copy paste and still the same occurs i will try the command you listed and see what happens.

            thank you again.

            1 Reply Last reply Reply Quote 0
            • undefined
              JayJay
              last edited by JayJay 20 Dec 2020, 09:33

              im logged in as root and if i try using the code that @bearer listed i get the following error message

              gpg: key DA91C86B: no valid user IDs

              if i follow the link posted by @Stephen6309 i can input the following codes successfully :

              wget -q https://pkg.duet3d.com/duet3d.gpg
              wget -q https://pkg.duet3d.com/duet3d.list
              sudo mv duet3d.gpg /etc/apt/trusted.gpg.d/
              sudo mv duet3d.list /etc/apt/sources.list.d/duet3d.list
              sudo chown root:root /etc/apt/trusted.gpg.d/duet3d.gpg
              sudo chown root:root /etc/apt/sources.list.d/duet3d.list

              And with the code

              sudo apt-get install apt-transport-https

              It tells me everything is already the newest version

              But then when i type in :

              sudo apt-get update
              

              I receive the following error message

              W: GPG error: https://pkg.duet3d.com stable InRelease: Unkown error in executing gpgv
              

              when i try to use the command

              sudo apt-get install duetsoftwareframework

              it reads the packing list, then builds the depeendency tree and reads the "state" information then reports the following:

              *Some packages could not be installed. This may mean that you have requested an inpossible situation or if you are using the unstable distribution that some required packages have nopt yet been created or have been moved out of Incoming.

              The following information may help resolve the situation:

              the following packages have unmet dependencies:
              duetsoftwareframework :
              Depends : duetcontrolserver (= 3.1.1) but it is not going to be installed
              Depends : duetsd (= 1.0.6) but it is not going to be installed
              Depends : duettools (= 3.1.1) but it is not going to be installed
              Depends : duetwebserver (= 3.1.1) but it is not going to be installed
              Depends : reprapfirmware (>= 3.1.1-1) but it is not going to be installed
              Depends : reprapfirmware (<= 3.1.1-999) but it is not going to be installed
              E: Unable to correct problems, you have held broken packages *

              ? 1 Reply Last reply 20 Dec 2020, 11:31 Reply Quote 0
              • ?
                A Former User
                last edited by 20 Dec 2020, 11:10

                Not familiar with the banana pi, can you share the output from uname -a and cat /proc/cpuinfo?

                ? 1 Reply Last reply 20 Dec 2020, 11:26 Reply Quote 0
                • ?
                  A Former User @A Former User
                  last edited by A Former User 20 Dec 2020, 11:26

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User @JayJay
                    last edited by 20 Dec 2020, 11:31

                    @JayJay said in Installing DSF on a Banana-Pi-M3 with Raspbian OS:

                    gpg: key DA91C86B: no valid user IDs

                    btw seems to sugget bananapi with raspios/raspbian isnt fully compatible because it works just fine on the regular pi with regular raspios:

                    pi@raspberrypi:~$ wget -qO - "https://pkg.duet3d.com/duet3d.gpg" | sudo apt-key add -
                    wget -qO - "https://pkg.duet3d.com/duet3d.gpg" | sudo apt-key add -
                    OK
                    pi@raspberrypi:~$
                    ? 1 Reply Last reply 20 Dec 2020, 11:37 Reply Quote 0
                    • ?
                      A Former User @A Former User
                      last edited by A Former User 20 Dec 2020, 11:37

                      @bearer

                      The bananapi runs an ARMv7 processor, so it "should" work

                      Duet Software Framework resembles a collection of programs to control an attached Duet3D board from a Linux-based mini computer (SBC). Since it is using .NET Core, it requires an ARM processor that supports ARMv7 instructions processor is required

                      For clarity: I'm successfully running a banana-pi with DSF and i followed the guide the OP listed so im not sure why it worked for me but not him.

                      1 Reply Last reply Reply Quote 1
                      • undefined
                        JayJay
                        last edited by JayJay 20 Dec 2020, 11:52

                        uname -a :

                        Linux bpi-iot-ros-ai 3.4.39-BPI-M3-Kernel #1 SMP PREEMT Sat May 26 10:03:38 UTC 2018 arm7l GNU/Linux

                        cat /proc/cpuinfo:

                        Processor : ARMv7 Processor rev 5 (v71)
                        processor : 0
                        BogoMIPS : 4800
                        processor : 1
                        BogoMIPS : 4800
                        processor : 2
                        BogoMIPS : 4800
                        processor : 3
                        BogoMIPS : 4800
                        processor : 4
                        BogoMIPS : 4800
                        processor : 5
                        BogoMIPS : 4800
                        processor : 6
                        BogoMIPS : 4800
                        processor : 7
                        BogoMIPS : 4800
                        Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt
                        CPU implementer : 0x41
                        CPU architecture : 7
                        CPU Variant : 0x0
                        CPU Part : 0xc07
                        CPU Revision : 5
                        Hardare : sun8i
                        Revision : 0000
                        Serial : 50300102008add2ed0e

                        @CaLviNx

                        you say you have this running on a bananapi, would you be able to share your image if that is even possible.

                        ? ? 2 Replies Last reply 20 Dec 2020, 12:06 Reply Quote 0
                        • ?
                          A Former User @JayJay
                          last edited by A Former User 20 Dec 2020, 12:06

                          @JayJay

                          I'm not sure how to do that!

                          My banana-pi is an older M2 (says its an ARMv7 too though)

                          EDIT: im running Debian not raspbian (dont know if that makes a difference or not)

                          OS im running

                          1 Reply Last reply Reply Quote 0
                          • ?
                            A Former User @JayJay
                            last edited by 20 Dec 2020, 15:33

                            @JayJay said in Installing DSF on a Banana-Pi-M3 with Raspbian OS:

                            Linux bpi-iot-ros-ai 3.4.39-BPI-M3-Kernel

                            That's not raspbian/raspios is it?

                            undefined 1 Reply Last reply 20 Dec 2020, 15:55 Reply Quote 0
                            • undefined
                              JayJay @A Former User
                              last edited by JayJay 20 Dec 2020, 15:55

                              @bearer

                              well im not sure what its telling you, im a new user to linux in general , I just downloaded the version of raspbian from the bananapi forum my thinking was that if I used a bananapi version of raspbian I would have a better chance of success .

                              Raspbian for Bpi

                              jay_s_ukundefined 1 Reply Last reply 20 Dec 2020, 16:06 Reply Quote 0
                              • jay_s_ukundefined
                                jay_s_uk @JayJay
                                last edited by 20 Dec 2020, 16:06

                                @JayJay you may be able to succeed with armbian

                                Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                                undefined 1 Reply Last reply 20 Dec 2020, 16:57 Reply Quote 0
                                • undefined
                                  JayJay @jay_s_uk
                                  last edited by 20 Dec 2020, 16:57

                                  @jay_s_uk

                                  i will try it thank you

                                  1 Reply Last reply Reply Quote 0
                                  • undefined
                                    JayJay
                                    last edited by 20 Dec 2020, 20:46

                                    So progress or a sort.

                                    two steps forward and five back...

                                    I installed armbian THANK YOU @jay_s_uk which successfully allowed me to install DSF.

                                    I set the buffer size as requested, and according to the bananapi docs the M3 has the same pinout as a Rpi.

                                    I now get a new issue !!

                                    When I run : sudo systemctl start duetcontrolserver
                                    It outputs the following:

                                    Dec 20 19:30 bananapim3 DuetControlServer [724] : Started Duet control Server
                                    Dec 20 19:30 bananapim3 DuetControlServer [724] : Duet control Server v3.1.1
                                    Dec 20 19:30 bananapim3 DuetControlServer [724] : Written by Christian Hammacher for Duet3D
                                    Dec 20 19:30 bananapim3 DuetControlServer [724] : Licensed under the terms of the GNU Public License Version 3
                                    Dec 20 19:30 bananapim3 DuetControlServer [724] : [info] Settings Loaded
                                    Dec 20 19:30 bananapim3 DuetControlServer [724] : [Info] Environment initialized
                                    Dec 20 19:30 bananapim3 DuetControlServer [724] : [fatal] Could not connect to Duet (error 517. Cannot put line into event mode)

                                    And that then starts a loop

                                    Ideas ?

                                    chrishammundefined 1 Reply Last reply 23 Dec 2020, 11:06 Reply Quote 0
                                    • ?
                                      A Former User
                                      last edited by A Former User 20 Dec 2020, 21:09

                                      You might need the gpio library used? (Sorry can't remember the name, but if you look for the loopback test thread i think it's mentioned there).

                                      edit: found the reference when on computer, so maybe try sudo apt-get install gpiod ?

                                      undefined 1 Reply Last reply 20 Dec 2020, 22:41 Reply Quote 0
                                      • undefined
                                        JayJay @A Former User
                                        last edited by 20 Dec 2020, 22:41

                                        @bearer

                                        I installed the library and still no go.

                                        i invited a friend over who has a raspberry-pi (3b+) we plugged that in with a copy of official Raspbian image and that worked perfect, so i now know its not the Duet-3 .

                                        i tried to get into armbian-config to set the spi but armbian-config->system->hardware throws up an error :

                                        armbian-config hardware error expected at least 6 tokens for checklist have 4 use --help to list options. submodule.

                                        1 Reply Last reply Reply Quote 0
                                        • undefined
                                          JayJay
                                          last edited by 22 Dec 2020, 10:53

                                          @bearer

                                          So i got raspbian to actaully install the DSF package but i now have an error which is evidently linked to the SPI connection not being activated.

                                          As i get the following error

                                          [Fatal] could not connecto to Duet (error 2 cannot open GPIO device file  '/dev/gpiochip0/
                                          

                                          I am not a linux user and I am not that good with coding so i really need a idiots step by step guide on what i need to do to enable the SPI

                                          on the banana-pi (even with raspbian) there is NO section in raspi-config to enable the SPI

                                          so im at a loss as to how i go about enabling it and i looked at some of the online guides on how to do this and i became very very lost as it is all greek to me.

                                          i installed RPI.GPIO but how to actually use it and configure things again all greek to me.

                                          is anyone able to advise ?

                                          1 Reply Last reply Reply Quote 0
                                          2 out of 38
                                          • First post
                                            2/38
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA