Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emmc install script #23

Open
nathmo opened this issue Feb 5, 2023 · 6 comments
Open

emmc install script #23

nathmo opened this issue Feb 5, 2023 · 6 comments

Comments

@nathmo
Copy link

nathmo commented Feb 5, 2023

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

@CounterPillow
Copy link
Collaborator

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.

@nathmo
Copy link
Author

nathmo commented Feb 6, 2023

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
Copy link
Author

nathmo commented Feb 6, 2023

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

@disconn3ct
Copy link

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

@Krumel
Copy link

Krumel commented Sep 10, 2023

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

@CounterPillow
Copy link
Collaborator

CounterPillow commented Sep 10, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants