Difference between revisions of "DESK-MP1-L/Deployment/Customizing the splash screen"

From DAVE Developer's Wiki
Jump to: navigation, search
(Created page with "==Customizing the splash screen== === Instructions === The following U-Boot environment variables are required: * <code>splashimage</code>: RAM address where the BMP image...")
 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
<section begin=History/>
 +
{| style="border-collapse:collapse; "
 +
!colspan="4" style="width:100%; text-align:left"; border-bottom:solid 2px #ededed"|History
 +
|-
 +
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Issue Date
 +
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Notes
 +
|-
 +
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|2023/08/01
 +
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|DESK-MP1-L-1.0.0 release
 +
|-
 +
|}
 +
<section end=History/>
 +
<section begin=Body/>
 +
 +
__FORCETOC__
 +
 
==Customizing the splash screen==
 
==Customizing the splash screen==
  
=== Instructions ===
+
The following U-Boot environment variables are required for the splash image display when u-boot starts:
 
 
The following U-Boot environment variables are required:
 
  
 
* <code>splashimage</code>: RAM address where the BMP image is loaded. Please note that it must be a 32-bit (eg: <code>0xc4100000</code>)
 
* <code>splashimage</code>: RAM address where the BMP image is loaded. Please note that it must be a 32-bit (eg: <code>0xc4100000</code>)
 
* <code>splashfile</code>: image name to load and then display at boot. (eg: <code>splash_landscape.bmp</code>)
 
* <code>splashfile</code>: image name to load and then display at boot. (eg: <code>splash_landscape.bmp</code>)
  
==== uSD Splash image ====
+
=== U-Boot variables example ===
 
 
===== U-Boot variables =====
 
  
 
<pre>
 
<pre>
Line 17: Line 29:
 
</pre>
 
</pre>
  
===== Commands update splah image on u-boot via tftp =====
+
=== How to update splashscreen image ===
 
 
If you want to upload the image via tftp you must first format the ext4 partitions of the uSD without the <code>metadata_csum</code> flag (eg: <code>mkfs.ext4 -O ^metadata_csum -F -L <name> <partition></code>)
 
 
 
The following commands are used to store in uSD flash a BMP image loaded via tftp(e.g. the image are con <code>/tftp/desk-mp1-l/splash_image.bmp</code>, <code>serverip=192.168.0.13</code>)
 
 
 
<pre>
 
tftp ${loadaddr} desk-mp1-l/splash_image.bmp
 
ext4write mmc 0:8 ${loadaddr} /splash_landscape.bmp ${filesize}
 
</pre>
 
 
 
Not using the <code>metadata_csum</code> flag is not recommended!
 
 
 
===== Commands update splah image with host =====
 
  
You can update the splash image with the following steps:
+
As an example, you can update the splash image with the following steps:
 
* connect the uSD to the host
 
* connect the uSD to the host
 
* mount the boot partition (eg: <code>sudo mount /dev/sdb8 /mnt</code>)
 
* mount the boot partition (eg: <code>sudo mount /dev/sdb8 /mnt</code>)
Line 38: Line 37:
 
* umount the uSD and excecute the boot
 
* umount the uSD and excecute the boot
  
===== Commands update splah image on userspace =====
+
----
  
After booting and into userspace, get the image to have as splash, for example using a scp command from the host, the boot partition should already be mounted in <code>/boot</code>, put the image to use in the partition, the image must have the name <code>splash_landscape.bmp</code>.
+
[[Category:ETRA]] [[Category:ETRA_SBC]]

Latest revision as of 11:29, 8 January 2024

History
Issue Date Notes
2023/08/01 DESK-MP1-L-1.0.0 release



Customizing the splash screen[edit | edit source]

The following U-Boot environment variables are required for the splash image display when u-boot starts:

  • splashimage: RAM address where the BMP image is loaded. Please note that it must be a 32-bit (eg: 0xc4100000)
  • splashfile: image name to load and then display at boot. (eg: splash_landscape.bmp)

U-Boot variables example[edit | edit source]

splashimage=0xc4100000
splashfile=splash_landscape.bmp

How to update splashscreen image[edit | edit source]

As an example, you can update the splash image with the following steps:

  • connect the uSD to the host
  • mount the boot partition (eg: sudo mount /dev/sdb8 /mnt)
  • copy on /mnt partition the image with this name: splash_landscape.bmp
  • umount the uSD and excecute the boot