WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Upgrade Corepure64 USB  (Read 2445 times)

Offline TinyNoobE

  • Newbie
  • *
  • Posts: 13
  • Tinycore Explorer
Upgrade Corepure64 USB
« on: October 08, 2023, 05:35:26 PM »
Can someone:point me to a post or HowTo for upgrading a Corepure64 USB installation?

I have searched for basic upgrade instructions. I haven't found a "standard process" description for upgrades, let alone USB focused instructions other than the referenced post below.

Juanito has a process description for Tinycore in this post "Howto Upgrade TC on a USB Stick"; http://forum.tinycorelinux.net/index.php/topic,344.msg2113.html#msg2113

I have a Corepure64 13.0 working system, trying to upgrade to 14.0. !3.0 is working, but I prefer to be "current".

Copying JUST corepure64.gz, following Juanito's basic instructions for Tinycore does NOT work. I lost the GUI, and any structured access to the file system. I ended up with a basic text install and interface. Reversing the corepure.gz copy brought it back to life (one of TinyCore's  miracles).

I COULD do a fresh install, and copy over the file system, but I'd like to better understand the details, rather than a brute force "start over". It took me a LOT of experimentation to get this to work the way I wanted. Breaking it caused 24hrs of panic!

Thanks for any guidance.

« Last Edit: October 08, 2023, 05:37:19 PM by TinyNoobE »

Offline CardealRusso

  • Full Member
  • ***
  • Posts: 178
Re: Upgrade Corepure64 USB
« Reply #1 on: October 08, 2023, 05:51:17 PM »
Copying JUST corepure64.gz, following Juanito's basic instructions for Tinycore does NOT work. I lost the GUI, and any structured access to the file system.
Maybe some 13.x extension doesn't work in 14.x?

I COULD do a fresh install
Definitely the best thing to do.
« Last Edit: October 08, 2023, 06:01:20 PM by CardealRusso »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11594
Re: Upgrade Corepure64 USB
« Reply #2 on: October 08, 2023, 09:06:57 PM »
Hi TinyNoobE
The link you posted is 15 years old. Things have changed since then.

Open a terminal and enter the following:
Code: [Select]
# This will place you in the top directory of your USB device.
cd `readlink /etc/sysconfig/tcedir`
cd ../
# Create a new tce and boot directory.
mkdir -p tce14/boot
cp tce/onboot.lst tce14/onbootTC13.lst
cd tce14/boot
# Fetch boot files for TC14.
wget http://tinycorelinux.net/14.x/x86_64/release/distribution_files/corepure64.gz
wget http://tinycorelinux.net/14.x/x86_64/release/distribution_files/vmlinuz64

Next you'll have to add an entry to your boot loaders config file that points
to the new tce14 directory and the new boot files. The config file should
be either in the  boot/  or  tce/boot/  directory of your USB device. If you
don't know how to modify it, attach a copy to your next post.

You should now be able to boot to TC14. You will end up at the command
line, so execute the following:
Code: [Select]
cd `readlink /etc/sysconfig/tcedir`If everything went to plan, the prompt on the screen should end in  tce14.

Now create a new onboot.lst file and download new extensions:
Code: [Select]
cp onbootTC13.lst onboot.lst
# Replace any references to kernel version with KERNEL
sed -i 's/5.15.10-tinycore64/KERNEL/g' onboot.lst
# Download TC14 versions of your extensions
for F in `cat onboot.lst`; do tce-load -w $F; done

If all went well, a reboot should now get you to a GUI in TC14.

Pay close attention to punctuation.
Some commands use  '  and some use  `

Offline TinyNoobE

  • Newbie
  • *
  • Posts: 13
  • Tinycore Explorer
Re: Upgrade Corepure64 USB
« Reply #3 on: October 10, 2023, 03:19:02 PM »
 :(
100% ok with things have changed.

I got to the line in your post after modifying what I believe is my "boot loaders config file":
 "You should now be able to boot to TC14."
No joy.

Attached is the MODIFIED extlinux.conf, as you requested.
Structure of the system is:
/mnt/sdc1/
  /boot     /lost&found   /tce    /tce14

Attached file is inside /mnt/sdc1/boot/extlinux, NOT /mnt/sdc1//tce14/boot where the new 14.0 corepure64.gz and vmlinuz64 have been copied.

As the system boots, it TRIES to boot to 14.0 (initial booting text screen), runs into trouble, and defaults to the backup files which then brings up 13.0.

I know I've inserted quotes more neatly before, but can't recall how. Snapshots would be helpful too, but that's also unclear or unavailable.

Thanks for your guidance to this point. I'm reading and researching before raising my hand for help. I suspect i'm missing something simple, based on system behavior.

Step by step and learning along the way is why I'm here.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11594
Re: Upgrade Corepure64 USB
« Reply #4 on: October 10, 2023, 03:31:42 PM »
Hi TinyNoobE
Try changing the APPEND line from this:
Code: [Select]
APPEND quiet  waitusb=5:UUID="1a023256-dca3-4f08-a89e-56e928e60ea5" tce=UUID="1a023256-dca3-4f08-a89e-56e928e60ea5"To this:
Code: [Select]
APPEND quiet  waitusb=5:UUID="1a023256-dca3-4f08-a89e-56e928e60ea5" tce=UUID="1a023256-dca3-4f08-a89e-56e928e60ea5"/tce14
Everything else looks fine near as I can see.

Offline TinyNoobE

  • Newbie
  • *
  • Posts: 13
  • Tinycore Explorer
Re: Upgrade Corepure64 USB
« Reply #5 on: October 10, 2023, 04:30:23 PM »
Rich:

Un. Freaking. Believable.
 :o

Success!

Tinycore continues to blow my mind.

Some additional maintenance needed, but that was true before.

Final "WHAT??!!" Q:
Has Command line linux always had Boolean/DoLoop functionality built in? That final update walk-through/download was incredible. First for me!

Thanks for flattening The Learning Curve  8)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11594
Re: Upgrade Corepure64 USB
« Reply #6 on: October 10, 2023, 05:06:45 PM »
Hi TinyNoobE
... Success! ...
Thank you for confirming it worked.

Quote
... Has Command line linux always had Boolean/DoLoop functionality built in? ...
As far as I know, yes. Pretty much anything you can put into
an  ash  script, you can do from the command line. At some
point it becomes too unwieldy for the command line and
you're better off putting it into a script.

Quote
... Thanks for flattening The Learning Curve  8)
You are welcome. Teach a man to fish and all that.