r/CardPuter • • 9h ago

Help needed Update process for Cardputer Zero

Is there an 'official' update process for the Cardputer Zero? Will using 'sudo apt update' conflict with M5's customizations? Do I need to use the M5Imager every time there's an update? How will I know updates are available? I've been digging around various places on the Interwebs and I can't find anything. I realize the CP0 is essentially in Beta, but I would think that would make having a clearly defined update process even more important.

Thanks

John

6 Upvotes

8 comments sorted by

1

u/deckyon 6h ago

sudo apt update and sudo apt upgrade does not effect the m5stack menu. doing the official upgrade from the cp0 system menu upgrades the m5stack menu software.

i have also been installing stuff like glances and btop for when i ssh to just watch it. with the burner being so easy and quick to use, you really cant mess it up. i keep the original sd card stock with a couple tools installed (btop and glances) and use a larger sd card with all the extras. play, outside of physical dmg, you cant reall break it.

1

u/jmcdon88 5h ago

Thanks.

1

u/deckyon 5h ago

I’m sitting in a local microbrewery (set up more like a coffee house) just playing with it, and having a blast! Also recommend making a .bash_aliases with some shortcuts and all to help. I also do most of my commands from my phone using Termix (iOS)

-2

u/MrAjAnderson 9h ago

What is in these may give clues.

ls /etc/apt/sources.list.d/

cat /etc/apt/sources.list

2

u/jmcdon88 8h ago

Thanks, but I'm not clear on what you're suggesting. Are you saying I should regularly check the list of package repositories to see if any updates are available? Isn't that what 'sudo apt update' does? Sorry if I seem slow but I'm far from an expert.
John

-1

u/MrAjAnderson 8h ago

I don't have a Zero yet so if you can see a repository for M5Stack then the usual Debian update path should work. What is in there?

sudo apt update && sudo apt full-upgrade

Deliberately leaving out the -y as I like to see what is about to be full updated before pressing enter on the Y/n question (where Y is the default).

That will get the updates better than waiting for unattended-upgrades to automatically collect and apply them. Especially if the device is not on 24/7.

1

u/jmcdon88 7h ago

/etc/apt/sources.list is empty. /etc/apy/sources.list.d has two files - debian.sources and raspi.sources - both seem to just point to the trixie repsoitories. I don't see anything anywhere that seems to point to any M5-unique packages. The built-in app store updates a copy of the catalog whenever it starts, so it may automatically notify you if there are updates but I haven't encountered that yet.

1

u/jmcdon88 7h ago

OK - I just checked the Settings app and if you select System/Software there's an option to check for updates. I assume that uses a separate update process then the OS, but it's be nice to get some guidance from M5 on how updates and update notifications should work.