Custom Boot Logo for Khadas Edge-V

Hi

  How can I replace the logo displayed on boot with my custom logo?

In the SDK, kernel folder there are 2 logo.bmp files.
You can just replace them and rebuilt the firmware.
It’s easier to just use one logo and rename the other one so it’s not loaded to decrease the boot time.

Replacing existing firmware logo is not that easy.
In the past you could just unpack the resource.img file and then put your own logo in there, repack it and flash this single partition back. But I think from Android Pie onwards it doesn’t work that way anymore since the resource partition is merged with the boot.img partition.

1 Like

@mo123 I have a resource partition in my partition table, how can I dump the resource partition from u-boot?

kedge# mmc dev 0
switch to partitions #0, OK
mmc0(part 0) is current device
kedge# mmc part 

Partition Map for MMC device 0  --   Partition Type: EFI

Part	Start LBA	End LBA		Name
	Attributes
	Type GUID
	Partition GUID
  1	0x00004000	0x00005fff	"uboot"
	attrs:	0x0000000000000000
	type:	5c7fe954-4a32-4378-bda0-de3a12c6ede6
	guid:	94b7f94f-f139-4115-c74f-afbb0d23b695
  2	0x00006000	0x00007fff	"trust"
	attrs:	0x0000000000000000
	type:	b3e4ae7e-305f-400b-ca48-82e510904ad0
	guid:	bd479d09-ba16-483f-d4d3-c5c50b443ec5
  3	0x00008000	0x00009fff	"misc"
	attrs:	0x0000000000000000
	type:	63d33208-b649-44ee-ff27-11dc7febd9f2
	guid:	3ba82700-2214-400e-adb7-c35c57c18419
  4	0x0000a000	0x00011fff	"resource"
	attrs:	0x0000000000000000
	type:	f5300126-805f-4cac-ea72-5a297d358213
	guid:	e8e7a655-da71-4099-d054-ea342a9f1b77
  5	0x00012000	0x00021fff	"kernel"
	attrs:	0x0000000000000000
	type:	0528581c-e623-4bfe-bcd8-6aa22b802173
	guid:	d3b79b2c-d156-4f12-db5d-e39e34158d49
  6	0x00022000	0x00023fff	"dtb"
	attrs:	0x0000000000000000
	type:	a92ea12c-085d-42af-f5a6-c6484437f6d5
	guid:	4447ff57-ee49-4eb9-e3e9-b69b7d75f306
  7	0x00024000	0x00025fff	"dtbo"
	attrs:	0x0000000000000000
	type:	cd9ddf18-7b61-4d9e-b11b-e7476e0d8cec
	guid:	f62ed426-c03f-4c36-ee06-48043f410bb9
  8	0x00026000	0x000267ff	"vbmeta"
	attrs:	0x0000000000000000
	type:	c3abcc5d-b46b-4c80-bf85-ccb7294839e3
	guid:	345db86b-5432-42df-9349-f8052ee6d9b4
  9	0x00026800	0x000367ff	"boot"
	attrs:	0x0000000000000000
	type:	fa6e9d36-8154-4300-f115-7969478d717e
	guid:	48abba1f-4b7e-4441-b4b1-959025add8ee
 10	0x00036800	0x000567ff	"recovery"
	attrs:	0x0000000000000000
	type:	e58d7c06-a81a-4542-8c02-2c5367dbd2b2
	guid:	54f5f33a-790f-44b4-cc53-d3983dbc9a75
 11	0x00056800	0x0008e7ff	"backup"
	attrs:	0x0000000000000000
	type:	8a72504f-a608-49b6-bddc-94a52d6b6a59
	guid:	acbda654-0550-4cac-9964-b8f1641725f1
 12	0x0008e800	0x000907ff	"security"
	attrs:	0x0000000000000000
	type:	bb468d28-cd44-4645-b0ea-9c6321284d83
	guid:	3a17a757-c452-4607-cf43-b21f2e038d34
 13	0x00090800	0x001907ff	"cache"
	attrs:	0x0000000000000000
	type:	4fc03513-3a18-4377-80bb-10e453c44ad8
	guid:	ec7f8355-d771-4823-ea7b-d79d3260e6a5
 14	0x00190800	0x006907ff	"system"
	attrs:	0x0000000000000000
	type:	1fd65b5e-7a46-4ab9-f85a-b2905465fdba
	guid:	f27a696f-bf63-49ec-bc5e-a12a6f0b3a61
 15	0x00690800	0x006987ff	"metadata"
	attrs:	0x0000000000000000
	type:	5e6ba34c-384a-4a6e-eaed-3f194135aa99
	guid:	0000df51-101f-4404-c90e-54e43d613ea3
 16	0x00698800	0x007987ff	"vendor"
	attrs:	0x0000000000000000
	type:	ff3c7352-3550-45c4-b8e0-d6ee732d6561
	guid:	9eb6201c-cf71-419f-e31a-e1a66154eccf
 17	0x00798800	0x008987ff	"oem"
	attrs:	0x0000000000000000
	type:	3a27f847-173d-4656-9aa3-86ff2f782cfd
	guid:	67bd5456-0e48-4caa-813b-8dbd7175fb6a
 18	0x00898800	0x00898bff	"frp"
	attrs:	0x0000000000000000
	type:	3c0dca3e-7d13-4d11-f3b2-32f379a89100
	guid:	cf7b575b-fb15-47de-9020-d398145bd4d1
 19	0x00898c00	0x03a3dfde	"userdata"
	attrs:	0x0000000000000000
	type:	befbe875-8b32-4e03-9fc9-14d60446fef6
	guid:	16b7bd2d-b519-4da0-f1c7-b1b962d36d1f

You can load the firmware image into AndroidTool v2.6x-v2.69, last tab in Windows and click Unpack to split the firmware into the different partitions. In Linux in the rockdev folder the is also an unpack.sh script.
You can then flash the changed resource.img back with the 1st tap of AndroidTool, click the bottom ‘Dev’ button to read the offsets of the partitions and check the boot partition checkbox and load your changed resource.img.
Send me your logos and resource.img then I can change it for you.
This will work with Nougat but for Pie, I think the images are stored in the boot.img or part of the system which can’t be modified. But send the link of the whole firmware too you use, maybe I can try to change it.

AndroidTool also have a useful dump image.
In the last tab, you put in the offset for the partition and the size which you can get from the parameter.txt file you can also dump.

Here is a guide:


Some other firmware dump utility:
https://forum.xda-developers.com/showthread.php?t=2749082

3 Likes