I'm new, and looking for some guidance. I'd like to generate my own image from souce. I've looked at the github repository and studied the PREP_SYSTEM_FOR_DIET.sh and am a little confused as to the how part.
Do I use a chroot?
I'm assuming a cross compile, what compiler do I use?
Just looking for some basic steps to get this done.
Generating Image from Source
Re: Generating Image from Source
Hi,
Before you can prep an image for DietPi and run those commands, you'll need a Debian minimal image.
For the most part, we use official images (eg: Raspbian Lite). For the OPi/NanoPi boards, we mostly use ARMbian build tools to generate the initial image: https://github.com/igorpecovnik/lib
Once you have an image, and running on the target board, you can then go through PREP_SYSTEM_FOR_DIET.sh, to prep system for DietPi. Once done, read image, resize 2nd partition (+50MB of min), done
Before you can prep an image for DietPi and run those commands, you'll need a Debian minimal image.
For the most part, we use official images (eg: Raspbian Lite). For the OPi/NanoPi boards, we mostly use ARMbian build tools to generate the initial image: https://github.com/igorpecovnik/lib
Once you have an image, and running on the target board, you can then go through PREP_SYSTEM_FOR_DIET.sh, to prep system for DietPi. Once done, read image, resize 2nd partition (+50MB of min), done

If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Donating is the easiest – you can use PayPal or become a DietPi patron.