Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: Meekdai on January 09, 2022, 10:37:55 PM

Title: How to modify the boot logo
Post by: Meekdai on January 09, 2022, 10:37:55 PM
Hi,
I want to display a custom logo during startup until the app is running. Is there a tutorial reference?
Title: Re: How to modify the boot logo
Post by: Rich on January 09, 2022, 11:36:35 PM
Hi Meekdai
Welcome to the forum.

Is this of any use:
http://forum.tinycorelinux.net/index.php/topic,24622.0.html
Title: Re: How to modify the boot logo
Post by: Meekdai on January 10, 2022, 09:38:07 PM
Hi Rich
I did that exactly as you reply #6 , But "Save  coreSplash.gz  in the same directory your  core.gz  is." failed, because the filesystem is read only, I can not modify it.
Title: Re: How to modify the boot logo
Post by: Rich on January 10, 2022, 10:11:40 PM
Hi Meekdai
Where did you copy your  core.gz  file from?
Title: Re: How to modify the boot logo
Post by: Meekdai on January 10, 2022, 10:31:25 PM
Hi Rich
core.gz file is from "/mnt/sda/boot/core.gz"
Title: Re: How to modify the boot logo
Post by: Rich on January 10, 2022, 10:34:11 PM
Hi Meekdai
Are you booting from a CD?
Or are you booting the  .iso  file?
Title: Re: How to modify the boot logo
Post by: Meekdai on January 10, 2022, 10:44:28 PM
Hi Rich
I try it in Windows Hyper-V with .iso file and try my old pc with usb disk. Have the same problem.
Am I misunderstood somewhere?
Title: Re: How to modify the boot logo
Post by: Rich on January 10, 2022, 11:08:47 PM
Hi Meekdai
ISOs are read only file systems. They need to be unpacked, modified, and repacked if you want to change
their contents. The easiest way to do this would be to make a bootable USB thumb drive.

Boot one of the  CorePlus  ISOs and select the first entry in the boot menu.
Use the  tc-install  application to make a bootable thumb drive. If you hover over the icons at the bottom
of the screen, they will display their names. Click on the  TC-install  icon.

Boot that thumb drive and you'll be able to make and save changes.
Title: Re: How to modify the boot logo
Post by: Meekdai on January 11, 2022, 03:35:29 AM
Thanks Rich
I successfully make a bootable USB thumb drive and my syslinux.cfg
Code: [Select]
DEFAULT /boot/vmlinuz initrd=/boot/core.gz loglevel=3 cde vga=895 logo.nologo=1 console=/dev/nullNow splash screen is modify successfully. But the effect is not perfect.There are something else in splash screen.

I saw a video online and that's what I want.  https://www.youtube.com/watch?v=seps-326oGg
Is TC can do fast and clean like the Toradex?

    [EDIT]: Added code tags.  Rich
Title: Re: How to modify the boot logo
Post by: Rich on January 11, 2022, 09:51:33 AM
Hi Meekdai
Please use  Code Tags  when posting commands and responses seen in a terminal. To use  Code Tags  click on the  #  icon
above the reply box and paste your text between the  Code Tags  as shown in this example:

Quote
[code][   36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.176536] pcm512x 1-004d: Failed to get supplies: -517
[   36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517[/code]

It will appear like this in your post:
Code: [Select]
[   36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.176536] pcm512x 1-004d: Failed to get supplies: -517
[   36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517

Code Tags  serve as visual markers between what you are trying to say and the information you are posting. They also preserve
spacing so column aligned data displays properly. Code tags also automatically add horizontal and or vertical scrollbars
to accommodate long lines and listings.
Title: Re: How to modify the boot logo
Post by: Rich on January 11, 2022, 10:18:08 AM
Hi Meekdai
...
Code: [Select]
DEFAULT /boot/vmlinuz initrd=/boot/core.gz loglevel=3 cde vga=895 logo.nologo=1 console=/dev/null ...
I can see you did not use the  tc-install  application  I recommended. That application  would never have added
that  cde  boot code.

Also, if you are going to modify  core.gz , rename it so it is clear that it is not the original file we released.

Quote
... But the effect is not perfect.There are something else in splash screen. ...
Well, we have a few choices here:
1. You can move your head so it's not blocking the screen and maybe I can see it from here.   ???
2. I could try guessing what that  "something else"  is.  ::)
3. You could describe or include a picture of what that  "something else"  is.  ;)
Title: Re: How to modify the boot logo
Post by: Meekdai on January 11, 2022, 08:49:45 PM
Hi rich
Apologies for my not very standard English. Code Tags are great, I'll use them later.
The following is a video of one end of the boot that I recorded, which can better feedback some problems.
http://music.meekdai.com/temporary/splash.mp4
The link of the video is best copied to the browser, otherwise it cannot be viewed

1、Exist log print
2、my logo(picture earth) redraw and offset a position
3、The whole process takes 16 seconds

Title: Re: How to modify the boot logo
Post by: Rich on January 11, 2022, 09:42:33 PM
Hi Meekda
If you add:the following line to your  syslinux.cfg  file:
Code: [Select]
Console 0it might suppress some of those  syslinux  messages.

I don't know why the image gets shifted.
Title: Re: How to modify the boot logo
Post by: Meekdai on January 11, 2022, 10:10:06 PM
Hi rich
I did that and it worked. The log:
Code: [Select]
Loading /boot/vmlinuz......
Loading /boot/core-e.gz..................ready
are disappeared,but this
Code: [Select]
Start booting from USB device..

SYSLINUX 4.07 EDD 2013-07-25 Copyright (C) 1994-2013 H. Peter Anvin et al
are still exist



Title: Re: How to modify the boot logo
Post by: Rich on January 11, 2022, 10:25:08 PM
Hi Meekda
Unless you want to start modifying the source code and recompiling syslinux, I don't think you can get rid of
those messages.
Title: Re: How to modify the boot logo
Post by: Meekdai on January 11, 2022, 10:38:16 PM
Hi rich
Looks very difficult for me.
I want to know that it is a common requirement for this kind of embedded device to only display the LOGO until the APP is running.
Why is there no ready-made system that can be used?
Title: Re: How to modify the boot logo
Post by: Rich on January 11, 2022, 11:13:17 PM
Hi Meekda
You kind of answered your own question when you said "embedded device". Embedded devices typically tend to
behave more like appliances. They basically serve a single purpose and are expected to turn on quickly. They
also might be running on specialized processors, like the Toradex youtube video you linked to. It's quite possible
these devices also use custom bootloaders.
Title: Re: How to modify the boot logo
Post by: Meekdai on January 12, 2022, 12:34:10 AM
Hi rich
Then I will try my best to achieve the splash screen I want on the TC. Make it easy for everyone in the future.
I try to solve the problem of image gets shifted first. Let me know if you have any ideas, thanks.
Title: Re: How to modify the boot logo
Post by: gadget42 on January 12, 2022, 09:01:23 AM
maybe it was just me, but wasn't the planet redrawn 90 degrees clockwise(in addition to being in a difference area of the screen).
Title: Re: How to modify the boot logo
Post by: Rich on January 12, 2022, 10:40:03 AM
Hi gadget42
Nice catch, it is rotated 90 degrees clockwise. If the  fbv  program thinks it saw the  "m"  key pressed, it will do that.
Since the program is backgrounded, it should not see any keyboard activity.

It's quite possible the reason the image appeared to shift was due to the rotation. For example, If the image is
800x600 on a 800x600 display, it will be 600x800 after rotation on that same display. The fbv program will center
the image horizontally but pin what is now the top edge of the image to the top edge of the display, clipping the
rest of the image off of the bottom.
Title: Re: How to modify the boot logo
Post by: Rich on January 12, 2022, 10:46:29 AM
Hi Meekda
Did you follow the modification directions in the link in reply #1 exactly or did you make some changes?
Title: Re: How to modify the boot logo
Post by: Meekdai on January 12, 2022, 08:01:04 PM
Hi rich
I followed the link in reply #1 exactly.The link below is the pack I made, you can download and check
http://[Link removed]

I found that the picture is not displayed every time, and sometimes it is only a black screen.
Title: Re: How to modify the boot logo
Post by: Rich on January 12, 2022, 09:12:47 PM
Hi Meekdai
I'm sorry but your link has been removed.

The  Forum Rules and Guidelines  state:
Quote
2. No attachments/links of binary extensions
Found here:
http://forum.tinycorelinux.net/index.php/topic,7738.0.html

You are not allowed to post binary attachments, or direct links to external binaries.
You may post a link that takes you  to an external site, where someone can then choose to download something.
Title: Re: How to modify the boot logo
Post by: Rich on January 12, 2022, 09:42:48 PM
Hi Meekdai
The file looks OK as far as I can tell. The boot logo is different from what was in your video.
You might want to consider cropping the logo to a smaller size so it works with other screen sizes. You can add
the -k switch to fbv to tell it to resize the image to fit the screen. If you don't care about aspect ratio, the -r
switch will make it fill the screen even if the aspect ratio does not match.

... I found that the picture is not displayed every time, and sometimes it is only a black screen.
Since you are booting from a USB device, add a  waitusb  boot code:
Code: [Select]
loglevel=3 cde vga=895 logo.nologo=1 console=/dev/null waitusb=5and see if that helps.

... I try to solve the problem of image gets shifted first. Let me know if you have any ideas, thanks.
If you are booting using a VM, Hypervisor, or some other intermediary, see if booting on bare metal helps.
Title: Re: How to modify the boot logo
Post by: Meekdai on January 12, 2022, 10:19:09 PM
Hi rich
Sorry,I didn't read the Forum rules carefully.
Yes, I replaced the logo so that its rotation is more visible. My screen is 1920*1080,so I use the logo has the same resolution.
I try to add waitusb in boot code, it didn't help, problem still exists.

Quote
If you are booting using a VM, Hypervisor, or some other intermediary, see if booting on bare metal helps.
I'm currently testing on bare metal(my old pc).
Title: Re: How to modify the boot logo
Post by: Meekdai on January 13, 2022, 03:59:21 AM
Hi rich

Quote
... I found that the picture is not displayed every time, and sometimes it is only a black screen.
To solve this problem, I deleted
Code: [Select]
console=/dev/nulland the log display
Code: [Select]
fb0 No such file or directoryBecause sometimes fb0 does not complete initialization.Then I put the code in tc-config file after "$WAITUSB" about line 126. It can show logo everytime.
Title: Re: How to modify the boot logo
Post by: Rich on January 13, 2022, 01:39:27 PM
Hi Meekdai
... To solve this problem, I deleted ...

 ... Because sometimes fb0 does not complete initialization. ...
...
Code: [Select]
loglevel=3 cde vga=895 logo.nologo=1 console=/dev/null waitusb=5 ...
Where did you get that value of  895  for the  vga  code from? Try one of the values listed here (maybe 795):
http://tinycorelinux.net/faq.html#bootcodes

Then see if it works reliably as originally suggested.
Title: Re: How to modify the boot logo
Post by: Meekdai on January 13, 2022, 07:57:56 PM
Hi rich
I use
Code: [Select]
vga=askto get the 895,and it's 1920*1080 resolution. I will try 795 later.

And I find the logo redrawn 90 degrees, becaus some extensions are load. when  I use Core-12.0.iso with no extension load, the logo is not redrawn.
Title: Re: How to modify the boot logo
Post by: Meekdai on January 13, 2022, 08:36:48 PM
Hi rich
I use a 640*480 resolution logo,and try with the following code:
Code: [Select]
loglevel=3 cde vga=786 logo.nologo=1 waitusb=5Startup log still showing
Code: [Select]
fb0 No such file or directory