Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#307284 - 15/02/2008 15:39 Displaying boot logo/animation - FAQ?
LittleBlueThing
addict

Registered: 11/01/2002
Posts: 612
Loc: Reading, UK
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>
_________________________
LittleBlueThing Running twin 30's

Top
#307285 - 15/02/2008 15:42 Re: Displaying boot logo/animation - FAQ? [Re: LittleBlueThing]
Robotic
pooh-bah

Registered: 06/04/2005
Posts: 2026
Loc: Seattle transplant
Reboot?

wink
_________________________
10101311 (20GB- backup empeg)
10101466 (2x60GB, Eutronix/GreenLights Blue) (Stolen!)

Top
#307287 - 15/02/2008 15:46 Re: Displaying boot logo/animation - FAQ? [Re: Robotic]
LittleBlueThing
addict

Registered: 11/01/2002
Posts: 612
Loc: Reading, UK
Ah, that's what you *used* to have to do...
_________________________
LittleBlueThing Running twin 30's

Top
#307288 - 15/02/2008 16:03 View Boot Graphics [Re: LittleBlueThing]
LittleBlueThing
addict

Registered: 11/01/2002
Posts: 612
Loc: Reading, UK
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...


Attachments
Boot_Graphics.patch (641 downloads)
Description: BootG patch against v488

v488-BootG.zImage (686 downloads)
Description: a v488 with the BootG patch


_________________________
LittleBlueThing Running twin 30's

Top
#307291 - 15/02/2008 18:15 Re: View Boot Graphics [Re: LittleBlueThing]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14472
Loc: Canada
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

Top
#307295 - 15/02/2008 19:03 Re: View Boot Graphics [Re: mlord]
LittleBlueThing
addict

Registered: 11/01/2002
Posts: 612
Loc: Reading, UK
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
_________________________
LittleBlueThing Running twin 30's

Top
#307298 - 15/02/2008 20:07 Re: View Boot Graphics [Re: LittleBlueThing]
LittleBlueThing
addict

Registered: 11/01/2002
Posts: 612
Loc: Reading, UK
mmm - OK, I consolidated all three routines. Saved 40 bytes in the vmlinux frown


Attachments
Boot_Graphics2.patch (699 downloads)
Description: consolidated animation frame display


_________________________
LittleBlueThing Running twin 30's

Top
#307319 - 16/02/2008 12:28 Re: View Boot Graphics [Re: LittleBlueThing]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14472
Loc: Canada
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?


Edited by mlord (16/02/2008 12:30)

Top
#307320 - 16/02/2008 12:29 Re: View Boot Graphics [Re: LittleBlueThing]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14472
Loc: Canada
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

Top
#307325 - 16/02/2008 13:50 Re: View Boot Graphics [Re: mlord]
LittleBlueThing
addict

Registered: 11/01/2002
Posts: 612
Loc: Reading, UK
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.


Attachments
Boot_Graphics2.patch (565 downloads)
Description: Non-reversed patch!


_________________________
LittleBlueThing Running twin 30's

Top