WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [Solved] SPLASH SCREEN TINY CORE  (Read 8183 times)

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
[Solved] SPLASH SCREEN TINY CORE
« on: December 23, 2020, 10:53:57 AM »
Hi all, i am new here and little bit a noob, can some one explain to me how to do this step by step ? ( See URL )
http://forum.tinycorelinux.net/index.php/topic,18122.0.html

when i edit the tc-config it dose not get effectively ( for example i deleted the echo lines so it dose not appear while booting ) but it dose appear why ?

i need to know how to make a splash screen step by step working !

Please help !
« Last Edit: December 26, 2020, 09:35:35 PM by Rich »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11334
Re: SPLASH SCREEN TINY CORE
« Reply #1 on: December 23, 2020, 11:14:12 AM »
Hi Rabie
... when i edit the tc-config it dose not get effectively ( for example i deleted the echo lines so it dose not appear while booting ) but it dose appear why ? ...
tc-config  is inside of  core.gz. It gets rewritten every time you boot. To change it, you need to remaster  core.gz.

First you need to unpack  core.gz:
Code: [Select]
mkdir tempdir
cd tempdir
zcat /path/to/existing/core.gz | sudo cpio -i

Then edit the file:
Code: [Select]
editor etc/init.d/tc-config
Finally, repack  core.gz:
Code: [Select]
cd tempdir
sudo find . | sudo cpio -o -H newc | gzip > /path/to/new/core.gz

    [EDIT]: Fixed typo. Changed  etc/init.d/tc-functios  to  etc/init.d/tc-config.  Rich
« Last Edit: December 24, 2020, 07:56:39 AM by Rich »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11334
Re: SPLASH SCREEN TINY CORE
« Reply #2 on: December 23, 2020, 11:19:35 AM »
Hi Rabie
Please do not post the same question multiple times. Your other post has been removed.

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: SPLASH SCREEN TINY CORE
« Reply #3 on: December 24, 2020, 06:58:48 AM »
Hi Rich,
Thank you for the Answer.

Quote
tc-config  is inside of  core.gz. It gets rewritten every time you boot. To change it, you need to remaster  core.gz.
now i understand this one.

Quote
editor etc/init.d/tc-functios
But what should i add to "etc/init.d/tc-functios" ?

and how can i add the framebuffer image viewer "fbv" to the core.gz after i unpack it, so it´s available while booting? and should i add something else to it ? ( the framebuffer is in "/usr/local/bin/fbv" )


Sorry for my too little knowledge! :-\


« Last Edit: December 24, 2020, 07:06:38 AM by Rabie »

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: SPLASH SCREEN TINY CORE
« Reply #4 on: December 24, 2020, 07:02:10 AM »
Hi Rabie
Please do not post the same question multiple times. Your other post has been removed.
sorry it was a mistake !  :-\

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: SPLASH SCREEN TINY CORE
« Reply #5 on: December 25, 2020, 09:35:02 AM »
hi Rich,

i know now how to remaster the core.gz but i need to know how to make the framebuffer image viewer "fbv" available while booting.

all i know that i have to start it at the first of tc-config but how ?? how to make it find the directory  /usr/local/bin at first ?

thanks again !

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11334
Re: SPLASH SCREEN TINY CORE
« Reply #6 on: December 25, 2020, 12:04:09 PM »
Hi Rabie
The following is untested. Lines preceeded with  #  are just comments.

Code: [Select]
tce-load -wil fbv
mkdir tempdir
cd tempdir
zcat /path/to/existing/core.gz | sudo cpio -i
sudo cp -a /tmp/tcloop/fbv/usr/local/bin/fbv usr/bin
sudo cp -a /tmp/tcloop/libpng/usr/local/lib/* usr/lib
sudo cp -a /tmp/tcloop/libjpeg-turbo/usr/local/lib/* usr/lib
sudo ldconfig -r $PWD
# YourImage  is the image for your splash screen.
cp Path/To/YourImage etc/init.d
# Changes will be made to the  rcS  file.
editor etc/init.d/rcS

In the  etc/init.d/rcS  file,

replace this:
Code: [Select]
/etc/init.d/tc-config
with this:
Code: [Select]
/usr/bin/fbv -a -i /etc/init.d/YourImage &
/etc/init.d/tc-config >/dev/null 2>&1
/usr/bin/killall -q fbv &

Now repack it into a new file:
Code: [Select]
sudo find . | sudo cpio -o -H newc | gzip > /path/to/new/coreSplash.gz
Save  coreSplash.gz  in the same directory your  core.gz  is.
Add a new entry to your bootloaders config file and point it to  coreSplash.gz.
Add this boot code to suppress the kernel logo:
Code: [Select]
logo.nologo
Things you will need to figure out:
1. What size to use for  YourImage.
2. What format to use for  YourImage (png or jpg).
3. You may or may not need to use a  vga=  boot code.
4. You may or may not need to use a  console=/dev/null  boot code.
5. You may need to play with the  fbv  options,  fbv --help  will list them.

If you go here and enter  fbv  as the search term:
http://forum.tinycorelinux.net/index.php?action=search
you should find more information.
« Last Edit: December 26, 2020, 09:33:33 PM by Rich »

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: SPLASH SCREEN TINY CORE
« Reply #7 on: December 25, 2020, 01:15:08 PM »
Hi Rich,

Quote
tce-load -wil fbv
mkdir tempdir
cd tempdir
zcat /path/to/existing/core.gz | sudo cpio -i
sudo cp -a /tmp/tcloop/fbv/usr/local/bin/fbv usr/bin
# YourImage  is the image for your splsh screen.
cp Path/To/YourImage etc/init.d
# Changes will be made to the  rcS  file.
editor etc/init.d/rcS
i did that exactly as you said, i think the extension fbv is available while booting because i am getting now this errore:
(/user/local/bin/fbv: error while loading shared libraries : libpng16.so.16 : connot open shared object file : No such file ore directory )
i have already installed the extension libpng and the command "/usr/bin/fbv -aui /etc/init.d/myImage.png work after the system has been booted


Quote
Save  coreSplash.gz  in the same directory your  core.gz  is.
Add a new entry to your bootloaders config file and point it to  coreSplash.gz.
Add this boot code to suppress the kernel logo:
i didn't make a new coreSplash.gz, i just replaced the existing core.gz


Quote
Things you will need to figure out:
1. What size to use for  YourImage.
2. What format to use for  YourImage (png or jpg).
3. You may or may not need to use a  vga=  boot code.
4. You may or may not need to use a  console=/dev/null  boot code.
5. You may need to play with the  fbv  options,  fbv --help  will list them.
all this Information dosen't make a Problem for me
i do not need vga at boot i thind it will work as soon as i fix this error with the libpng

do you have any idea ?

thanks forward

« Last Edit: December 25, 2020, 01:21:49 PM by Rabie »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11334
Re: SPLASH SCREEN TINY CORE
« Reply #8 on: December 25, 2020, 02:05:04 PM »
Hi Rabie
Since you installed libpng, after you performed this step:
Code: [Select]
sudo cp -a /tmp/tcloop/fbv/usr/local/bin/fbv usr/binAdd this step:
Code: [Select]
sudo cp -a /tmp/tcloop/libpng/usr/local/lib/* usr/lib
sudo ldconfig -r $PWD

Please provide feedback on what does or does not work. This way I can update my instructions in reply #6 for the next person
looking to do this.

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: SPLASH SCREEN TINY CORE
« Reply #9 on: December 25, 2020, 04:13:48 PM »
Hi Rich,

Sorry for my ignorance

Quote
sudo cp -a /tmp/tcloop/libpng/usr/local/lib/* usr/lib
sudo ldconfig -r $PWD
after i added the lib for libpng i got the same error but for libjpeg then i added that too.

now i am getting the error "open /dev/fb0 no such device"

i know that this error comes because of the graphics card, because i have got that error once when the driver (xf86-video-intel.tcz) didn't exist.

although /dev/fb0  dose exist

i tried to add the following to the core also but it didn't work  :(
Quote
/tmp/tcloop/xf86-video-intel
/tmp/tcloop/xf86-video-intel/usr/local/lib/xorg/xf86-video-intel-backlight-helper
/usr/lib/xorg/xf86-video-intel-backlight-helper
/usr/local/lib/xorg/xf86-video-intel-backlight-helper
/usr/local/tce.installed/xf86-video-intel

i also tried with the boot code vga it didn't work too.

any tips ?

thanks..

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11334
Re: SPLASH SCREEN TINY CORE
« Reply #10 on: December 25, 2020, 04:30:32 PM »
Hi Rabie
Sorry for my ignorance ...
No need to apologize. This is new territory for me too.

What does this command return:
Code: [Select]
tc@E310:~/count$ ldd $(which fbv)
        linux-gate.so.1 (0xb7f62000)
        libm.so.6 => /lib/libm.so.6 (0xb7e91000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb7e7d000)
        libc.so.6 => /lib/libc.so.6 (0xb7d50000)
        /lib/ld-linux.so.2 (0xb7f63000)
tc@E310:~/count$

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: SPLASH SCREEN TINY CORE
« Reply #11 on: December 25, 2020, 04:38:35 PM »
Hi Rich,

Quote
What does this command return:
ldd $(which fbv)

this:
tc@box:/$ ldd $(which fbv)
        linux-vdso.so.1 (0x00007ffcb0585000)
        libpng16.so.16 => /usr/lib/libpng16.so.16 (0x00007f04db5b3000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x00007f04db356000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f04db216000)
        libm.so.6 => /lib/libm.so.6 (0x00007f04db0b3000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f04db09f000)
        libc.so.6 => /lib/libc.so.6 (0x00007f04daf21000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00007f04dad0c000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00007f04dacee000)
        /lib/ld-linux-x86-64.so.2 (0x00007f04db7e5000)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11334
Re: SPLASH SCREEN TINY CORE
« Reply #12 on: December 25, 2020, 05:09:29 PM »
Hi Rabie
You're running 64 bit? The forum posts I've seen on the topic deal with the old 32 bit fbv  version 1.0b which has no dependencies.
It's possible the newer version you are running has some extra requirements.

There is a  video=  boot code that references frame buffer:
https://mjmwired.net/kernel/Documentation/kernel-parameters.txt#4358

This is the frame buffer documentation that boot code refers to:
https://mjmwired.net/kernel/Documentation/fb/

tinycorelinux

  • Guest
Re: SPLASH SCREEN TINY CORE
« Reply #13 on: December 25, 2020, 08:22:39 PM »
Hi Rich
Quote
First you need to unpack  core.gz:
Is there a simpler way to unpack and package core.gz files, such as can I use other unzip tools to add, update, and replace files directly inside them?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11334
Re: SPLASH SCREEN TINY CORE
« Reply #14 on: December 25, 2020, 08:50:27 PM »
Hi ONE
That's the only way that I am aware of.