From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlev Zundel Date: Fri, 26 Oct 2007 01:38:13 +0200 Subject: [U-Boot-Users] Creating a valid bmp file In-Reply-To: (Roger Williamson's message of "Thu\, 25 Oct 2007 17\:19\:07 -0400") References: Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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