WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [Solved] TC3.8_4 Real Time Upgrade  (Read 36367 times)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10150
Re: TC3.8_4 Real Time Upgrade
« Reply #30 on: April 21, 2021, 11:40:45 AM »
Hi MTCAT
I don't think you need to. The  modules.alias  and  modules.dep  files are present. The location that link  kernel.tclocal
points points to doesn't exist. When you boot the RT kernel, then it will exist. Until you load an extension containing
kernel modules, it won't be populated. That's my long winded way of saying I think you can ignore it.

Offline MTCAT

  • Sr. Member
  • ****
  • Posts: 344
Re: TC3.8_4 Real Time Upgrade
« Reply #31 on: April 21, 2021, 04:33:35 PM »
Hi Rich,

Oh, okay, that sounds good, so can I just skip ahead to the last step to build the new initrd ?

David

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10150
Re: TC3.8_4 Real Time Upgrade
« Reply #32 on: April 21, 2021, 05:35:51 PM »
Hi MTCAT
Yes.

Offline MTCAT

  • Sr. Member
  • ****
  • Posts: 344
Re: TC3.8_4 Real Time Upgrade
« Reply #33 on: April 22, 2021, 06:41:28 PM »
Hi Rich,

I tried to run the last command ("sudo find . | sudo cpio.......) but got an error, permission denied trying to create /mnt/sdb1/boot/tinycoreRT1.gz

I'm not sure how we're making a new initrd anyway when we're not adding any new modules really (since all the prior commands failed ) ?

Thanks,

David

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10150
Re: TC3.8_4 Real Time Upgrade
« Reply #34 on: April 22, 2021, 06:59:28 PM »
Hi MTCAT
When you executed this:
Code: [Select]
sudo rm -rf lib/modules/2.6.33.3-tinycore
sudo mv ../base/lib/modules/2.6.33.3-rt19-tinycore lib/modules/
you replaced the old modules with the RT modules that belong in the initrd.

Offline MTCAT

  • Sr. Member
  • ****
  • Posts: 344
Re: TC3.8_4 Real Time Upgrade
« Reply #35 on: April 22, 2021, 07:18:48 PM »
Hi Rich,

Oh, okay, thanks, I forgot about which commands worked and which didn't.

Am I maybe missing a "sudo" somewhere in the last command to create the new initrd ?

Thanks,

David

 

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10150
Re: TC3.8_4 Real Time Upgrade
« Reply #36 on: April 22, 2021, 07:47:57 PM »
Hi MTCAT
... Am I maybe missing a "sudo" somewhere in the last command to create the new initrd ?
The command is in the attachment here:
http://forum.tinycorelinux.net/index.php/topic,24944.msg158827.html#msg158827

Did you remember to:
Code: [Select]
cd tempdir
Is the thumb drive mounted as  sdb1 ? Does the destination exist:
Code: [Select]
ls -l /mnt/sdb1/boot/

Offline patrikg

  • Sr. Member
  • ****
  • Posts: 409
Re: TC3.8_4 Real Time Upgrade
« Reply #37 on: April 22, 2021, 10:03:54 PM »
A tip.

When I do sudo with piping, i do it this way, it always work.

sudo sh -c 'find . | cpio .....'

Offline MTCAT

  • Sr. Member
  • ****
  • Posts: 344
Re: TC3.8_4 Real Time Upgrade
« Reply #38 on: April 23, 2021, 07:35:15 AM »
Hi Rich and patrikg,

I typed in the command correctly (pretty sure), and I was in tempdir, and sdb1 was mounted, so not sure, I will try again this morning just to make sure.

Thanks,

David

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10150
Re: TC3.8_4 Real Time Upgrade
« Reply #39 on: April 23, 2021, 07:47:29 AM »
Hi MTCAT
Depending on what else is connected to the computer, there's no guarantee that your device always shows up as sdb1.
The  ls  command can confirm that.

If you confirmed everything else is correct and you still get permission denied, you can try it like this:
Code: [Select]
sudo su
Place the  find . | cpio ....  command here without the  sudo  parts.
exit

Offline MTCAT

  • Sr. Member
  • ****
  • Posts: 344
Re: TC3.8_4 Real Time Upgrade
« Reply #40 on: April 23, 2021, 07:57:08 AM »
Hi Rich,

Changing user to "root" and executing the command worked !, thanks....however, the tinycoreRT1.gz file that got made is very small, 554 bytes ??, whereas the original tinycore.gz is 8085858 bytes ?? Does that seem odd to you ? Sorry for all the problems. Also tinycore.gz is shown as "--r--r--r--" whereas tinycoreRT1.gz is shown as "-rw-r--r--".

Thanks,

David

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10150
Re: TC3.8_4 Real Time Upgrade
« Reply #41 on: April 23, 2021, 08:09:44 AM »
Hi MTCAT
That size is definitely wrong. I forgot to mention that when you change user to root, it also executes:
Code: [Select]
cd /rootso you are now in user roots home directory.

After you become root, do this:
Code: [Select]
cd /home/tc/tempdirThen try the  find . | cpio ....  command again.

Offline MTCAT

  • Sr. Member
  • ****
  • Posts: 344
Re: TC3.8_4 Real Time Upgrade
« Reply #42 on: April 23, 2021, 08:21:55 AM »
Hi Rich,

Thanks !, I should have noticed that, changing user to root, and then cd to /home/tc/tempdir, executing the big "find . |   " command definitely gave the DX3 a workout ! Now tinycoreRT1.gz is 8209911 bytes, hopefully that should be good now !

Before I reboot though, is there a way to add "no restore" option in extlinux.conf ? Or maybe I should just remove "mydata.tgz" and store it somewhere else, right now it's loading the backup every boot and it takes quite a long time, and makes me uneasy or wondering if I'm overwriting something I don't want too with the backup.

Thanks,

David

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10150
Re: TC3.8_4 Real Time Upgrade
« Reply #43 on: April 23, 2021, 08:34:42 AM »
Hi MTCAT
... Before I reboot though, is there a way to add "no restore" option in extlinux.conf ? Or maybe I should just remove "mydata.tgz" and store it somewhere else, right now it's loading the backup every boot and it takes quite a long time, and makes me uneasy or wondering if I'm overwriting something I don't want too with the backup.
First copy your  mydata.tgz  to  mydata.tgz.RTkernel.  This way you have a backup should you ever need it.

Then do this:
Code: [Select]
sudo touch /tmp/dummy
sudo echo "tmp/dummy" > /opt/.filetool.lst

This will backup/restore an empty file which will be very quick.
This will allow you to still add files to be backed up if needed.

We covered this before :):
http://forum.tinycorelinux.net/index.php/topic,24813.msg157840.html#msg157840
« Last Edit: April 23, 2021, 09:05:37 AM by Rich »

Offline MTCAT

  • Sr. Member
  • ****
  • Posts: 344
Re: TC3.8_4 Real Time Upgrade
« Reply #44 on: April 23, 2021, 08:52:58 AM »
Hi Rich,

Oh, right, sorry about that, I do recall now that "sudo touch" command but I didn't realize that's what we were doing (making an empty backup file). Thanks again, I will do that before I (hopefully) successfully boot up the RT kernel, which will be the next boot attempt !

Thanks,

David