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

Minimal steps to create a bootable Debian (bookworm) RPi image? #156

Closed
adrelanos opened this issue Dec 22, 2023 · 3 comments
Closed

Minimal steps to create a bootable Debian (bookworm) RPi image? #156

adrelanos opened this issue Dec 22, 2023 · 3 comments

Comments

@adrelanos
Copy link

Hi,

could you share please the minimal shell commands required to create a bootable Debian (bookworm) RPi image?

This might benefit various system OS image builds tools:

@gitbls
Copy link
Owner

gitbls commented Dec 22, 2023

Hello. The README does exactly that. If you feel that something is missing there, please explain.

@adrelanos
Copy link
Author

It uses sdm. The projects I've linked couldn't (or won't) really use the full sdm. That really doesn't fit. (grml-debootstrap maybe because that's bash but mkosi highly unlikely since implemented in python and sdm would be a huge dependency just for RPi support which is just another architecture.)

This is kinda the pseudo commands I am looking for however actually working to produce a bootable RPi image.

parted -s "${TARGET}" 'mklabel msdos'
parted -s "${TARGET}" 'mkpart primary ext4 4MiB 100%'
parted -s "${TARGET}" 'set 1 boot on'

chroot "${MNTPOINT}" grub-install --target=arm64-efi --efi-directory=/boot/efi --bootloader-id=debian --recheck --no-nvram --removable

Or...

  1. create partition table this way
  2. install bootloader
  3. install these packages
  4. copy these files into /boot

Sorry for the confusion. This isn't so much a question about sdm but about the RPi bootable image creation process generally.

@gitbls
Copy link
Owner

gitbls commented Dec 22, 2023

sdm does none of that. It's strictly about customizing an already-existing IMG (ie the ones provided by RaspberryPI Labs). Seems like you want something to actually create the IMG.

@gitbls gitbls closed this as completed Dec 23, 2023
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

2 participants