WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline MTCAT

  • Sr. Member
  • ****
  • Posts: 344
Re: TC3.8_4 Real Time Upgrade
« Reply #15 on: April 20, 2021, 03:14:03 PM »
Hi Rich,

Thanks for all the help, I did as instructed in your last post, and that all went okay, and then I went ahead and copied all the kernel files (if that's the right word) to /mnt/sdb1/tce/optional, and then I copied the base_modules.tgz to /home/tc and then started going through the instructions in the file you attached (to build a new initrd).

I got up to the second move command, "sudo mv ../base/usr/local........" and that didn't work for me, I have only a "lib" directory underneath "base", there's no "usr" directory under "base" at all ?

Not sure what I did wrong.

Thanks,

David

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10150
Re: TC3.8_4 Real Time Upgrade
« Reply #16 on: April 20, 2021, 05:06:31 PM »
Hi MTCAT
I don't think you did anything wrong. I think that version of the sorter script doesn't create that path. Replace the second
mv  command with:
Code: [Select]
sudo mkdir -p usr/local/lib/modules/2.6.33.3-rt19-tinycore/kernel/
sudo ln -s /usr/local/lib/modules/2.6.33.3-rt19-tinycore/kernel/ lib/modules/2.6.33.3-rt19-tinycore/kernel.tclocal

Offline MTCAT

  • Sr. Member
  • ****
  • Posts: 344
Re: TC3.8_4 Real Time Upgrade
« Reply #17 on: April 20, 2021, 06:03:37 PM »
Hi Rich,

After I ran the "sudo ln -s..." command, there was echoed to screen;

ln: lib/modules/2.6.33.3-rt19-tinycore/kernel.tclocal: File exists

Is that okay ?

Thanks,

David

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10150
Re: TC3.8_4 Real Time Upgrade
« Reply #18 on: April 20, 2021, 06:38:00 PM »
Hi MTCAT
Do this:
Code: [Select]
ls -l lib/modules/2.6.33.3-rt19-tinycore/kernel.tclocalIt should point to  /usr/local/lib/modules/2.6.33.3-rt19-tinycore/kernel/. The response should look similar to this:
Code: [Select]
lrwxrwxrwx 1 root root 47 Feb 14 16:30 lib/modules/2.6.33.3-rt19-tinycore/kernel.tclocal -> /usr/local/lib/modules/2.6.33.3-rt19-tinycore/kernel/You only care about the paths on either side of the  ->  symbol.

Offline MTCAT

  • Sr. Member
  • ****
  • Posts: 344
Re: TC3.8_4 Real Time Upgrade
« Reply #19 on: April 20, 2021, 06:47:16 PM »
Hi Rich,

Yup, when I execute the ls -l command, I get the same response except mine returns

"lrwxrwxrwx 1 tc staff ......"  instead of  "lrwxrwxrwx 1 root root ......"

Thanks,

David

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10150
Re: TC3.8_4 Real Time Upgrade
« Reply #20 on: April 20, 2021, 06:50:22 PM »
Hi MTCAT
That should be fine.

Offline MTCAT

  • Sr. Member
  • ****
  • Posts: 344
Re: TC3.8_4 Real Time Upgrade
« Reply #21 on: April 20, 2021, 06:58:29 PM »
Hi Rich,

Great, so I should be okay to move on to the next command as shown below ?

sudo depmod -a -b . 2.6.33.3-rt19-tinycore

I'm doing all this in "tempdir", I notice that there's another "cd tempdir" command immediately following the above, yet I never left "tempdir" so, hopefully that's okay as well.

Thanks,

David

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10150
Re: TC3.8_4 Real Time Upgrade
« Reply #22 on: April 20, 2021, 07:14:04 PM »
Hi MTCAT
Yes, continue with  depmod.

... I'm doing all this in "tempdir", I notice that there's another "cd tempdir" command ...
That was just to emphasize you need to be in that directory when repacking the initrd.

I copied it from one of my other posts:
http://forum.tinycorelinux.net/index.php/topic,24542.msg155744.html#msg155744

Offline MTCAT

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

Darn-it, I ran the "sudo depmod -a -b . 2.6.33.3-rt19-tinycore" command and got the following error;

depmod: ./kernel.tclocal: No such file or directory

For the modules, check out the attached file, which I did in /home/linux-2.6.33.3, anything in there jump out at you ?

Thanks,

David

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10150
Re: TC3.8_4 Real Time Upgrade
« Reply #24 on: April 20, 2021, 07:54:47 PM »
Hi MTCAT
If you do this:
Code: [Select]
ls -l lib/modules/2.6.33.3-rt19-tinycore/Do you see  modules.alias  and  modules.dep  files?

Offline MTCAT

  • Sr. Member
  • ****
  • Posts: 344
Re: TC3.8_4 Real Time Upgrade
« Reply #25 on: April 20, 2021, 08:01:21 PM »
Hi Rich,

Yes I do, there's a modules.symbols as well, I also see those "source" and "build" modules I tried to remove before (but didn't), and a "kernel" directory, and "kernel.tclocal" file.

Thanks,

David

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10150
Re: TC3.8_4 Real Time Upgrade
« Reply #26 on: April 20, 2021, 08:09:14 PM »
Hi MTCAT
... I also see those "source" and "build" modules I tried to remove before ...
You meant directories, right? Remove them:
Code: [Select]
sudo rm -f lib/modules/2.6.33.3-rt19-tinycore/source
sudo rm -f lib/modules/2.6.33.3-rt19-tinycore/build

Offline MTCAT

  • Sr. Member
  • ****
  • Posts: 344
Re: TC3.8_4 Real Time Upgrade
« Reply #27 on: April 20, 2021, 08:14:55 PM »
Hi Rich,

The "source" and "build" are one of those symbolic link things (I think), this is what it looks like for those items after doing the ls -l lib/modules/2.6.33.3-rt19-tinycore/ command.

lrwxrwxrwx 1 tc staff 23 Apr 20 21:52 build -> /home/tc/linux-2.6.33.3/
lrwxrwxrwx 1 tc staff 23 Apr 20 21:52 source -> /home/tc/linux-2.6.33.3/

Thanks,

David

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10150
Re: TC3.8_4 Real Time Upgrade
« Reply #28 on: April 20, 2021, 08:18:32 PM »
Hi MTCAT
Yes, they point back to the source directory. The links are not needed. I don't think leaving them will hurt anything either.

Offline MTCAT

  • Sr. Member
  • ****
  • Posts: 344
Re: TC3.8_4 Real Time Upgrade
« Reply #29 on: April 21, 2021, 10:56:37 AM »
Hi Rich,

Are there any other things we can try to get around the error seen in reply 23 ?

Thanks,

David