Page 1 of 1

Which way to update MiSTer?

Posted: Sat Dec 11, 2021 7:02 pm
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?

Re: Which way to update MiSTer?

Posted: Sat Dec 11, 2021 11:45 pm
by DiamondDave
Use update_all. Gives you everything you need.

Re: Which way to update MiSTer?

Posted: Sun Dec 12, 2021 2:53 am
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.

Re: Which way to update MiSTer?

Posted: Sun Dec 12, 2021 8:51 am
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 ?

Re: Which way to update MiSTer?

Posted: Sun Dec 12, 2021 1:25 pm
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

Re: Which way to update MiSTer?

Posted: Thu Dec 16, 2021 4:57 pm
by Marchombre
Thank you !

Re: Which way to update MiSTer?

Posted: Sun Jan 02, 2022 2:31 pm
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?

Re: Which way to update MiSTer?

Posted: Sun Jan 02, 2022 5:57 pm
by jca
/media/fat/Scripts/.mister_updater contains the logs.

Re: Which way to update MiSTer?

Posted: Sun Jan 30, 2022 10:22 pm
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?

Re: Which way to update MiSTer?

Posted: Mon Jan 31, 2022 5:00 pm
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.

Re: Which way to update MiSTer?

Posted: Mon Jan 31, 2022 6:53 pm
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.

Re: Which way to update MiSTer?

Posted: Mon Jan 31, 2022 8:53 pm
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.

Re: Which way to update MiSTer?

Posted: Mon Jan 31, 2022 8:58 pm
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.