These are the steps taken to setup piCore 14 on a Raspberry Pi with only Wi-Fi (no ethernet)
Newer version might work as well (or maybe even better), but have not been tested.
- Download the piCore image
- Unpack the
.zip
file and write the.img
file to the SD-Card (using Raspberry Pi Imager for example) - Move the SD-Card to the Pi, plug in a keyboard and a screen, plug in the power source
- Execute
backup
shell command after the first boot to save generated unique SSH keys which will be used during next boots. - Expand the partition:
- Start the partition tool:
sudo fdisk -u /dev/mmcblk0
- List partitions with
p
command and write down the StartLBA of the second partition - Delete second partition with
d
than recreate it withn
command
Selectp
forPrimary Partition
and2
forPartition Number
Use the same starting sector as deleted had and use the default value forLast Cylinder
Exit fdisk withw
command - Reboot the Pi:
sudo reboot
- After reboot expand the partition:
sudo resize2fs /dev/mmcblk0p2
(may take a while)
- Start the partition tool:
- Run
uname -rm
to get your kernel version and architecture, write this down - Shut down the Pi and move the SD-Card back to the pc
- Download needed extensions to the
boot
partition of the SD-Card from http://tinycorelinux.net/14.x/armv6/tcz/
Make sure the architecture matches with the output of step 6
Append the filename to get the full url:firmware-rpi-wifi.tcz
wifi.tcz
wireless_tools.tcz
wireless-5.4.51-piCore.tcz
<-- make sure this matches with the kernel version of step 6wpa_supplicant.tcz
libnl.tcz
readline.tcz
ncurses.tcz
- Move the SD-Card to the Pi again and have it boot
- Mount the boot partition:
mount /mnt/mmcblk0p1
- Move extension:
mv /mnt/mmcblk0p1/*.tcz /mnt/mmvblk0p2/tce/optional/
- Install extensions:
tce-load -i /mnt/mmvblk0p2/tce/optional/*.tcz
- Add extensions to
/mnt/mmcblk0p2/tce/onboot.lst
:firmware-rpi-wifi.tcz
wifi.tcz
- Generate the checksums and download the dep files:
for F in /mnt/mmvblk0p2/tce/optional/*.tcz; do md5sum $F > ${F}.md5.txt done tce-audit updatedeps tce-update
- Configure wifi:
sudo wifi.sh
- To connect Wi-Fi at boot, add
wifi.sh -a &> /home/tc/wifi.log &
to/opt/bootlocal.sh
- Save changes:
backup