MiSTer updater script

https://github.com/MiSTer-devel/Main_MiSTer/wiki

Moderators: Mug UK, Zorro 2, Greenious, spiny, Sorgelig, Moderator Team

SegaMan
Atari freak
Atari freak
Posts: 63
Joined: Sat Oct 27, 2018 12:59 pm

Re: MiSTer updater script

Postby SegaMan » Thu Jan 10, 2019 11:15 am

thx @locutus73

It´s clear now to me :)

Locutus73
Captain Atari
Captain Atari
Posts: 472
Joined: Wed Feb 07, 2018 6:13 pm

Re: MiSTer updater script

Postby Locutus73 » Thu Jan 10, 2019 12:50 pm

Sorgelig wrote:MiSTer.ini is on github since beginning:
https://github.com/MiSTer-devel/Main_Mi ... MiSTer.ini

No Sorg, he was referring to the optional updater ini (do you remember you suggested this mechanism?)

Regards.
Locutus73

Locutus73
Captain Atari
Captain Atari
Posts: 472
Joined: Wed Feb 07, 2018 6:13 pm

Re: MiSTer updater script

Postby Locutus73 » Thu Jan 10, 2019 12:53 pm

SegaMan wrote:thx @locutus73

It´s clear now to me :)


Thank you... but it isn't still clear to me how making the README more noob user friendly...

Regards.

Locutus73

MattE888
Atari nerd
Atari nerd
Posts: 48
Joined: Fri Nov 02, 2018 5:34 pm

Re: MiSTer updater script

Postby MattE888 » Thu Jan 10, 2019 1:44 pm

Locutus73, your instructions are very clear and I didn't have any problems. So I'm totally fine how it is! However, if you are wanting to super polish the documentation, it could be more consistent with how the MiSTer files and documentation are presented. The MiSTer has a totally separate ini file that is linked to, that can be downloaded. If the updater script documentation had a separate ini file to link to and for people to download, that would be more consistent with the MiSTer files and documentation.

edit: I just noticed that esmith13 was recommending this too. My only real addition to his request is that I'm pointing out that consistency with the MiSTer files and documentation(by including a separate downloadable ini file) is probably a good thing.

Also, thanks so much for adding core filters to that ini file. Very nice!!!!

SegaMan
Atari freak
Atari freak
Posts: 63
Joined: Sat Oct 27, 2018 12:59 pm

Re: MiSTer updater script

Postby SegaMan » Thu Jan 10, 2019 6:43 pm

Locutus73 wrote:
SegaMan wrote:thx @locutus73

It´s clear now to me :)


Thank you... but it isn't still clear to me how making the README more noob user friendly...

Regards.

Locutus73


I think a finished (downloadable) example of update.ini/mister_updater.ini file on your github page could be helpful. :angel:

Locutus73
Captain Atari
Captain Atari
Posts: 472
Joined: Wed Feb 07, 2018 6:13 pm

Re: MiSTer updater script

Postby Locutus73 » Thu Jan 10, 2019 7:02 pm

ini examples added.

Regards.

Locutus73

SegaMan
Atari freak
Atari freak
Posts: 63
Joined: Sat Oct 27, 2018 12:59 pm

Re: MiSTer updater script

Postby SegaMan » Sat Jan 12, 2019 6:56 pm

Ok, one thing to know for me :angel:

When i use update.sh

it downloads the latest mister_updater.sh and run it.

Will it than use the mister_updater.ini (i created with my settings)?

Locutus73
Captain Atari
Captain Atari
Posts: 472
Joined: Wed Feb 07, 2018 6:13 pm

Re: MiSTer updater script

Postby Locutus73 » Sat Jan 12, 2019 7:39 pm

SegaMan wrote:Ok, one thing to know for me :angel:

When i use update.sh

it downloads the latest mister_updater.sh and run it.

Will it than use the mister_updater.ini (i created with my settings)?


It will use update.ini or whatever you call the script you launch through the OSD.

Regards.

Locutus73

SegaMan
Atari freak
Atari freak
Posts: 63
Joined: Sat Oct 27, 2018 12:59 pm

Re: MiSTer updater script

Postby SegaMan » Sat Jan 12, 2019 8:43 pm

Ok.

Then i put the user option selection (https://github.com/MiSTer-devel/Updater ... sh#L41-L90) into update.ini and when launching the update.sh it will use this settings?

Locutus73
Captain Atari
Captain Atari
Posts: 472
Joined: Wed Feb 07, 2018 6:13 pm

Re: MiSTer updater script

Postby Locutus73 » Sat Jan 12, 2019 9:54 pm

SegaMan wrote:Ok.

Then i put the user option selection (https://github.com/MiSTer-devel/Updater ... sh#L41-L90) into update.ini and when launching the update.sh it will use this settings?


Correct... usually I put only the options I customize in the ini.

Regards.

Locutus73

SegaMan
Atari freak
Atari freak
Posts: 63
Joined: Sat Oct 27, 2018 12:59 pm

Re: MiSTer updater script

Postby SegaMan » Sat Jan 12, 2019 9:56 pm

Thx for help :cheers:

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4699
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: MiSTer updater script

Postby Sorgelig » Mon Jan 14, 2019 4:47 am

by the way, to load the rbf you can use command fpga:
fpga <path_to_rbf>

it will load rbf and trigger the reset. So, this loading is a little slower than load through menu, but should be ok for specific needs.

Locutus73
Captain Atari
Captain Atari
Posts: 472
Joined: Wed Feb 07, 2018 6:13 pm

Re: MiSTer updater script

Postby Locutus73 » Mon Jan 14, 2019 8:10 am

Sorgelig wrote:by the way, to load the rbf you can use command fpga:
fpga <path_to_rbf>

it will load rbf and trigger the reset. So, this loading is a little slower than load through menu, but should be ok for specific needs.


Oh, great! Thanx!

Locutus73

Locutus73
Captain Atari
Captain Atari
Posts: 472
Joined: Wed Feb 07, 2018 6:13 pm

Re: MiSTer updater script

Postby Locutus73 » Mon Jan 14, 2019 8:28 am

Sorgelig wrote:by the way, to load the rbf you can use command fpga:
fpga <path_to_rbf>

it will load rbf and trigger the reset. So, this loading is a little slower than load through menu, but should be ok for specific needs.


With trigger the reset do you mean the FPGA/core reset? Does this command reset/force main MiSTer to reload the ini or do I have to kill and relaunch it? If I have to relaunch MiSTer, do you prefer the rbf to be called first or later (I guess later), I mean something like.

Code: Select all

killall MiSTer
/media/fat/MiSTer >/dev/ttyS0 2>/dev/ttyS0 </dev/null &
fpga/media/fat/menu.rbf

For loading a new ini and resetting the main menu.

Thank you in advance.
Regards.

Locutus73

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4699
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: MiSTer updater script

Postby Sorgelig » Mon Jan 14, 2019 10:26 am

just try and you will see.

Locutus73
Captain Atari
Captain Atari
Posts: 472
Joined: Wed Feb 07, 2018 6:13 pm

Re: MiSTer updater script

Postby Locutus73 » Mon Jan 14, 2019 12:51 pm

Sorgelig wrote:just try and you will see.

Ok, as soon as I am home I'll fiddle with it.

Ciao.

Locutus73

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4699
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: MiSTer updater script

Postby Sorgelig » Mon Jan 14, 2019 3:49 pm

You don't need to kill the MiSTer.
Just fpga /media/fat/menu.rbf will do everything.

Locutus73
Captain Atari
Captain Atari
Posts: 472
Joined: Wed Feb 07, 2018 6:13 pm

Re: MiSTer updater script

Postby Locutus73 » Mon Jan 14, 2019 7:25 pm

Sorgelig wrote:You don't need to kill the MiSTer.
Just fpga /media/fat/menu.rbf will do everything.

Thnx, I just tested fpga /media/fat/menu.rbf, but I see on the serial console a full reboot (I see u-boot messages), so it seems equivalent to reboot now, at least if I use menu.rbf; am I wrong?

Thank you in advance.
Regards.

Locutus73

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4699
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: MiSTer updater script

Postby Sorgelig » Mon Jan 14, 2019 8:07 pm

Locutus73 wrote:Thnx, I just tested fpga /media/fat/menu.rbf, but I see on the serial console a full reboot (I see u-boot messages), so it seems equivalent to reboot now, at least if I use menu.rbf; am I wrong?

As i've told earlier, core loading will trigger the reset of HPS part.

Locutus73
Captain Atari
Captain Atari
Posts: 472
Joined: Wed Feb 07, 2018 6:13 pm

Re: MiSTer updater script

Postby Locutus73 » Tue Jan 15, 2019 9:40 am

Sorgelig wrote:
Locutus73 wrote:Thnx, I just tested fpga /media/fat/menu.rbf, but I see on the serial console a full reboot (I see u-boot messages), so it seems equivalent to reboot now, at least if I use menu.rbf; am I wrong?

As i've told earlier, core loading will trigger the reset of HPS part.

Yeah I see... It's just that in the first post you just said reset and I was projecting my hope for just a "core reset" or "MiSTer executable reset", not a proper system reset. It's just that some users are asking if there's a way to apply the ini settings without rebooting, but that's not a major issue to me.

Thank you.

Locutus73

high5
Atariator
Atariator
Posts: 28
Joined: Thu Dec 27, 2018 10:29 pm

Re: MiSTer updater script

Postby high5 » Tue Jan 15, 2019 11:23 am

Hey, thanks for the script. Works like a charm for me. :D

Just a small note from a first time MiSTer and update-script user. After I prepared the SD card I did not update any MiSTer-components manually so the scripts-options was not present in OSD. Did execute update.sh via ssh for the first time and after that everything also works via OSD.

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4699
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: MiSTer updater script

Postby Sorgelig » Tue Jan 15, 2019 2:58 pm

Locutus73 wrote:
Sorgelig wrote:
Locutus73 wrote:Thnx, I just tested fpga /media/fat/menu.rbf, but I see on the serial console a full reboot (I see u-boot messages), so it seems equivalent to reboot now, at least if I use menu.rbf; am I wrong?

As i've told earlier, core loading will trigger the reset of HPS part.

Yeah I see... It's just that in the first post you just said reset and I was projecting my hope for just a "core reset" or "MiSTer executable reset", not a proper system reset. It's just that some users are asking if there's a way to apply the ini settings without rebooting, but that's not a major issue to me.

Thank you.

Locutus73

i didn't think about loading the core outside the MiSTer as it's beyond the scope of MiSTer usage. So it's workaround way - so can't expect smoothness of this way.
Actually INI file re-read with every core load. So, if you change some settings in INI and then load the core from OSD then it will use new settings from ini. Probably it will be enough in most cases. If you want to change the settings for current core, then simple kill and load MiSTer will apply new ini settings without reloading the core.

As for loading the core from shell without reset - i will think about it. If you have an idea how to send the command to MiSTer binary - tell me.

Locutus73
Captain Atari
Captain Atari
Posts: 472
Joined: Wed Feb 07, 2018 6:13 pm

Re: MiSTer updater script

Postby Locutus73 » Tue Jan 15, 2019 3:07 pm

New mister_updater.sh:
Version 1.8 - 2019-01-15 - Using /media/fat/#Scripts/.mister_updater as work directory, you can safely delete MiSTer_yyyymmdd, menu_yyyymmdd.rbf and release_yyyymmdd.rar from SD root now; using empty files as semaphores and corrected a minor bug about their target directories; improved user option comments.

https://github.com/MiSTer-devel/Updater_script_MiSTer

Regards.

Locutus73

User avatar
Shazz
Atari Super Hero
Atari Super Hero
Posts: 575
Joined: Wed Aug 27, 2003 9:27 am
Location: Crétin des Alpes dauphinoises

Re: MiSTer updater script

Postby Shazz » Wed Jan 16, 2019 12:01 am

Sorgelig wrote:by the way, to load the rbf you can use command fpga:
fpga <path_to_rbf>

it will load rbf and trigger the reset. So, this loading is a little slower than load through menu, but should be ok for specific needs.


Would it be possible to add an optional parameter to the fpga command to automatically mount a virtuak disk/rom ?
...8bits are enough...

jayp76
Atari nerd
Atari nerd
Posts: 48
Joined: Wed Oct 17, 2018 10:09 am

Re: MiSTer updater script

Postby jayp76 » Sun Jan 20, 2019 3:18 pm

@Locutus73

I have a suggestion to your script. Wouldn't it be more user friendly for custom setups to have for e.g DOWNLOAD_NEW_CORES="true" or REPOSITORIES_FILTER="xxx" in a separete file. Because if everybody uses your update.sh script, it automatically uses the default value of said options.
If every user has this in a seperate file, the user could keep his own default values, that are not overwritten by the updater script.


Return to “MiSTer”

Who is online

Users browsing this forum: brunosilva and 5 guests