0
stareintheair

Automating armbian-config

Recommended Posts

Hello,

 

I'm setting up my Odroids with Ansible and managed to automated almost everything. I just got a HC1 and read on the download page that I should load optimized board configuration in armbian-config. Sadly, armbian-config seems to be an interactive only tool. Are there ways to automate armbian-config? The easiest way would be command line arguments.

 

I also tried to understand what the DTB menu options actually do from the source code but was unsuccessful.

 

My best idea now is to use expect, but that doesn't seem stable:

#!/usr/bin/expect

set timeout 10
spawn armbian-config

sleep 5
# Enter System menu
send "\n"
sleep 5
# Enter DTB menu
send "d\n"
sleep 5
# Choose HC1 option
send "h\n"
sleep 5
# Cancel reboot
send "c"

Am I overlooking something? Any other ideas?

 

Thanks and kind regards.

Share this post


Link to post
Share on other sites
43 minutes ago, stareintheair said:

Sadly, armbian-config seems to be an interactive only tool.


I would like to see all the needed feature implemented, but if I am pretty much alone doing this ... it will take months - years. Start changing the script towards this goal ... I am sure someone else also wants to have this feature, I will help as much as possible.

 

For example, our build script reads and handles parameters:

https://github.com/armbian/build/blob/master/compile.sh#L60

Share this post


Link to post
Share on other sites
17 hours ago, stareintheair said:

I'm setting up my Odroids with Ansible and managed to automated almost everything. I just got a HC1 and read on the download page that I should load optimized board configuration in armbian-config. Sadly, armbian-config seems to be an interactive only tool. Are there ways to automate armbian-config? The easiest way would be command line arguments.


Ansible is the magic word...

What steps specifically do you need to automate?   ....to your point armbian config won't help...

the device tree overlay step is updating /boot/armbianEnv.txt   so lineinfile is  your friend for that.  Here's a few more breadcrumbs for armbianEnv.txt https://docs.armbian.com/User-Guide_Allwinner_overlays/#armbianenvtxt-entries-reference

Share this post


Link to post
Share on other sites
3 hours ago, lanefu said:

What steps specifically do you need to automate?


Ideally any feature ;) I would also wants to use it some time, but no time for RFC.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0