Richard Laurant
Richard Laurant

Reputation: 657

U-boot: Dual Boot + Dummy Kernel + Modified Splash Image

I want to integrate a dual boot feature into u-boot. During the execution of the SPL, the u-boot.img gets authenticated. If it get authenticated correctly, Android ICS is started. If not, a dummy kernel shall be started, which does nothing more then showing an error message (maybe as the boot logo).

Thus, I do have three challenges:

  1. I need to pass u-boot.img different parameters, to boot different kernel images based on the authentication process.
  2. I need to integrate some kind of dummy kernel, which does nothing but just displaying a boot screen.
  3. I need to modify this boot screen with my own version.

I know how to perform the last step, since the boot screen seems to be a zip file, which needs to be replaces. However, could you give me hints regarding the first and second task?

Thanks, P

Upvotes: 0

Views: 1767

Answers (1)

Steven Eckhoff
Steven Eckhoff

Reputation: 1042

I think you mean authenticate the kernel. Is that correct? If you want to do that, U-Boot has that capability. You can do all of this in a script that will either boot the authenticated kernel or display a splash screen.

For the splash screen, there are several ways to do it. One way would use a U-Boot command, depending on version, to display a bitmap stored in flash or on an SD card. The other way would require you to convert a bitmap to a header file and rebuild the U-Boot image. I can give you directions for this if you tell me where you want to store the image and what version of U-Boot you are using. Also for rebuilding the image, you will need to know which source you are using, so you can add the header with the bitmap. Also what is the data format for the display (RGB 565, Etc.)?

Where is the kernel going to be stored and by what method are you going to authenticate it?

Upvotes: 1

Related Questions