SBC modify the config.json while installation
-
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 ? -
@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.
-
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
-
@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 ? -
@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??
-
@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
-
@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 -
@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-dsfsounds 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 ? -
@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 -
thank you