MiSTer updater script

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

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

SegaMan
Atari maniac
Atari maniac
Posts: 83
Joined: Sat Oct 27, 2018 12:59 pm

Re: MiSTer updater script

Postby SegaMan » Sun Jan 20, 2019 3:45 pm

Create a "update.ini" file and put this options/commands there.

Locutus73 wrote:
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

jayp76
Atari freak
Atari freak
Posts: 51
Joined: Wed Oct 17, 2018 10:09 am

Re: MiSTer updater script

Postby jayp76 » Sun Jan 20, 2019 8:34 pm

yeah i read about the ini file in the wiki. but i got the impression that only filters are used in the in file, not options. If options are possible then i will try that.

Locutus73
Atari Super Hero
Atari Super Hero
Posts: 503
Joined: Wed Feb 07, 2018 6:13 pm

Re: MiSTer updater script

Postby Locutus73 » Mon Jan 21, 2019 5:07 pm

jayp76 wrote:yeah i read about the ini file in the wiki. but i got the impression that only filters are used in the in file, not options. If options are possible then i will try that.

You can use all options. Filters are used in the examples.

Locutus73

User avatar
Newsdee
Atari God
Atari God
Posts: 1504
Joined: Fri Sep 19, 2014 8:40 am

Re: MiSTer updater script

Postby Newsdee » Tue Jan 22, 2019 3:21 am

Just to confirm, the script does not update the Linux image, right?
I thought I saw an option, but re-reading the wiki/doc I see no such thing.

Locutus73
Atari Super Hero
Atari Super Hero
Posts: 503
Joined: Wed Feb 07, 2018 6:13 pm

Re: MiSTer updater script

Postby Locutus73 » Tue Jan 22, 2019 6:13 am

Newsdee wrote:Just to confirm, the script does not update the Linux image, right?
I thought I saw an option, but re-reading the wiki/doc I see no such thing.


https://github.com/MiSTer-devel/Updater ... sh#L92-L93

Regards.

Locutus73

warham
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 104
Joined: Fri Oct 12, 2018 7:17 am

Re: MiSTer updater script

Postby warham » Tue Jan 22, 2019 6:41 am

Locutus73 wrote:
Newsdee wrote:Just to confirm, the script does not update the Linux image, right?
I thought I saw an option, but re-reading the wiki/doc I see no such thing.


https://github.com/MiSTer-devel/Updater ... sh#L92-L93

Regards.

Locutus73



Is this one of those things where you cross your fingers and hope nothing breaks after updating the Linux image?
Is it generally safe to do?

Flausch
Atariator
Atariator
Posts: 27
Joined: Thu Oct 18, 2018 6:27 pm
Location: Germany

Re: MiSTer updater script

Postby Flausch » Tue Jan 22, 2019 7:01 am

I tried the experimental part to update linux. Is there a quick way to verify that it worked?

high5
Atari User
Atari User
Posts: 32
Joined: Thu Dec 27, 2018 10:29 pm

Re: MiSTer updater script

Postby high5 » Tue Jan 22, 2019 10:07 am

Flausch wrote:I tried the experimental part to update linux. Is there a quick way to verify that it worked?
Script-output showed download of new linux.img and uboot.img and timestamps for these files in /media/fat/linux show 19.01.2019

Locutus73
Atari Super Hero
Atari Super Hero
Posts: 503
Joined: Wed Feb 07, 2018 6:13 pm

Re: MiSTer updater script

Postby Locutus73 » Tue Jan 22, 2019 1:40 pm

Flausch wrote:I tried the experimental part to update linux. Is there a quick way to verify that it worked?

Code: Select all

uname -a
through SSH and you can see when the Kernel was compiled.

Regards.

Locutus73

Locutus73
Atari Super Hero
Atari Super Hero
Posts: 503
Joined: Wed Feb 07, 2018 6:13 pm

Re: MiSTer updater script

Postby Locutus73 » Tue Jan 22, 2019 1:43 pm

warham wrote:Is this one of those things where you cross your fingers and hope nothing breaks after updating the Linux image?
Is it generally safe to do?

The released procedure always worked for me, but I won't sell it as a safe procedure and I will always describe it as experimental/do it at your own risk.
This is the output code with the disclaimer

Code: Select all

echo "======================================================================================"
echo "Hold your breath: updating the Kernel, the Linux filesystem, the bootloader and stuff."
echo "Stopping this will make your SD unbootable!"
echo ""
echo "If something goes wrong, please download the SD Installer from"
echo "$SD_INSTALLER_URL"
echo "and copy the content of the files/linux/ directory in the linux directory of the SD."
echo "Reflash the bootloader with the SD Installer if needed."
echo "======================================================================================"


Regards.

Locutus73

warham
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 104
Joined: Fri Oct 12, 2018 7:17 am

Re: MiSTer updater script

Postby warham » Tue Jan 22, 2019 11:18 pm

I just ran the update and I see the version jumped from april to january. So far so good.
ThankS Locutus73

User avatar
Veridor
Atarian
Atarian
Posts: 6
Joined: Sat Mar 09, 2019 3:33 am

Re: MiSTer updater script

Postby Veridor » Sat Mar 09, 2019 3:48 am

So from looking over the updater script, it appears to download the cores into their respective folders on the root beginning with an underscore (_Arcade, _Computer, _Console). For arcade cores in particular, would the ROMs still need to go into the root of the SD card, or would they go into the _Arcade folder instead now? Thank you for your patience as I am just getting into MiSTer now.

Locutus73
Atari Super Hero
Atari Super Hero
Posts: 503
Joined: Wed Feb 07, 2018 6:13 pm

Re: MiSTer updater script

Postby Locutus73 » Sat Mar 09, 2019 10:51 am

Veridor wrote:So from looking over the updater script, it appears to download the cores into their respective folders on the root beginning with an underscore (_Arcade, _Computer, _Console). For arcade cores in particular, would the ROMs still need to go into the root of the SD card, or would they go into the _Arcade folder instead now? Thank you for your patience as I am just getting into MiSTer now.

They can go into the _Arcade directory or wherever you put the rbf core.

Regards.

Locutus73

User avatar
Veridor
Atarian
Atarian
Posts: 6
Joined: Sat Mar 09, 2019 3:33 am

Re: MiSTer updater script

Postby Veridor » Mon Mar 11, 2019 2:02 am

Locutus73 wrote:They can go into the _Arcade directory or wherever you put the rbf core.

Regards.

Locutus73

Thanks for the clarification. Can't wait to get my MiSTer build up an running. I have my DE-10 Nano, and am waiting on SDRAM and I/O boards.

User avatar
Veridor
Atarian
Atarian
Posts: 6
Joined: Sat Mar 09, 2019 3:33 am

Re: MiSTer updater script

Postby Veridor » Sat Mar 16, 2019 5:07 am

I finally have my MiSTer build up and running, and I'm executing the updater script now. Is it normal for it to hang or take a long time on "Checking Menu"? It already checked, downloaded, and moved the MiSTer Main core.

Locutus73
Atari Super Hero
Atari Super Hero
Posts: 503
Joined: Wed Feb 07, 2018 6:13 pm

Re: MiSTer updater script

Postby Locutus73 » Sat Mar 16, 2019 12:48 pm

Veridor wrote:I finally have my MiSTer build up and running, and I'm executing the updater script now. Is it normal for it to hang or take a long time on "Checking Menu"? It already checked, downloaded, and moved the MiSTer Main core.

All cores (including main MiSTer exec and main menu) should take the same time (more or less).

Regards.

Locutus73

toromand
Atari freak
Atari freak
Posts: 57
Joined: Fri Jul 14, 2017 9:36 am

Re: MiSTer updater script

Postby toromand » Sun Mar 31, 2019 8:18 am

After running the latest update script, with Linux update enabled, I took a look at the /media/fat/linux folder and I have this strange situation:
-rwxr-xr-x 1 root root 262144000 Mar 30 11:46 MidiLink.INI
-rwxr-xr-x 1 root root 262144000 Mar 30 11:54 linux.img

Huge MidiLink.INI and same size as linux.img

Anyone?

Locutus73
Atari Super Hero
Atari Super Hero
Posts: 503
Joined: Wed Feb 07, 2018 6:13 pm

Re: MiSTer updater script

Postby Locutus73 » Sun Mar 31, 2019 12:40 pm

toromand wrote:After running the latest update script, with Linux update enabled, I took a look at the /media/fat/linux folder and I have this strange situation:
-rwxr-xr-x 1 root root 262144000 Mar 30 11:46 MidiLink.INI
-rwxr-xr-x 1 root root 262144000 Mar 30 11:54 linux.img

Huge MidiLink.INI and same size as linux.img

Anyone?


Good catch, same here. I think it’s related to the last mv command which moves the contents of the whole linux directory but the system misbehaves after linux.img is overwritten. I’ll try to move all other files first and just linux.img at the very last moment.

I’ll report back when I update the script.

Thanks

Locutus73

Locutus73
Atari Super Hero
Atari Super Hero
Posts: 503
Joined: Wed Feb 07, 2018 6:13 pm

Re: MiSTer updater script

Postby Locutus73 » Mon Apr 01, 2019 2:45 pm

I tried updating Linux again, after deleting MidiLink.INI, mt32-rom-data and soundfonts (and after deleting the 0 bytes release_20190302.rar placeholder file in the hidden .mister_updater directory inside the scripts directory) and I got a regular sized MidiLink.INI.
Regardless I updated mister_updater.sh with a safer Linux system updating strategy: linux.img is moved as the very last step in the process.
Please try again and report back.

Thank you in advance.
Best regards.

Locutus73

moonpatroljunglehunt
Atarian
Atarian
Posts: 3
Joined: Sun Mar 31, 2019 8:43 am

Re: MiSTer updater script

Postby moonpatroljunglehunt » Sun Apr 14, 2019 6:18 am

just wanted to check,

does the updater script just download the newest version of every file again or does it check to see if anything was updated and only downloads if there is a new version?

thanks

high5
Atari User
Atari User
Posts: 32
Joined: Thu Dec 27, 2018 10:29 pm

Re: MiSTer updater script

Postby high5 » Sun Apr 14, 2019 9:54 am

it checks for new files and updates accordingly

BlockABoots
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 141
Joined: Sat Oct 20, 2018 3:20 pm

Re: MiSTer updater script

Postby BlockABoots » Thu Apr 18, 2019 5:55 pm

So if i just want to add an update script to the script folder for just updating linux on its own (naming it update-linux), what line need to be added to the update-linux.ini file

am i right in thinking its just this 1 line......

SD_INSTALLER_URL="https://github.com/MiSTer-devel/SD-Installer-Win64_MiSTer"

BlockABoots
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 141
Joined: Sat Oct 20, 2018 3:20 pm

Re: MiSTer updater script

Postby BlockABoots » Fri Apr 19, 2019 11:10 am

anyone?

Locutus73
Atari Super Hero
Atari Super Hero
Posts: 503
Joined: Wed Feb 07, 2018 6:13 pm

Re: MiSTer updater script

Postby Locutus73 » Fri Apr 19, 2019 4:43 pm

BlockABoots wrote:So if i just want to add an update script to the script folder for just updating linux on its own (naming it update-linux), what line need to be added to the update-linux.ini file

am i right in thinking its just this 1 line......

SD_INSTALLER_URL="https://github.com/MiSTer-devel/SD-Installer-Win64_MiSTer"


Yeah, but it would update all other stuff before updating Linux.
If you want to update just Linux, add:

Code: Select all

REPOSITORIES_FILTER="ZZZZZZZZZZ"
ADDITIONAL_REPOSITORIES=( "" )
SD_INSTALLER_URL="https://github.com/MiSTer-devel/SD-Installer-Win64_MiSTer"


Regards.

Locutus73

BlockABoots
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 141
Joined: Sat Oct 20, 2018 3:20 pm

Re: MiSTer updater script

Postby BlockABoots » Fri Apr 19, 2019 5:13 pm

Thanks, ill give it a go


Return to “MiSTer”

Who is online

Users browsing this forum: No registered users and 3 guests