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



  • 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 ?



  • 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?





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



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



  • 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 *



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



  • This post is deleted!


  • @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:~$
    


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



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



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



  • @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?



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



  • @JayJay you may be able to succeed with armbian



  • @jay_s_uk

    i will try it thank you



  • 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 ?



  • 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 ?



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



  • @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 ?



  • Thank you to those that tried to assist.

    I am somewhat dissapointed that no-one from the duet team offered any assistance whatsoever.

    The only option left is to run the board in standalone mode, i dont want to go with a raspberry pi.



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

    The only option left is to run the board in standalone mode, i dont want to go with a raspberry pi.

    Out of interest why don't you want to use a raspberry pi?



  • @gloomyandy said in UNSOLVED Installing DSF on a Banana-Pi-M3 with Raspbian OS:

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

    The only option left is to run the board in standalone mode, i dont want to go with a raspberry pi.

    Out of interest why don't you want to use a raspberry pi?

    I feel it's a even worse a proposition than the bannana pi, I have used the raspberry pi for a lot of home automation projects that used raspbain and with that the GPIO thing was never an issue but hardware wise I found the raspberry pi's burned out very quickly, making them less cost effective.

    So I was looking for an alternative to the raspberry pi I had high hopes for the bannana pi.

    This being my first one it now seems I should just bite the bullet and pay once for the software/hardware to run all my home automation from a central win pc over a network.

    From reading the forum many people are having connection issues with the Duet 3 to raspberry pi so I am getting the feeling the whole single board computer interface idea is more than a little half baked.

    The lack of support from duet for anything other than a raspberry pi is as i said is dissapointing, and I know the reply to that will be "if you cant work it out on your own you should not be near it" and that too shows the attitude towards its users.



  • I'd be hesitant to say the Raspberries burn out quickly as a general statement, certainly doesn't match my experience.

    But yes, single board computer interface is half baked and intended for OEMs and enthusiasts to build on. What is your end goal with the Pi, be it raspberry, banana, orange or whatnot?



  • This post is deleted!

Log in to reply