WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Updating tinycore, where is the version (7.x,8.x,9.x) defined ???  (Read 2731 times)

Offline binär

  • Newbie
  • *
  • Posts: 5
Let´s say I do a tce-update, the script checks tinycore repository for updates.
The repository URL itself is defined in /opt/tcemirror
But where is defined the architecture, version for downloading updates ?
It´s at least not in this tce-update script nor in any tinycore-specific script I could find.
I´ve read the Tinycore book "into the core" but this information is not there.
any idea ?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Updating tinycore, where is the version (7.x,8.x,9.x) defined ???
« Reply #1 on: January 12, 2019, 07:19:21 AM »
Architecture comes from kernel, for TC version see version command.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline binär

  • Newbie
  • *
  • Posts: 5
Re: Updating tinycore, where is the version (7.x,8.x,9.x) defined ???
« Reply #2 on: January 12, 2019, 07:38:26 AM »
Thank you for your quick answer !
So, how do I change the version, and which scripts are using this version command, please ?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Updating tinycore, where is the version (7.x,8.x,9.x) defined ???
« Reply #3 on: January 12, 2019, 07:41:04 AM »
Why do you want to change version?????
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline binär

  • Newbie
  • *
  • Posts: 5
Re: Updating tinycore, where is the version (7.x,8.x,9.x) defined ???
« Reply #4 on: January 12, 2019, 10:20:36 AM »
Because I want to bend Tinycore to my will, I guess.
So, it´s solved, I found out what was going on:

- most tinycore-specific scripts source /etc/init.d/tc-config where a good deal of functions are defined.
the interesting ones are
            getMajorVer: gets the major number of the release, from the /usr/share/doc/tc/release.txt  (yep. convoluted)
            getBuild: gets the platform from uname -m (x86, ARMv6, ARMv7, x86_64)
            getMirror: assembles the updare URL from /opt/tcemirror, getBuild and getMajorVer
- the tce-update script uses getMirror to perform the update. It cannot update to a new version.

So just by changing the major version number in /usr/share/doc/tc/release.txt I can upgrade to another major version release with tce-update.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Updating tinycore, where is the version (7.x,8.x,9.x) defined ???
« Reply #5 on: January 12, 2019, 10:48:53 AM »
So just by changing the major version number in /usr/share/doc/tc/release.txt I can upgrade to another major version release with tce-update.

It is not true.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11701
Re: Updating tinycore, where is the version (7.x,8.x,9.x) defined ???
« Reply #6 on: January 12, 2019, 10:50:05 AM »
Hi binär
Because I want to bend Tinycore to my will, I guess. ...

 ... So just by changing the major version number in /usr/share/doc/tc/release.txt I can upgrade to another major version release with tce-update.
It would be safer to do a fresh install and use your old  onboot.lst  as a reference for installing wanted extensions. Dependencies
get re-factored so some extensions may disappear and be replaced by one or more new ones. By using your old  onboot.lst
as a reference you're updating "parent" extensions and allowing TCs install tool to resolve dependencies.

Your plan will result in all extensions (that can be found in the new repo) being replaced because the MD5s won't match. Then to
complete the process you need to reboot preferably into a matching kernel and initrd. You may also find kernel specific extensions
don't get updated because your old kernel version is not listed. Chances are you'll just be creating lots of problems for yourself.
« Last Edit: January 12, 2019, 10:51:44 AM by Rich »

Offline binär

  • Newbie
  • *
  • Posts: 5
Re: Updating tinycore, where is the version (7.x,8.x,9.x) defined ???
« Reply #7 on: January 12, 2019, 12:26:36 PM »
Well I found this to be a convenient, unorthodox solution.
The kernel (RT_PREEMPT 4.20.0 on BeagleBone Black) and the image derivates from piCore with some needed customizations.

While I understand it´s not what the tce-update script is intended for, it worked enough for me. I´d rather have a proper config file for the tinycore version, (like for example source.list for debian) but unfortunately Tinycore
has its bits scattered everywhere (like within / and /usr/local),
or even sometimes has dupes (like kernel modules)
there is no consistency between the packages / platforms / version (like for example dropbear is present into armv7 until v7.x included, but disappears from v8.x
and worst of all, there is a mess of documentation (confused, outdated, in different places)
and no proper tools for remastering, it took me a while to figure out what config options exactly were needed to configure a kernel to load a tinycore image.

That said I like the simplicity, modularity of Tinycore as well as the philosophy running the whole system from RAM as well as the flexibility of the extensions. This allows me to make a bare system for a given platform, and to quickly morph it into whatever I want. Without going all the way from compiling everything into an image like yocto + angström linux



Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Updating tinycore, where is the version (7.x,8.x,9.x) defined ???
« Reply #8 on: January 12, 2019, 03:25:18 PM »
While I understand it´s not what the tce-update script is intended for, it worked enough for me. I´d rather have a proper config file for the tinycore version, (like for example source.list for debian) but unfortunately Tinycore
has its bits scattered everywhere (like within / and /usr/local),
or even sometimes has dupes (like kernel modules)

I disagree.   I think you'll come around when you understand the file system..

And then, almost everything you need to know about your TC install you'll find here
Code: [Select]
/etc
/etc/init.d
/etc/sysconfig
/usr/bin/tce-*
/usr/local/tce.installed
cat /proc/cmdline

For version info try here
Code: [Select]
/etc/os-release
/usr/share/doc/tc/release.txt

« Last Edit: January 12, 2019, 03:36:15 PM by coreplayer2 »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: Updating tinycore, where is the version (7.x,8.x,9.x) defined ???
« Reply #9 on: January 13, 2019, 04:08:12 AM »
Quote
there is no consistency between the packages / platforms / version (like for example dropbear is present into armv7 until v7.x included, but disappears from v8.x
Extensions are user contributed.
The only barriers that can stop you are the ones you create yourself.