quartz64-images icon indicating copy to clipboard operation
quartz64-images copied to clipboard

emmc install script

Open nathmo opened this issue 2 years ago • 6 comments
trafficstars

would it be possible to add a script to install the system running from an SD card to the emmc of the board?

nathmo avatar Feb 05 '23 22:02 nathmo

Copying the running system onto emmc would be spicy, it'd have to be re-mounted read-only. But you can theoretically already sort of write to emmc from sd by booting into plebian from sd, fetching the image using wget, and then writing the image to emmc. I'll have to think about whether there's a better way to achieve this with a dedicated installer image, and if that's even something I want to implement.

CounterPillow avatar Feb 06 '23 07:02 CounterPillow

resintalling the system on the emmc from the sd card is not a bad idea. i will try to make a script for that

nathmo avatar Feb 06 '23 09:02 nathmo

okay so I manually installed it by running : wget https://github.com/Plebian-Linux/quartz64-images/releases/download/v2023-01-21-1/plebian-debian-bookworm-quartz64a.img.xz sudo apt-get install xz-utils unxz plebian-debian-bookworm-quartz64a.img.xz lsblk sudo dd of=/dev/mmcblk1 if=plelebian-debian-bookworm-quartz64a.img bs=1M status=progress and it works. I will try to add some glue and glitter and make a nice script out of it

nathmo avatar Feb 06 '23 09:02 nathmo

Just because I happened to have it laying around, here is what I use:

sudo apt install xz-utils
curl -fsSL https://github....etc.....xz | xzcat -dq | sudo dd of=/dev/BLOCK bs=4M oflag=dsync status=progress

disconn3ct avatar May 17 '23 17:05 disconn3ct

Armbian has an install script, that also supports nice features like having the bootloader on eMMC/SD and the OS on a nvme. Maybe this script could be adapted for plebian?

https://github.com/armbian/build/blob/main/packages/bsp/common/usr/sbin/armbian-install

Krumel avatar Sep 10 '23 19:09 Krumel

I don't plan on adapting anything from Armbian ever, or having an installer. Those go against the point of installer-less images.

I'm not trying to be overly dismissive here but I want to keep the scope of the Plebian images as limited as possible, so that it's a set of things I can actually reasonably test and be sure of them working.

CounterPillow avatar Sep 10 '23 23:09 CounterPillow