Displaying boot logo/animation - FAQ?

Posted by: LittleBlueThing

Displaying boot logo/animation - FAQ? - 15/02/2008 15:39

So I wanted to show off the empeg and one thing that is really cool is the boot logo and animation.

So how do I display my boot logo or boot animation 'at will' ?

Not, it appears, that easy?

<grin>
Posted by: Robotic

Re: Displaying boot logo/animation - FAQ? - 15/02/2008 15:42

Reboot?

wink
Posted by: LittleBlueThing

Re: Displaying boot logo/animation - FAQ? - 15/02/2008 15:46

Ah, that's what you *used* to have to do...
Posted by: LittleBlueThing

View Boot Graphics - 15/02/2008 16:03

Before the 'BootG' patch smile

It adds a nice new menu to hijack that lets you.... well, have a look smile

Caveat: I run this on both my empegs. It works for me. You may want to wait for Mark to bless it...
Posted by: mlord

Re: View Boot Graphics - 15/02/2008 18:15

Quote:
// Steal^H^H^H^H^H Reuse ml's anim code


..which in turn was sto^H^H^Hadapted from Tony/Hugo's code (dunno which of the two).

Were I to merge this, we would then have *three* copies of that routine in kernel.. bit of a waste of non-pageable RAM, that. smile

That big switch(data.button) thingie is built-into the normal movefunc functionality, btw. I suspect it could be removed.

Cheers
Posted by: LittleBlueThing

Re: View Boot Graphics - 15/02/2008 19:03

I did notice the tripling (but not being an embedded bod at heart I just burn RAM); however I thought I'd put it up for review as a fairly non-intrusive patch first.

It's actually my first 'kernel' code smile I was frankly astonished that it worked first time!

I was considering restructuring the animation code in empeg_display.c - maybe display_frame(*buf, *frame) or something?

I wondered about having just one set of animation routines full stop - but empeg_display seems to use a timer callback whereas the game/bootg uses an update-after-period. Like I said though - just getting it to work was nice smile

About moving the switch... what about changing the '_move' functions to accept a button value (eg IR_RIGHT_BUTTON_PRESSED) rather than just a +/- based on KNOB_LEFT/RIGHT?

That may allow a tidy up of the UI and also allow the use of left,right,down keys as well as knob presses (which can be a bit fiddly and sometimes rotate the knob before a press happens).

The main thing is it's a useful (or at least showy) feature that I quite like smile
Posted by: LittleBlueThing

Re: View Boot Graphics - 15/02/2008 20:07

mmm - OK, I consolidated all three routines. Saved 40 bytes in the vmlinux frown
Posted by: mlord

Re: View Boot Graphics - 16/02/2008 12:28

Originally Posted By: LittleBlueThing
mmm - OK, I consolidated all three routines. Saved 40 bytes in the vmlinux frown


Something strange happened with the generation of that patch.. (look at it!).

Oh, maybe the +/- are just all reversed.. ?

Try again?
Posted by: mlord

Re: View Boot Graphics - 16/02/2008 12:29

Originally Posted By: LittleBlueThing
It's actually my first 'kernel' code smile I was frankly astonished that it worked first time!


Infectious fun, isn't it? smile
Posted by: LittleBlueThing

Re: View Boot Graphics - 16/02/2008 13:50

Ooops. Ah, yes, I've been setting up a git repository - just for local use really. Avoids having multiple trees...

I think I just did git diff -p and got the versions the wrong way around... d'oh!

here you are:
git diff -p v488 v488-bootgv2 > ../patches/Boot_Graphics2.patch
attached.
(I've been quite attached to git since I did some work on the docs a few years back - my name's still not washed off the manpages yet wink Wish I could use it more/better though.)

Yes it's definitely fun... once you get a bit of a handle on it and you're not just wandering in a maze of twisty passages...

I have been wondering how many empegs there will be up and running at once at the meet in July. And how we can play games with them...

Random 'Simon Says' comes to mind...

PS I meant to say: if you have time then please comment if you think I've done things sub-optimally; I want to get it right. I'll be reviewing the button handling - I think I'll make all the _move() functions take a 2nd parameter of the button data to allow more than just knob rotation. Anyway, l8r, I have to go sew a dress now.