WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: remastered corepure64.gz has extensions & onboot.lst but does not load  (Read 4274 times)

Offline wlarip

  • Newbie
  • *
  • Posts: 8
Greetings:

I remastered corepure64.gz with the necessary scsi entensions and some other goodies plus the onboot.lst into the unpacked tmp directory of corepure64.

The repack was successful. The system boots and the extensions are in the booted /tmp/tce/optional directory but they do not load on boot. They will load with tce-load -i 'extension.tcz'.

Any tips?

TIA

Offline polikuo

  • Hero Member
  • *****
  • Posts: 714
Re: remastered corepure64.gz has extensions & onboot.lst but does not load
« Reply #1 on: February 06, 2018, 01:08:09 AM »
the extensions are in the booted /tmp/tce/optional directory

It would be a better idea to unsquash it along with its dependencies directly to the root of your remastered corepure64.gz
And then create empty files in the /usr/local/tce.installed/ directory to prevent reloading.

Assume that you are talking about scsi-KERNEL.tcz (scsi-4.8.17-tinycore64.tcz)
It does not depend on any other extensions.
So you won't need other extensions copied.
Also, make sure to add an empty file scsi-KERNEL (scsi-4.8.17-tinycore64) to /usr/local/tce.installed/

but they do not load on boot

You'll have to dig into the start-up scripts to get the answers.
My guess is that, by default /tmp/tce/optional is empty, thus the tceonbootload is skipped.

Offline wlarip

  • Newbie
  • *
  • Posts: 8
Re: remastered corepure64.gz has extensions & onboot.lst but does not load
« Reply #2 on: February 06, 2018, 03:01:52 AM »
much obliged.

Offline wlarip

  • Newbie
  • *
  • Posts: 8
Re: remastered corepure64.gz has extensions & onboot.lst but does not load
« Reply #3 on: February 06, 2018, 09:57:10 AM »
I tce-loaded scsi-4.8.17-tinycore64.tcz. After it installed , i copied the /usr/local/lib
directory structure into the extracted usr/local/lib preserving all links and doing a depmod on the extracted core directory.

the core_extract was remastered to corepure64.gz and booted. It looks fine but device discovery never kicks off. I'm guessing the tce-load does a modprobe to get the device to wake up.

if so, what's the method that prevents it from modprobing non-existant devices unless it's a device enumeration request?

If not, how does tce-load do it?

TIA

Offline wlarip

  • Newbie
  • *
  • Posts: 8
Re: remastered corepure64.gz has extensions & onboot.lst but does not load
« Reply #4 on: February 07, 2018, 06:31:18 AM »
unsquashed fs /usr/local/lib/modules from scsi-`uname -r` doesn't work either.

tc-load itself seems to be kicking device discovery.

interesting question.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: remastered corepure64.gz has extensions & onboot.lst but does not load
« Reply #5 on: February 07, 2018, 06:53:49 AM »
What if you add to your  /opt/bootsync.sh
Code: [Select]
/sbin/depmod -a
/sbin/udevadm trigger
?
Download a copy and keep it handy: Core book ;)

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: remastered corepure64.gz has extensions & onboot.lst but does not load
« Reply #6 on: February 07, 2018, 07:01:05 AM »
Or before repacking
Code: [Select]
sudo ln -s "$INPUT/usr/local/lib/modules/$KERNEL/kernel" "$INPUT/lib/modules/$KERNEL/kernel.tclocal"
sudo depmod -a -b "$INPUT" $KERNEL
where  $INPUT  is the directory you extracted core.gz into (f.e. "/tmp/core") and  $KERNEL  is the kernel version this core.gz is for (f.e. "4.2.9-tinycore").
« Last Edit: February 07, 2018, 07:04:15 AM by Misalf »
Download a copy and keep it handy: Core book ;)

Offline wlarip

  • Newbie
  • *
  • Posts: 8
Re: remastered corepure64.gz has extensions & onboot.lst but does not load
« Reply #7 on: February 07, 2018, 07:05:18 AM »
Exactly right.

I believe that is the difference between tci-load -wi and -wc.

Well played.

BTW, depmod -a on the extracted initrd doesn't work. Unresolved module symbols until the image is booted.

After that nirvana.

Thank you kindly.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: remastered corepure64.gz has extensions & onboot.lst but does not load
« Reply #8 on: February 07, 2018, 07:16:22 AM »
The  -c  switch makes tce-load copy the files to the filesystem in RAM and un-mounts the extension afterwards, rather than symlinking them and keeping the extension mounted.
Download a copy and keep it handy: Core book ;)