Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: boudinec on July 04, 2018, 04:43:59 AM
-
Hello
I would like to upgrade a raspberry 1+B running piCore v8.0 to a more recent version of piCore
I ran tce-update, it installed some new packages, then I rebooted.
Now when I run version, the output remains the same (8.0).
Is there an option to pass to tce-update so that the update goes to v 8.2 or v 9 ?
Bests
Cedric
-
Hi boudinec
... Is there an option to pass to tce-update so that the update goes to v 8.2 or v 9 ?
No, there isn't. The tce in tce-update and similarly named utilities stands for Tiny Core Extensions.
-
Hi
To upgrade via ssh, you'll need unzip.tcz for unzip and util-linux.tcz for a more powerful mount.
1. Download the latest piCore.zip
2. Extract it with unzip
3. Backup the config files in your boot partition (config.txt, cmdline.txt, cmdline3.txt)
4. Check disk image with fdisk
$ fdisk -l piCore-9.0.3.img
Disk piCore-9.0.3.img: 49 MB, 51380224 bytes, 100352 sectors
49 cylinders, 64 heads, 32 sectors/track
Units: cylinders of 2048 * 512 = 1048576 bytes
Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
piCore-9.0.3.img1 4,0,1 37,63,32 8192 77823 69632 34.0M c Win95 FAT32 (LBA)
piCore-9.0.3.img2 38,0,1 48,63,32 77824 100351 22528 11.0M 83 Linux
Units: cylinders of 2048 * 512 = 1048576 bytes
Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
piCore-9.0.3.img1 4,0,1 37,63,32 8192 77823 69632 34.0M c Win95 FAT32 (LBA)
5. Mount the first partition (mind the offset value)
mkdir /mnt/pi
sudo mount -o loop,ro,offset=$((512*8192)) piCore-9.0.3.img /mnt/pi
6. Replace all the files in your boot partition
7. Restore your config files
8. Upgrade the kernel modules manually (wireless-KERNEL.tcz ... etc.)
=> Just in case you loose your network connection after reboot
9. Reboot and run tce-update
-
Ok thanks for the answer, I will try it.
But, do you think that it might be automatized and provided as a extension in future versions of piCore?
Bests
Cedric