WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Boot splash  (Read 4774 times)

Offline andyj

  • Hero Member
  • *****
  • Posts: 1023
Boot splash
« on: May 19, 2015, 04:58:43 PM »
I managed to get plymouth running on the Pi 2, but it appears to be for naught. It seems that the Pi doesn't support vga modes in the cmdline, so instead of graphics I get some text squares that approximate what I'm hoping for. Since it's only for about 4 seconds, at this point a simple program that would show a static image would suffice. What sort of lightweight programs are there that will work in the framebuffer console? Is it possible for the kernel logo to persist once init starts?

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Boot splash
« Reply #1 on: May 19, 2015, 05:39:18 PM »
fbv
Frame Buffer Viewer
Views images in frame buffer. Supported formats limited to png, jpg and bmp.
http://s-tech.elsat.net.pl/fbv/
Download a copy and keep it handy: Core book ;)

Offline hal9king

  • Newbie
  • *
  • Posts: 49
Re: Boot splash
« Reply #2 on: May 19, 2015, 05:54:23 PM »
Thanks! I was looking for that too.
In science, we know ... what we don't know.

Offline andyj

  • Hero Member
  • *****
  • Posts: 1023
Re: Boot splash
« Reply #3 on: May 19, 2015, 06:38:09 PM »
Sounds nice. Until you try to build it. What's the trick?

Offline andyj

  • Hero Member
  • *****
  • Posts: 1023
Re: Boot splash
« Reply #4 on: May 19, 2015, 07:42:58 PM »
Fim works, but it's kinda big at 604k. Fbi works too, and it's not quite so big at 375k. I haven't tried it on my 320x240 display yet. Neither of these sizes include the dependencies. Is there anything smaller out there?

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Boot splash
« Reply #5 on: May 20, 2015, 01:11:12 AM »
Quote
Sounds nice. Until you try to build it. What's the trick?
Hmm, true.

Code: [Select]
...

In file included from /usr/local/include/pngconf.h:72:0,
                 from /usr/local/include/png.h:476,
                 from png.c:22:
png.c: In function ‘fh_png_getsize’:
png.c:164:23: error: dereferencing pointer to incomplete type
     if (setjmp(png_ptr->jmpbuf))
                       ^
<builtin>: recipe for target 'png.o' failed
make: *** [png.o] Error 1

I guess you can't use the x86 build (167.9K) on ARM?
http://tinycorelinux.net/4.x/x86/tcz/fbv.tcz
Download a copy and keep it handy: Core book ;)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14613
Re: Boot splash
« Reply #6 on: May 20, 2015, 01:36:26 AM »
This is the kind of error you see when trying to compile something looking for libpng12 when you have libpng16 (or vice-versa).

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10973
Re: Boot splash
« Reply #7 on: May 20, 2015, 01:58:14 AM »
..and in that case someone has often already created a patch: look in packages.ubuntu.com for example.
The only barriers that can stop you are the ones you create yourself.

Offline andyj

  • Hero Member
  • *****
  • Posts: 1023
Re: Boot splash
« Reply #8 on: May 20, 2015, 05:26:40 AM »
I found a patched version here http://repo.or.cz/w/fbv.git/tree that works. I compiled it for png only without gif, jpeg, and bmp support, so it's only 18k and only requires libpng16. I can live with that.

Offline andyj

  • Hero Member
  • *****
  • Posts: 1023
Re: Boot splash
« Reply #9 on: June 07, 2015, 09:04:42 PM »
Apparently, if you don't let anything at all output to the console then the kernel boot logo will persist intact until the X desktop appears about 5 seconds later. No image viewer needed. This is really only practical if the kernel image is the same size as the screen so you don't get multiple images (one per core).