This repository was archived by the owner on Sep 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Custom Pi Image Notes
Rob Bultman edited this page Mar 30, 2020
·
6 revisions
Ways to create an image:
- 'Clone' an existing image like this.
- Use pi-gen. See this how-to article.
- ?
Maybe helpful?
- Shrinking an image
- Some other notes on create a custom image.
Other Notes
- Building and installing a custom kernel.
- Building an RT kernel for the Pi4B
- RT audio on Linux
- Using kpartx to mount an image
Steps
- Install Raspbian lite image using imager
- Build the RT Linux kernel for the pi using these instructions. But, don't use the
--depth=1parameter when cloning the repo. Also, before building, check out the RT branch. This should result in a bootable SD card, but don't boot it yet. - Remove and re-insert the SD card into the computer. This should mount the boot sector from the card. Edit the cmdline.txt file and remove the portion that says
init=/usr/lib/raspi-config/init_resize.sh. You don't want to cause the card to get expanded initially. Safely eject the SD card. - Boot the pi. And log in.
- Install jackd:
sudo apt install --no-install-recommends jackd1 - Shut down the pi with this command:
sudo shutdown -h now. Once the LEDs stop blinking on the pi, remove power and put the SD card in your computer. - Follow the guidelines from here for pulling the image off of the SD card. This will be the base for the unexpanded image which you will distribute. Remove the SD card once the image has been pulled off.
- Boot the pi again. Got into raspi-config and expand the filesystem.
- Install jacktrip per these instructions. Only do the part about installing jacktrip for now.
- Two files will be installed that need to be copied off,
/usr/bin/jacktripand/usr/bin/jacktrip_debug. Pull these off using scp or some other means. - Remove the SD card from the pi and put it back in your computer. Use the
ddcommand to transfer the pi image from step 3 to the SD card. - Boot the pi.
- Use scp to copy
jacktripandjacktrip_debugto/usr/bin/on the pi. - Try to run jackd. If you can't t will tell you what you need to do to get it running.