public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Detlev Zundel <dzu@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Creating a valid bmp file
Date: Fri, 26 Oct 2007 01:38:13 +0200	[thread overview]
Message-ID: <m2zly6ix3u.fsf@ohwell.denx.de> (raw)
In-Reply-To: <OFA1340487.B5D54FB2-ON8525737F.00748F03-8525737F.00751B79@orbital.com> (Roger Williamson's message of "Thu\, 25 Oct 2007 17\:19\:07 -0400")

Hi Roger,

> Currently I'm attempting to make my u-boot display a splash screen.
> Currently, the display dirver is being uncooperative, so I decided to focus
> my attention on creating a bitmap image that will be considered acceptable
> to the u-boot system.
>
> I've read through the brief descriptions about the bmp command and
> transfering data into the flash, but I'm having some issue getting u-boot
> to recognize my bitmaps.  All I'm getting out of the system is that "There
> is no valid bmp file at the given address."  I know that the address I give
> is the address of the bitmap in flash, and I am able to transfer new
> bitmaps over to the flash, I am just perplexed on how to create a suitable
> bitmap image.  What am I missing.

I cannot say what you are missing, but you probably can check for
yourself.  The first check the bitmap code does is to see whether it
can find 'B' and 'M' as the first two bytes of the image.  That's the
magic number for bmp files[1].  

Given the error message you get, you probably do not use the "Windows
Bitmap (BMP)" file format.  Also be aware that currently only 1 or 8
bit per pixel formats are supported.

Cheers
  Detlev

[1] http://en.wikipedia.org/wiki/Windows_bitmap

-- 
I've been examining the existing [linux]  kernel configuration system, and I
have about concluded that the best favor we could do everybody involved with
it is to take it out behind the barn and shoot it through the head.
                           -- Eric S. Raymond on linux-kbuild Mar 2000
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de

  reply	other threads:[~2007-10-25 23:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-25 21:19 [U-Boot-Users] Creating a valid bmp file Roger Williamson
2007-10-25 23:38 ` Detlev Zundel [this message]
2007-11-05 21:40   ` Roger Williamson
2007-11-05 22:15     ` Jerry Van Baren
2007-11-06  6:37     ` Wolfgang Denk
2007-11-06 12:37       ` Jerry Van Baren
2007-11-06 12:08     ` Clemens Koller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2zly6ix3u.fsf@ohwell.denx.de \
    --to=dzu@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox