WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: picore upgrade over ssh  (Read 288 times)

Offline boudinec

  • WikiUser
  • *
  • Posts: 15
picore upgrade over ssh
« 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

Online Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 5894
Re: picore upgrade over ssh
« Reply #1 on: July 04, 2018, 06:47:56 AM »
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.

Offline polikuo

  • Sr. Member
  • ****
  • Posts: 348
Re: picore upgrade over ssh
« Reply #2 on: July 04, 2018, 07:39:30 PM »
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
Code: [Select]
$ 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
Quote
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)
Code: [Select]
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

Offline boudinec

  • WikiUser
  • *
  • Posts: 15
Re: picore upgrade over ssh
« Reply #3 on: July 12, 2018, 12:38:57 AM »
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