• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    joeko
    last edited by 17 Dec 2021, 13:26

    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 ?

    undefined 1 Reply Last reply 17 Dec 2021, 16:42 Reply Quote 0
    • undefined
      chrishamm administrators @joeko
      last edited by 17 Dec 2021, 16:42

      @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

      undefined 1 Reply Last reply 18 Dec 2021, 06:36 Reply Quote 0
      • undefined
        joeko
        last edited by 17 Dec 2021, 16:54

        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

        undefined 1 Reply Last reply 18 Dec 2021, 07:47 Reply Quote 0
        • undefined
          joeko @chrishamm
          last edited by 18 Dec 2021, 06:36

          @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
          • undefined
            rjenkinsgb @joeko
            last edited by 18 Dec 2021, 07:47

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

            undefined 1 Reply Last reply 18 Dec 2021, 08:03 Reply Quote 1
            • undefined
              joeko @rjenkinsgb
              last edited by joeko 18 Dec 2021, 08:03

              @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

              undefined 1 Reply Last reply 21 Dec 2021, 09:46 Reply Quote 0
              • undefined
                jay_s_uk @joeko
                last edited by 21 Dec 2021, 09:46

                @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

                undefined 1 Reply Last reply 21 Dec 2021, 15:44 Reply Quote 0
                • undefined
                  joeko @jay_s_uk
                  last edited by 21 Dec 2021, 15:44

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

                  undefined 1 Reply Last reply 21 Dec 2021, 15:47 Reply Quote 0
                  • undefined
                    jay_s_uk @joeko
                    last edited by 21 Dec 2021, 15:47

                    @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
                    • undefined
                      joeko
                      last edited by 21 Dec 2021, 15:48

                      thank you 🙂

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