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

    SBC modify the config.json while installation

    Scheduled Pinned Locked Moved
    Firmware wishlist
    4
    10
    384
    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.
    • joekoundefined
      joeko
      last edited by

      hi,
      it would be really nice if while sbc setup user get the offer to modify the config.jason to set the transfer pin.
      is this possible ?

      chrishammundefined 1 Reply Last reply Reply Quote 0
      • chrishammundefined
        chrishamm administrators @joeko
        last edited by

        @joeko I don't see the point for this. We ship the Duets with a ribbon cable designed for the Raspberry Pi that works out-of-the-box with our DuetPi images and there is sufficient documentation describing how to change the pins in config.json if another SBC is supposed to be connected. Since /opt/dsf/conf/config.json isn't overwritten on upgrade unless explicitly specified by the user, the configuration will remain functional. Besides, you need to figure out the GPIO number first so I doubt adding a prompt would be a big improvement.

        In case you need to set up several SD cards, you could either build your own Linux image with a custom config.json file or write a script to adjust it automatically when the DSF installation is done.

        Duet software engineer

        joekoundefined 1 Reply Last reply Reply Quote 0
        • joekoundefined
          joeko
          last edited by

          hmm, it is much easier to setup without errors and raspberry pi is not the best choice as sbc. now you have to install, get error with freeze, modify remove and install new. with modify at setup all this is not needed and should be easy to do

          rjenkinsgbundefined 1 Reply Last reply Reply Quote 0
          • joekoundefined
            joeko @chrishamm
            last edited by

            @chrishamm said in SBC modify the config.json while installation:

            @joeko I don't see the point for this. We ship the Duets with a ribbon cable designed for the Raspberry Pi that works out-of-the-box with our DuetPi images and there is sufficient documentation describing how to change the pins in config.json if another SBC is supposed to be connected. Since /opt/dsf/conf/config.json isn't overwritten on upgrade unless explicitly specified by the user, the configuration will remain functional. Besides, you need to figure out the GPIO number first so I doubt adding a prompt would be a big improvement.

            In case you need to set up several SD cards, you could either build your own Linux image with a custom config.json file or write a script to adjust it automatically when the DSF installation is done.

            in fact this answer confused me a little. you dont really see the point for this ?
            of course this should be possible no question for many reasons. one of this is that running sbc with sd cards is not the best solution. when duet would be a part of raspberry than ok but for a company like duet with rrf firmware ?

            1 Reply Last reply Reply Quote 0
            • rjenkinsgbundefined
              rjenkinsgb @joeko
              last edited by

              @joeko said in SBC modify the config.json while installation:

              raspberry pi is not the best choice as sbc.

              Out of curiosity, what is the "better" SBC you are suggesting??

              Robert J.

              Printers: Overlord pro, Kossel XL+ with Duet 6HC and "Frankentron", TronXY X5SA Pro converted to E3D toolchange with Duet 6HC and 1LC toolboards.

              joekoundefined 1 Reply Last reply Reply Quote 1
              • joekoundefined
                joeko @rjenkinsgb
                last edited by joeko

                @rjenkinsgb said in SBC modify the config.json while installation:

                @joeko said in SBC modify the config.json while installation:

                raspberry pi is not the best choice as sbc.

                Out of curiosity, what is the "better" SBC you are suggesting??

                i own some odroids with emmc and also an raspberry pi.
                of course more people using raspberrys because maybe they dont know others but runing emmc and not sd cards is not only faster (about 3 times) also more stable. with raspberry i killed some sd cards in the last years. with emmc not one. of course you can use an ssd....but all in all it is expensive. also are the odroids not so power sensible. the rp4 runs hot. for me are the odroids better.

                now is duet not an low cost board and a quality product should offer this

                jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                • jay_s_ukundefined
                  jay_s_uk @joeko
                  last edited by

                  @joeko thanks to @Falcounet, the teamgloomy team have just released a new update script for DSF and one of the features is backing up the transfer ready pin and reinstating it afterwards.
                  Info can be found here https://teamgloomy.github.io/stm32_sbc.html#updating-dsf

                  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

                  joekoundefined 1 Reply Last reply Reply Quote 0
                  • joekoundefined
                    joeko @jay_s_uk
                    last edited by

                    @jay_s_uk said in SBC modify the config.json while installation:

                    @joeko thanks to @Falcounet, the teamgloomy team have just released a new update script for DSF and one of the features is backing up the transfer ready pin and reinstating it afterwards.
                    Info can be found here https://teamgloomy.github.io/stm32_sbc.html#updating-dsf

                    sounds well 🙂
                    do you know how it works ? while an update you have the choice for update also the config file or use the installed one. offer this script also to set the needed pins while the installation ?

                    jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                    • jay_s_ukundefined
                      jay_s_uk @joeko
                      last edited by

                      @joeko you can see the contents of the script here https://github.com/TeamGloomy/rrf_stm32_sbc/blob/master/armbian/userpatches/overlay/rrf_upgrade.sh
                      you have to get DSF up and running first, including setting your correct transfer ready pin, SPI and GPIO chip details but after that, you can use this script and it'll restore those 3 custom settings, allowing you to select "Y" to update the config.json

                      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

                      1 Reply Last reply Reply Quote 0
                      • joekoundefined
                        joeko
                        last edited by

                        thank you 🙂

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