This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 494
Remake SD image
Wingysam edited this page Dec 13, 2019
·
8 revisions
Note: Superceded by FBTFT-image-build-process
This shows the steps used to make a SD image with FBTFT support. All done on the Raspberry Pi itself.
Make sure we have enough disk space, 2.5 GB is needed:
df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 7.1G 4.2G 2.6G 63% /
This guide assumes the running kernel is compiled with FBTFT support as modules.
apt-get install zip kpartx
Click on the Direct download link on http://www.raspberrypi.org/downloads to get the mirror link.
wget <mirror link>
# Takes approx. 9 minutes
unzip 2013-02-09-wheezy-raspbian.zip
mkdir /media/{bootfs,rootfs}
losetup /dev/loop0 2013-02-09-wheezy-raspbian.img
kpartx -a /dev/loop0
mount /dev/mapper/loop0p1 /media/bootfs
mount /dev/mapper/loop0p2 /media/rootfs
cp /boot/kernel.img /media/bootfs/
rm -R /media/rootfs/lib/modules/3.6.11+
cp -R /lib/modules/3.6.11+ /media/rootfs/lib/modules/
Uncomment the SPI blacklisting
nano /media/rootfs/etc/modprobe.d/raspi-blacklist.conf
umount /media/bootfs
umount /media/rootfs
kpartx -d /dev/loop0
losetup -d /dev/loop0
# Takes approx. 30 minutes
mv 2013-02-09-wheezy-raspbian.img 2013-02-09-wheezy-raspbian-2013-04-07-fbtft.img
zip 2013-02-09-wheezy-raspbian-2013-04-07-fbtft.zip 2013-02-09-wheezy-raspbian-2013-04-07-fbtft.img