@gar1234 I believe you are not understanding what the steps prescribed do.
The provided tool, is used to convert the bmp logo without the need of the entire android sdk needing to be recompiled.
Within the android sdk resides the section of data related to the board in device/khadas/kvim3/ -for VIM3, device/khadas/kvim3l/ for VIM3L
Inside that folder we have related files for the bootlogo as follows
bootup.bmp
bootup_rotate.bmp
bootup_rotate_secondary.bmp
Since we are not using the android SDK, we don’t need those directories, we just need these files.
You need to make sure you have all 3 of these files with the boot logo you wish to display.
after placing those logos in the aml-imgpack script folder, you can try to pack all the images together.
aml-imgpack.py --pack out.img *.bmp
here this will iterate all the images in that folder with file type .bmp and pack them into a logo.img file.
You can now flash this logo.img file and have the bootlogo visible on the mipi-dsi display.
I copied my bootup.bmp to two more files, and renamed them bootup_rotate.bmp and bootup_rotate_secondary.bmp.
So now I have 3 bmp files in the same folder.
Then I ran the python script:
python.exe aml-imgpack.py --pack out.img *.bmp
Here is the result:
Packing files in out.img:
Traceback (most recent call last):
File “aml-imgpack.py”, line 211, in
main()
File “aml-imgpack.py”, line 207, in main
pack_image_file(args.pack, args.assets)
File “aml-imgpack.py”, line 190, in pack_image_file
img.items = map(AmlResItem.from_file, assets)
File “aml-imgpack.py”, line 106, in from_file
with open(file) as fp:
IOError: [Errno 22] invalid mode (‘r’) or filename: ‘*.bmp’
Packing files in logo.img:
Traceback (most recent call last):
File “aml-imgpack.py”, line 211, in
main()
File “aml-imgpack.py”, line 207, in main
pack_image_file(args.pack, args.assets)
File “aml-imgpack.py”, line 190, in pack_image_file
img.items = map(AmlResItem.from_file, assets)
File “aml-imgpack.py”, line 106, in from_file
with open(file) as fp:
IOError: [Errno 2] No such file or directory: ‘bootup_rotate.bmp’
You can contact our after-sales staff and ask them if you want to customize the boot logo and animation. They will connect with us according to the process. I will make exclusive firmware for you, but the premise is that you need to contact the after-sales staff.
Is there anything else yo can suggest, before I contact the after-sales staff, since I now can update the animation and I just need to update the logo.
Can you re-read the steps I made to create the bootup.bmp logo etc., and see if I missed anything?
I checked the SDK documentation of Android 9.0. The logo of Android 9.0 is written into the logo.img image. It can only take effect by replacing the bmp file in the source code and then compiling logo.img and burning it into the logo partition of the device. Android 11.0 Only by replacing the bmp file under /mnt/vendor/odm_ext/logo_files/bootup.bmp can the boot logo be modified.