Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: hamak on February 06, 2019, 09:17:26 AM
-
This is just a thank you to everyone that just made my day!
Everything is from this forum and some google search :)
SSH is installed by default is just perfect!
Default Username and Password
tc
piCore
## Use DD or Win32Disk Imager to put piCore-9.0.3.img to MicroSD Card
## Delete from MicroSD Card the kernel4922v7.img to make space for /rpi-wireless packages
## Copy the folder /rpi-wireless to MicroSD Card
## Boot Raspberry Pi and Expand Partition like this:
sudo fdisk -u /dev/mmcblk0 [Enter]
p [Enter]
Device Boot StartCHS EndCHS etc... etc....
/dev/mmcblk0p1 4,0,1 37,63,32
/dev/mmcblk0p2 38,0,1 48,63,32
## The important part here is to check StartCHS
## Here I have [38] on partition /dev/mmcblk0p2
## Delete partition 2 and Recreate it to use full MicroSD Card
d [Enter] Delete partition
2 [Enter] Partition number
n [Enter] Create NEW partition
p [Enter] Primary Partition
2 [Enter] Partition number
38 [Enter] Here is the Important StartCHS number, it might say a higher number
It said 39 to me this time but that close enough, just hit [Enter]
[Enter] Accept default
w [Enter] Write changes to disk
sudo reboot Reboot
## Expand partition to fill MicroSD Card
sudo resize2fs /dev/mmcblk0p2
df -h /dev/mmcblk0p2 ### If you want to see the new size of partition
## Copy rpi-wireless packages to the new partition
sudo mount /dev/mmcblk0p1 /mnt/mmcblk0p1
sudo mv /mnt/mmcblk0p1/rpi-wireless/* /mnt/mmcblk0p2/tce/optional
sudo rm /mnt/mmcblk0p1/rpi-wireless/ -r ### Delete the empty directory
## Install wireless driver and wifi tools packages
tce-load -i firmware-rpi3-wireless.tcz wifi.tcz
## Connect to wireless network and download nano to edit onboot.lst
sudo wifi.sh
tce-load -wi nano ### Install nano from online TCZ extensions
sudo nano /mn/mmcblk0p2/tce/onboot.lst ### Here we edit and choose what to load and in what order
mc.tcz
openssh.tcz
nano.tcz
firmware-rpi3-wireless.tcz
wifi.tcz
## Add wifi.sh to system startup
sudo nano /opt/bootlocal.sh
wifi.sh -a
## Install Raspistill tools with rpi-vc.tcz and enable Raspberry Pi Camera Module
## Note.if you have rebooted then you must remount mmcblk0p1
## sudo mount /dev/mmcblk0p1 /mnt/mmcblk0p1
## Enable Camera
sudo nano /mnt/mmcblk0p1/config.txt ### At bottom of file after [ALL] add these lines like this
[ALL]
#Enable camera
start_x=1
gpu_mem=128
## You can also add disable_camera_led=1 [Optional]
## Install rpi-VideoCore that contains RaspiStill and other tools
tce-load -wi rpi-vc.tcz ### Remember to add rpi-vc.tcz to onboot.lst
filetool.sh -b ### Backup User Data, and I dont know if this is needed right now
sudo reboot
## Test raspistill
sudo raspistill -w 720 -h 540 -o image.jpg
Thats it!
[EDIT]: Fixed filetool typo. Rich
-
hi hamak,
I was just looking at digital microscopes using a RPi this morning. This thread will come in very handy! :D
Just a couple of points:
1. Heads up, firmware-rpi3-wireless.tcz will be renamed to firmware-rpi-wifi.tcz in future piCore.
2. I think when you do a "tce-load -wi extn" it automatically adds extn to onboot.lst
3. Typo: "filetool.s -b" should be "filetool.sh -b". Missing "h".
regards
Greg
-
Hi Greg Erskine
...
3. Typo: "filetool.s -b" should be "filetool.sh -b". Missing "h".
Thanks for catching that, typo fixed.