- Copy the following files to the
<sdcard-root>/tcz
:
ca-certificates.tcz
ca-certificates.tcz.md5.txt
libnl.tcz
libnl.tcz.md5.txt
firmware-rpi-wifi.tcz
firmware-rpi-wifi.tcz.md5.txt
ncurses.tcz
ncurses.tcz.md5.txt
readline.tcz
readline.tcz.dep
readline.tcz.md5.txt
wifi.tcz
wifi.tcz.dep
wifi.tcz.md5.txt
wireless_tools.tcz
wireless_tools.tcz.md5.txt
wireless-5.10.77-piCore.tcz
wireless-5.10.77-piCore.tcz.md5.txt
wpa_supplicant.tcz
wpa_supplicant.tcz.dep
wpa_supplicant.tcz.md5.txt
- Mount the unit and copy the files to permanent optional tce:
sudo mount /dev/mmcblk0p1
sudo cp /mnt/mmcblk0p1/tcz/* /mnt/mmcblk0p2/tce/optional
sudo umount /mnt/mmcblk0p1
- Setup firmware and tools to load at startup (during boot process):
echo "wireless-5.10.77-piCore.tcz" >> /mnt/mmcblk0p2/tce/onboot.lst
echo "firmware-rpi-wifi.tcz" >> /mnt/mmcblk0p2/tce/onboot.lst
echo "wifi.tcz" >> /mnt/mmcblk0p2/tce/onboot.lst
sudo filetool.sh -b
sudo reboot
- Setup wi-fi:
sudo wifi.sh
- Wi-fi credentials gets saved at
/home/tc/wifi.db
- Connect to wi-fi on startup (after boot process finishes, as a background task):
sudo echo "wifi.sh -a 2>&1 > /tmp/wifi.log" >> /opt/bootlocal.sh
sudo filetool.sh -b
sudo reboot
- Verify wi-fi status:
iwconfig && ifconfig wlan0
- Install
compiletc
andcmake
; - Download the repo with
wget
(appending.tar.gz
to the url), decompress and build:
tce-load -wi compiletc.tcz
tce-load -wi cmake.tcz
wget https://github.com/AndrewFromMelbourne/raspi2fb/archive/master.tar.gz
tar -xf master.tar.gz
cd raspi2fb_master
mkdir build
cd build
cmake ..
- Install
squashfs-tools
:
tce-load -wi squashfs-tools.tcz
- Create a directory to hold the files (e.g.
fbdev-module
). Inside it, replicate the exact structure to where the files should be placed, starting from/
and copy the necessary files to it:
mkdir -p fbdev-module/lib/modules/5.10.77-piCore/kernel/drivers/video/fbdev
cp -r *.ko fbdev-module/lib/modules/5.10.77-piCore/kernel/drivers/video/fbdev
- Create the tcz extension
mksquashfs fbdev-module/ fbdev.tcz
- Install the extension
cp fbdev.tcz /mnt/mmcblk0p2/tce/optional/
echo "fbdev.tcz" >> /mnt/mmcblk0p2/tce/onboot.lst
Another full example:
mkdir -p mypackage/usr/local/lib
cp libwiringPi.so* mypackage/usr/local/lib
mksquashfs mypackage libwiringPi.tcz -noappend
cp libwiringPi.tcz /mnt/mmcblk0p2/tce/optional/
echo "libwiringPi.tcz" >> /mnt/mmcblk0p2/tce/onboot.lst
- Download the kernel sources from
https://www.tinycorelinux.net/13.x/armv6/releases/RPi/src/kernel/5.10.77-piCore_modules.tar.xz
, decompress it and create a.tcz
extension with the required.ko
files (following the above example). - For each
.ko
file added, verify it's dependency:
modinfo fb_ili9340.ko
...
depends: fbtft
modinfo fbtft.ko
...
depends: fb_sys_fops,syscopyarea,sysfillrect,sysimgblt
-
Make sure to create and install a
.tcz
extension for each dependency (e.g.fbdev.tcz
andfbtft.tcz
). -
Install the modules:
sudo modprobe fb_ili9340
- Check if the modules were correctly loaded:
lsmod
- Load the modules on each boot:
sudo vi /opt/bootlocal.sh
- append a line with
sudo modprobe fb_ili9340
on the# Load modules
section and save.
- Save the above setup:
sudo filetool.sh -b