Which way to update MiSTer?

Kernel, Main, Utilities & Applications, Miscellaneous Devices.
apfel
Posts: 3
Joined: Thu Dec 09, 2021 11:56 am
Has thanked: 1 time
Been thanked: 1 time

Which way to update MiSTer?

Unread post by apfel »

At the moment I know about three ways to update the mister system and the cores by scripts.
  • update
  • update_all
  • downloader
Which is the default way to keep everything up to date? What are the pros and cons of the different ways. Are there other scripted ways?
DiamondDave
Posts: 75
Joined: Mon Feb 22, 2021 12:31 am
Has thanked: 96 times
Been thanked: 24 times

Re: Which way to update MiSTer?

Unread post by DiamondDave »

Use update_all. Gives you everything you need.
User avatar
darksakul
Posts: 352
Joined: Mon May 25, 2020 4:34 pm
Has thanked: 397 times
Been thanked: 73 times

Re: Which way to update MiSTer?

Unread post by darksakul »

Update or Update All are the choices I go with.
If it's a new SD card installation I go with the regular Update first.

You can manually update or add files to your SD card manually by drag and dropping files on your SD card on your PC by ether putting the SD card into a card reader or over a network with a FTP client. This is fine if you are downloading a single core, replacing or editing a single file or something of the like. Its only good for small changes and not for general updates. You still need Update or Update_All if you want to update the Mister framework or the Linux installation on the SD card.
It is my great regret that we live in an age that is proud of machines that think and suspicious of people who try to.
Marchombre
Posts: 2
Joined: Thu Jun 04, 2020 5:15 am

Re: Which way to update MiSTer?

Unread post by Marchombre »

Hi there,
Regarding updates, there's something I always wondered.

Is there a way to select which cores we want to download and keep updated ? I'm only using a few console cores as well as a couple of arcade ones (mostly Jotego cores). So I don't see the point of having every available cores for micro pc, arcades, consoles and so on in my SD card. It makes searching things more simple for me.
Up till now I have been updating manually every now and then, but I'd love to have a way to do this automatically. Is it possible ?
akeley
Top Contributor
Posts: 1303
Joined: Mon May 25, 2020 7:54 pm
Has thanked: 416 times
Been thanked: 399 times

Re: Which way to update MiSTer?

Unread post by akeley »

Marchombre wrote: Sun Dec 12, 2021 8:51 am Is there a way to select which cores we want to download and keep updated ?
viewtopic.php?f=27&t=3374
Marchombre
Posts: 2
Joined: Thu Jun 04, 2020 5:15 am

Re: Which way to update MiSTer?

Unread post by Marchombre »

Thank you !
edburns
Posts: 28
Joined: Mon Oct 11, 2021 7:33 pm
Has thanked: 8 times
Been thanked: 2 times

Re: Which way to update MiSTer?

Unread post by edburns »

I also am fond of https://github.com/theypsilon/Update_All_MiSTer update_all, but how can I tell whether or not it successfully ran all the way to completion? I am concerned that I ran out of space on the 8gb SD card and the script just failed. Is there any way to tell if I need to redo the whole thing, but using a larger sd card?
jca
Top Contributor
Posts: 1911
Joined: Wed May 27, 2020 1:59 pm
Has thanked: 145 times
Been thanked: 454 times

Re: Which way to update MiSTer?

Unread post by jca »

/media/fat/Scripts/.mister_updater contains the logs.
edburns
Posts: 28
Joined: Mon Oct 11, 2021 7:33 pm
Has thanked: 8 times
Been thanked: 2 times

Re: Which way to update MiSTer?

Unread post by edburns »

Hello jca, it turns out I don't have that file on my sd, even after successfully running update_all.sh.

I do see

Code: Select all

./Scripts/.config/update_all/update_all.log
. Poking around some more, I see:

Code: Select all

/mnt/e/Scripts/.config$ find . -type f -exec ls -la {} \; -print
-rwxrwxrwx 1 root root 0 Jan  1 21:46 ./update_all/downloader_initial_write
./update_all/downloader_initial_write
-rwxrwxrwx 1 root root 275 Jan  1  1980 ./update_all/update_all.log
./update_all/update_all.log
-rwxrwxrwx 1 root root 2309 Jan 25 14:39 ./downloader/downloader2.log
./downloader/downloader2.log
-rwxrwxrwx 1 root root 568185 Jan 25 14:39 ./downloader/downloader.json.zip
./downloader/downloader.json.zip
-rwxrwxrwx 1 root root 0 Jan 25 14:39 ./downloader/downloader.last_successful_run
./downloader/downloader.last_successful_run
-rwxrwxrwx 1 root root 482038 Jan 25 13:22 ./downloader/downloader1.log
./downloader/downloader1.log
-rwxrwxrwx 1 root root 26 Jan 25 14:36 ./mame-getter/last_run
./mame-getter/last_run
-rwxrwxrwx 1 root root 26 Jan 25 14:38 ./hbmame-getter/last_run
./hbmame-getter/last_run
-rwxrwxrwx 1 root root 125872 Jan  1 23:24 ./arcade-organizer/data.zip
./arcade-organizer/data.zip
-rwxrwxrwx 1 root root 403 Jan  1 23:25 ./arcade-organizer/orgdir-folders
./arcade-organizer/orgdir-folders
-rwxrwxrwx 1 root root 26 Jan 25 14:38 ./arcade-organizer/last_run
./arcade-organizer/last_run
-rwxrwxrwx 1 root root 0 Jan 25 14:38 ./arcade-organizer/issues.log
./arcade-organizer/issues.log
So to complete my question, consider this output:

Code: Select all

/mnt/e$ find Scripts/.config/ -type f -print -exec grep -A 2 Errors: {} \; 
Scripts/.config/update_all/downloader_initial_write
Scripts/.config/update_all/update_all.log
Scripts/.config/downloader/downloader2.log
Scripts/.config/downloader/downloader.json.zip
Scripts/.config/downloader/downloader.last_successful_run
Scripts/.config/downloader/downloader1.log
Errors:
none.

Scripts/.config/mame-getter/last_run
Scripts/.config/hbmame-getter/last_run
Scripts/.config/arcade-organizer/data.zip
Scripts/.config/arcade-organizer/orgdir-folders
Scripts/.config/arcade-organizer/last_run
Scripts/.config/arcade-organizer/issues.log
Is the presence of Errors: none in the downloader*.log sufficient to conclude that the run was successful?
jca
Top Contributor
Posts: 1911
Joined: Wed May 27, 2020 1:59 pm
Has thanked: 145 times
Been thanked: 454 times

Re: Which way to update MiSTer?

Unread post by jca »

Try /media/fat/Scripts/.config/update_all, the log file should be there. I guess things changed at some point as I have these 2 different folders. I will delete them and see what appears next time I run the update.
If you have no error everything should be fine.
jca
Top Contributor
Posts: 1911
Joined: Wed May 27, 2020 1:59 pm
Has thanked: 145 times
Been thanked: 454 times

Re: Which way to update MiSTer?

Unread post by jca »

OK, I figured it out: you are using the downloader while I am running the old updater in update all script. The log files I mentioned in my first post are the logs of the old updater.
User avatar
Morfious
Posts: 37
Joined: Mon May 25, 2020 10:49 am
Has thanked: 10 times
Been thanked: 11 times

Re: Which way to update MiSTer?

Unread post by Morfious »

My understanding of things:

Update - OG method of updating the main Mister OS.

update_all - Newer fancy method of updating the Main Mister OS, Jotego Cores, Mame and HBMame files, Filters, cheats, TTY2OLED files, linux etc. Can be controlled with ini files to customize its options. You can also set up update_all to use the downloader script for update purposes.

downloader - Newest update script. Main idea is to allow update to proceed as fast as possible. Not as customizable as update all. Does not allow for update of filters / Mame files / jotego cores etc. Still WIP, feature additions etc.

I am playing with the PSX core (unstable nightly builds of OS and PSX core) so have the Main OS update turned off on my horizontal cab. I use update_all with the downloader option in my vertical cab that is running the main stable build.
jca
Top Contributor
Posts: 1911
Joined: Wed May 27, 2020 1:59 pm
Has thanked: 145 times
Been thanked: 454 times

Re: Which way to update MiSTer?

Unread post by jca »

Morfious wrote: Mon Jan 31, 2022 8:53 pm ...
I am playing with the PSX core (unstable nightly builds of OS and PSX core) so have the Main OS update turned off on my horizontal cab. I use update_all with the downloader option in my vertical cab that is running the main stable build.
I suppose you are using the downloader and this is the reason you turned it off. If you select to use the old updater it will not remove the nightly builds and you keep your MISTer updated.
Post Reply